blob: 0f65610fc28a23306729b2dcbbb674f76faea751 [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
vlm8f3eb992004-06-17 23:42:48 +00003# Generated by GNU Autoconf 2.59.
vlmfa67ddc2004-06-03 03:38:44 +00004#
vlm8f3eb992004-06-17 23:42:48 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
vlmfa67ddc2004-06-03 03:38:44 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
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
vlm8f3eb992004-06-17 23:42:48 +000022DUALCASE=1; export DUALCASE # for MKS sh
vlmfa67ddc2004-06-03 03:38:44 +000023
24# Support unset when possible.
vlm8f3eb992004-06-17 23:42:48 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
vlmfa67ddc2004-06-03 03:38:44 +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
vlm8f3eb992004-06-17 23:42:48 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
vlmfa67ddc2004-06-03 03:38:44 +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
vlm8f3eb992004-06-17 23:42:48 +0000221 test -d ./-p && rmdir ./-p
vlmfa67ddc2004-06-03 03:38:44 +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.
vlm8f3eb992004-06-17 23:42:48 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
vlmfa67ddc2004-06-03 03:38:44 +0000229
230# Sed expression to map a string onto a valid variable name.
vlm8f3eb992004-06-17 23:42:48 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
vlmfa67ddc2004-06-03 03:38:44 +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
243
vlm8f3eb992004-06-17 23:42:48 +0000244
245# 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 :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # 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
274$*
275EOF
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
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 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
319 IFS="$lt_save_ifs"
320
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
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
vlmfa67ddc2004-06-03 03:38:44 +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#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${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
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="libasn1parser/asn1p_y.y"
429# 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
vlm1fcf7592006-08-18 02:27:55 +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 target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CONFIGURE_DEPENDS YACC LEX LEXLIB LEX_OUTPUT_ROOT ADD_CFLAGS LIBOBJS LTLIBOBJS'
vlmfa67ddc2004-06-03 03:38:44 +0000467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
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.
494bindir='${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
507ac_prev=
508for ac_option
509do
510 # 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
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
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=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 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" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 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"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
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=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -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 ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
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=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
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=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
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 \
639 | --no-cr | --no-c | -n)
640 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=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
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=*)
665 program_prefix=$ac_optarg ;;
666
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=*)
672 program_suffix=$ac_optarg ;;
673
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=*)
689 program_transform_name=$ac_optarg ;;
690
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=*)
699 sbindir=$ac_optarg ;;
700
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=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
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=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 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; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 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" ;;
761
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=*)
771 x_includes=$ac_optarg ;;
772
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=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
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
795 *)
796 # 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}
801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
vlm8f3eb992004-06-17 23:42:48 +0000825 localstatedir libdir includedir oldincludedir infodir mandir
vlmfa67ddc2004-06-03 03:38:44 +0000826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if 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
857
858
859# 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.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +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'`
875 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
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890fi
891(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; }; }
894srcdir=`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
vlm8f3eb992004-06-17 23:42:48 +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
vlmfa67ddc2004-06-03 03:38:44 +0000947
948#
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.
954 cat <<_ACEOF
955\`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
975_ACEOF
976
977 cat <<_ACEOF
978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
vlm8f3eb992004-06-17 23:42:48 +0000980 [$ac_default_prefix]
vlmfa67ddc2004-06-03 03:38:44 +0000981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
vlm8f3eb992004-06-17 23:42:48 +0000982 [PREFIX]
vlmfa67ddc2004-06-03 03:38:44 +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]
1004_ACEOF
1005
1006 cat <<\_ACEOF
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
vlm8f3eb992004-06-17 23:42:48 +00001027 --enable-maintainer-mode enable make rules and dependencies not useful
1028 (and sometimes confusing) to the casual installer
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-dependency-tracking speeds up one-time build
1036 --enable-dependency-tracking do not reject slow dependency extractors
vlmfa67ddc2004-06-03 03:38:44 +00001037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --disable-autoconf disable automatic generation of configure script
1039 --enable-Werror abort compilation after any C compiler warning
1040
1041Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
vlm8f3eb992004-06-17 23:42:48 +00001044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1046 both]
1047 --with-tags[=TAGS]
1048 include additional configurations [automatic]
vlmfa67ddc2004-06-03 03:38:44 +00001049
1050Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1057 CPP C preprocessor
vlm8f3eb992004-06-17 23:42:48 +00001058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
vlmfa67ddc2004-06-03 03:38:44 +00001063
1064Use these variables to override the choices made by `configure' or to help
1065it to find libraries and programs with nonstandard names/locations.
1066
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082 ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
vlm8f3eb992004-06-17 23:42:48 +00001100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106 case "$ac_dir" in
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124 case $ac_srcdir in
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 esac;;
1138esac
vlmfa67ddc2004-06-03 03:38:44 +00001139
1140 cd $ac_dir
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1143 echo
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1146 echo
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
vlm8f3eb992004-06-17 23:42:48 +00001149 test -f $ac_srcdir/configure.in; then
vlmfa67ddc2004-06-03 03:38:44 +00001150 echo
1151 $ac_configure --help
1152 else
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 fi
1155 cd $ac_popdir
1156 done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161 cat <<\_ACEOF
1162
vlm8f3eb992004-06-17 23:42:48 +00001163Copyright (C) 2003 Free Software Foundation, Inc.
vlmfa67ddc2004-06-03 03:38:44 +00001164This configure script is free software; the Free Software Foundation
1165gives unlimited permission to copy, distribute and modify it.
1166_ACEOF
1167 exit 0
1168fi
1169exec 5>config.log
1170cat >&5 <<_ACEOF
1171This file contains any messages produced by compilers while
1172running configure, to aid debugging if configure makes a mistake.
1173
1174It was created by $as_me, which was
vlm8f3eb992004-06-17 23:42:48 +00001175generated by GNU Autoconf 2.59. Invocation command line was
vlmfa67ddc2004-06-03 03:38:44 +00001176
1177 $ $0 $@
1178
1179_ACEOF
1180{
1181cat <<_ASUNAME
1182## --------- ##
1183## Platform. ##
1184## --------- ##
1185
1186hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191
1192/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194
1195/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1196/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1197/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1199/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1200/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1201/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1202
1203_ASUNAME
1204
1205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206for as_dir in $PATH
1207do
1208 IFS=$as_save_IFS
1209 test -z "$as_dir" && as_dir=.
1210 echo "PATH: $as_dir"
1211done
1212
1213} >&5
1214
1215cat >&5 <<_ACEOF
1216
1217
1218## ----------- ##
1219## Core tests. ##
1220## ----------- ##
1221
1222_ACEOF
1223
1224
1225# Keep a trace of the command line.
1226# Strip out --no-create and --no-recursion so they do not pile up.
1227# Strip out --silent because we don't want to record it for future runs.
1228# Also quote any args containing shell meta-characters.
1229# Make two passes to allow for proper duplicate-argument suppression.
1230ac_configure_args=
1231ac_configure_args0=
1232ac_configure_args1=
1233ac_sep=
1234ac_must_keep_next=false
1235for ac_pass in 1 2
1236do
1237 for ac_arg
1238 do
1239 case $ac_arg in
1240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 continue ;;
1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246 esac
1247 case $ac_pass in
1248 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 2)
1250 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251 if test $ac_must_keep_next = true; then
vlm8f3eb992004-06-17 23:42:48 +00001252 ac_must_keep_next=false # Got value, back to normal.
vlmfa67ddc2004-06-03 03:38:44 +00001253 else
vlm8f3eb992004-06-17 23:42:48 +00001254 case $ac_arg in
1255 *=* | --config-cache | -C | -disable-* | --disable-* \
1256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258 | -with-* | --with-* | -without-* | --without-* | --x)
1259 case "$ac_configure_args0 " in
1260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261 esac
1262 ;;
1263 -* ) ac_must_keep_next=true ;;
1264 esac
vlmfa67ddc2004-06-03 03:38:44 +00001265 fi
1266 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267 # Get rid of the leading space.
1268 ac_sep=" "
1269 ;;
1270 esac
1271 done
1272done
1273$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275
1276# When interrupted or exit'd, cleanup temporary files, and complete
1277# config.log. We remove comments because anyway the quotes in there
1278# would cause problems or look ugly.
1279# WARNING: Be sure not to use single quotes in there, as some shells,
1280# such as our DU 5.0 friend, will then `close' the trap.
1281trap 'exit_status=$?
1282 # Save into config.log some information that might help in debugging.
1283 {
1284 echo
1285
1286 cat <<\_ASBOX
1287## ---------------- ##
1288## Cache variables. ##
1289## ---------------- ##
1290_ASBOX
1291 echo
1292 # The following way of writing the cache mishandles newlines in values,
1293{
1294 (set) 2>&1 |
1295 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296 *ac_space=\ *)
1297 sed -n \
vlm8f3eb992004-06-17 23:42:48 +00001298 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
vlmfa67ddc2004-06-03 03:38:44 +00001300 ;;
1301 *)
1302 sed -n \
vlm8f3eb992004-06-17 23:42:48 +00001303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
vlmfa67ddc2004-06-03 03:38:44 +00001304 ;;
1305 esac;
1306}
1307 echo
1308
1309 cat <<\_ASBOX
1310## ----------------- ##
1311## Output variables. ##
1312## ----------------- ##
1313_ASBOX
1314 echo
1315 for ac_var in $ac_subst_vars
1316 do
1317 eval ac_val=$`echo $ac_var`
1318 echo "$ac_var='"'"'$ac_val'"'"'"
1319 done | sort
1320 echo
1321
1322 if test -n "$ac_subst_files"; then
1323 cat <<\_ASBOX
1324## ------------- ##
1325## Output files. ##
1326## ------------- ##
1327_ASBOX
1328 echo
1329 for ac_var in $ac_subst_files
1330 do
1331 eval ac_val=$`echo $ac_var`
vlm8f3eb992004-06-17 23:42:48 +00001332 echo "$ac_var='"'"'$ac_val'"'"'"
vlmfa67ddc2004-06-03 03:38:44 +00001333 done | sort
1334 echo
1335 fi
1336
1337 if test -s confdefs.h; then
1338 cat <<\_ASBOX
1339## ----------- ##
1340## confdefs.h. ##
1341## ----------- ##
1342_ASBOX
1343 echo
1344 sed "/^$/d" confdefs.h | sort
1345 echo
1346 fi
1347 test "$ac_signal" != 0 &&
1348 echo "$as_me: caught signal $ac_signal"
1349 echo "$as_me: exit $exit_status"
1350 } >&5
vlm8f3eb992004-06-17 23:42:48 +00001351 rm -f core *.core &&
vlmfa67ddc2004-06-03 03:38:44 +00001352 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353 exit $exit_status
1354 ' 0
1355for ac_signal in 1 2 13 15; do
1356 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357done
1358ac_signal=0
1359
1360# confdefs.h avoids OS command line length limits that DEFS can exceed.
1361rm -rf conftest* confdefs.h
1362# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363echo >confdefs.h
1364
1365# Predefined preprocessor variables.
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_NAME "$PACKAGE_NAME"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_VERSION "$PACKAGE_VERSION"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_STRING "$PACKAGE_STRING"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389_ACEOF
1390
1391
1392# Let the site file select an alternate cache file if it wants to.
1393# Prefer explicitly selected file to automatically selected ones.
1394if test -z "$CONFIG_SITE"; then
1395 if test "x$prefix" != xNONE; then
1396 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 else
1398 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399 fi
1400fi
1401for ac_site_file in $CONFIG_SITE; do
1402 if test -r "$ac_site_file"; then
1403 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404echo "$as_me: loading site script $ac_site_file" >&6;}
1405 sed 's/^/| /' "$ac_site_file" >&5
1406 . "$ac_site_file"
1407 fi
1408done
1409
1410if test -r "$cache_file"; then
1411 # Some versions of bash will fail to source /dev/null (special
1412 # files actually), so we avoid doing that.
1413 if test -f "$cache_file"; then
1414 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415echo "$as_me: loading cache $cache_file" >&6;}
1416 case $cache_file in
1417 [\\/]* | ?:[\\/]* ) . $cache_file;;
1418 *) . ./$cache_file;;
1419 esac
1420 fi
1421else
1422 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423echo "$as_me: creating cache $cache_file" >&6;}
1424 >$cache_file
1425fi
1426
1427# Check that the precious variables saved in the cache have kept the same
1428# value.
1429ac_cache_corrupted=false
1430for ac_var in `(set) 2>&1 |
vlm8f3eb992004-06-17 23:42:48 +00001431 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
vlmfa67ddc2004-06-03 03:38:44 +00001432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433 eval ac_new_set=\$ac_env_${ac_var}_set
1434 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435 eval ac_new_val="\$ac_env_${ac_var}_value"
1436 case $ac_old_set,$ac_new_set in
1437 set,)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,set)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,);;
1446 *)
1447 if test "x$ac_old_val" != "x$ac_new_val"; then
vlm8f3eb992004-06-17 23:42:48 +00001448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
vlmfa67ddc2004-06-03 03:38:44 +00001449echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
vlm8f3eb992004-06-17 23:42:48 +00001450 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
vlmfa67ddc2004-06-03 03:38:44 +00001451echo "$as_me: former value: $ac_old_val" >&2;}
vlm8f3eb992004-06-17 23:42:48 +00001452 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
vlmfa67ddc2004-06-03 03:38:44 +00001453echo "$as_me: current value: $ac_new_val" >&2;}
vlm8f3eb992004-06-17 23:42:48 +00001454 ac_cache_corrupted=:
vlmfa67ddc2004-06-03 03:38:44 +00001455 fi;;
1456 esac
1457 # Pass precious variables to config.status.
1458 if test "$ac_new_set" = set; then
1459 case $ac_new_val in
1460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462 *) ac_arg=$ac_var=$ac_new_val ;;
1463 esac
1464 case " $ac_configure_args " in
1465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1466 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467 esac
1468 fi
1469done
1470if $ac_cache_corrupted; then
1471 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475 { (exit 1); exit 1; }; }
1476fi
1477
1478ac_ext=c
1479ac_cpp='$CPP $CPPFLAGS'
1480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502ac_aux_dir=
1503for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1516 fi
1517done
1518if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527# Make sure we can run config.sub.
1528$ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533echo "$as_me:$LINENO: checking build system type" >&5
1534echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_build_alias=$build_alias
1539test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550fi
1551echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552echo "${ECHO_T}$ac_cv_build" >&6
1553build=$ac_cv_build
1554build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609
vlm1fcf7592006-08-18 02:27:55 +00001610am__api_version="1.9"
vlmfa67ddc2004-06-03 03:38:44 +00001611# Find a good install program. We prefer a C program (faster),
1612# so one script is as good as another. But avoid the broken or
1613# incompatible versions:
1614# SysV /etc/install, /usr/sbin/install
1615# SunOS /usr/etc/install
1616# IRIX /sbin/install
1617# AIX /bin/install
1618# AmigaOS /C/install, which installs bootblocks on floppy discs
1619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
vlm8f3eb992004-06-17 23:42:48 +00001622# OS/2's system install, which has a completely different semantic
vlmfa67ddc2004-06-03 03:38:44 +00001623# ./install, which can be erroneously created by make from ./install.sh.
1624echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1625echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1626if test -z "$INSTALL"; then
1627if test "${ac_cv_path_install+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631for as_dir in $PATH
1632do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 # Account for people who put trailing slashes in PATH elements.
1636case $as_dir/ in
1637 ./ | .// | /cC/* | \
1638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
vlm8f3eb992004-06-17 23:42:48 +00001639 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
vlmfa67ddc2004-06-03 03:38:44 +00001640 /usr/ucb/* ) ;;
1641 *)
1642 # OSF1 and SCO ODT 3.0 have their own names for install.
1643 # Don't use installbsd from OSF since it installs stuff as root
1644 # by default.
1645 for ac_prog in ginstall scoinst install; do
1646 for ac_exec_ext in '' $ac_executable_extensions; do
vlm8f3eb992004-06-17 23:42:48 +00001647 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1648 if test $ac_prog = install &&
1649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1650 # AIX install. It has an incompatible calling convention.
1651 :
1652 elif test $ac_prog = install &&
1653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654 # program-specific install script used by HP pwplus--don't use.
1655 :
1656 else
1657 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1658 break 3
1659 fi
1660 fi
vlmfa67ddc2004-06-03 03:38:44 +00001661 done
1662 done
1663 ;;
1664esac
1665done
1666
1667
1668fi
1669 if test "${ac_cv_path_install+set}" = set; then
1670 INSTALL=$ac_cv_path_install
1671 else
1672 # As a last resort, use the slow shell script. We don't cache a
1673 # path for INSTALL within a source directory, because that will
1674 # break other packages using the cache if that directory is
1675 # removed, or if the path is relative.
1676 INSTALL=$ac_install_sh
1677 fi
1678fi
1679echo "$as_me:$LINENO: result: $INSTALL" >&5
1680echo "${ECHO_T}$INSTALL" >&6
1681
1682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1683# It thinks the first close brace ends the variable substitution.
1684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1685
1686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1687
1688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1689
1690echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1691echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1692# Just in case
1693sleep 1
1694echo timestamp > conftest.file
1695# Do `set' in a subshell so we don't clobber the current shell's
1696# arguments. Must try -L first in case configure is actually a
1697# symlink; some systems play weird games with the mod time of symlinks
1698# (eg FreeBSD returns the mod time of the symlink's containing
1699# directory).
1700if (
1701 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1702 if test "$*" = "X"; then
1703 # -L didn't work.
1704 set X `ls -t $srcdir/configure conftest.file`
1705 fi
1706 rm -f conftest.file
1707 if test "$*" != "X $srcdir/configure conftest.file" \
1708 && test "$*" != "X conftest.file $srcdir/configure"; then
1709
1710 # If neither matched, then we have a broken ls. This can happen
1711 # if, for instance, CONFIG_SHELL is bash and it inherits a
1712 # broken ls alias from the environment. This has actually
1713 # happened. Such a system could not be considered "sane".
1714 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1715alias in your environment" >&5
1716echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1717alias in your environment" >&2;}
1718 { (exit 1); exit 1; }; }
1719 fi
1720
1721 test "$2" = conftest.file
1722 )
1723then
1724 # Ok.
1725 :
1726else
1727 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1728Check your system clock" >&5
1729echo "$as_me: error: newly created file is older than distributed files!
1730Check your system clock" >&2;}
1731 { (exit 1); exit 1; }; }
1732fi
1733echo "$as_me:$LINENO: result: yes" >&5
1734echo "${ECHO_T}yes" >&6
1735test "$program_prefix" != NONE &&
1736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1737# Use a double $ so make ignores it.
1738test "$program_suffix" != NONE &&
1739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1740# Double any \ or $. echo might interpret backslashes.
1741# By default was `s,x,x', remove it if useless.
1742cat <<\_ACEOF >conftest.sed
1743s/[\\$]/&&/g;s/;s,x,x,$//
1744_ACEOF
1745program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1746rm conftest.sed
1747
vlmfa67ddc2004-06-03 03:38:44 +00001748# expand $ac_aux_dir to an absolute path
vlm8f3eb992004-06-17 23:42:48 +00001749am_aux_dir=`cd $ac_aux_dir && pwd`
vlmfa67ddc2004-06-03 03:38:44 +00001750
1751test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1752# Use eval to expand $SHELL
1753if eval "$MISSING --run true"; then
1754 am_missing_run="$MISSING --run "
1755else
1756 am_missing_run=
vlm8f3eb992004-06-17 23:42:48 +00001757 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1758echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1759fi
1760
1761if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
vlm1fcf7592006-08-18 02:27:55 +00001762 # We used to keeping the `.' as first argument, in order to
1763 # allow $(mkdir_p) to be used without argument. As in
vlm8f3eb992004-06-17 23:42:48 +00001764 # $(mkdir_p) $(somedir)
vlm1fcf7592006-08-18 02:27:55 +00001765 # where $(somedir) is conditionally defined. However this is wrong
1766 # for two reasons:
1767 # 1. if the package is installed by a user who cannot write `.'
1768 # make install will fail,
1769 # 2. the above comment should most certainly read
1770 # $(mkdir_p) $(DESTDIR)$(somedir)
1771 # so it does not work when $(somedir) is undefined and
1772 # $(DESTDIR) is not.
1773 # To support the latter case, we have to write
1774 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1775 # so the `.' trick is pointless.
1776 mkdir_p='mkdir -p --'
vlm8f3eb992004-06-17 23:42:48 +00001777else
1778 # On NextStep and OpenStep, the `mkdir' command does not
1779 # recognize any option. It will interpret all options as
1780 # directories to create, and then abort because `.' already
1781 # exists.
1782 for d in ./-p ./--version;
1783 do
1784 test -d $d && rmdir $d
1785 done
1786 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1787 if test -f "$ac_aux_dir/mkinstalldirs"; then
1788 mkdir_p='$(mkinstalldirs)'
1789 else
1790 mkdir_p='$(install_sh) -d'
1791 fi
vlmfa67ddc2004-06-03 03:38:44 +00001792fi
1793
1794for ac_prog in gawk mawk nawk awk
1795do
1796 # Extract the first word of "$ac_prog", so it can be a program name with args.
1797set dummy $ac_prog; ac_word=$2
1798echo "$as_me:$LINENO: checking for $ac_word" >&5
1799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800if test "${ac_cv_prog_AWK+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802else
1803 if test -n "$AWK"; then
1804 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1805else
1806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807for as_dir in $PATH
1808do
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_AWK="$ac_prog"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 break 2
1816 fi
1817done
1818done
1819
1820fi
1821fi
1822AWK=$ac_cv_prog_AWK
1823if test -n "$AWK"; then
1824 echo "$as_me:$LINENO: result: $AWK" >&5
1825echo "${ECHO_T}$AWK" >&6
1826else
1827 echo "$as_me:$LINENO: result: no" >&5
1828echo "${ECHO_T}no" >&6
1829fi
1830
1831 test -n "$AWK" && break
1832done
1833
1834echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1835echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
vlm8f3eb992004-06-17 23:42:48 +00001836set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
vlmfa67ddc2004-06-03 03:38:44 +00001837if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840 cat >conftest.make <<\_ACEOF
1841all:
1842 @echo 'ac_maketemp="$(MAKE)"'
1843_ACEOF
1844# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1845eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1846if test -n "$ac_maketemp"; then
1847 eval ac_cv_prog_make_${ac_make}_set=yes
1848else
1849 eval ac_cv_prog_make_${ac_make}_set=no
1850fi
1851rm -f conftest.make
1852fi
1853if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1854 echo "$as_me:$LINENO: result: yes" >&5
1855echo "${ECHO_T}yes" >&6
1856 SET_MAKE=
1857else
1858 echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6
1860 SET_MAKE="MAKE=${MAKE-make}"
1861fi
1862
vlm8f3eb992004-06-17 23:42:48 +00001863rm -rf .tst 2>/dev/null
1864mkdir .tst 2>/dev/null
1865if test -d .tst; then
1866 am__leading_dot=.
vlmfa67ddc2004-06-03 03:38:44 +00001867else
vlm8f3eb992004-06-17 23:42:48 +00001868 am__leading_dot=_
vlmfa67ddc2004-06-03 03:38:44 +00001869fi
vlm8f3eb992004-06-17 23:42:48 +00001870rmdir .tst 2>/dev/null
vlmfa67ddc2004-06-03 03:38:44 +00001871
1872# test to see if srcdir already configured
vlm8f3eb992004-06-17 23:42:48 +00001873if test "`cd $srcdir && pwd`" != "`pwd`" &&
vlmfa67ddc2004-06-03 03:38:44 +00001874 test -f $srcdir/config.status; then
1875 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1876echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1877 { (exit 1); exit 1; }; }
1878fi
1879
vlm8f3eb992004-06-17 23:42:48 +00001880# test whether we have cygpath
1881if test -z "$CYGPATH_W"; then
1882 if (cygpath --version) >/dev/null 2>/dev/null; then
1883 CYGPATH_W='cygpath -w'
1884 else
1885 CYGPATH_W=echo
1886 fi
1887fi
1888
1889
vlmfa67ddc2004-06-03 03:38:44 +00001890# Define the identity of the package.
vlm8f3eb992004-06-17 23:42:48 +00001891 PACKAGE=asn1c
vlme81928a2006-10-09 12:29:34 +00001892 VERSION=0.9.22
vlm8f3eb992004-06-17 23:42:48 +00001893
vlmfa67ddc2004-06-03 03:38:44 +00001894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE "$PACKAGE"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define VERSION "$VERSION"
1902_ACEOF
1903
vlmfa67ddc2004-06-03 03:38:44 +00001904# Some tools Automake needs.
1905
vlm8f3eb992004-06-17 23:42:48 +00001906ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
vlmfa67ddc2004-06-03 03:38:44 +00001907
1908
1909AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1910
1911
vlm8f3eb992004-06-17 23:42:48 +00001912AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
vlmfa67ddc2004-06-03 03:38:44 +00001913
1914
1915AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1916
1917
1918MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1919
vlmfa67ddc2004-06-03 03:38:44 +00001920install_sh=${install_sh-"$am_aux_dir/install-sh"}
1921
vlm8f3eb992004-06-17 23:42:48 +00001922# Installed binaries are usually stripped using `strip' when the user
1923# run `make install-strip'. However `strip' might not be the right
1924# tool to use in cross-compilation environments, therefore Automake
1925# will honor the `STRIP' environment variable to overrule this program.
1926if test "$cross_compiling" != no; then
1927 if test -n "$ac_tool_prefix"; then
1928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1929set dummy ${ac_tool_prefix}strip; ac_word=$2
1930echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932if test "${ac_cv_prog_STRIP+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935 if test -n "$STRIP"; then
1936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1937else
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1948 fi
1949done
1950done
1951
1952fi
1953fi
1954STRIP=$ac_cv_prog_STRIP
1955if test -n "$STRIP"; then
1956 echo "$as_me:$LINENO: result: $STRIP" >&5
1957echo "${ECHO_T}$STRIP" >&6
1958else
1959 echo "$as_me:$LINENO: result: no" >&5
1960echo "${ECHO_T}no" >&6
1961fi
1962
1963fi
1964if test -z "$ac_cv_prog_STRIP"; then
1965 ac_ct_STRIP=$STRIP
1966 # Extract the first word of "strip", so it can be a program name with args.
1967set dummy strip; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 if test -n "$ac_ct_STRIP"; then
1974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_ac_ct_STRIP="strip"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987done
1988done
1989
1990 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1991fi
1992fi
1993ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1994if test -n "$ac_ct_STRIP"; then
1995 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1996echo "${ECHO_T}$ac_ct_STRIP" >&6
1997else
1998 echo "$as_me:$LINENO: result: no" >&5
1999echo "${ECHO_T}no" >&6
2000fi
2001
2002 STRIP=$ac_ct_STRIP
2003else
2004 STRIP="$ac_cv_prog_STRIP"
2005fi
2006
2007fi
vlmfa67ddc2004-06-03 03:38:44 +00002008INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2009
2010# We need awk for the "check" target. The system "awk" is bad on
2011# some platforms.
vlm1fcf7592006-08-18 02:27:55 +00002012# Always define AMTAR for backward compatibility.
2013
2014AMTAR=${AMTAR-"${am_missing_run}tar"}
2015
2016am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2017
2018
vlmfa67ddc2004-06-03 03:38:44 +00002019
2020
2021
2022
2023echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2024echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2025 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2026if test "${enable_maintainer_mode+set}" = set; then
2027 enableval="$enable_maintainer_mode"
2028 USE_MAINTAINER_MODE=$enableval
2029else
2030 USE_MAINTAINER_MODE=no
2031fi;
2032 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2033echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2034
2035
2036if test $USE_MAINTAINER_MODE = yes; then
2037 MAINTAINER_MODE_TRUE=
2038 MAINTAINER_MODE_FALSE='#'
2039else
2040 MAINTAINER_MODE_TRUE='#'
2041 MAINTAINER_MODE_FALSE=
2042fi
vlm8f3eb992004-06-17 23:42:48 +00002043
vlmfa67ddc2004-06-03 03:38:44 +00002044 MAINT=$MAINTAINER_MODE_TRUE
2045
2046
2047
2048# Check whether --enable-shared or --disable-shared was given.
2049if test "${enable_shared+set}" = set; then
2050 enableval="$enable_shared"
2051 p=${PACKAGE-default}
vlm8f3eb992004-06-17 23:42:48 +00002052 case $enableval in
2053 yes) enable_shared=yes ;;
2054 no) enable_shared=no ;;
2055 *)
2056 enable_shared=no
2057 # Look at the argument we got. We use all the common list separators.
2058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2059 for pkg in $enableval; do
2060 IFS="$lt_save_ifs"
2061 if test "X$pkg" = "X$p"; then
2062 enable_shared=yes
2063 fi
2064 done
2065 IFS="$lt_save_ifs"
2066 ;;
2067 esac
vlmfa67ddc2004-06-03 03:38:44 +00002068else
2069 enable_shared=yes
2070fi;
vlm8f3eb992004-06-17 23:42:48 +00002071
vlmfa67ddc2004-06-03 03:38:44 +00002072# Check whether --enable-static or --disable-static was given.
2073if test "${enable_static+set}" = set; then
2074 enableval="$enable_static"
2075 p=${PACKAGE-default}
vlm8f3eb992004-06-17 23:42:48 +00002076 case $enableval in
2077 yes) enable_static=yes ;;
2078 no) enable_static=no ;;
2079 *)
2080 enable_static=no
2081 # Look at the argument we got. We use all the common list separators.
2082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2083 for pkg in $enableval; do
2084 IFS="$lt_save_ifs"
2085 if test "X$pkg" = "X$p"; then
2086 enable_static=yes
2087 fi
2088 done
2089 IFS="$lt_save_ifs"
2090 ;;
2091 esac
vlmfa67ddc2004-06-03 03:38:44 +00002092else
2093 enable_static=yes
2094fi;
vlm8f3eb992004-06-17 23:42:48 +00002095
vlmfa67ddc2004-06-03 03:38:44 +00002096# Check whether --enable-fast-install or --disable-fast-install was given.
2097if test "${enable_fast_install+set}" = set; then
2098 enableval="$enable_fast_install"
2099 p=${PACKAGE-default}
vlm8f3eb992004-06-17 23:42:48 +00002100 case $enableval in
2101 yes) enable_fast_install=yes ;;
2102 no) enable_fast_install=no ;;
2103 *)
2104 enable_fast_install=no
2105 # Look at the argument we got. We use all the common list separators.
2106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2107 for pkg in $enableval; do
2108 IFS="$lt_save_ifs"
2109 if test "X$pkg" = "X$p"; then
2110 enable_fast_install=yes
2111 fi
2112 done
2113 IFS="$lt_save_ifs"
2114 ;;
2115 esac
vlmfa67ddc2004-06-03 03:38:44 +00002116else
2117 enable_fast_install=yes
2118fi;
vlmfa67ddc2004-06-03 03:38:44 +00002119
vlm8f3eb992004-06-17 23:42:48 +00002120DEPDIR="${am__leading_dot}deps"
vlmfa67ddc2004-06-03 03:38:44 +00002121
vlm8f3eb992004-06-17 23:42:48 +00002122 ac_config_commands="$ac_config_commands depfiles"
vlmfa67ddc2004-06-03 03:38:44 +00002123
vlmfa67ddc2004-06-03 03:38:44 +00002124
2125am_make=${MAKE-make}
2126cat > confinc << 'END'
vlm8f3eb992004-06-17 23:42:48 +00002127am__doit:
vlmfa67ddc2004-06-03 03:38:44 +00002128 @echo done
vlm8f3eb992004-06-17 23:42:48 +00002129.PHONY: am__doit
vlmfa67ddc2004-06-03 03:38:44 +00002130END
2131# If we don't find an include directive, just comment out the code.
2132echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2133echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
vlm8f3eb992004-06-17 23:42:48 +00002134am__include="#"
vlmfa67ddc2004-06-03 03:38:44 +00002135am__quote=
2136_am_result=none
2137# First try GNU make style include.
2138echo "include confinc" > confmf
2139# We grep out `Entering directory' and `Leaving directory'
2140# messages which can occur if `w' ends up in MAKEFLAGS.
2141# In particular we don't look at `^make:' because GNU make might
2142# be invoked under some other name (usually "gmake"), in which
2143# case it prints its new name instead of `make'.
vlm8f3eb992004-06-17 23:42:48 +00002144if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
vlmfa67ddc2004-06-03 03:38:44 +00002145 am__include=include
2146 am__quote=
2147 _am_result=GNU
2148fi
2149# Now try BSD make style include.
2150if test "$am__include" = "#"; then
2151 echo '.include "confinc"' > confmf
2152 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2153 am__include=.include
vlm8f3eb992004-06-17 23:42:48 +00002154 am__quote="\""
vlmfa67ddc2004-06-03 03:38:44 +00002155 _am_result=BSD
2156 fi
2157fi
2158
2159
2160echo "$as_me:$LINENO: result: $_am_result" >&5
2161echo "${ECHO_T}$_am_result" >&6
2162rm -f confinc confmf
2163
vlm8f3eb992004-06-17 23:42:48 +00002164# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2165if test "${enable_dependency_tracking+set}" = set; then
2166 enableval="$enable_dependency_tracking"
2167
2168fi;
2169if test "x$enable_dependency_tracking" != xno; then
2170 am_depcomp="$ac_aux_dir/depcomp"
2171 AMDEPBACKSLASH='\'
2172fi
2173
2174
2175if test "x$enable_dependency_tracking" != xno; then
2176 AMDEP_TRUE=
2177 AMDEP_FALSE='#'
2178else
2179 AMDEP_TRUE='#'
2180 AMDEP_FALSE=
2181fi
2182
2183
2184
vlmfa67ddc2004-06-03 03:38:44 +00002185ac_ext=c
2186ac_cpp='$CPP $CPPFLAGS'
2187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190if test -n "$ac_tool_prefix"; then
2191 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2192set dummy ${ac_tool_prefix}gcc; ac_word=$2
2193echo "$as_me:$LINENO: checking for $ac_word" >&5
2194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2200else
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2211 fi
2212done
2213done
2214
2215fi
2216fi
2217CC=$ac_cv_prog_CC
2218if test -n "$CC"; then
2219 echo "$as_me:$LINENO: result: $CC" >&5
2220echo "${ECHO_T}$CC" >&6
2221else
2222 echo "$as_me:$LINENO: result: no" >&5
2223echo "${ECHO_T}no" >&6
2224fi
2225
2226fi
2227if test -z "$ac_cv_prog_CC"; then
2228 ac_ct_CC=$CC
2229 # Extract the first word of "gcc", so it can be a program name with args.
2230set dummy gcc; ac_word=$2
2231echo "$as_me:$LINENO: checking for $ac_word" >&5
2232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
2236 if test -n "$ac_ct_CC"; then
2237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2238else
2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246 ac_cv_prog_ac_ct_CC="gcc"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2249 fi
2250done
2251done
2252
2253fi
2254fi
2255ac_ct_CC=$ac_cv_prog_ac_ct_CC
2256if test -n "$ac_ct_CC"; then
2257 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2258echo "${ECHO_T}$ac_ct_CC" >&6
2259else
2260 echo "$as_me:$LINENO: result: no" >&5
2261echo "${ECHO_T}no" >&6
2262fi
2263
2264 CC=$ac_ct_CC
2265else
2266 CC="$ac_cv_prog_CC"
2267fi
2268
2269if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2272set dummy ${ac_tool_prefix}cc; ac_word=$2
2273echo "$as_me:$LINENO: checking for $ac_word" >&5
2274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275if test "${ac_cv_prog_CC+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC="$CC" # Let the user override the test.
2280else
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_CC="${ac_tool_prefix}cc"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2291 fi
2292done
2293done
2294
2295fi
2296fi
2297CC=$ac_cv_prog_CC
2298if test -n "$CC"; then
2299 echo "$as_me:$LINENO: result: $CC" >&5
2300echo "${ECHO_T}$CC" >&6
2301else
2302 echo "$as_me:$LINENO: result: no" >&5
2303echo "${ECHO_T}no" >&6
2304fi
2305
2306fi
2307if test -z "$ac_cv_prog_CC"; then
2308 ac_ct_CC=$CC
2309 # Extract the first word of "cc", so it can be a program name with args.
2310set dummy cc; ac_word=$2
2311echo "$as_me:$LINENO: checking for $ac_word" >&5
2312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315else
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC="cc"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330done
2331done
2332
2333fi
2334fi
2335ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336if test -n "$ac_ct_CC"; then
2337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338echo "${ECHO_T}$ac_ct_CC" >&6
2339else
2340 echo "$as_me:$LINENO: result: no" >&5
2341echo "${ECHO_T}no" >&6
2342fi
2343
2344 CC=$ac_ct_CC
2345else
2346 CC="$ac_cv_prog_CC"
2347fi
2348
2349fi
2350if test -z "$CC"; then
2351 # Extract the first word of "cc", so it can be a program name with args.
2352set dummy cc; ac_word=$2
2353echo "$as_me:$LINENO: checking for $ac_word" >&5
2354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355if test "${ac_cv_prog_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2360else
2361 ac_prog_rejected=no
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370 ac_prog_rejected=yes
2371 continue
2372 fi
2373 ac_cv_prog_CC="cc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2376 fi
2377done
2378done
2379
2380if test $ac_prog_rejected = yes; then
2381 # We found a bogon in the path, so make sure we never use it.
2382 set dummy $ac_cv_prog_CC
2383 shift
2384 if test $# != 0; then
2385 # We chose a different compiler from the bogus one.
2386 # However, it has the same basename, so the bogon will be chosen
2387 # first if we set CC to just the basename; use the full file name.
2388 shift
2389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2390 fi
2391fi
2392fi
2393fi
2394CC=$ac_cv_prog_CC
2395if test -n "$CC"; then
2396 echo "$as_me:$LINENO: result: $CC" >&5
2397echo "${ECHO_T}$CC" >&6
2398else
2399 echo "$as_me:$LINENO: result: no" >&5
2400echo "${ECHO_T}no" >&6
2401fi
2402
2403fi
2404if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 for ac_prog in cl
2407 do
2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410echo "$as_me:$LINENO: checking for $ac_word" >&5
2411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412if test "${ac_cv_prog_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414else
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2417else
2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2428 fi
2429done
2430done
2431
2432fi
2433fi
2434CC=$ac_cv_prog_CC
2435if test -n "$CC"; then
2436 echo "$as_me:$LINENO: result: $CC" >&5
2437echo "${ECHO_T}$CC" >&6
2438else
2439 echo "$as_me:$LINENO: result: no" >&5
2440echo "${ECHO_T}no" >&6
2441fi
2442
2443 test -n "$CC" && break
2444 done
2445fi
2446if test -z "$CC"; then
2447 ac_ct_CC=$CC
2448 for ac_prog in cl
2449do
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451set dummy $ac_prog; ac_word=$2
2452echo "$as_me:$LINENO: checking for $ac_word" >&5
2453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_ac_ct_CC="$ac_prog"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471done
2472done
2473
2474fi
2475fi
2476ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477if test -n "$ac_ct_CC"; then
2478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479echo "${ECHO_T}$ac_ct_CC" >&6
2480else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483fi
2484
2485 test -n "$ac_ct_CC" && break
2486done
2487
2488 CC=$ac_ct_CC
2489fi
2490
2491fi
2492
2493
2494test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2495See \`config.log' for more details." >&5
2496echo "$as_me: error: no acceptable C compiler found in \$PATH
2497See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2499
2500# Provide some information about the compiler.
2501echo "$as_me:$LINENO:" \
2502 "checking for C compiler version" >&5
2503ac_compiler=`set X $ac_compile; echo $2`
2504{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2505 (eval $ac_compiler --version </dev/null >&5) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }
2509{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2510 (eval $ac_compiler -v </dev/null >&5) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2515 (eval $ac_compiler -V </dev/null >&5) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2519
2520cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00002521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h. */
2526
2527int
2528main ()
2529{
2530
2531 ;
2532 return 0;
2533}
2534_ACEOF
2535ac_clean_files_save=$ac_clean_files
2536ac_clean_files="$ac_clean_files a.out a.exe b.out"
2537# Try to create an executable without -o first, disregard a.out.
2538# It will help us diagnose broken compilers, and finding out an intuition
2539# of exeext.
vlm8f3eb992004-06-17 23:42:48 +00002540echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
vlmfa67ddc2004-06-03 03:38:44 +00002542ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2544 (eval $ac_link_default) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; then
2548 # Find the output, starting from the most likely. This scheme is
2549# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2550# resort.
2551
2552# Be careful to initialize this variable, since it used to be cached.
2553# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2554ac_cv_exeext=
2555# b.out is created by i960 compilers.
2556for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2557do
2558 test -f "$ac_file" || continue
2559 case $ac_file in
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
vlm8f3eb992004-06-17 23:42:48 +00002561 ;;
vlmfa67ddc2004-06-03 03:38:44 +00002562 conftest.$ac_ext )
vlm8f3eb992004-06-17 23:42:48 +00002563 # This is the source file.
2564 ;;
vlmfa67ddc2004-06-03 03:38:44 +00002565 [ab].out )
vlm8f3eb992004-06-17 23:42:48 +00002566 # We found the default executable, but exeext='' is most
2567 # certainly right.
2568 break;;
vlmfa67ddc2004-06-03 03:38:44 +00002569 *.* )
vlm8f3eb992004-06-17 23:42:48 +00002570 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2571 # FIXME: I believe we export ac_cv_exeext for Libtool,
2572 # but it would be cool to find out if it's true. Does anybody
2573 # maintain Libtool? --akim.
2574 export ac_cv_exeext
2575 break;;
vlmfa67ddc2004-06-03 03:38:44 +00002576 * )
vlm8f3eb992004-06-17 23:42:48 +00002577 break;;
vlmfa67ddc2004-06-03 03:38:44 +00002578 esac
2579done
2580else
2581 echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2585See \`config.log' for more details." >&5
2586echo "$as_me: error: C compiler cannot create executables
2587See \`config.log' for more details." >&2;}
2588 { (exit 77); exit 77; }; }
2589fi
2590
2591ac_exeext=$ac_cv_exeext
2592echo "$as_me:$LINENO: result: $ac_file" >&5
2593echo "${ECHO_T}$ac_file" >&6
2594
2595# Check the compiler produces executables we can run. If not, either
2596# the compiler is broken, or we cross compile.
2597echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2598echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2599# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2600# If not cross compiling, check that we can run a simple program.
2601if test "$cross_compiling" != yes; then
2602 if { ac_try='./$ac_file'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2608 cross_compiling=no
2609 else
2610 if test "$cross_compiling" = maybe; then
2611 cross_compiling=yes
2612 else
2613 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2614If you meant to cross compile, use \`--host'.
2615See \`config.log' for more details." >&5
2616echo "$as_me: error: cannot run C compiled programs.
2617If you meant to cross compile, use \`--host'.
2618See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2620 fi
2621 fi
2622fi
2623echo "$as_me:$LINENO: result: yes" >&5
2624echo "${ECHO_T}yes" >&6
2625
2626rm -f a.out a.exe conftest$ac_cv_exeext b.out
2627ac_clean_files=$ac_clean_files_save
2628# Check the compiler produces executables we can run. If not, either
2629# the compiler is broken, or we cross compile.
2630echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2631echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2632echo "$as_me:$LINENO: result: $cross_compiling" >&5
2633echo "${ECHO_T}$cross_compiling" >&6
2634
2635echo "$as_me:$LINENO: checking for suffix of executables" >&5
2636echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; then
2642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2644# work properly (i.e., refer to `conftest.exe'), while it won't with
2645# `rm'.
2646for ac_file in conftest.exe conftest conftest.*; do
2647 test -f "$ac_file" || continue
2648 case $ac_file in
2649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
vlm8f3eb992004-06-17 23:42:48 +00002651 export ac_cv_exeext
2652 break;;
vlmfa67ddc2004-06-03 03:38:44 +00002653 * ) break;;
2654 esac
2655done
2656else
2657 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658See \`config.log' for more details." >&5
2659echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2662fi
2663
2664rm -f conftest$ac_cv_exeext
2665echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666echo "${ECHO_T}$ac_cv_exeext" >&6
2667
2668rm -f conftest.$ac_ext
2669EXEEXT=$ac_cv_exeext
2670ac_exeext=$EXEEXT
2671echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2673if test "${ac_cv_objext+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00002677/* confdefs.h. */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h. */
2682
2683int
2684main ()
2685{
2686
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.o conftest.obj
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; then
2697 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701 break;;
2702 esac
2703done
2704else
2705 echo "$as_me: failed program was:" >&5
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
2708{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709See \`config.log' for more details." >&5
2710echo "$as_me: error: cannot compute suffix of object files: cannot compile
2711See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2713fi
2714
2715rm -f conftest.$ac_cv_objext conftest.$ac_ext
2716fi
2717echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718echo "${ECHO_T}$ac_cv_objext" >&6
2719OBJEXT=$ac_cv_objext
2720ac_objext=$OBJEXT
2721echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2723if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725else
2726 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00002727/* confdefs.h. */
2728_ACEOF
2729cat confdefs.h >>conftest.$ac_ext
2730cat >>conftest.$ac_ext <<_ACEOF
2731/* end confdefs.h. */
2732
2733int
2734main ()
2735{
2736#ifndef __GNUC__
2737 choke me
2738#endif
2739
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext
2745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +00002746 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +00002747 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00002748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00002751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +00002753 { ac_try='test -z "$ac_c_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +00002761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_compiler_gnu=yes
2767else
2768 echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771ac_compiler_gnu=no
2772fi
vlm8f3eb992004-06-17 23:42:48 +00002773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00002774ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775
2776fi
2777echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779GCC=`test $ac_compiler_gnu = yes && echo yes`
2780ac_test_CFLAGS=${CFLAGS+set}
2781ac_save_CFLAGS=$CFLAGS
2782CFLAGS="-g"
2783echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785if test "${ac_cv_prog_cc_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787else
2788 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00002789/* confdefs.h. */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h. */
2794
2795int
2796main ()
2797{
2798
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext
2804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +00002805 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +00002806 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00002807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00002810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +00002812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +00002820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_prog_cc_g=yes
2826else
2827 echo "$as_me: failed program was:" >&5
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
2830ac_cv_prog_cc_g=no
2831fi
vlm8f3eb992004-06-17 23:42:48 +00002832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00002833fi
2834echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2836if test "$ac_test_CFLAGS" = set; then
2837 CFLAGS=$ac_save_CFLAGS
2838elif test $ac_cv_prog_cc_g = yes; then
2839 if test "$GCC" = yes; then
2840 CFLAGS="-g -O2"
2841 else
2842 CFLAGS="-g"
2843 fi
2844else
2845 if test "$GCC" = yes; then
2846 CFLAGS="-O2"
2847 else
2848 CFLAGS=
2849 fi
2850fi
2851echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2852echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2853if test "${ac_cv_prog_cc_stdc+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856 ac_cv_prog_cc_stdc=no
2857ac_save_CC=$CC
2858cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00002859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864#include <stdarg.h>
2865#include <stdio.h>
2866#include <sys/types.h>
2867#include <sys/stat.h>
2868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2869struct buf { int x; };
2870FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871static char *e (p, i)
2872 char **p;
2873 int i;
2874{
2875 return p[i];
2876}
2877static char *f (char * (*g) (char **, int), char **p, ...)
2878{
2879 char *s;
2880 va_list v;
2881 va_start (v,p);
2882 s = g (p, va_arg (v,int));
2883 va_end (v);
2884 return s;
2885}
vlm8f3eb992004-06-17 23:42:48 +00002886
2887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2888 function prototypes and stuff, but not '\xHH' hex character constants.
2889 These don't provoke an error unfortunately, instead are silently treated
2890 as 'x'. The following induces an error, until -std1 is added to get
2891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2892 array size at least. It's necessary to write '\x00'==0 to get something
2893 that's true only with -std1. */
2894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2895
vlmfa67ddc2004-06-03 03:38:44 +00002896int test (int i, double x);
2897struct s1 {int (*f) (int a);};
2898struct s2 {int (*f) (double a);};
2899int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2900int argc;
2901char **argv;
2902int
2903main ()
2904{
2905return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2906 ;
2907 return 0;
2908}
2909_ACEOF
2910# Don't try gcc -ansi; that turns off useful extensions and
2911# breaks some systems' header files.
2912# AIX -qlanglvl=ansi
2913# Ultrix and OSF/1 -std1
2914# HP-UX 10.20 and later -Ae
2915# HP-UX older versions -Aa -D_HPUX_SOURCE
2916# SVR4 -Xc -D__EXTENSIONS__
2917for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2918do
2919 CC="$ac_save_CC $ac_arg"
2920 rm -f conftest.$ac_objext
2921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +00002922 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +00002923 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00002924 grep -v '^ *+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00002927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +00002929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +00002937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_prog_cc_stdc=$ac_arg
2943break
2944else
2945 echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948fi
vlm8f3eb992004-06-17 23:42:48 +00002949rm -f conftest.err conftest.$ac_objext
vlmfa67ddc2004-06-03 03:38:44 +00002950done
2951rm -f conftest.$ac_ext conftest.$ac_objext
2952CC=$ac_save_CC
2953
2954fi
2955
2956case "x$ac_cv_prog_cc_stdc" in
2957 x|xno)
2958 echo "$as_me:$LINENO: result: none needed" >&5
2959echo "${ECHO_T}none needed" >&6 ;;
2960 *)
2961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2962echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2963 CC="$CC $ac_cv_prog_cc_stdc" ;;
2964esac
2965
2966# Some people use a C++ compiler to compile C. Since we use `exit',
2967# in C++ we need to declare it. In case someone uses the same compiler
2968# for both compiling C and C++ we need to have the C++ compiler decide
2969# the declaration of exit, since it's the most demanding environment.
2970cat >conftest.$ac_ext <<_ACEOF
2971#ifndef __cplusplus
2972 choke me
2973#endif
2974_ACEOF
2975rm -f conftest.$ac_objext
2976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +00002977 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +00002978 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00002979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00002982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +00002984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +00002992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 for ac_declaration in \
vlm8f3eb992004-06-17 23:42:48 +00002998 '' \
vlmfa67ddc2004-06-03 03:38:44 +00002999 'extern "C" void std::exit (int) throw (); using std::exit;' \
3000 'extern "C" void std::exit (int); using std::exit;' \
3001 'extern "C" void exit (int) throw ();' \
3002 'extern "C" void exit (int);' \
3003 'void exit (int);'
3004do
3005 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00003006/* confdefs.h. */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h. */
vlmfa67ddc2004-06-03 03:38:44 +00003011$ac_declaration
vlm8f3eb992004-06-17 23:42:48 +00003012#include <stdlib.h>
vlmfa67ddc2004-06-03 03:38:44 +00003013int
3014main ()
3015{
3016exit (42);
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +00003023 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +00003024 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00003025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00003028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +00003030 { ac_try='test -z "$ac_c_werror_flag"
3031 || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +00003038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 :
3044else
3045 echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048continue
3049fi
vlm8f3eb992004-06-17 23:42:48 +00003050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00003051 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00003052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
3057$ac_declaration
3058int
3059main ()
3060{
3061exit (42);
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext
3067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +00003068 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +00003069 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00003070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00003073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +00003075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +00003083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 break
3089else
3090 echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093fi
vlm8f3eb992004-06-17 23:42:48 +00003094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00003095done
3096rm -f conftest*
3097if test -n "$ac_declaration"; then
3098 echo '#ifdef __cplusplus' >>confdefs.h
3099 echo $ac_declaration >>confdefs.h
3100 echo '#endif' >>confdefs.h
3101fi
3102
3103else
3104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107fi
vlm8f3eb992004-06-17 23:42:48 +00003108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00003109ac_ext=c
3110ac_cpp='$CPP $CPPFLAGS'
3111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114
3115depcc="$CC" am_compiler_list=
3116
3117echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3118echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3119if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3123 # We make a subdir and do the tests there. Otherwise we can end up
3124 # making bogus files that we don't know about and never remove. For
3125 # instance it was reported that on HP-UX the gcc test will end up
3126 # making a dummy file named `D' -- because `-MD' means `put the output
3127 # in D'.
3128 mkdir conftest.dir
3129 # Copy depcomp to subdir because otherwise we won't find it if we're
3130 # using a relative directory.
3131 cp "$am_depcomp" conftest.dir
3132 cd conftest.dir
vlm8f3eb992004-06-17 23:42:48 +00003133 # We will build objects and dependencies in a subdirectory because
3134 # it helps to detect inapplicable dependency modes. For instance
3135 # both Tru64's cc and ICC support -MD to output dependencies as a
3136 # side effect of compilation, but ICC will put the dependencies in
3137 # the current directory while Tru64 will put them in the object
3138 # directory.
3139 mkdir sub
vlmfa67ddc2004-06-03 03:38:44 +00003140
3141 am_cv_CC_dependencies_compiler_type=none
3142 if test "$am_compiler_list" = ""; then
3143 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3144 fi
3145 for depmode in $am_compiler_list; do
vlm8f3eb992004-06-17 23:42:48 +00003146 # Setup a source with many dependencies, because some compilers
3147 # like to wrap large dependency lists on column 80 (with \), and
3148 # we should not choose a depcomp mode which is confused by this.
3149 #
vlmfa67ddc2004-06-03 03:38:44 +00003150 # We need to recreate these files for each test, as the compiler may
3151 # overwrite some of them when testing with obscure command lines.
3152 # This happens at least with the AIX C compiler.
vlm8f3eb992004-06-17 23:42:48 +00003153 : > sub/conftest.c
3154 for i in 1 2 3 4 5 6; do
3155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3157 # Solaris 8's {/usr,}/bin/sh.
3158 touch sub/conftst$i.h
3159 done
3160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
vlmfa67ddc2004-06-03 03:38:44 +00003161
3162 case $depmode in
3163 nosideeffect)
3164 # after this tag, mechanisms are not by side-effect, so they'll
3165 # only be used when explicitly requested
3166 if test "x$enable_dependency_tracking" = xyes; then
3167 continue
3168 else
3169 break
3170 fi
3171 ;;
3172 none) break ;;
3173 esac
3174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3175 # mode. It turns out that the SunPro C++ compiler does not properly
3176 # handle `-M -o', and we need to detect this.
3177 if depmode=$depmode \
vlm8f3eb992004-06-17 23:42:48 +00003178 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3180 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3181 >/dev/null 2>conftest.err &&
3182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
vlmfa67ddc2004-06-03 03:38:44 +00003184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
vlm8f3eb992004-06-17 23:42:48 +00003185 # icc doesn't choke on unknown options, it will just issue warnings
3186 # or remarks (even with -Werror). So we grep stderr for any message
3187 # that says an option was ignored or not supported.
3188 # When given -MP, icc 7.0 and 7.1 complain thusly:
3189 # icc: Command line warning: ignoring option '-M'; no argument required
3190 # The diagnosis changed in icc 8.0:
3191 # icc: Command line remark: option '-MP' not supported
3192 if (grep 'ignoring option' conftest.err ||
3193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3194 am_cv_CC_dependencies_compiler_type=$depmode
3195 break
3196 fi
vlmfa67ddc2004-06-03 03:38:44 +00003197 fi
3198 done
3199
3200 cd ..
3201 rm -rf conftest.dir
3202else
3203 am_cv_CC_dependencies_compiler_type=none
3204fi
3205
3206fi
3207echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3208echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
vlm8f3eb992004-06-17 23:42:48 +00003209CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3210
3211
3212
3213if
3214 test "x$enable_dependency_tracking" != xno \
3215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3216 am__fastdepCC_TRUE=
3217 am__fastdepCC_FALSE='#'
3218else
3219 am__fastdepCC_TRUE='#'
3220 am__fastdepCC_FALSE=
3221fi
3222
3223
3224echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3225echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3226if test "${lt_cv_path_SED+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229 # Loop through the user's path and test for sed and gsed.
3230# Then use that list of sed's as ones to test for truncation.
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for lt_ac_prog in sed gsed; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3239 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3240 fi
3241 done
3242 done
3243done
3244lt_ac_max=0
3245lt_ac_count=0
3246# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3247# along with /bin/sed that truncates output.
3248for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3249 test ! -f $lt_ac_sed && break
3250 cat /dev/null > conftest.in
3251 lt_ac_count=0
3252 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3253 # Check for GNU sed and select it if it is found.
3254 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3255 lt_cv_path_SED=$lt_ac_sed
3256 break
3257 fi
3258 while true; do
3259 cat conftest.in conftest.in >conftest.tmp
3260 mv conftest.tmp conftest.in
3261 cp conftest.in conftest.nl
3262 echo >>conftest.nl
3263 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3264 cmp -s conftest.out conftest.nl || break
3265 # 10000 chars as input seems more than enough
3266 test $lt_ac_count -gt 10 && break
3267 lt_ac_count=`expr $lt_ac_count + 1`
3268 if test $lt_ac_count -gt $lt_ac_max; then
3269 lt_ac_max=$lt_ac_count
3270 lt_cv_path_SED=$lt_ac_sed
3271 fi
3272 done
3273done
3274SED=$lt_cv_path_SED
3275
3276fi
3277
3278echo "$as_me:$LINENO: result: $SED" >&5
3279echo "${ECHO_T}$SED" >&6
3280
3281echo "$as_me:$LINENO: checking for egrep" >&5
3282echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3283if test "${ac_cv_prog_egrep+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3287 then ac_cv_prog_egrep='grep -E'
3288 else ac_cv_prog_egrep='egrep'
3289 fi
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3292echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3293 EGREP=$ac_cv_prog_egrep
vlmfa67ddc2004-06-03 03:38:44 +00003294
3295
3296
3297# Check whether --with-gnu-ld or --without-gnu-ld was given.
3298if test "${with_gnu_ld+set}" = set; then
3299 withval="$with_gnu_ld"
3300 test "$withval" = no || with_gnu_ld=yes
3301else
3302 with_gnu_ld=no
3303fi;
3304ac_prog=ld
vlm8f3eb992004-06-17 23:42:48 +00003305if test "$GCC" = yes; then
vlmfa67ddc2004-06-03 03:38:44 +00003306 # Check if gcc -print-prog-name=ld gives a path.
vlm8f3eb992004-06-17 23:42:48 +00003307 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3308echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3309 case $host in
3310 *-*-mingw*)
3311 # gcc leaves a trailing carriage return which upsets mingw
3312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3313 *)
3314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3315 esac
3316 case $ac_prog in
vlmfa67ddc2004-06-03 03:38:44 +00003317 # Accept absolute paths.
vlm8f3eb992004-06-17 23:42:48 +00003318 [\\/]* | ?:[\\/]*)
vlmfa67ddc2004-06-03 03:38:44 +00003319 re_direlt='/[^/][^/]*/\.\./'
vlm8f3eb992004-06-17 23:42:48 +00003320 # Canonicalize the pathname of ld
3321 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
vlmfa67ddc2004-06-03 03:38:44 +00003322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
vlm8f3eb992004-06-17 23:42:48 +00003323 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
vlmfa67ddc2004-06-03 03:38:44 +00003324 done
3325 test -z "$LD" && LD="$ac_prog"
3326 ;;
3327 "")
3328 # If it fails, then pretend we aren't using GCC.
3329 ac_prog=ld
3330 ;;
3331 *)
3332 # If it is relative, then search for the first ld in PATH.
3333 with_gnu_ld=unknown
3334 ;;
3335 esac
3336elif test "$with_gnu_ld" = yes; then
3337 echo "$as_me:$LINENO: checking for GNU ld" >&5
3338echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3339else
3340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3341echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3342fi
vlm8f3eb992004-06-17 23:42:48 +00003343if test "${lt_cv_path_LD+set}" = set; then
vlmfa67ddc2004-06-03 03:38:44 +00003344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346 if test -z "$LD"; then
vlm8f3eb992004-06-17 23:42:48 +00003347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
vlmfa67ddc2004-06-03 03:38:44 +00003348 for ac_dir in $PATH; do
vlm8f3eb992004-06-17 23:42:48 +00003349 IFS="$lt_save_ifs"
vlmfa67ddc2004-06-03 03:38:44 +00003350 test -z "$ac_dir" && ac_dir=.
3351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
vlm8f3eb992004-06-17 23:42:48 +00003352 lt_cv_path_LD="$ac_dir/$ac_prog"
vlmfa67ddc2004-06-03 03:38:44 +00003353 # Check to see if the program is GNU ld. I'd rather use --version,
3354 # but apparently some GNU ld's only accept -v.
3355 # Break only if it was the GNU/non-GNU ld that we prefer.
vlm8f3eb992004-06-17 23:42:48 +00003356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3357 *GNU* | *'with BFD'*)
vlmfa67ddc2004-06-03 03:38:44 +00003358 test "$with_gnu_ld" != no && break
vlm8f3eb992004-06-17 23:42:48 +00003359 ;;
3360 *)
vlmfa67ddc2004-06-03 03:38:44 +00003361 test "$with_gnu_ld" != yes && break
vlm8f3eb992004-06-17 23:42:48 +00003362 ;;
3363 esac
vlmfa67ddc2004-06-03 03:38:44 +00003364 fi
3365 done
vlm8f3eb992004-06-17 23:42:48 +00003366 IFS="$lt_save_ifs"
vlmfa67ddc2004-06-03 03:38:44 +00003367else
vlm8f3eb992004-06-17 23:42:48 +00003368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
vlmfa67ddc2004-06-03 03:38:44 +00003369fi
3370fi
3371
vlm8f3eb992004-06-17 23:42:48 +00003372LD="$lt_cv_path_LD"
vlmfa67ddc2004-06-03 03:38:44 +00003373if test -n "$LD"; then
3374 echo "$as_me:$LINENO: result: $LD" >&5
3375echo "${ECHO_T}$LD" >&6
3376else
3377 echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
3379fi
3380test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3381echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3382 { (exit 1); exit 1; }; }
3383echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3384echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
vlm8f3eb992004-06-17 23:42:48 +00003385if test "${lt_cv_prog_gnu_ld+set}" = set; then
vlmfa67ddc2004-06-03 03:38:44 +00003386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
vlm8f3eb992004-06-17 23:42:48 +00003389case `$LD -v 2>&1 </dev/null` in
3390*GNU* | *'with BFD'*)
3391 lt_cv_prog_gnu_ld=yes
3392 ;;
3393*)
3394 lt_cv_prog_gnu_ld=no
3395 ;;
3396esac
vlmfa67ddc2004-06-03 03:38:44 +00003397fi
vlm8f3eb992004-06-17 23:42:48 +00003398echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3399echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3400with_gnu_ld=$lt_cv_prog_gnu_ld
vlmfa67ddc2004-06-03 03:38:44 +00003401
3402
vlm8f3eb992004-06-17 23:42:48 +00003403echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3404echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3405if test "${lt_cv_ld_reload_flag+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 lt_cv_ld_reload_flag='-r'
3409fi
3410echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3411echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3412reload_flag=$lt_cv_ld_reload_flag
3413case $reload_flag in
3414"" | " "*) ;;
3415*) reload_flag=" $reload_flag" ;;
3416esac
3417reload_cmds='$LD$reload_flag -o $output$reload_objs'
3418
vlmfa67ddc2004-06-03 03:38:44 +00003419echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3420echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
vlm8f3eb992004-06-17 23:42:48 +00003421if test "${lt_cv_path_NM+set}" = set; then
vlmfa67ddc2004-06-03 03:38:44 +00003422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424 if test -n "$NM"; then
3425 # Let the user override the test.
vlm8f3eb992004-06-17 23:42:48 +00003426 lt_cv_path_NM="$NM"
vlmfa67ddc2004-06-03 03:38:44 +00003427else
vlm8f3eb992004-06-17 23:42:48 +00003428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
vlmfa67ddc2004-06-03 03:38:44 +00003429 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
vlm8f3eb992004-06-17 23:42:48 +00003430 IFS="$lt_save_ifs"
vlmfa67ddc2004-06-03 03:38:44 +00003431 test -z "$ac_dir" && ac_dir=.
vlm8f3eb992004-06-17 23:42:48 +00003432 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3433 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
vlmfa67ddc2004-06-03 03:38:44 +00003434 # Check to see if the nm accepts a BSD-compat flag.
3435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3436 # nm: unknown option "B" ignored
vlm8f3eb992004-06-17 23:42:48 +00003437 # Tru64's nm complains that /dev/null is an invalid object file
3438 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3439 */dev/null* | *'Invalid file or object type'*)
3440 lt_cv_path_NM="$tmp_nm -B"
vlmfa67ddc2004-06-03 03:38:44 +00003441 break
vlm8f3eb992004-06-17 23:42:48 +00003442 ;;
3443 *)
3444 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3445 */dev/null*)
3446 lt_cv_path_NM="$tmp_nm -p"
3447 break
3448 ;;
3449 *)
3450 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3451 continue # so that we can try to find one that supports BSD flags
3452 ;;
3453 esac
3454 esac
vlmfa67ddc2004-06-03 03:38:44 +00003455 fi
3456 done
vlm8f3eb992004-06-17 23:42:48 +00003457 IFS="$lt_save_ifs"
3458 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
vlmfa67ddc2004-06-03 03:38:44 +00003459fi
3460fi
vlm8f3eb992004-06-17 23:42:48 +00003461echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3462echo "${ECHO_T}$lt_cv_path_NM" >&6
3463NM="$lt_cv_path_NM"
vlmfa67ddc2004-06-03 03:38:44 +00003464
3465echo "$as_me:$LINENO: checking whether ln -s works" >&5
3466echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3467LN_S=$as_ln_s
3468if test "$LN_S" = "ln -s"; then
3469 echo "$as_me:$LINENO: result: yes" >&5
3470echo "${ECHO_T}yes" >&6
3471else
3472 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3473echo "${ECHO_T}no, using $LN_S" >&6
3474fi
3475
vlm8f3eb992004-06-17 23:42:48 +00003476echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3477echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3478if test "${lt_cv_deplibs_check_method+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481 lt_cv_file_magic_cmd='$MAGIC_CMD'
3482lt_cv_file_magic_test_file=
3483lt_cv_deplibs_check_method='unknown'
3484# Need to set the preceding variable on all platforms that support
3485# interlibrary dependencies.
3486# 'none' -- dependencies not supported.
3487# `unknown' -- same as none, but documents that we really don't know.
3488# 'pass_all' -- all dependencies passed with no checks.
3489# 'test_compile' -- check by making test program.
3490# 'file_magic [[regex]]' -- check by looking for files in library path
3491# which responds to the $file_magic_cmd with a given extended regex.
3492# If you have `file' or equivalent on your system and you're not sure
3493# whether `pass_all' will *always* work, you probably want this one.
vlmfa67ddc2004-06-03 03:38:44 +00003494
vlm8f3eb992004-06-17 23:42:48 +00003495case $host_os in
3496aix4* | aix5*)
3497 lt_cv_deplibs_check_method=pass_all
3498 ;;
vlmfa67ddc2004-06-03 03:38:44 +00003499
vlm8f3eb992004-06-17 23:42:48 +00003500beos*)
3501 lt_cv_deplibs_check_method=pass_all
3502 ;;
3503
3504bsdi4*)
3505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3506 lt_cv_file_magic_cmd='/usr/bin/file -L'
3507 lt_cv_file_magic_test_file=/shlib/libc.so
3508 ;;
3509
3510cygwin*)
3511 # func_win32_libid is a shell function defined in ltmain.sh
3512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3513 lt_cv_file_magic_cmd='func_win32_libid'
3514 ;;
3515
3516mingw* | pw32*)
3517 # Base MSYS/MinGW do not provide the 'file' command needed by
3518 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3519 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3520 lt_cv_file_magic_cmd='$OBJDUMP -f'
3521 ;;
3522
3523darwin* | rhapsody*)
3524 lt_cv_deplibs_check_method=pass_all
3525 ;;
3526
3527freebsd* | kfreebsd*-gnu)
3528 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3529 case $host_cpu in
3530 i*86 )
3531 # Not sure whether the presence of OpenBSD here was a mistake.
3532 # Let's accept both of them until this is cleared up.
3533 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3534 lt_cv_file_magic_cmd=/usr/bin/file
3535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3536 ;;
3537 esac
3538 else
3539 lt_cv_deplibs_check_method=pass_all
3540 fi
3541 ;;
3542
3543gnu*)
3544 lt_cv_deplibs_check_method=pass_all
3545 ;;
3546
3547hpux10.20* | hpux11*)
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 case "$host_cpu" in
3550 ia64*)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3553 ;;
3554 hppa*64*)
3555 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]'
3556 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3557 ;;
3558 *)
3559 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3560 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3561 ;;
3562 esac
3563 ;;
3564
3565irix5* | irix6* | nonstopux*)
3566 case $LD in
3567 *-32|*"-32 ") libmagic=32-bit;;
3568 *-n32|*"-n32 ") libmagic=N32;;
3569 *-64|*"-64 ") libmagic=64-bit;;
3570 *) libmagic=never-match;;
3571 esac
3572 lt_cv_deplibs_check_method=pass_all
3573 ;;
3574
3575# This must be Linux ELF.
3576linux*)
3577 case $host_cpu in
3578 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3579 lt_cv_deplibs_check_method=pass_all ;;
3580 *)
3581 # glibc up to 2.1.1 does not perform some relocations on ARM
3582 # this will be overridden with pass_all, but let us keep it just in case
3583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3584 esac
3585 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3586 lt_cv_deplibs_check_method=pass_all
3587 ;;
3588
3589netbsd*)
3590 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3592 else
3593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3594 fi
3595 ;;
3596
3597newos6*)
3598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3599 lt_cv_file_magic_cmd=/usr/bin/file
3600 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3601 ;;
3602
3603nto-qnx*)
3604 lt_cv_deplibs_check_method=unknown
3605 ;;
3606
3607openbsd*)
3608 lt_cv_file_magic_cmd=/usr/bin/file
3609 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3612 else
3613 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3614 fi
3615 ;;
3616
3617osf3* | osf4* | osf5*)
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3620
3621sco3.2v5*)
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3624
3625solaris*)
3626 lt_cv_deplibs_check_method=pass_all
3627 ;;
3628
3629sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3630 case $host_vendor in
3631 motorola)
3632 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]'
3633 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3634 ;;
3635 ncr)
3636 lt_cv_deplibs_check_method=pass_all
3637 ;;
3638 sequent)
3639 lt_cv_file_magic_cmd='/bin/file'
3640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3641 ;;
3642 sni)
3643 lt_cv_file_magic_cmd='/bin/file'
3644 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3645 lt_cv_file_magic_test_file=/lib/libc.so
3646 ;;
3647 siemens)
3648 lt_cv_deplibs_check_method=pass_all
3649 ;;
3650 esac
3651 ;;
3652
3653sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3654 lt_cv_deplibs_check_method=pass_all
3655 ;;
vlmfa67ddc2004-06-03 03:38:44 +00003656esac
3657
vlm8f3eb992004-06-17 23:42:48 +00003658fi
3659echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3660echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3661file_magic_cmd=$lt_cv_file_magic_cmd
3662deplibs_check_method=$lt_cv_deplibs_check_method
3663test -z "$deplibs_check_method" && deplibs_check_method=unknown
3664
3665
3666
3667
3668# If no C compiler was specified, use CC.
3669LTCC=${LTCC-"$CC"}
3670
3671# Allow CC to be a program name with arguments.
3672compiler=$CC
vlmfa67ddc2004-06-03 03:38:44 +00003673
3674
3675# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3676if test "${enable_libtool_lock+set}" = set; then
3677 enableval="$enable_libtool_lock"
3678
3679fi;
vlm8f3eb992004-06-17 23:42:48 +00003680test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
vlmfa67ddc2004-06-03 03:38:44 +00003681
3682# Some flags need to be propagated to the compiler or linker for good
3683# libtool support.
vlm8f3eb992004-06-17 23:42:48 +00003684case $host in
3685ia64-*-hpux*)
vlmfa67ddc2004-06-03 03:38:44 +00003686 # Find out which ABI we are using.
vlm8f3eb992004-06-17 23:42:48 +00003687 echo 'int i;' > conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00003688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; then
vlm8f3eb992004-06-17 23:42:48 +00003693 case `/usr/bin/file conftest.$ac_objext` in
3694 *ELF-32*)
3695 HPUX_IA64_MODE="32"
3696 ;;
3697 *ELF-64*)
3698 HPUX_IA64_MODE="64"
3699 ;;
3700 esac
3701 fi
3702 rm -rf conftest*
3703 ;;
3704*-*-irix6*)
3705 # Find out which ABI we are using.
vlm1fcf7592006-08-18 02:27:55 +00003706 echo '#line 3706 "configure"' > conftest.$ac_ext
vlm8f3eb992004-06-17 23:42:48 +00003707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708 (eval $ac_compile) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; then
3712 if test "$lt_cv_prog_gnu_ld" = yes; then
3713 case `/usr/bin/file conftest.$ac_objext` in
3714 *32-bit*)
3715 LD="${LD-ld} -melf32bsmip"
3716 ;;
3717 *N32*)
3718 LD="${LD-ld} -melf32bmipn32"
3719 ;;
3720 *64-bit*)
3721 LD="${LD-ld} -melf64bmip"
3722 ;;
3723 esac
3724 else
3725 case `/usr/bin/file conftest.$ac_objext` in
vlmfa67ddc2004-06-03 03:38:44 +00003726 *32-bit*)
3727 LD="${LD-ld} -32"
3728 ;;
3729 *N32*)
3730 LD="${LD-ld} -n32"
3731 ;;
3732 *64-bit*)
3733 LD="${LD-ld} -64"
3734 ;;
3735 esac
vlm8f3eb992004-06-17 23:42:48 +00003736 fi
3737 fi
3738 rm -rf conftest*
3739 ;;
3740
3741x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3742 # Find out which ABI we are using.
3743 echo 'int i;' > conftest.$ac_ext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; then
3749 case "`/usr/bin/file conftest.o`" in
3750 *32-bit*)
3751 case $host in
3752 x86_64-*linux*)
3753 LD="${LD-ld} -m elf_i386"
3754 ;;
3755 ppc64-*linux*|powerpc64-*linux*)
3756 LD="${LD-ld} -m elf32ppclinux"
3757 ;;
3758 s390x-*linux*)
3759 LD="${LD-ld} -m elf_s390"
3760 ;;
3761 sparc64-*linux*)
3762 LD="${LD-ld} -m elf32_sparc"
3763 ;;
3764 esac
3765 ;;
3766 *64-bit*)
3767 case $host in
3768 x86_64-*linux*)
3769 LD="${LD-ld} -m elf_x86_64"
3770 ;;
3771 ppc*-*linux*|powerpc*-*linux*)
3772 LD="${LD-ld} -m elf64ppc"
3773 ;;
3774 s390*-*linux*)
3775 LD="${LD-ld} -m elf64_s390"
3776 ;;
3777 sparc*-*linux*)
3778 LD="${LD-ld} -m elf64_sparc"
3779 ;;
3780 esac
3781 ;;
3782 esac
vlmfa67ddc2004-06-03 03:38:44 +00003783 fi
3784 rm -rf conftest*
3785 ;;
3786
3787*-*-sco3.2v5*)
3788 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3789 SAVE_CFLAGS="$CFLAGS"
3790 CFLAGS="$CFLAGS -belf"
3791 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3792echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3793if test "${lt_cv_cc_needs_belf+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
vlm8f3eb992004-06-17 23:42:48 +00003796 ac_ext=c
3797ac_cpp='$CPP $CPPFLAGS'
3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801
3802 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00003803/* confdefs.h. */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
3807/* end confdefs.h. */
3808
3809int
3810main ()
3811{
3812
3813 ;
3814 return 0;
3815}
3816_ACEOF
3817rm -f conftest.$ac_objext conftest$ac_exeext
3818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
vlm8f3eb992004-06-17 23:42:48 +00003819 (eval $ac_link) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +00003820 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00003821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00003824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +00003826 { ac_try='test -z "$ac_c_werror_flag"
3827 || test ! -s conftest.err'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest$ac_exeext'
vlmfa67ddc2004-06-03 03:38:44 +00003834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 lt_cv_cc_needs_belf=yes
3840else
3841 echo "$as_me: failed program was:" >&5
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
3844lt_cv_cc_needs_belf=no
3845fi
vlm8f3eb992004-06-17 23:42:48 +00003846rm -f conftest.err conftest.$ac_objext \
3847 conftest$ac_exeext conftest.$ac_ext
3848 ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
vlmfa67ddc2004-06-03 03:38:44 +00003854fi
3855echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3856echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3857 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3858 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3859 CFLAGS="$SAVE_CFLAGS"
3860 fi
3861 ;;
3862
vlmfa67ddc2004-06-03 03:38:44 +00003863esac
3864
vlm8f3eb992004-06-17 23:42:48 +00003865need_locks="$enable_libtool_lock"
vlmfa67ddc2004-06-03 03:38:44 +00003866
vlmfa67ddc2004-06-03 03:38:44 +00003867
vlm8f3eb992004-06-17 23:42:48 +00003868ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3874echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3875# On Suns, sometimes $CPP names a directory.
3876if test -n "$CPP" && test -d "$CPP"; then
3877 CPP=
vlmfa67ddc2004-06-03 03:38:44 +00003878fi
vlm8f3eb992004-06-17 23:42:48 +00003879if test -z "$CPP"; then
3880 if test "${ac_cv_prog_CPP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883 # Double quotes because CPP needs to be expanded
3884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3885 do
3886 ac_preproc_ok=false
3887for ac_c_preproc_warn_flag in '' yes
3888do
3889 # Use a header file that comes with gcc, so configuring glibc
3890 # with a fresh cross-compiler works.
3891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 # <limits.h> exists even on freestanding compilers.
3893 # On the NeXT, cc -E runs the code through the compiler's parser,
3894 # not just through cpp. "Syntax error" is here to catch this case.
3895 cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901#ifdef __STDC__
3902# include <limits.h>
3903#else
3904# include <assert.h>
3905#endif
3906 Syntax error
3907_ACEOF
3908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null; then
3916 if test -s conftest.err; then
3917 ac_cpp_err=$ac_c_preproc_warn_flag
3918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3919 else
3920 ac_cpp_err=
vlmfa67ddc2004-06-03 03:38:44 +00003921 fi
3922else
vlm8f3eb992004-06-17 23:42:48 +00003923 ac_cpp_err=yes
vlmfa67ddc2004-06-03 03:38:44 +00003924fi
vlm8f3eb992004-06-17 23:42:48 +00003925if test -z "$ac_cpp_err"; then
3926 :
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 # Broken: fails on valid input.
3932continue
3933fi
3934rm -f conftest.err conftest.$ac_ext
3935
3936 # OK, works on sane cases. Now check whether non-existent headers
3937 # can be detected and how.
3938 cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h. */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h. */
3944#include <ac_nonexistent.h>
3945_ACEOF
3946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } >/dev/null; then
3954 if test -s conftest.err; then
3955 ac_cpp_err=$ac_c_preproc_warn_flag
3956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3957 else
3958 ac_cpp_err=
3959 fi
3960else
3961 ac_cpp_err=yes
3962fi
3963if test -z "$ac_cpp_err"; then
3964 # Broken: success on invalid input.
3965continue
3966else
3967 echo "$as_me: failed program was:" >&5
3968sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 # Passes both tests.
3971ac_preproc_ok=:
3972break
3973fi
3974rm -f conftest.err conftest.$ac_ext
3975
3976done
3977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978rm -f conftest.err conftest.$ac_ext
3979if $ac_preproc_ok; then
3980 break
3981fi
3982
3983 done
3984 ac_cv_prog_CPP=$CPP
3985
3986fi
3987 CPP=$ac_cv_prog_CPP
3988else
3989 ac_cv_prog_CPP=$CPP
3990fi
3991echo "$as_me:$LINENO: result: $CPP" >&5
3992echo "${ECHO_T}$CPP" >&6
3993ac_preproc_ok=false
3994for ac_c_preproc_warn_flag in '' yes
3995do
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
4008#ifdef __STDC__
4009# include <limits.h>
4010#else
4011# include <assert.h>
4012#endif
4013 Syntax error
4014_ACEOF
4015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4017 ac_status=$?
4018 grep -v '^ *+' conftest.er1 >conftest.err
4019 rm -f conftest.er1
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } >/dev/null; then
4023 if test -s conftest.err; then
4024 ac_cpp_err=$ac_c_preproc_warn_flag
4025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4026 else
4027 ac_cpp_err=
4028 fi
4029else
4030 ac_cpp_err=yes
4031fi
4032if test -z "$ac_cpp_err"; then
4033 :
4034else
4035 echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
4037
4038 # Broken: fails on valid input.
4039continue
4040fi
4041rm -f conftest.err conftest.$ac_ext
4042
4043 # OK, works on sane cases. Now check whether non-existent headers
4044 # can be detected and how.
4045 cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
4051#include <ac_nonexistent.h>
4052_ACEOF
4053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev/null; then
4061 if test -s conftest.err; then
4062 ac_cpp_err=$ac_c_preproc_warn_flag
4063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4064 else
4065 ac_cpp_err=
4066 fi
4067else
4068 ac_cpp_err=yes
4069fi
4070if test -z "$ac_cpp_err"; then
4071 # Broken: success on invalid input.
4072continue
4073else
4074 echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 # Passes both tests.
4078ac_preproc_ok=:
4079break
4080fi
4081rm -f conftest.err conftest.$ac_ext
4082
4083done
4084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085rm -f conftest.err conftest.$ac_ext
4086if $ac_preproc_ok; then
4087 :
4088else
4089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4090See \`config.log' for more details." >&5
4091echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4092See \`config.log' for more details." >&2;}
4093 { (exit 1); exit 1; }; }
4094fi
4095
4096ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4104echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4105if test "${ac_cv_header_stdc+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <stdlib.h>
4115#include <stdarg.h>
4116#include <string.h>
4117#include <float.h>
4118
4119int
4120main ()
4121{
4122
4123 ;
4124 return 0;
4125}
4126_ACEOF
4127rm -f conftest.$ac_objext
4128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129 (eval $ac_compile) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_cv_header_stdc=yes
4150else
4151 echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4154ac_cv_header_stdc=no
4155fi
4156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4157
4158if test $ac_cv_header_stdc = yes; then
4159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4160 cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h. */
4166#include <string.h>
4167
4168_ACEOF
4169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "memchr" >/dev/null 2>&1; then
4171 :
4172else
4173 ac_cv_header_stdc=no
4174fi
4175rm -f conftest*
4176
4177fi
4178
4179if test $ac_cv_header_stdc = yes; then
4180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4181 cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h. */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h. */
4187#include <stdlib.h>
4188
4189_ACEOF
4190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 $EGREP "free" >/dev/null 2>&1; then
4192 :
4193else
4194 ac_cv_header_stdc=no
4195fi
4196rm -f conftest*
4197
4198fi
4199
4200if test $ac_cv_header_stdc = yes; then
4201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4202 if test "$cross_compiling" = yes; then
4203 :
4204else
4205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
4211#include <ctype.h>
4212#if ((' ' & 0x0FF) == 0x020)
4213# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4214# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4215#else
4216# define ISLOWER(c) \
4217 (('a' <= (c) && (c) <= 'i') \
4218 || ('j' <= (c) && (c) <= 'r') \
4219 || ('s' <= (c) && (c) <= 'z'))
4220# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4221#endif
4222
4223#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4224int
4225main ()
4226{
4227 int i;
4228 for (i = 0; i < 256; i++)
4229 if (XOR (islower (i), ISLOWER (i))
4230 || toupper (i) != TOUPPER (i))
4231 exit(2);
4232 exit (0);
4233}
4234_ACEOF
4235rm -f conftest$ac_exeext
4236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4237 (eval $ac_link) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 :
4247else
4248 echo "$as_me: program exited with status $ac_status" >&5
4249echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252( exit $ac_status )
4253ac_cv_header_stdc=no
4254fi
4255rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256fi
4257fi
4258fi
4259echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4260echo "${ECHO_T}$ac_cv_header_stdc" >&6
4261if test $ac_cv_header_stdc = yes; then
4262
4263cat >>confdefs.h <<\_ACEOF
4264#define STDC_HEADERS 1
4265_ACEOF
4266
4267fi
4268
4269# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4280 inttypes.h stdint.h unistd.h
4281do
4282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4283echo "$as_me:$LINENO: checking for $ac_header" >&5
4284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4285if eval "test \"\${$as_ac_Header+set}\" = set"; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288 cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
4294$ac_includes_default
4295
4296#include <$ac_header>
4297_ACEOF
4298rm -f conftest.$ac_objext
4299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_c_werror_flag"
4308 || test ! -s conftest.err'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 eval "$as_ac_Header=yes"
4321else
4322 echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325eval "$as_ac_Header=no"
4326fi
4327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4328fi
4329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4331if test `eval echo '${'$as_ac_Header'}'` = yes; then
4332 cat >>confdefs.h <<_ACEOF
4333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4334_ACEOF
4335
4336fi
4337
4338done
4339
4340
4341
4342for ac_header in dlfcn.h
4343do
4344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4345if eval "test \"\${$as_ac_Header+set}\" = set"; then
4346 echo "$as_me:$LINENO: checking for $ac_header" >&5
4347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4348if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350fi
4351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4353else
4354 # Is the header compilable?
4355echo "$as_me:$LINENO: checking $ac_header usability" >&5
4356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4357cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */
4363$ac_includes_default
4364#include <$ac_header>
4365_ACEOF
4366rm -f conftest.$ac_objext
4367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_header_compiler=yes
4389else
4390 echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393ac_header_compiler=no
4394fi
4395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4397echo "${ECHO_T}$ac_header_compiler" >&6
4398
4399# Is the header present?
4400echo "$as_me:$LINENO: checking $ac_header presence" >&5
4401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4402cat >conftest.$ac_ext <<_ACEOF
4403/* confdefs.h. */
4404_ACEOF
4405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
4407/* end confdefs.h. */
4408#include <$ac_header>
4409_ACEOF
4410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } >/dev/null; then
4418 if test -s conftest.err; then
4419 ac_cpp_err=$ac_c_preproc_warn_flag
4420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4421 else
4422 ac_cpp_err=
4423 fi
4424else
4425 ac_cpp_err=yes
4426fi
4427if test -z "$ac_cpp_err"; then
4428 ac_header_preproc=yes
4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_header_preproc=no
4434fi
4435rm -f conftest.err conftest.$ac_ext
4436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4437echo "${ECHO_T}$ac_header_preproc" >&6
4438
4439# So? What about this header?
4440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4441 yes:no: )
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4446 ac_header_preproc=yes
4447 ;;
4448 no:yes:* )
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4461 (
4462 cat <<\_ASBOX
4463## ------------------------------------------ ##
4464## Report this to the AC_PACKAGE_NAME lists. ##
4465## ------------------------------------------ ##
4466_ASBOX
4467 ) |
4468 sed "s/^/$as_me: WARNING: /" >&2
4469 ;;
4470esac
4471echo "$as_me:$LINENO: checking for $ac_header" >&5
4472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4473if eval "test \"\${$as_ac_Header+set}\" = set"; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476 eval "$as_ac_Header=\$ac_header_preproc"
4477fi
4478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4480
4481fi
4482if test `eval echo '${'$as_ac_Header'}'` = yes; then
4483 cat >>confdefs.h <<_ACEOF
4484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4485_ACEOF
4486
4487fi
4488
4489done
4490
4491ac_ext=cc
4492ac_cpp='$CXXCPP $CPPFLAGS'
4493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4496if test -n "$ac_tool_prefix"; then
4497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4498 do
4499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501echo "$as_me:$LINENO: checking for $ac_word" >&5
4502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4503if test "${ac_cv_prog_CXX+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506 if test -n "$CXX"; then
4507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520done
4521done
4522
4523fi
4524fi
4525CXX=$ac_cv_prog_CXX
4526if test -n "$CXX"; then
4527 echo "$as_me:$LINENO: result: $CXX" >&5
4528echo "${ECHO_T}$CXX" >&6
4529else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532fi
4533
4534 test -n "$CXX" && break
4535 done
4536fi
4537if test -z "$CXX"; then
4538 ac_ct_CXX=$CXX
4539 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4540do
4541 # Extract the first word of "$ac_prog", so it can be a program name with args.
4542set dummy $ac_prog; ac_word=$2
4543echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548 if test -n "$ac_ct_CXX"; then
4549 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_ac_ct_CXX="$ac_prog"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562done
4563done
4564
4565fi
4566fi
4567ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4568if test -n "$ac_ct_CXX"; then
4569 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4570echo "${ECHO_T}$ac_ct_CXX" >&6
4571else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574fi
4575
4576 test -n "$ac_ct_CXX" && break
4577done
4578test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4579
4580 CXX=$ac_ct_CXX
4581fi
4582
4583
4584# Provide some information about the compiler.
4585echo "$as_me:$LINENO:" \
4586 "checking for C++ compiler version" >&5
4587ac_compiler=`set X $ac_compile; echo $2`
4588{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4589 (eval $ac_compiler --version </dev/null >&5) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }
4593{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4594 (eval $ac_compiler -v </dev/null >&5) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }
4598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4599 (eval $ac_compiler -V </dev/null >&5) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }
4603
4604echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4605echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4606if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609 cat >conftest.$ac_ext <<_ACEOF
4610/* confdefs.h. */
4611_ACEOF
4612cat confdefs.h >>conftest.$ac_ext
4613cat >>conftest.$ac_ext <<_ACEOF
4614/* end confdefs.h. */
4615
4616int
4617main ()
4618{
4619#ifndef __GNUC__
4620 choke me
4621#endif
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627rm -f conftest.$ac_objext
4628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_cxx_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_compiler_gnu=yes
4650else
4651 echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654ac_compiler_gnu=no
4655fi
4656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4657ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4658
4659fi
4660echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4661echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4662GXX=`test $ac_compiler_gnu = yes && echo yes`
4663ac_test_CXXFLAGS=${CXXFLAGS+set}
4664ac_save_CXXFLAGS=$CXXFLAGS
4665CXXFLAGS="-g"
4666echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4667echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4668if test "${ac_cv_prog_cxx_g+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671 cat >conftest.$ac_ext <<_ACEOF
4672/* confdefs.h. */
4673_ACEOF
4674cat confdefs.h >>conftest.$ac_ext
4675cat >>conftest.$ac_ext <<_ACEOF
4676/* end confdefs.h. */
4677
4678int
4679main ()
4680{
4681
4682 ;
4683 return 0;
4684}
4685_ACEOF
4686rm -f conftest.$ac_objext
4687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>conftest.er1
4689 ac_status=$?
4690 grep -v '^ *+' conftest.er1 >conftest.err
4691 rm -f conftest.er1
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -z "$ac_cxx_werror_flag"
4696 || test ! -s conftest.err'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 ac_cv_prog_cxx_g=yes
4709else
4710 echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
4713ac_cv_prog_cxx_g=no
4714fi
4715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4716fi
4717echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4718echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4719if test "$ac_test_CXXFLAGS" = set; then
4720 CXXFLAGS=$ac_save_CXXFLAGS
4721elif test $ac_cv_prog_cxx_g = yes; then
4722 if test "$GXX" = yes; then
4723 CXXFLAGS="-g -O2"
4724 else
4725 CXXFLAGS="-g"
4726 fi
4727else
4728 if test "$GXX" = yes; then
4729 CXXFLAGS="-O2"
4730 else
4731 CXXFLAGS=
4732 fi
4733fi
4734for ac_declaration in \
4735 '' \
4736 'extern "C" void std::exit (int) throw (); using std::exit;' \
4737 'extern "C" void std::exit (int); using std::exit;' \
4738 'extern "C" void exit (int) throw ();' \
4739 'extern "C" void exit (int);' \
4740 'void exit (int);'
4741do
4742 cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h. */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h. */
4748$ac_declaration
4749#include <stdlib.h>
4750int
4751main ()
4752{
4753exit (42);
4754 ;
4755 return 0;
4756}
4757_ACEOF
4758rm -f conftest.$ac_objext
4759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_cxx_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 :
4781else
4782 echo "$as_me: failed program was:" >&5
4783sed 's/^/| /' conftest.$ac_ext >&5
4784
4785continue
4786fi
4787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4788 cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
4794$ac_declaration
4795int
4796main ()
4797{
4798exit (42);
4799 ;
4800 return 0;
4801}
4802_ACEOF
4803rm -f conftest.$ac_objext
4804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_cxx_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 break
4826else
4827 echo "$as_me: failed program was:" >&5
4828sed 's/^/| /' conftest.$ac_ext >&5
4829
4830fi
4831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832done
4833rm -f conftest*
4834if test -n "$ac_declaration"; then
4835 echo '#ifdef __cplusplus' >>confdefs.h
4836 echo $ac_declaration >>confdefs.h
4837 echo '#endif' >>confdefs.h
4838fi
4839
4840ac_ext=cc
4841ac_cpp='$CXXCPP $CPPFLAGS'
4842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4845
4846depcc="$CXX" am_compiler_list=
4847
4848echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4849echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4850if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4854 # We make a subdir and do the tests there. Otherwise we can end up
4855 # making bogus files that we don't know about and never remove. For
4856 # instance it was reported that on HP-UX the gcc test will end up
4857 # making a dummy file named `D' -- because `-MD' means `put the output
4858 # in D'.
4859 mkdir conftest.dir
4860 # Copy depcomp to subdir because otherwise we won't find it if we're
4861 # using a relative directory.
4862 cp "$am_depcomp" conftest.dir
4863 cd conftest.dir
4864 # We will build objects and dependencies in a subdirectory because
4865 # it helps to detect inapplicable dependency modes. For instance
4866 # both Tru64's cc and ICC support -MD to output dependencies as a
4867 # side effect of compilation, but ICC will put the dependencies in
4868 # the current directory while Tru64 will put them in the object
4869 # directory.
4870 mkdir sub
4871
4872 am_cv_CXX_dependencies_compiler_type=none
4873 if test "$am_compiler_list" = ""; then
4874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4875 fi
4876 for depmode in $am_compiler_list; do
4877 # Setup a source with many dependencies, because some compilers
4878 # like to wrap large dependency lists on column 80 (with \), and
4879 # we should not choose a depcomp mode which is confused by this.
4880 #
4881 # We need to recreate these files for each test, as the compiler may
4882 # overwrite some of them when testing with obscure command lines.
4883 # This happens at least with the AIX C compiler.
4884 : > sub/conftest.c
4885 for i in 1 2 3 4 5 6; do
4886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4887 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4888 # Solaris 8's {/usr,}/bin/sh.
4889 touch sub/conftst$i.h
4890 done
4891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4892
4893 case $depmode in
4894 nosideeffect)
4895 # after this tag, mechanisms are not by side-effect, so they'll
4896 # only be used when explicitly requested
4897 if test "x$enable_dependency_tracking" = xyes; then
4898 continue
4899 else
4900 break
4901 fi
4902 ;;
4903 none) break ;;
4904 esac
4905 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4906 # mode. It turns out that the SunPro C++ compiler does not properly
4907 # handle `-M -o', and we need to detect this.
4908 if depmode=$depmode \
4909 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4910 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4911 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4912 >/dev/null 2>conftest.err &&
4913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4914 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4916 # icc doesn't choke on unknown options, it will just issue warnings
4917 # or remarks (even with -Werror). So we grep stderr for any message
4918 # that says an option was ignored or not supported.
4919 # When given -MP, icc 7.0 and 7.1 complain thusly:
4920 # icc: Command line warning: ignoring option '-M'; no argument required
4921 # The diagnosis changed in icc 8.0:
4922 # icc: Command line remark: option '-MP' not supported
4923 if (grep 'ignoring option' conftest.err ||
4924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4925 am_cv_CXX_dependencies_compiler_type=$depmode
4926 break
4927 fi
4928 fi
4929 done
4930
4931 cd ..
4932 rm -rf conftest.dir
4933else
4934 am_cv_CXX_dependencies_compiler_type=none
4935fi
4936
4937fi
4938echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4939echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4940CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4941
4942
4943
4944if
4945 test "x$enable_dependency_tracking" != xno \
4946 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4947 am__fastdepCXX_TRUE=
4948 am__fastdepCXX_FALSE='#'
4949else
4950 am__fastdepCXX_TRUE='#'
4951 am__fastdepCXX_FALSE=
4952fi
4953
4954
4955ac_ext=cc
4956ac_cpp='$CXXCPP $CPPFLAGS'
4957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4960echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4961echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4962if test -z "$CXXCPP"; then
4963 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965else
4966 # Double quotes because CXXCPP needs to be expanded
4967 for CXXCPP in "$CXX -E" "/lib/cpp"
4968 do
4969 ac_preproc_ok=false
4970for ac_cxx_preproc_warn_flag in '' yes
4971do
4972 # Use a header file that comes with gcc, so configuring glibc
4973 # with a fresh cross-compiler works.
4974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4975 # <limits.h> exists even on freestanding compilers.
4976 # On the NeXT, cc -E runs the code through the compiler's parser,
4977 # not just through cpp. "Syntax error" is here to catch this case.
4978 cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984#ifdef __STDC__
4985# include <limits.h>
4986#else
4987# include <assert.h>
4988#endif
4989 Syntax error
4990_ACEOF
4991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_cxx_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5002 else
5003 ac_cpp_err=
5004 fi
5005else
5006 ac_cpp_err=yes
5007fi
5008if test -z "$ac_cpp_err"; then
5009 :
5010else
5011 echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 # Broken: fails on valid input.
5015continue
5016fi
5017rm -f conftest.err conftest.$ac_ext
5018
5019 # OK, works on sane cases. Now check whether non-existent headers
5020 # can be detected and how.
5021 cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h. */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h. */
5027#include <ac_nonexistent.h>
5028_ACEOF
5029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null; then
5037 if test -s conftest.err; then
5038 ac_cpp_err=$ac_cxx_preproc_warn_flag
5039 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5040 else
5041 ac_cpp_err=
5042 fi
5043else
5044 ac_cpp_err=yes
5045fi
5046if test -z "$ac_cpp_err"; then
5047 # Broken: success on invalid input.
5048continue
5049else
5050 echo "$as_me: failed program was:" >&5
5051sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 # Passes both tests.
5054ac_preproc_ok=:
5055break
5056fi
5057rm -f conftest.err conftest.$ac_ext
5058
5059done
5060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061rm -f conftest.err conftest.$ac_ext
5062if $ac_preproc_ok; then
5063 break
5064fi
5065
5066 done
5067 ac_cv_prog_CXXCPP=$CXXCPP
5068
5069fi
5070 CXXCPP=$ac_cv_prog_CXXCPP
5071else
5072 ac_cv_prog_CXXCPP=$CXXCPP
5073fi
5074echo "$as_me:$LINENO: result: $CXXCPP" >&5
5075echo "${ECHO_T}$CXXCPP" >&6
5076ac_preproc_ok=false
5077for ac_cxx_preproc_warn_flag in '' yes
5078do
5079 # Use a header file that comes with gcc, so configuring glibc
5080 # with a fresh cross-compiler works.
5081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5082 # <limits.h> exists even on freestanding compilers.
5083 # On the NeXT, cc -E runs the code through the compiler's parser,
5084 # not just through cpp. "Syntax error" is here to catch this case.
5085 cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
5091#ifdef __STDC__
5092# include <limits.h>
5093#else
5094# include <assert.h>
5095#endif
5096 Syntax error
5097_ACEOF
5098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_cxx_preproc_warn_flag
5108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5109 else
5110 ac_cpp_err=
5111 fi
5112else
5113 ac_cpp_err=yes
5114fi
5115if test -z "$ac_cpp_err"; then
5116 :
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 # Broken: fails on valid input.
5122continue
5123fi
5124rm -f conftest.err conftest.$ac_ext
5125
5126 # OK, works on sane cases. Now check whether non-existent headers
5127 # can be detected and how.
5128 cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h. */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h. */
5134#include <ac_nonexistent.h>
5135_ACEOF
5136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null; then
5144 if test -s conftest.err; then
5145 ac_cpp_err=$ac_cxx_preproc_warn_flag
5146 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5147 else
5148 ac_cpp_err=
5149 fi
5150else
5151 ac_cpp_err=yes
5152fi
5153if test -z "$ac_cpp_err"; then
5154 # Broken: success on invalid input.
5155continue
5156else
5157 echo "$as_me: failed program was:" >&5
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 # Passes both tests.
5161ac_preproc_ok=:
5162break
5163fi
5164rm -f conftest.err conftest.$ac_ext
5165
5166done
5167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168rm -f conftest.err conftest.$ac_ext
5169if $ac_preproc_ok; then
5170 :
5171else
5172 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5173See \`config.log' for more details." >&5
5174echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5175See \`config.log' for more details." >&2;}
5176 { (exit 1); exit 1; }; }
5177fi
5178
5179ac_ext=cc
5180ac_cpp='$CXXCPP $CPPFLAGS'
5181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5184
5185
5186ac_ext=f
5187ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5188ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5190if test -n "$ac_tool_prefix"; then
5191 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5192 do
5193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_F77+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200 if test -n "$F77"; then
5201 ac_cv_prog_F77="$F77" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215done
5216
5217fi
5218fi
5219F77=$ac_cv_prog_F77
5220if test -n "$F77"; then
5221 echo "$as_me:$LINENO: result: $F77" >&5
5222echo "${ECHO_T}$F77" >&6
5223else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226fi
5227
5228 test -n "$F77" && break
5229 done
5230fi
5231if test -z "$F77"; then
5232 ac_ct_F77=$F77
5233 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5234do
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236set dummy $ac_prog; ac_word=$2
5237echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242 if test -n "$ac_ct_F77"; then
5243 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_ac_ct_F77="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257done
5258
5259fi
5260fi
5261ac_ct_F77=$ac_cv_prog_ac_ct_F77
5262if test -n "$ac_ct_F77"; then
5263 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5264echo "${ECHO_T}$ac_ct_F77" >&6
5265else
5266 echo "$as_me:$LINENO: result: no" >&5
5267echo "${ECHO_T}no" >&6
5268fi
5269
5270 test -n "$ac_ct_F77" && break
5271done
5272
5273 F77=$ac_ct_F77
5274fi
5275
5276
5277# Provide some information about the compiler.
vlm1fcf7592006-08-18 02:27:55 +00005278echo "$as_me:5278:" \
vlm8f3eb992004-06-17 23:42:48 +00005279 "checking for Fortran 77 compiler version" >&5
5280ac_compiler=`set X $ac_compile; echo $2`
5281{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5282 (eval $ac_compiler --version </dev/null >&5) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }
5286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5287 (eval $ac_compiler -v </dev/null >&5) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }
5291{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5292 (eval $ac_compiler -V </dev/null >&5) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5296rm -f a.out
5297
5298# If we don't use `.F' as extension, the preprocessor is not run on the
5299# input file. (Note that this only needs to work for GNU compilers.)
5300ac_save_ext=$ac_ext
5301ac_ext=F
5302echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5303echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5304if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307 cat >conftest.$ac_ext <<_ACEOF
5308 program main
5309#ifndef __GNUC__
5310 choke me
5311#endif
5312
5313 end
5314_ACEOF
5315rm -f conftest.$ac_objext
5316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_f77_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_compiler_gnu=yes
5338else
5339 echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342ac_compiler_gnu=no
5343fi
5344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5346
5347fi
5348echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5349echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5350ac_ext=$ac_save_ext
5351ac_test_FFLAGS=${FFLAGS+set}
5352ac_save_FFLAGS=$FFLAGS
5353FFLAGS=
5354echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5355echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5356if test "${ac_cv_prog_f77_g+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358else
5359 FFLAGS=-g
5360cat >conftest.$ac_ext <<_ACEOF
5361 program main
5362
5363 end
5364_ACEOF
5365rm -f conftest.$ac_objext
5366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_f77_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_cv_prog_f77_g=yes
5388else
5389 echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392ac_cv_prog_f77_g=no
5393fi
5394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5395
5396fi
5397echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5398echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5399if test "$ac_test_FFLAGS" = set; then
5400 FFLAGS=$ac_save_FFLAGS
5401elif test $ac_cv_prog_f77_g = yes; then
5402 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5403 FFLAGS="-g -O2"
5404 else
5405 FFLAGS="-g"
5406 fi
5407else
5408 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5409 FFLAGS="-O2"
5410 else
5411 FFLAGS=
5412 fi
5413fi
5414
5415G77=`test $ac_compiler_gnu = yes && echo yes`
5416ac_ext=c
5417ac_cpp='$CPP $CPPFLAGS'
5418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421
5422
5423
5424# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5425
5426# find the maximum length of command line arguments
5427echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5428echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5429if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 i=0
5433 teststring="ABCD"
5434
5435 case $build_os in
5436 msdosdjgpp*)
5437 # On DJGPP, this test can blow up pretty badly due to problems in libc
5438 # (any single argument exceeding 2000 bytes causes a buffer overrun
5439 # during glob expansion). Even if it were fixed, the result of this
5440 # check would be larger than it should be.
5441 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5442 ;;
5443
5444 gnu*)
5445 # Under GNU Hurd, this test is not required because there is
5446 # no limit to the length of command line arguments.
5447 # Libtool will interpret -1 as no limit whatsoever
5448 lt_cv_sys_max_cmd_len=-1;
5449 ;;
5450
5451 cygwin* | mingw*)
5452 # On Win9x/ME, this test blows up -- it succeeds, but takes
5453 # about 5 minutes as the teststring grows exponentially.
5454 # Worse, since 9x/ME are not pre-emptively multitasking,
5455 # you end up with a "frozen" computer, even though with patience
5456 # the test eventually succeeds (with a max line length of 256k).
5457 # Instead, let's just punt: use the minimum linelength reported by
5458 # all of the supported platforms: 8192 (on NT/2K/XP).
5459 lt_cv_sys_max_cmd_len=8192;
5460 ;;
5461
5462 amigaos*)
5463 # On AmigaOS with pdksh, this test takes hours, literally.
5464 # So we just punt and use a minimum line length of 8192.
5465 lt_cv_sys_max_cmd_len=8192;
5466 ;;
5467
5468 *)
5469 # If test is not a shell built-in, we'll probably end up computing a
5470 # maximum length that is only half of the actual maximum length, but
5471 # we can't tell.
5472 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5473 = "XX$teststring") >/dev/null 2>&1 &&
5474 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5475 lt_cv_sys_max_cmd_len=$new_result &&
5476 test $i != 17 # 1/2 MB should be enough
5477 do
5478 i=`expr $i + 1`
5479 teststring=$teststring$teststring
5480 done
5481 teststring=
5482 # Add a significant safety factor because C++ compilers can tack on massive
5483 # amounts of additional arguments before passing them to the linker.
5484 # It appears as though 1/2 is a usable value.
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5486 ;;
5487 esac
5488
5489fi
5490
5491if test -n $lt_cv_sys_max_cmd_len ; then
5492 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5493echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5494else
5495 echo "$as_me:$LINENO: result: none" >&5
5496echo "${ECHO_T}none" >&6
5497fi
5498
5499
5500
5501
5502# Check for command to grab the raw symbol name followed by C symbol from nm.
5503echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5504echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5505if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507else
5508
5509# These are sane defaults that work on at least a few old systems.
5510# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5511
5512# Character class describing NM global symbol codes.
5513symcode='[BCDEGRST]'
5514
5515# Regexp to match symbols that can be accessed directly from C.
5516sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5517
5518# Transform the above into a raw symbol and a C symbol.
5519symxfrm='\1 \2\3 \3'
5520
5521# Transform an extracted symbol line into a proper C declaration
5522lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5523
5524# Transform an extracted symbol line into symbol name and symbol address
5525lt_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'"
5526
5527# Define system-specific variables.
5528case $host_os in
5529aix*)
5530 symcode='[BCDT]'
5531 ;;
5532cygwin* | mingw* | pw32*)
5533 symcode='[ABCDGISTW]'
5534 ;;
5535hpux*) # Its linker distinguishes data from code symbols
5536 if test "$host_cpu" = ia64; then
5537 symcode='[ABCDEGRST]'
5538 fi
5539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5540 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'"
5541 ;;
5542irix* | nonstopux*)
5543 symcode='[BCDEGRST]'
5544 ;;
5545osf*)
5546 symcode='[BCDEGQRST]'
5547 ;;
5548solaris* | sysv5*)
5549 symcode='[BDRT]'
5550 ;;
5551sysv4)
5552 symcode='[DFNSTU]'
5553 ;;
5554esac
5555
5556# Handle CRLF in mingw tool chain
5557opt_cr=
5558case $build_os in
5559mingw*)
5560 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5561 ;;
5562esac
5563
5564# If we're using GNU nm, then use its standard symbol codes.
5565case `$NM -V 2>&1` in
5566*GNU* | *'with BFD'*)
5567 symcode='[ABCDGIRSTW]' ;;
5568esac
5569
5570# Try without a prefix undercore, then with it.
5571for ac_symprfx in "" "_"; do
5572
5573 # Write the raw and C identifiers.
5574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5575
5576 # Check to see that the pipe works correctly.
5577 pipe_works=no
5578
5579 rm -f conftest*
5580 cat > conftest.$ac_ext <<EOF
5581#ifdef __cplusplus
5582extern "C" {
5583#endif
5584char nm_test_var;
5585void nm_test_func(){}
5586#ifdef __cplusplus
5587}
5588#endif
5589int main(){nm_test_var='a';nm_test_func();return(0);}
5590EOF
5591
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; then
5597 # Now try to grab the symbols.
5598 nlist=conftest.nm
5599 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5600 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && test -s "$nlist"; then
5604 # Try sorting and uniquifying the output.
5605 if sort "$nlist" | uniq > "$nlist"T; then
5606 mv -f "$nlist"T "$nlist"
5607 else
5608 rm -f "$nlist"T
5609 fi
5610
5611 # Make sure that we snagged all the symbols we need.
5612 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5613 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5614 cat <<EOF > conftest.$ac_ext
5615#ifdef __cplusplus
5616extern "C" {
5617#endif
5618
5619EOF
5620 # Now generate the symbol file.
5621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5622
5623 cat <<EOF >> conftest.$ac_ext
5624#if defined (__STDC__) && __STDC__
5625# define lt_ptr_t void *
5626#else
5627# define lt_ptr_t char *
5628# define const
5629#endif
5630
5631/* The mapping between symbol names and symbols. */
5632const struct {
5633 const char *name;
5634 lt_ptr_t address;
5635}
5636lt_preloaded_symbols[] =
5637{
5638EOF
5639 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5640 cat <<\EOF >> conftest.$ac_ext
5641 {0, (lt_ptr_t) 0}
5642};
5643
5644#ifdef __cplusplus
5645}
5646#endif
5647EOF
5648 # Now try linking the two files.
5649 mv conftest.$ac_objext conftstm.$ac_objext
5650 lt_save_LIBS="$LIBS"
5651 lt_save_CFLAGS="$CFLAGS"
5652 LIBS="conftstm.$ac_objext"
5653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5659 pipe_works=yes
5660 fi
5661 LIBS="$lt_save_LIBS"
5662 CFLAGS="$lt_save_CFLAGS"
5663 else
5664 echo "cannot find nm_test_func in $nlist" >&5
5665 fi
5666 else
5667 echo "cannot find nm_test_var in $nlist" >&5
5668 fi
5669 else
5670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5671 fi
5672 else
5673 echo "$progname: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 fi
5676 rm -f conftest* conftst*
5677
5678 # Do not use the global_symbol_pipe unless it works.
5679 if test "$pipe_works" = yes; then
5680 break
5681 else
5682 lt_cv_sys_global_symbol_pipe=
5683 fi
5684done
5685
5686fi
5687
5688if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689 lt_cv_sys_global_symbol_to_cdecl=
5690fi
5691if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692 echo "$as_me:$LINENO: result: failed" >&5
5693echo "${ECHO_T}failed" >&6
5694else
5695 echo "$as_me:$LINENO: result: ok" >&5
5696echo "${ECHO_T}ok" >&6
5697fi
5698
5699echo "$as_me:$LINENO: checking for objdir" >&5
5700echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5701if test "${lt_cv_objdir+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704 rm -f .libs 2>/dev/null
5705mkdir .libs 2>/dev/null
5706if test -d .libs; then
5707 lt_cv_objdir=.libs
5708else
5709 # MS-DOS does not allow filenames that begin with a dot.
5710 lt_cv_objdir=_libs
5711fi
5712rmdir .libs 2>/dev/null
5713fi
5714echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5715echo "${ECHO_T}$lt_cv_objdir" >&6
5716objdir=$lt_cv_objdir
5717
5718
5719
5720
5721
5722case $host_os in
5723aix3*)
5724 # AIX sometimes has problems with the GCC collect2 program. For some
5725 # reason, if we set the COLLECT_NAMES environment variable, the problems
5726 # vanish in a puff of smoke.
5727 if test "X${COLLECT_NAMES+set}" != Xset; then
5728 COLLECT_NAMES=
5729 export COLLECT_NAMES
5730 fi
5731 ;;
5732esac
5733
5734# Sed substitution that helps us do robust quoting. It backslashifies
5735# metacharacters that are still active within double-quoted strings.
5736Xsed='sed -e s/^X//'
5737sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5738
5739# Same as above, but do not quote variable references.
5740double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5741
5742# Sed substitution to delay expansion of an escaped shell variable in a
5743# double_quote_subst'ed string.
5744delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5745
5746# Sed substitution to avoid accidental globbing in evaled expressions
5747no_glob_subst='s/\*/\\\*/g'
5748
5749# Constants:
5750rm="rm -f"
5751
5752# Global variables:
5753default_ofile=libtool
5754can_build_shared=yes
5755
5756# All known linkers require a `.a' archive for static linking (except M$VC,
5757# which needs '.lib').
5758libext=a
5759ltmain="$ac_aux_dir/ltmain.sh"
5760ofile="$default_ofile"
5761with_gnu_ld="$lt_cv_prog_gnu_ld"
5762
5763if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5765set dummy ${ac_tool_prefix}ar; ac_word=$2
5766echo "$as_me:$LINENO: checking for $ac_word" >&5
5767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768if test "${ac_cv_prog_AR+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771 if test -n "$AR"; then
5772 ac_cv_prog_AR="$AR" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_AR="${ac_tool_prefix}ar"
5782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785done
5786done
5787
5788fi
5789fi
5790AR=$ac_cv_prog_AR
5791if test -n "$AR"; then
5792 echo "$as_me:$LINENO: result: $AR" >&5
5793echo "${ECHO_T}$AR" >&6
5794else
5795 echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6
5797fi
5798
5799fi
5800if test -z "$ac_cv_prog_AR"; then
5801 ac_ct_AR=$AR
5802 # Extract the first word of "ar", so it can be a program name with args.
5803set dummy ar; ac_word=$2
5804echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809 if test -n "$ac_ct_AR"; then
5810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_AR="ar"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824done
5825
5826 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5827fi
5828fi
5829ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830if test -n "$ac_ct_AR"; then
5831 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5832echo "${ECHO_T}$ac_ct_AR" >&6
5833else
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
5836fi
5837
5838 AR=$ac_ct_AR
5839else
5840 AR="$ac_cv_prog_AR"
5841fi
5842
5843if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846echo "$as_me:$LINENO: checking for $ac_word" >&5
5847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848if test "${ac_cv_prog_RANLIB+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851 if test -n "$RANLIB"; then
5852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865done
5866done
5867
5868fi
5869fi
5870RANLIB=$ac_cv_prog_RANLIB
5871if test -n "$RANLIB"; then
5872 echo "$as_me:$LINENO: result: $RANLIB" >&5
5873echo "${ECHO_T}$RANLIB" >&6
5874else
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877fi
5878
5879fi
5880if test -z "$ac_cv_prog_RANLIB"; then
5881 ac_ct_RANLIB=$RANLIB
5882 # Extract the first word of "ranlib", so it can be a program name with args.
5883set dummy ranlib; ac_word=$2
5884echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 if test -n "$ac_ct_RANLIB"; then
5890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_ac_ct_RANLIB="ranlib"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903done
5904done
5905
5906 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5907fi
5908fi
5909ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910if test -n "$ac_ct_RANLIB"; then
5911 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5912echo "${ECHO_T}$ac_ct_RANLIB" >&6
5913else
5914 echo "$as_me:$LINENO: result: no" >&5
5915echo "${ECHO_T}no" >&6
5916fi
5917
5918 RANLIB=$ac_ct_RANLIB
5919else
5920 RANLIB="$ac_cv_prog_RANLIB"
5921fi
5922
5923if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925set dummy ${ac_tool_prefix}strip; ac_word=$2
5926echo "$as_me:$LINENO: checking for $ac_word" >&5
5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928if test "${ac_cv_prog_STRIP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931 if test -n "$STRIP"; then
5932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945done
5946done
5947
5948fi
5949fi
5950STRIP=$ac_cv_prog_STRIP
5951if test -n "$STRIP"; then
5952 echo "$as_me:$LINENO: result: $STRIP" >&5
5953echo "${ECHO_T}$STRIP" >&6
5954else
5955 echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6
5957fi
5958
5959fi
5960if test -z "$ac_cv_prog_STRIP"; then
5961 ac_ct_STRIP=$STRIP
5962 # Extract the first word of "strip", so it can be a program name with args.
5963set dummy strip; ac_word=$2
5964echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 if test -n "$ac_ct_STRIP"; then
5970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_STRIP="strip"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984done
5985
5986 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5987fi
5988fi
5989ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990if test -n "$ac_ct_STRIP"; then
5991 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5992echo "${ECHO_T}$ac_ct_STRIP" >&6
5993else
5994 echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
5996fi
5997
5998 STRIP=$ac_ct_STRIP
5999else
6000 STRIP="$ac_cv_prog_STRIP"
6001fi
6002
6003
6004old_CC="$CC"
6005old_CFLAGS="$CFLAGS"
6006
6007# Set sane defaults for various variables
6008test -z "$AR" && AR=ar
6009test -z "$AR_FLAGS" && AR_FLAGS=cru
6010test -z "$AS" && AS=as
6011test -z "$CC" && CC=cc
6012test -z "$LTCC" && LTCC=$CC
6013test -z "$DLLTOOL" && DLLTOOL=dlltool
6014test -z "$LD" && LD=ld
6015test -z "$LN_S" && LN_S="ln -s"
6016test -z "$MAGIC_CMD" && MAGIC_CMD=file
6017test -z "$NM" && NM=nm
6018test -z "$SED" && SED=sed
6019test -z "$OBJDUMP" && OBJDUMP=objdump
6020test -z "$RANLIB" && RANLIB=:
6021test -z "$STRIP" && STRIP=:
6022test -z "$ac_objext" && ac_objext=o
6023
6024# Determine commands to create old-style static archives.
6025old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6026old_postinstall_cmds='chmod 644 $oldlib'
6027old_postuninstall_cmds=
6028
6029if test -n "$RANLIB"; then
6030 case $host_os in
6031 openbsd*)
6032 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6033 ;;
6034 *)
6035 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6036 ;;
6037 esac
6038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6039fi
6040
6041# Only perform the check for file, if the check method requires it
6042case $deplibs_check_method in
6043file_magic*)
6044 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6045 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6046echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6047if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050 case $MAGIC_CMD in
6051[\\/*] | ?:[\\/]*)
6052 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6053 ;;
6054*)
6055 lt_save_MAGIC_CMD="$MAGIC_CMD"
6056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6057 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6058 for ac_dir in $ac_dummy; do
6059 IFS="$lt_save_ifs"
6060 test -z "$ac_dir" && ac_dir=.
6061 if test -f $ac_dir/${ac_tool_prefix}file; then
6062 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6063 if test -n "$file_magic_test_file"; then
6064 case $deplibs_check_method in
6065 "file_magic "*)
6066 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6069 $EGREP "$file_magic_regex" > /dev/null; then
6070 :
6071 else
6072 cat <<EOF 1>&2
6073
6074*** Warning: the command libtool uses to detect shared libraries,
6075*** $file_magic_cmd, produces output that libtool cannot recognize.
6076*** The result is that libtool may fail to recognize shared libraries
6077*** as such. This will affect the creation of libtool libraries that
6078*** depend on shared libraries, but programs linked with such libtool
6079*** libraries will work regardless of this problem. Nevertheless, you
6080*** may want to report the problem to your system manager and/or to
6081*** bug-libtool@gnu.org
6082
6083EOF
6084 fi ;;
6085 esac
6086 fi
6087 break
6088 fi
6089 done
6090 IFS="$lt_save_ifs"
6091 MAGIC_CMD="$lt_save_MAGIC_CMD"
6092 ;;
6093esac
6094fi
6095
6096MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097if test -n "$MAGIC_CMD"; then
6098 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6099echo "${ECHO_T}$MAGIC_CMD" >&6
6100else
6101 echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6
6103fi
6104
6105if test -z "$lt_cv_path_MAGIC_CMD"; then
6106 if test -n "$ac_tool_prefix"; then
6107 echo "$as_me:$LINENO: checking for file" >&5
6108echo $ECHO_N "checking for file... $ECHO_C" >&6
6109if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112 case $MAGIC_CMD in
6113[\\/*] | ?:[\\/]*)
6114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6115 ;;
6116*)
6117 lt_save_MAGIC_CMD="$MAGIC_CMD"
6118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6120 for ac_dir in $ac_dummy; do
6121 IFS="$lt_save_ifs"
6122 test -z "$ac_dir" && ac_dir=.
6123 if test -f $ac_dir/file; then
6124 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6125 if test -n "$file_magic_test_file"; then
6126 case $deplibs_check_method in
6127 "file_magic "*)
6128 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6131 $EGREP "$file_magic_regex" > /dev/null; then
6132 :
6133 else
6134 cat <<EOF 1>&2
6135
6136*** Warning: the command libtool uses to detect shared libraries,
6137*** $file_magic_cmd, produces output that libtool cannot recognize.
6138*** The result is that libtool may fail to recognize shared libraries
6139*** as such. This will affect the creation of libtool libraries that
6140*** depend on shared libraries, but programs linked with such libtool
6141*** libraries will work regardless of this problem. Nevertheless, you
6142*** may want to report the problem to your system manager and/or to
6143*** bug-libtool@gnu.org
6144
6145EOF
6146 fi ;;
6147 esac
6148 fi
6149 break
6150 fi
6151 done
6152 IFS="$lt_save_ifs"
6153 MAGIC_CMD="$lt_save_MAGIC_CMD"
6154 ;;
6155esac
6156fi
6157
6158MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6159if test -n "$MAGIC_CMD"; then
6160 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6161echo "${ECHO_T}$MAGIC_CMD" >&6
6162else
6163 echo "$as_me:$LINENO: result: no" >&5
6164echo "${ECHO_T}no" >&6
6165fi
6166
6167 else
6168 MAGIC_CMD=:
6169 fi
6170fi
6171
6172 fi
6173 ;;
6174esac
6175
6176enable_dlopen=no
6177enable_win32_dll=no
6178
6179# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6180if test "${enable_libtool_lock+set}" = set; then
6181 enableval="$enable_libtool_lock"
6182
6183fi;
6184test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6185
6186
6187# Check whether --with-pic or --without-pic was given.
6188if test "${with_pic+set}" = set; then
6189 withval="$with_pic"
6190 pic_mode="$withval"
6191else
6192 pic_mode=default
6193fi;
6194test -z "$pic_mode" && pic_mode=default
6195
6196# Use C for the default configuration in the libtool script
6197tagname=
6198lt_save_CC="$CC"
6199ac_ext=c
6200ac_cpp='$CPP $CPPFLAGS'
6201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
6205
6206# Source file extension for C test sources.
6207ac_ext=c
6208
6209# Object file extension for compiled C test sources.
6210objext=o
6211objext=$objext
6212
6213# Code to be used in simple compile tests
6214lt_simple_compile_test_code="int some_variable = 0;\n"
6215
6216# Code to be used in simple link tests
6217lt_simple_link_test_code='int main(){return(0);}\n'
6218
6219
6220# If no C compiler was specified, use CC.
6221LTCC=${LTCC-"$CC"}
6222
6223# Allow CC to be a program name with arguments.
6224compiler=$CC
6225
6226
6227#
6228# Check for any special shared library compilation flags.
6229#
6230lt_prog_cc_shlib=
6231if test "$GCC" = no; then
6232 case $host_os in
6233 sco3.2v5*)
6234 lt_prog_cc_shlib='-belf'
6235 ;;
6236 esac
6237fi
6238if test -n "$lt_prog_cc_shlib"; then
6239 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6240echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6241 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6242 else
6243 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6244echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6245 lt_cv_prog_cc_can_build_shared=no
6246 fi
6247fi
6248
6249
6250#
6251# Check to make sure the static flag actually works.
6252#
6253echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6254echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6255if test "${lt_prog_compiler_static_works+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257else
6258 lt_prog_compiler_static_works=no
6259 save_LDFLAGS="$LDFLAGS"
6260 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6261 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6262 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6263 # The compiler can only warn and ignore the option if not recognized
6264 # So say no if there are warnings
6265 if test -s conftest.err; then
6266 # Append any errors to the config.log.
6267 cat conftest.err 1>&5
6268 else
6269 lt_prog_compiler_static_works=yes
6270 fi
6271 fi
6272 $rm conftest*
6273 LDFLAGS="$save_LDFLAGS"
6274
6275fi
6276echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6277echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6278
6279if test x"$lt_prog_compiler_static_works" = xyes; then
6280 :
6281else
6282 lt_prog_compiler_static=
6283fi
6284
6285
6286
6287
6288lt_prog_compiler_no_builtin_flag=
6289
6290if test "$GCC" = yes; then
6291 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6292
6293
6294echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6295echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6296if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298else
6299 lt_cv_prog_compiler_rtti_exceptions=no
6300 ac_outfile=conftest.$ac_objext
6301 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6302 lt_compiler_flag="-fno-rtti -fno-exceptions"
6303 # Insert the option either (1) after the last *FLAGS variable, or
6304 # (2) before a word containing "conftest.", or (3) at the end.
6305 # Note that $ac_compile itself does not contain backslashes and begins
6306 # with a dollar sign (not a hyphen), so the echo should work correctly.
6307 # The option is referenced via a variable to avoid confusing sed.
6308 lt_compile=`echo "$ac_compile" | $SED \
6309 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6311 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +00006312 (eval echo "\"\$as_me:6312: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +00006313 (eval "$lt_compile" 2>conftest.err)
6314 ac_status=$?
6315 cat conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +00006316 echo "$as_me:6316: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +00006317 if (exit $ac_status) && test -s "$ac_outfile"; then
6318 # The compiler can only warn and ignore the option if not recognized
6319 # So say no if there are warnings
6320 if test ! -s conftest.err; then
6321 lt_cv_prog_compiler_rtti_exceptions=yes
6322 fi
6323 fi
6324 $rm conftest*
6325
6326fi
6327echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6328echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6329
6330if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6331 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6332else
6333 :
6334fi
6335
6336fi
6337
6338lt_prog_compiler_wl=
6339lt_prog_compiler_pic=
6340lt_prog_compiler_static=
6341
6342echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6343echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6344
6345 if test "$GCC" = yes; then
6346 lt_prog_compiler_wl='-Wl,'
6347 lt_prog_compiler_static='-static'
6348
6349 case $host_os in
6350 aix*)
6351 # All AIX code is PIC.
6352 if test "$host_cpu" = ia64; then
6353 # AIX 5 now supports IA64 processor
6354 lt_prog_compiler_static='-Bstatic'
6355 fi
6356 ;;
6357
6358 amigaos*)
6359 # FIXME: we need at least 68020 code to build shared libraries, but
6360 # adding the `-m68020' flag to GCC prevents building anything better,
6361 # like `-m68040'.
6362 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6363 ;;
6364
6365 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6366 # PIC is the default for these OSes.
6367 ;;
6368
6369 mingw* | pw32* | os2*)
6370 # This hack is so that the source file can tell whether it is being
6371 # built for inclusion in a dll (and should export symbols for example).
6372 lt_prog_compiler_pic='-DDLL_EXPORT'
6373 ;;
6374
6375 darwin* | rhapsody*)
6376 # PIC is the default on this platform
6377 # Common symbols not allowed in MH_DYLIB files
6378 lt_prog_compiler_pic='-fno-common'
6379 ;;
6380
6381 msdosdjgpp*)
6382 # Just because we use GCC doesn't mean we suddenly get shared libraries
6383 # on systems that don't support them.
6384 lt_prog_compiler_can_build_shared=no
6385 enable_shared=no
6386 ;;
6387
6388 sysv4*MP*)
6389 if test -d /usr/nec; then
6390 lt_prog_compiler_pic=-Kconform_pic
6391 fi
6392 ;;
6393
6394 hpux*)
6395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6396 # not for PA HP-UX.
6397 case "$host_cpu" in
6398 hppa*64*|ia64*)
6399 # +Z the default
6400 ;;
6401 *)
6402 lt_prog_compiler_pic='-fPIC'
6403 ;;
6404 esac
6405 ;;
6406
6407 *)
6408 lt_prog_compiler_pic='-fPIC'
6409 ;;
6410 esac
6411 else
6412 # PORTME Check for flag to pass linker flags through the system compiler.
6413 case $host_os in
6414 aix*)
6415 lt_prog_compiler_wl='-Wl,'
6416 if test "$host_cpu" = ia64; then
6417 # AIX 5 now supports IA64 processor
6418 lt_prog_compiler_static='-Bstatic'
6419 else
6420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6421 fi
6422 ;;
6423
6424 mingw* | pw32* | os2*)
6425 # This hack is so that the source file can tell whether it is being
6426 # built for inclusion in a dll (and should export symbols for example).
6427 lt_prog_compiler_pic='-DDLL_EXPORT'
6428 ;;
6429
6430 hpux9* | hpux10* | hpux11*)
6431 lt_prog_compiler_wl='-Wl,'
6432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6433 # not for PA HP-UX.
6434 case "$host_cpu" in
6435 hppa*64*|ia64*)
6436 # +Z the default
6437 ;;
6438 *)
6439 lt_prog_compiler_pic='+Z'
6440 ;;
6441 esac
6442 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6443 lt_prog_compiler_static='${wl}-a ${wl}archive'
6444 ;;
6445
6446 irix5* | irix6* | nonstopux*)
6447 lt_prog_compiler_wl='-Wl,'
6448 # PIC (with -KPIC) is the default.
6449 lt_prog_compiler_static='-non_shared'
6450 ;;
6451
6452 newsos6)
6453 lt_prog_compiler_pic='-KPIC'
6454 lt_prog_compiler_static='-Bstatic'
6455 ;;
6456
6457 linux*)
6458 case $CC in
6459 icc* | ecc*)
6460 lt_prog_compiler_wl='-Wl,'
6461 lt_prog_compiler_pic='-KPIC'
6462 lt_prog_compiler_static='-static'
6463 ;;
6464 ccc*)
6465 lt_prog_compiler_wl='-Wl,'
6466 # All Alpha code is PIC.
6467 lt_prog_compiler_static='-non_shared'
6468 ;;
6469 esac
6470 ;;
6471
6472 osf3* | osf4* | osf5*)
6473 lt_prog_compiler_wl='-Wl,'
6474 # All OSF/1 code is PIC.
6475 lt_prog_compiler_static='-non_shared'
6476 ;;
6477
6478 sco3.2v5*)
6479 lt_prog_compiler_pic='-Kpic'
6480 lt_prog_compiler_static='-dn'
6481 ;;
6482
6483 solaris*)
6484 lt_prog_compiler_wl='-Wl,'
6485 lt_prog_compiler_pic='-KPIC'
6486 lt_prog_compiler_static='-Bstatic'
6487 ;;
6488
6489 sunos4*)
6490 lt_prog_compiler_wl='-Qoption ld '
6491 lt_prog_compiler_pic='-PIC'
6492 lt_prog_compiler_static='-Bstatic'
6493 ;;
6494
6495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6496 lt_prog_compiler_wl='-Wl,'
6497 lt_prog_compiler_pic='-KPIC'
6498 lt_prog_compiler_static='-Bstatic'
6499 ;;
6500
6501 sysv4*MP*)
6502 if test -d /usr/nec ;then
6503 lt_prog_compiler_pic='-Kconform_pic'
6504 lt_prog_compiler_static='-Bstatic'
6505 fi
6506 ;;
6507
6508 uts4*)
6509 lt_prog_compiler_pic='-pic'
6510 lt_prog_compiler_static='-Bstatic'
6511 ;;
6512
6513 *)
6514 lt_prog_compiler_can_build_shared=no
6515 ;;
6516 esac
6517 fi
6518
6519echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6520echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6521
6522#
6523# Check to make sure the PIC flag actually works.
6524#
6525if test -n "$lt_prog_compiler_pic"; then
6526
6527echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6528echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6529if test "${lt_prog_compiler_pic_works+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532 lt_prog_compiler_pic_works=no
6533 ac_outfile=conftest.$ac_objext
6534 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6535 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6536 # Insert the option either (1) after the last *FLAGS variable, or
6537 # (2) before a word containing "conftest.", or (3) at the end.
6538 # Note that $ac_compile itself does not contain backslashes and begins
6539 # with a dollar sign (not a hyphen), so the echo should work correctly.
6540 # The option is referenced via a variable to avoid confusing sed.
6541 lt_compile=`echo "$ac_compile" | $SED \
6542 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +00006545 (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +00006546 (eval "$lt_compile" 2>conftest.err)
6547 ac_status=$?
6548 cat conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +00006549 echo "$as_me:6549: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +00006550 if (exit $ac_status) && test -s "$ac_outfile"; then
6551 # The compiler can only warn and ignore the option if not recognized
6552 # So say no if there are warnings
6553 if test ! -s conftest.err; then
6554 lt_prog_compiler_pic_works=yes
6555 fi
6556 fi
6557 $rm conftest*
6558
6559fi
6560echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6561echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6562
6563if test x"$lt_prog_compiler_pic_works" = xyes; then
6564 case $lt_prog_compiler_pic in
6565 "" | " "*) ;;
6566 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6567 esac
6568else
6569 lt_prog_compiler_pic=
6570 lt_prog_compiler_can_build_shared=no
6571fi
6572
6573fi
6574case "$host_os" in
6575 # For platforms which do not support PIC, -DPIC is meaningless:
6576 *djgpp*)
6577 lt_prog_compiler_pic=
6578 ;;
6579 *)
6580 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6581 ;;
6582esac
6583
6584echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6585echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6586if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589 lt_cv_prog_compiler_c_o=no
6590 $rm -r conftest 2>/dev/null
6591 mkdir conftest
6592 cd conftest
6593 mkdir out
6594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6595
6596 lt_compiler_flag="-o out/conftest2.$ac_objext"
6597 # Insert the option either (1) after the last *FLAGS variable, or
6598 # (2) before a word containing "conftest.", or (3) at the end.
6599 # Note that $ac_compile itself does not contain backslashes and begins
6600 # with a dollar sign (not a hyphen), so the echo should work correctly.
6601 lt_compile=`echo "$ac_compile" | $SED \
6602 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6604 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +00006605 (eval echo "\"\$as_me:6605: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +00006606 (eval "$lt_compile" 2>out/conftest.err)
6607 ac_status=$?
6608 cat out/conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +00006609 echo "$as_me:6609: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +00006610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6611 then
6612 # The compiler can only warn and ignore the option if not recognized
6613 # So say no if there are warnings
6614 if test ! -s out/conftest.err; then
6615 lt_cv_prog_compiler_c_o=yes
6616 fi
6617 fi
6618 chmod u+w .
6619 $rm conftest*
6620 # SGI C++ compiler will create directory out/ii_files/ for
6621 # template instantiation
6622 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6623 $rm out/* && rmdir out
6624 cd ..
6625 rmdir conftest
6626 $rm conftest*
6627
6628fi
6629echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6630echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6631
6632
6633hard_links="nottested"
6634if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6635 # do not overwrite the value of need_locks provided by the user
6636 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6637echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6638 hard_links=yes
6639 $rm conftest*
6640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6641 touch conftest.a
6642 ln conftest.a conftest.b 2>&5 || hard_links=no
6643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6644 echo "$as_me:$LINENO: result: $hard_links" >&5
6645echo "${ECHO_T}$hard_links" >&6
6646 if test "$hard_links" = no; then
6647 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6648echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6649 need_locks=warn
6650 fi
6651else
6652 need_locks=no
6653fi
6654
6655echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6656echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6657
6658 runpath_var=
6659 allow_undefined_flag=
6660 enable_shared_with_static_runtimes=no
6661 archive_cmds=
6662 archive_expsym_cmds=
6663 old_archive_From_new_cmds=
6664 old_archive_from_expsyms_cmds=
6665 export_dynamic_flag_spec=
6666 whole_archive_flag_spec=
6667 thread_safe_flag_spec=
6668 hardcode_libdir_flag_spec=
6669 hardcode_libdir_flag_spec_ld=
6670 hardcode_libdir_separator=
6671 hardcode_direct=no
6672 hardcode_minus_L=no
6673 hardcode_shlibpath_var=unsupported
6674 link_all_deplibs=unknown
6675 hardcode_automatic=no
6676 module_cmds=
6677 module_expsym_cmds=
6678 always_export_symbols=no
6679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6680 # include_expsyms should be a list of space-separated symbols to be *always*
6681 # included in the symbol list
6682 include_expsyms=
6683 # exclude_expsyms can be an extended regexp of symbols to exclude
6684 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6685 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6686 # as well as any symbol that contains `d'.
6687 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6689 # platforms (ab)use it in PIC code, but their linkers get confused if
6690 # the symbol is explicitly referenced. Since portable code cannot
6691 # rely on this symbol name, it's probably fine to never include it in
6692 # preloaded symbol tables.
6693 extract_expsyms_cmds=
6694
6695 case $host_os in
6696 cygwin* | mingw* | pw32*)
6697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6698 # When not using gcc, we currently assume that we are using
6699 # Microsoft Visual C++.
6700 if test "$GCC" != yes; then
6701 with_gnu_ld=no
6702 fi
6703 ;;
6704 openbsd*)
6705 with_gnu_ld=no
6706 ;;
6707 esac
6708
6709 ld_shlibs=yes
6710 if test "$with_gnu_ld" = yes; then
6711 # If archive_cmds runs LD, not CC, wlarc should be empty
6712 wlarc='${wl}'
6713
6714 # See if GNU ld supports shared libraries.
6715 case $host_os in
6716 aix3* | aix4* | aix5*)
6717 # On AIX/PPC, the GNU linker is very broken
6718 if test "$host_cpu" != ia64; then
6719 ld_shlibs=no
6720 cat <<EOF 1>&2
6721
6722*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6723*** to be unable to reliably create shared libraries on AIX.
6724*** Therefore, libtool is disabling shared libraries support. If you
6725*** really care for shared libraries, you may want to modify your PATH
6726*** so that a non-GNU linker is found, and then restart.
6727
6728EOF
6729 fi
6730 ;;
6731
6732 amigaos*)
6733 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)'
6734 hardcode_libdir_flag_spec='-L$libdir'
6735 hardcode_minus_L=yes
6736
6737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6738 # that the semantics of dynamic libraries on AmigaOS, at least up
6739 # to version 4, is to share data among multiple programs linked
6740 # with the same dynamic library. Since this doesn't match the
6741 # behavior of shared libraries on other platforms, we can't use
6742 # them.
6743 ld_shlibs=no
6744 ;;
6745
6746 beos*)
6747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748 allow_undefined_flag=unsupported
6749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6750 # support --undefined. This deserves some investigation. FIXME
6751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752 else
6753 ld_shlibs=no
6754 fi
6755 ;;
6756
6757 cygwin* | mingw* | pw32*)
6758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6759 # as there is no search path for DLLs.
6760 hardcode_libdir_flag_spec='-L$libdir'
6761 allow_undefined_flag=unsupported
6762 always_export_symbols=no
6763 enable_shared_with_static_runtimes=yes
6764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6765
6766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6768 # If the export-symbols file already is a .def file (1st line
6769 # is EXPORTS), use it as is; otherwise, prepend...
6770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6771 cp $export_symbols $output_objdir/$soname.def;
6772 else
6773 echo EXPORTS > $output_objdir/$soname.def;
6774 cat $export_symbols >> $output_objdir/$soname.def;
6775 fi~
6776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6777 else
6778 ld_shlibs=no
6779 fi
6780 ;;
6781
6782 netbsd*)
6783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6784 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6785 wlarc=
6786 else
6787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6789 fi
6790 ;;
6791
6792 solaris* | sysv5*)
6793 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6794 ld_shlibs=no
6795 cat <<EOF 1>&2
6796
6797*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6798*** create shared libraries on Solaris systems. Therefore, libtool
6799*** is disabling shared libraries support. We urge you to upgrade GNU
6800*** binutils to release 2.9.1 or newer. Another option is to modify
6801*** your PATH or compiler configuration so that the native linker is
6802*** used, and then restart.
6803
6804EOF
6805 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6808 else
6809 ld_shlibs=no
6810 fi
6811 ;;
6812
6813 sunos4*)
6814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6815 wlarc=
6816 hardcode_direct=yes
6817 hardcode_shlibpath_var=no
6818 ;;
6819
6820 linux*)
6821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6822 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6823 archive_cmds="$tmp_archive_cmds"
6824 supports_anon_versioning=no
6825 case `$LD -v 2>/dev/null` in
6826 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6829 *\ 2.11.*) ;; # other 2.11 versions
6830 *) supports_anon_versioning=yes ;;
6831 esac
6832 if test $supports_anon_versioning = yes; then
6833 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6834cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6835$echo "local: *; };" >> $output_objdir/$libname.ver~
6836 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6837 else
6838 archive_expsym_cmds="$tmp_archive_cmds"
6839 fi
6840 else
6841 ld_shlibs=no
6842 fi
6843 ;;
6844
6845 *)
6846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6849 else
6850 ld_shlibs=no
6851 fi
6852 ;;
6853 esac
6854
6855 if test "$ld_shlibs" = yes; then
6856 runpath_var=LD_RUN_PATH
6857 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6858 export_dynamic_flag_spec='${wl}--export-dynamic'
6859 # ancient GNU ld didn't support --whole-archive et. al.
6860 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6861 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6862 else
6863 whole_archive_flag_spec=
6864 fi
6865 fi
6866 else
6867 # PORTME fill in a description of your system's linker (not GNU ld)
6868 case $host_os in
6869 aix3*)
6870 allow_undefined_flag=unsupported
6871 always_export_symbols=yes
6872 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'
6873 # Note: this linker hardcodes the directories in LIBPATH if there
6874 # are no directories specified by -L.
6875 hardcode_minus_L=yes
6876 if test "$GCC" = yes && test -z "$link_static_flag"; then
6877 # Neither direct hardcoding nor static linking is supported with a
6878 # broken collect2.
6879 hardcode_direct=unsupported
6880 fi
6881 ;;
6882
6883 aix4* | aix5*)
6884 if test "$host_cpu" = ia64; then
6885 # On IA64, the linker does run time linking by default, so we don't
6886 # have to do anything special.
6887 aix_use_runtimelinking=no
6888 exp_sym_flag='-Bexport'
6889 no_entry_flag=""
6890 else
6891 # If we're using GNU nm, then we don't want the "-C" option.
6892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6893 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6894 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'
6895 else
6896 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'
6897 fi
6898 aix_use_runtimelinking=no
6899
6900 # Test if we are trying to use run time linking or normal
6901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6902 # need to do runtime linking.
6903 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6904 for ld_flag in $LDFLAGS; do
6905 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6906 aix_use_runtimelinking=yes
6907 break
6908 fi
6909 done
6910 esac
6911
6912 exp_sym_flag='-bexport'
6913 no_entry_flag='-bnoentry'
6914 fi
6915
6916 # When large executables or shared objects are built, AIX ld can
6917 # have problems creating the table of contents. If linking a library
6918 # or program results in "error TOC overflow" add -mminimal-toc to
6919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6921
6922 archive_cmds=''
6923 hardcode_direct=yes
6924 hardcode_libdir_separator=':'
6925 link_all_deplibs=yes
6926
6927 if test "$GCC" = yes; then
6928 case $host_os in aix4.012|aix4.012.*)
6929 # We only want to do this on AIX 4.2 and lower, the check
6930 # below for broken collect2 doesn't work under 4.3+
6931 collect2name=`${CC} -print-prog-name=collect2`
6932 if test -f "$collect2name" && \
6933 strings "$collect2name" | grep resolve_lib_name >/dev/null
6934 then
6935 # We have reworked collect2
6936 hardcode_direct=yes
6937 else
6938 # We have old collect2
6939 hardcode_direct=unsupported
6940 # It fails to find uninstalled libraries when the uninstalled
6941 # path is not listed in the libpath. Setting hardcode_minus_L
6942 # to unsupported forces relinking
6943 hardcode_minus_L=yes
6944 hardcode_libdir_flag_spec='-L$libdir'
6945 hardcode_libdir_separator=
6946 fi
6947 esac
6948 shared_flag='-shared'
6949 else
6950 # not using gcc
6951 if test "$host_cpu" = ia64; then
6952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6953 # chokes on -Wl,-G. The following line is correct:
6954 shared_flag='-G'
6955 else
6956 if test "$aix_use_runtimelinking" = yes; then
6957 shared_flag='${wl}-G'
6958 else
6959 shared_flag='${wl}-bM:SRE'
6960 fi
6961 fi
6962 fi
6963
6964 # It seems that -bexpall does not export symbols beginning with
6965 # underscore (_), so it is better to generate a list of symbols to export.
6966 always_export_symbols=yes
6967 if test "$aix_use_runtimelinking" = yes; then
6968 # Warning - without using the other runtime loading flags (-brtl),
6969 # -berok will link without error, but may produce a broken library.
6970 allow_undefined_flag='-berok'
6971 # Determine the default libpath from the value encoded in an empty executable.
6972 cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
6978
6979int
6980main ()
6981{
6982
6983 ;
6984 return 0;
6985}
6986_ACEOF
6987rm -f conftest.$ac_objext conftest$ac_exeext
6988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag"
6997 || test ! -s conftest.err'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; } &&
7003 { ac_try='test -s conftest$ac_exeext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009
7010aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7011}'`
7012# Check for a 64-bit object if we didn't find anything.
7013if 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; }
7014}'`; fi
7015else
7016 echo "$as_me: failed program was:" >&5
7017sed 's/^/| /' conftest.$ac_ext >&5
7018
7019fi
7020rm -f conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7023
7024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7025 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"
7026 else
7027 if test "$host_cpu" = ia64; then
7028 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7029 allow_undefined_flag="-z nodefs"
7030 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"
7031 else
7032 # Determine the default libpath from the value encoded in an empty executable.
7033 cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h. */
7035_ACEOF
7036cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF
7038/* end confdefs.h. */
7039
7040int
7041main ()
7042{
7043
7044 ;
7045 return 0;
7046}
7047_ACEOF
7048rm -f conftest.$ac_objext conftest$ac_exeext
7049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -z "$ac_c_werror_flag"
7058 || test ! -s conftest.err'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; } &&
7064 { ac_try='test -s conftest$ac_exeext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7070
7071aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7072}'`
7073# Check for a 64-bit object if we didn't find anything.
7074if 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; }
7075}'`; fi
7076else
7077 echo "$as_me: failed program was:" >&5
7078sed 's/^/| /' conftest.$ac_ext >&5
7079
7080fi
7081rm -f conftest.err conftest.$ac_objext \
7082 conftest$ac_exeext conftest.$ac_ext
7083if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7084
7085 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7086 # Warning - without using the other run time loading flags,
7087 # -berok will link without error, but may produce a broken library.
7088 no_undefined_flag=' ${wl}-bernotok'
7089 allow_undefined_flag=' ${wl}-berok'
7090 # -bexpall does not export symbols beginning with underscore (_)
7091 always_export_symbols=yes
7092 # Exported symbols can be pulled into shared objects from archives
7093 whole_archive_flag_spec=' '
7094 archive_cmds_need_lc=yes
7095 # This is similar to how AIX traditionally builds it's shared libraries.
7096 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'
7097 fi
7098 fi
7099 ;;
7100
7101 amigaos*)
7102 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)'
7103 hardcode_libdir_flag_spec='-L$libdir'
7104 hardcode_minus_L=yes
7105 # see comment about different semantics on the GNU ld section
7106 ld_shlibs=no
7107 ;;
7108
7109 bsdi4*)
7110 export_dynamic_flag_spec=-rdynamic
7111 ;;
7112
7113 cygwin* | mingw* | pw32*)
7114 # When not using gcc, we currently assume that we are using
7115 # Microsoft Visual C++.
7116 # hardcode_libdir_flag_spec is actually meaningless, as there is
7117 # no search path for DLLs.
7118 hardcode_libdir_flag_spec=' '
7119 allow_undefined_flag=unsupported
7120 # Tell ltmain to make .lib files, not .a files.
7121 libext=lib
7122 # Tell ltmain to make .dll files, not .so files.
7123 shrext_cmds=".dll"
7124 # FIXME: Setting linknames here is a bad hack.
7125 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7126 # The linker will automatically build a .lib file if we build a DLL.
7127 old_archive_From_new_cmds='true'
7128 # FIXME: Should let the user specify the lib program.
7129 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7130 fix_srcfile_path='`cygpath -w "$srcfile"`'
7131 enable_shared_with_static_runtimes=yes
7132 ;;
7133
7134 darwin* | rhapsody*)
7135 if test "$GXX" = yes ; then
7136 archive_cmds_need_lc=no
7137 case "$host_os" in
7138 rhapsody* | darwin1.[012])
7139 allow_undefined_flag='-undefined suppress'
7140 ;;
7141 *) # Darwin 1.3 on
7142 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7143 allow_undefined_flag='-flat_namespace -undefined suppress'
7144 else
7145 case ${MACOSX_DEPLOYMENT_TARGET} in
7146 10.[012])
7147 allow_undefined_flag='-flat_namespace -undefined suppress'
7148 ;;
7149 10.*)
7150 allow_undefined_flag='-undefined dynamic_lookup'
7151 ;;
7152 esac
7153 fi
7154 ;;
7155 esac
7156 lt_int_apple_cc_single_mod=no
7157 output_verbose_link_cmd='echo'
7158 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7159 lt_int_apple_cc_single_mod=yes
7160 fi
7161 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7162 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7163 else
7164 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'
7165 fi
7166 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7167 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7168 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7169 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}'
7170 else
7171 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}'
7172 fi
7173 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}'
7174 hardcode_direct=no
7175 hardcode_automatic=yes
7176 hardcode_shlibpath_var=unsupported
7177 whole_archive_flag_spec='-all_load $convenience'
7178 link_all_deplibs=yes
7179 else
7180 ld_shlibs=no
7181 fi
7182 ;;
7183
7184 dgux*)
7185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7186 hardcode_libdir_flag_spec='-L$libdir'
7187 hardcode_shlibpath_var=no
7188 ;;
7189
7190 freebsd1*)
7191 ld_shlibs=no
7192 ;;
7193
7194 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7195 # support. Future versions do this automatically, but an explicit c++rt0.o
7196 # does not break anything, and helps significantly (at the cost of a little
7197 # extra space).
7198 freebsd2.2*)
7199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7200 hardcode_libdir_flag_spec='-R$libdir'
7201 hardcode_direct=yes
7202 hardcode_shlibpath_var=no
7203 ;;
7204
7205 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7206 freebsd2*)
7207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7208 hardcode_direct=yes
7209 hardcode_minus_L=yes
7210 hardcode_shlibpath_var=no
7211 ;;
7212
7213 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7214 freebsd* | kfreebsd*-gnu)
7215 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7216 hardcode_libdir_flag_spec='-R$libdir'
7217 hardcode_direct=yes
7218 hardcode_shlibpath_var=no
7219 ;;
7220
7221 hpux9*)
7222 if test "$GCC" = yes; then
7223 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'
7224 else
7225 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'
7226 fi
7227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7228 hardcode_libdir_separator=:
7229 hardcode_direct=yes
7230
7231 # hardcode_minus_L: Not really in the search PATH,
7232 # but as the default location of the library.
7233 hardcode_minus_L=yes
7234 export_dynamic_flag_spec='${wl}-E'
7235 ;;
7236
7237 hpux10* | hpux11*)
7238 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7239 case "$host_cpu" in
7240 hppa*64*|ia64*)
7241 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7242 ;;
7243 *)
7244 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7245 ;;
7246 esac
7247 else
7248 case "$host_cpu" in
7249 hppa*64*|ia64*)
7250 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7251 ;;
7252 *)
7253 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7254 ;;
7255 esac
7256 fi
7257 if test "$with_gnu_ld" = no; then
7258 case "$host_cpu" in
7259 hppa*64*)
7260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7261 hardcode_libdir_flag_spec_ld='+b $libdir'
7262 hardcode_libdir_separator=:
7263 hardcode_direct=no
7264 hardcode_shlibpath_var=no
7265 ;;
7266 ia64*)
7267 hardcode_libdir_flag_spec='-L$libdir'
7268 hardcode_direct=no
7269 hardcode_shlibpath_var=no
7270
7271 # hardcode_minus_L: Not really in the search PATH,
7272 # but as the default location of the library.
7273 hardcode_minus_L=yes
7274 ;;
7275 *)
7276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7277 hardcode_libdir_separator=:
7278 hardcode_direct=yes
7279 export_dynamic_flag_spec='${wl}-E'
7280
7281 # hardcode_minus_L: Not really in the search PATH,
7282 # but as the default location of the library.
7283 hardcode_minus_L=yes
7284 ;;
7285 esac
7286 fi
7287 ;;
7288
7289 irix5* | irix6* | nonstopux*)
7290 if test "$GCC" = yes; then
7291 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'
7292 else
7293 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'
7294 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7295 fi
7296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7297 hardcode_libdir_separator=:
7298 link_all_deplibs=yes
7299 ;;
7300
7301 netbsd*)
7302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7304 else
7305 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7306 fi
7307 hardcode_libdir_flag_spec='-R$libdir'
7308 hardcode_direct=yes
7309 hardcode_shlibpath_var=no
7310 ;;
7311
7312 newsos6)
7313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314 hardcode_direct=yes
7315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7316 hardcode_libdir_separator=:
7317 hardcode_shlibpath_var=no
7318 ;;
7319
7320 openbsd*)
7321 hardcode_direct=yes
7322 hardcode_shlibpath_var=no
7323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7326 export_dynamic_flag_spec='${wl}-E'
7327 else
7328 case $host_os in
7329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7331 hardcode_libdir_flag_spec='-R$libdir'
7332 ;;
7333 *)
7334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7336 ;;
7337 esac
7338 fi
7339 ;;
7340
7341 os2*)
7342 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_minus_L=yes
7344 allow_undefined_flag=unsupported
7345 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'
7346 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7347 ;;
7348
7349 osf3*)
7350 if test "$GCC" = yes; then
7351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7352 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'
7353 else
7354 allow_undefined_flag=' -expect_unresolved \*'
7355 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'
7356 fi
7357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7358 hardcode_libdir_separator=:
7359 ;;
7360
7361 osf4* | osf5*) # as osf3* with the addition of -msym flag
7362 if test "$GCC" = yes; then
7363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7364 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'
7365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7366 else
7367 allow_undefined_flag=' -expect_unresolved \*'
7368 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'
7369 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7370 $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'
7371
7372 # Both c and cxx compiler support -rpath directly
7373 hardcode_libdir_flag_spec='-rpath $libdir'
7374 fi
7375 hardcode_libdir_separator=:
7376 ;;
7377
7378 sco3.2v5*)
7379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7380 hardcode_shlibpath_var=no
7381 export_dynamic_flag_spec='${wl}-Bexport'
7382 runpath_var=LD_RUN_PATH
7383 hardcode_runpath_var=yes
7384 ;;
7385
7386 solaris*)
7387 no_undefined_flag=' -z text'
7388 if test "$GCC" = yes; then
7389 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7390 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7392 else
7393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7396 fi
7397 hardcode_libdir_flag_spec='-R$libdir'
7398 hardcode_shlibpath_var=no
7399 case $host_os in
7400 solaris2.[0-5] | solaris2.[0-5].*) ;;
7401 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7402 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7403 esac
7404 link_all_deplibs=yes
7405 ;;
7406
7407 sunos4*)
7408 if test "x$host_vendor" = xsequent; then
7409 # Use $CC to link under sequent, because it throws in some extra .o
7410 # files that make .init and .fini sections work.
7411 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7412 else
7413 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7414 fi
7415 hardcode_libdir_flag_spec='-L$libdir'
7416 hardcode_direct=yes
7417 hardcode_minus_L=yes
7418 hardcode_shlibpath_var=no
7419 ;;
7420
7421 sysv4)
7422 case $host_vendor in
7423 sni)
7424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425 hardcode_direct=yes # is this really true???
7426 ;;
7427 siemens)
7428 ## LD is ld it makes a PLAMLIB
7429 ## CC just makes a GrossModule.
7430 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7431 reload_cmds='$CC -r -o $output$reload_objs'
7432 hardcode_direct=no
7433 ;;
7434 motorola)
7435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7436 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7437 ;;
7438 esac
7439 runpath_var='LD_RUN_PATH'
7440 hardcode_shlibpath_var=no
7441 ;;
7442
7443 sysv4.3*)
7444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7445 hardcode_shlibpath_var=no
7446 export_dynamic_flag_spec='-Bexport'
7447 ;;
7448
7449 sysv4*MP*)
7450 if test -d /usr/nec; then
7451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7452 hardcode_shlibpath_var=no
7453 runpath_var=LD_RUN_PATH
7454 hardcode_runpath_var=yes
7455 ld_shlibs=yes
7456 fi
7457 ;;
7458
7459 sysv4.2uw2*)
7460 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7461 hardcode_direct=yes
7462 hardcode_minus_L=no
7463 hardcode_shlibpath_var=no
7464 hardcode_runpath_var=yes
7465 runpath_var=LD_RUN_PATH
7466 ;;
7467
7468 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7469 no_undefined_flag='${wl}-z ${wl}text'
7470 if test "$GCC" = yes; then
7471 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7472 else
7473 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474 fi
7475 runpath_var='LD_RUN_PATH'
7476 hardcode_shlibpath_var=no
7477 ;;
7478
7479 sysv5*)
7480 no_undefined_flag=' -z text'
7481 # $CC -shared without GNU ld will not create a library from C++
7482 # object files and a static libstdc++, better avoid it by now
7483 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7484 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7486 hardcode_libdir_flag_spec=
7487 hardcode_shlibpath_var=no
7488 runpath_var='LD_RUN_PATH'
7489 ;;
7490
7491 uts4*)
7492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7493 hardcode_libdir_flag_spec='-L$libdir'
7494 hardcode_shlibpath_var=no
7495 ;;
7496
7497 *)
7498 ld_shlibs=no
7499 ;;
7500 esac
7501 fi
7502
7503echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7504echo "${ECHO_T}$ld_shlibs" >&6
7505test "$ld_shlibs" = no && can_build_shared=no
7506
7507variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7508if test "$GCC" = yes; then
7509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7510fi
7511
7512#
7513# Do we need to explicitly link libc?
7514#
7515case "x$archive_cmds_need_lc" in
7516x|xyes)
7517 # Assume -lc should be added
7518 archive_cmds_need_lc=yes
7519
7520 if test "$enable_shared" = yes && test "$GCC" = yes; then
7521 case $archive_cmds in
7522 *'~'*)
7523 # FIXME: we may have to deal with multi-command sequences.
7524 ;;
7525 '$CC '*)
7526 # Test whether the compiler implicitly links with -lc since on some
7527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7528 # to ld, don't add -lc before -lgcc.
7529 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7530echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7531 $rm conftest*
7532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7533
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } 2>conftest.err; then
7539 soname=conftest
7540 lib=conftest
7541 libobjs=conftest.$ac_objext
7542 deplibs=
7543 wl=$lt_prog_compiler_wl
7544 compiler_flags=-v
7545 linker_flags=-v
7546 verstring=
7547 output_objdir=.
7548 libname=conftest
7549 lt_save_allow_undefined_flag=$allow_undefined_flag
7550 allow_undefined_flag=
7551 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7552 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }
7556 then
7557 archive_cmds_need_lc=no
7558 else
7559 archive_cmds_need_lc=yes
7560 fi
7561 allow_undefined_flag=$lt_save_allow_undefined_flag
7562 else
7563 cat conftest.err 1>&5
7564 fi
7565 $rm conftest*
7566 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7567echo "${ECHO_T}$archive_cmds_need_lc" >&6
7568 ;;
7569 esac
7570 fi
7571 ;;
7572esac
7573
7574echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7575echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7576library_names_spec=
7577libname_spec='lib$name'
7578soname_spec=
7579shrext_cmds=".so"
7580postinstall_cmds=
7581postuninstall_cmds=
7582finish_cmds=
7583finish_eval=
7584shlibpath_var=
7585shlibpath_overrides_runpath=unknown
7586version_type=none
7587dynamic_linker="$host_os ld.so"
7588sys_lib_dlsearch_path_spec="/lib /usr/lib"
7589if test "$GCC" = yes; then
7590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7591 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7592 # if the path contains ";" then we assume it to be the separator
7593 # otherwise default to the standard path separator (i.e. ":") - it is
7594 # assumed that no part of a normal pathname contains ";" but that should
7595 # okay in the real world where ";" in dirpaths is itself problematic.
7596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7597 else
7598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7599 fi
7600else
7601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7602fi
7603need_lib_prefix=unknown
7604hardcode_into_libs=no
7605
7606# when you set need_version to no, make sure it does not cause -set_version
7607# flags to be left without arguments
7608need_version=unknown
7609
7610case $host_os in
7611aix3*)
7612 version_type=linux
7613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7614 shlibpath_var=LIBPATH
7615
7616 # AIX 3 has no versioning support, so we append a major version to the name.
7617 soname_spec='${libname}${release}${shared_ext}$major'
7618 ;;
7619
7620aix4* | aix5*)
7621 version_type=linux
7622 need_lib_prefix=no
7623 need_version=no
7624 hardcode_into_libs=yes
7625 if test "$host_cpu" = ia64; then
7626 # AIX 5 supports IA64
7627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7628 shlibpath_var=LD_LIBRARY_PATH
7629 else
7630 # With GCC up to 2.95.x, collect2 would create an import file
7631 # for dependence libraries. The import file would start with
7632 # the line `#! .'. This would cause the generated library to
7633 # depend on `.', always an invalid library. This was fixed in
7634 # development snapshots of GCC prior to 3.0.
7635 case $host_os in
7636 aix4 | aix4.[01] | aix4.[01].*)
7637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7638 echo ' yes '
7639 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7640 :
7641 else
7642 can_build_shared=no
7643 fi
7644 ;;
7645 esac
7646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7647 # soname into executable. Probably we can add versioning support to
7648 # collect2, so additional links can be useful in future.
7649 if test "$aix_use_runtimelinking" = yes; then
7650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7651 # instead of lib<name>.a to let people know that these are not
7652 # typical AIX shared libraries.
7653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654 else
7655 # We preserve .a as extension for shared libraries through AIX4.2
7656 # and later when we are not doing run time linking.
7657 library_names_spec='${libname}${release}.a $libname.a'
7658 soname_spec='${libname}${release}${shared_ext}$major'
7659 fi
7660 shlibpath_var=LIBPATH
7661 fi
7662 ;;
7663
7664amigaos*)
7665 library_names_spec='$libname.ixlibrary $libname.a'
7666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7667 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'
7668 ;;
7669
7670beos*)
7671 library_names_spec='${libname}${shared_ext}'
7672 dynamic_linker="$host_os ld.so"
7673 shlibpath_var=LIBRARY_PATH
7674 ;;
7675
7676bsdi4*)
7677 version_type=linux
7678 need_version=no
7679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7680 soname_spec='${libname}${release}${shared_ext}$major'
7681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7682 shlibpath_var=LD_LIBRARY_PATH
7683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7685 # the default ld.so.conf also contains /usr/contrib/lib and
7686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7687 # libtool to hard-code these into programs
7688 ;;
7689
7690cygwin* | mingw* | pw32*)
7691 version_type=windows
7692 shrext_cmds=".dll"
7693 need_version=no
7694 need_lib_prefix=no
7695
7696 case $GCC,$host_os in
7697 yes,cygwin* | yes,mingw* | yes,pw32*)
7698 library_names_spec='$libname.dll.a'
7699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7700 postinstall_cmds='base_file=`basename \${file}`~
7701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7702 dldir=$destdir/`dirname \$dlpath`~
7703 test -d \$dldir || mkdir -p \$dldir~
7704 $install_prog $dir/$dlname \$dldir/$dlname'
7705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7706 dlpath=$dir/\$dldll~
7707 $rm \$dlpath'
7708 shlibpath_overrides_runpath=yes
7709
7710 case $host_os in
7711 cygwin*)
7712 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7713 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7714 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7715 ;;
7716 mingw*)
7717 # MinGW DLLs use traditional 'lib' prefix
7718 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7720 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7721 # It is most probably a Windows format PATH printed by
7722 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7723 # path with ; separators, and with drive letters. We can handle the
7724 # drive letters (cygwin fileutils understands them), so leave them,
7725 # especially as we might pass files found there to a mingw objdump,
7726 # which wouldn't understand a cygwinified path. Ahh.
7727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7728 else
7729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7730 fi
7731 ;;
7732 pw32*)
7733 # pw32 DLLs use 'pw' prefix rather than 'lib'
7734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7735 ;;
7736 esac
7737 ;;
7738
7739 *)
7740 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7741 ;;
7742 esac
7743 dynamic_linker='Win32 ld.exe'
7744 # FIXME: first we should search . and the directory the executable is in
7745 shlibpath_var=PATH
7746 ;;
7747
7748darwin* | rhapsody*)
7749 dynamic_linker="$host_os dyld"
7750 version_type=darwin
7751 need_lib_prefix=no
7752 need_version=no
7753 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7754 soname_spec='${libname}${release}${major}$shared_ext'
7755 shlibpath_overrides_runpath=yes
7756 shlibpath_var=DYLD_LIBRARY_PATH
7757 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7758 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7759 if test "$GCC" = yes; then
7760 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"`
7761 else
7762 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7763 fi
7764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7765 ;;
7766
7767dgux*)
7768 version_type=linux
7769 need_lib_prefix=no
7770 need_version=no
7771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7772 soname_spec='${libname}${release}${shared_ext}$major'
7773 shlibpath_var=LD_LIBRARY_PATH
7774 ;;
7775
7776freebsd1*)
7777 dynamic_linker=no
7778 ;;
7779
7780kfreebsd*-gnu)
7781 version_type=linux
7782 need_lib_prefix=no
7783 need_version=no
7784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7785 soname_spec='${libname}${release}${shared_ext}$major'
7786 shlibpath_var=LD_LIBRARY_PATH
7787 shlibpath_overrides_runpath=no
7788 hardcode_into_libs=yes
7789 dynamic_linker='GNU ld.so'
7790 ;;
7791
7792freebsd*)
7793 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7794 version_type=freebsd-$objformat
7795 case $version_type in
7796 freebsd-elf*)
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7798 need_version=no
7799 need_lib_prefix=no
7800 ;;
7801 freebsd-*)
7802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7803 need_version=yes
7804 ;;
7805 esac
7806 shlibpath_var=LD_LIBRARY_PATH
7807 case $host_os in
7808 freebsd2*)
7809 shlibpath_overrides_runpath=yes
7810 ;;
7811 freebsd3.01* | freebsdelf3.01*)
7812 shlibpath_overrides_runpath=yes
7813 hardcode_into_libs=yes
7814 ;;
7815 *) # from 3.2 on
7816 shlibpath_overrides_runpath=no
7817 hardcode_into_libs=yes
7818 ;;
7819 esac
7820 ;;
7821
7822gnu*)
7823 version_type=linux
7824 need_lib_prefix=no
7825 need_version=no
7826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7827 soname_spec='${libname}${release}${shared_ext}$major'
7828 shlibpath_var=LD_LIBRARY_PATH
7829 hardcode_into_libs=yes
7830 ;;
7831
7832hpux9* | hpux10* | hpux11*)
7833 # Give a soname corresponding to the major version so that dld.sl refuses to
7834 # link against other versions.
7835 version_type=sunos
7836 need_lib_prefix=no
7837 need_version=no
7838 case "$host_cpu" in
7839 ia64*)
7840 shrext_cmds='.so'
7841 hardcode_into_libs=yes
7842 dynamic_linker="$host_os dld.so"
7843 shlibpath_var=LD_LIBRARY_PATH
7844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846 soname_spec='${libname}${release}${shared_ext}$major'
7847 if test "X$HPUX_IA64_MODE" = X32; then
7848 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7849 else
7850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7851 fi
7852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7853 ;;
7854 hppa*64*)
7855 shrext_cmds='.sl'
7856 hardcode_into_libs=yes
7857 dynamic_linker="$host_os dld.sl"
7858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7861 soname_spec='${libname}${release}${shared_ext}$major'
7862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7864 ;;
7865 *)
7866 shrext_cmds='.sl'
7867 dynamic_linker="$host_os dld.sl"
7868 shlibpath_var=SHLIB_PATH
7869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871 soname_spec='${libname}${release}${shared_ext}$major'
7872 ;;
7873 esac
7874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7875 postinstall_cmds='chmod 555 $lib'
7876 ;;
7877
7878irix5* | irix6* | nonstopux*)
7879 case $host_os in
7880 nonstopux*) version_type=nonstopux ;;
7881 *)
7882 if test "$lt_cv_prog_gnu_ld" = yes; then
7883 version_type=linux
7884 else
7885 version_type=irix
7886 fi ;;
7887 esac
7888 need_lib_prefix=no
7889 need_version=no
7890 soname_spec='${libname}${release}${shared_ext}$major'
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7892 case $host_os in
7893 irix5* | nonstopux*)
7894 libsuff= shlibsuff=
7895 ;;
7896 *)
7897 case $LD in # libtool.m4 will add one of these switches to LD
7898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7899 libsuff= shlibsuff= libmagic=32-bit;;
7900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7901 libsuff=32 shlibsuff=N32 libmagic=N32;;
7902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7903 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7904 *) libsuff= shlibsuff= libmagic=never-match;;
7905 esac
7906 ;;
7907 esac
7908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7909 shlibpath_overrides_runpath=no
7910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7912 hardcode_into_libs=yes
7913 ;;
7914
7915# No shared lib support for Linux oldld, aout, or coff.
7916linux*oldld* | linux*aout* | linux*coff*)
7917 dynamic_linker=no
7918 ;;
7919
7920# This must be Linux ELF.
7921linux*)
7922 version_type=linux
7923 need_lib_prefix=no
7924 need_version=no
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7926 soname_spec='${libname}${release}${shared_ext}$major'
7927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7928 shlibpath_var=LD_LIBRARY_PATH
7929 shlibpath_overrides_runpath=no
7930 # This implies no fast_install, which is unacceptable.
7931 # Some rework will be needed to allow for fast_install
7932 # before this can be enabled.
7933 hardcode_into_libs=yes
7934
7935 # Append ld.so.conf contents to the search path
7936 if test -f /etc/ld.so.conf; then
7937 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7938 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7939 fi
7940
7941 # We used to test for /lib/ld.so.1 and disable shared libraries on
7942 # powerpc, because MkLinux only supported shared libraries with the
7943 # GNU dynamic linker. Since this was broken with cross compilers,
7944 # most powerpc-linux boxes support dynamic linking these days and
7945 # people can always --disable-shared, the test was removed, and we
7946 # assume the GNU/Linux dynamic linker is in use.
7947 dynamic_linker='GNU/Linux ld.so'
7948 ;;
7949
7950knetbsd*-gnu)
7951 version_type=linux
7952 need_lib_prefix=no
7953 need_version=no
7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7955 soname_spec='${libname}${release}${shared_ext}$major'
7956 shlibpath_var=LD_LIBRARY_PATH
7957 shlibpath_overrides_runpath=no
7958 hardcode_into_libs=yes
7959 dynamic_linker='GNU ld.so'
7960 ;;
7961
7962netbsd*)
7963 version_type=sunos
7964 need_lib_prefix=no
7965 need_version=no
7966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7969 dynamic_linker='NetBSD (a.out) ld.so'
7970 else
7971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7972 soname_spec='${libname}${release}${shared_ext}$major'
7973 dynamic_linker='NetBSD ld.elf_so'
7974 fi
7975 shlibpath_var=LD_LIBRARY_PATH
7976 shlibpath_overrides_runpath=yes
7977 hardcode_into_libs=yes
7978 ;;
7979
7980newsos6)
7981 version_type=linux
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983 shlibpath_var=LD_LIBRARY_PATH
7984 shlibpath_overrides_runpath=yes
7985 ;;
7986
7987nto-qnx*)
7988 version_type=linux
7989 need_lib_prefix=no
7990 need_version=no
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992 soname_spec='${libname}${release}${shared_ext}$major'
7993 shlibpath_var=LD_LIBRARY_PATH
7994 shlibpath_overrides_runpath=yes
7995 ;;
7996
7997openbsd*)
7998 version_type=sunos
7999 need_lib_prefix=no
8000 need_version=yes
8001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8005 case $host_os in
8006 openbsd2.[89] | openbsd2.[89].*)
8007 shlibpath_overrides_runpath=no
8008 ;;
8009 *)
8010 shlibpath_overrides_runpath=yes
8011 ;;
8012 esac
8013 else
8014 shlibpath_overrides_runpath=yes
8015 fi
8016 ;;
8017
8018os2*)
8019 libname_spec='$name'
8020 shrext_cmds=".dll"
8021 need_lib_prefix=no
8022 library_names_spec='$libname${shared_ext} $libname.a'
8023 dynamic_linker='OS/2 ld.exe'
8024 shlibpath_var=LIBPATH
8025 ;;
8026
8027osf3* | osf4* | osf5*)
8028 version_type=osf
8029 need_lib_prefix=no
8030 need_version=no
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033 shlibpath_var=LD_LIBRARY_PATH
8034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8036 ;;
8037
8038sco3.2v5*)
8039 version_type=osf
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042 shlibpath_var=LD_LIBRARY_PATH
8043 ;;
8044
8045solaris*)
8046 version_type=linux
8047 need_lib_prefix=no
8048 need_version=no
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8050 soname_spec='${libname}${release}${shared_ext}$major'
8051 shlibpath_var=LD_LIBRARY_PATH
8052 shlibpath_overrides_runpath=yes
8053 hardcode_into_libs=yes
8054 # ldd complains unless libraries are executable
8055 postinstall_cmds='chmod +x $lib'
8056 ;;
8057
8058sunos4*)
8059 version_type=sunos
8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8062 shlibpath_var=LD_LIBRARY_PATH
8063 shlibpath_overrides_runpath=yes
8064 if test "$with_gnu_ld" = yes; then
8065 need_lib_prefix=no
8066 fi
8067 need_version=yes
8068 ;;
8069
8070sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8071 version_type=linux
8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8073 soname_spec='${libname}${release}${shared_ext}$major'
8074 shlibpath_var=LD_LIBRARY_PATH
8075 case $host_vendor in
8076 sni)
8077 shlibpath_overrides_runpath=no
8078 need_lib_prefix=no
8079 export_dynamic_flag_spec='${wl}-Blargedynsym'
8080 runpath_var=LD_RUN_PATH
8081 ;;
8082 siemens)
8083 need_lib_prefix=no
8084 ;;
8085 motorola)
8086 need_lib_prefix=no
8087 need_version=no
8088 shlibpath_overrides_runpath=no
8089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8090 ;;
8091 esac
8092 ;;
8093
8094sysv4*MP*)
8095 if test -d /usr/nec ;then
8096 version_type=linux
8097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8098 soname_spec='$libname${shared_ext}.$major'
8099 shlibpath_var=LD_LIBRARY_PATH
8100 fi
8101 ;;
8102
8103uts4*)
8104 version_type=linux
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106 soname_spec='${libname}${release}${shared_ext}$major'
8107 shlibpath_var=LD_LIBRARY_PATH
8108 ;;
8109
8110*)
8111 dynamic_linker=no
8112 ;;
8113esac
8114echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8115echo "${ECHO_T}$dynamic_linker" >&6
8116test "$dynamic_linker" = no && can_build_shared=no
8117
8118echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8119echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8120hardcode_action=
8121if test -n "$hardcode_libdir_flag_spec" || \
8122 test -n "$runpath_var " || \
8123 test "X$hardcode_automatic"="Xyes" ; then
8124
8125 # We can hardcode non-existant directories.
8126 if test "$hardcode_direct" != no &&
8127 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8128 # have to relink, otherwise we might link with an installed library
8129 # when we should be linking with a yet-to-be-installed one
8130 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8131 test "$hardcode_minus_L" != no; then
8132 # Linking always hardcodes the temporary library directory.
8133 hardcode_action=relink
8134 else
8135 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8136 hardcode_action=immediate
8137 fi
8138else
8139 # We cannot hardcode anything, or else we can only hardcode existing
8140 # directories.
8141 hardcode_action=unsupported
8142fi
8143echo "$as_me:$LINENO: result: $hardcode_action" >&5
8144echo "${ECHO_T}$hardcode_action" >&6
8145
8146if test "$hardcode_action" = relink; then
8147 # Fast installation is not supported
8148 enable_fast_install=no
8149elif test "$shlibpath_overrides_runpath" = yes ||
8150 test "$enable_shared" = no; then
8151 # Fast installation is not necessary
8152 enable_fast_install=needless
8153fi
8154
8155striplib=
8156old_striplib=
8157echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8158echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8159if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8160 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8161 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8162 echo "$as_me:$LINENO: result: yes" >&5
8163echo "${ECHO_T}yes" >&6
8164else
8165# FIXME - insert some real tests, host_os isn't really good enough
8166 case $host_os in
8167 darwin*)
8168 if test -n "$STRIP" ; then
8169 striplib="$STRIP -x"
8170 echo "$as_me:$LINENO: result: yes" >&5
8171echo "${ECHO_T}yes" >&6
8172 else
8173 echo "$as_me:$LINENO: result: no" >&5
8174echo "${ECHO_T}no" >&6
8175fi
8176 ;;
8177 *)
8178 echo "$as_me:$LINENO: result: no" >&5
8179echo "${ECHO_T}no" >&6
8180 ;;
8181 esac
8182fi
8183
8184if test "x$enable_dlopen" != xyes; then
8185 enable_dlopen=unknown
8186 enable_dlopen_self=unknown
8187 enable_dlopen_self_static=unknown
8188else
8189 lt_cv_dlopen=no
8190 lt_cv_dlopen_libs=
8191
8192 case $host_os in
8193 beos*)
8194 lt_cv_dlopen="load_add_on"
8195 lt_cv_dlopen_libs=
8196 lt_cv_dlopen_self=yes
8197 ;;
8198
8199 mingw* | pw32*)
8200 lt_cv_dlopen="LoadLibrary"
8201 lt_cv_dlopen_libs=
8202 ;;
8203
8204 cygwin*)
8205 lt_cv_dlopen="dlopen"
8206 lt_cv_dlopen_libs=
8207 ;;
8208
8209 darwin*)
8210 # if libdl is installed we need to link against it
8211 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8212echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8213if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215else
8216 ac_check_lib_save_LIBS=$LIBS
8217LIBS="-ldl $LIBS"
8218cat >conftest.$ac_ext <<_ACEOF
8219/* confdefs.h. */
8220_ACEOF
8221cat confdefs.h >>conftest.$ac_ext
8222cat >>conftest.$ac_ext <<_ACEOF
8223/* end confdefs.h. */
8224
8225/* Override any gcc2 internal prototype to avoid an error. */
8226#ifdef __cplusplus
8227extern "C"
8228#endif
8229/* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8231char dlopen ();
8232int
8233main ()
8234{
8235dlopen ();
8236 ;
8237 return 0;
8238}
8239_ACEOF
8240rm -f conftest.$ac_objext conftest$ac_exeext
8241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>conftest.er1
8243 ac_status=$?
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -z "$ac_c_werror_flag"
8250 || test ! -s conftest.err'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 ac_cv_lib_dl_dlopen=yes
8263else
8264 echo "$as_me: failed program was:" >&5
8265sed 's/^/| /' conftest.$ac_ext >&5
8266
8267ac_cv_lib_dl_dlopen=no
8268fi
8269rm -f conftest.err conftest.$ac_objext \
8270 conftest$ac_exeext conftest.$ac_ext
8271LIBS=$ac_check_lib_save_LIBS
8272fi
8273echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8274echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8275if test $ac_cv_lib_dl_dlopen = yes; then
8276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8277else
8278
8279 lt_cv_dlopen="dyld"
8280 lt_cv_dlopen_libs=
8281 lt_cv_dlopen_self=yes
8282
8283fi
8284
8285 ;;
8286
8287 *)
8288 echo "$as_me:$LINENO: checking for shl_load" >&5
8289echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8290if test "${ac_cv_func_shl_load+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292else
8293 cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h. */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h. */
8299/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8301#define shl_load innocuous_shl_load
8302
8303/* System header to define __stub macros and hopefully few prototypes,
8304 which can conflict with char shl_load (); below.
8305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8306 <limits.h> exists even on freestanding compilers. */
8307
8308#ifdef __STDC__
8309# include <limits.h>
8310#else
8311# include <assert.h>
8312#endif
8313
8314#undef shl_load
8315
8316/* Override any gcc2 internal prototype to avoid an error. */
8317#ifdef __cplusplus
8318extern "C"
8319{
8320#endif
8321/* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8323char shl_load ();
8324/* The GNU C library defines this for functions which it implements
8325 to always fail with ENOSYS. Some functions are actually named
8326 something starting with __ and the normal name is an alias. */
8327#if defined (__stub_shl_load) || defined (__stub___shl_load)
8328choke me
8329#else
8330char (*f) () = shl_load;
8331#endif
8332#ifdef __cplusplus
8333}
8334#endif
8335
8336int
8337main ()
8338{
8339return f != shl_load;
8340 ;
8341 return 0;
8342}
8343_ACEOF
8344rm -f conftest.$ac_objext conftest$ac_exeext
8345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>conftest.er1
8347 ac_status=$?
8348 grep -v '^ *+' conftest.er1 >conftest.err
8349 rm -f conftest.er1
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -z "$ac_c_werror_flag"
8354 || test ! -s conftest.err'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 (eval $ac_try) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 ac_cv_func_shl_load=yes
8367else
8368 echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371ac_cv_func_shl_load=no
8372fi
8373rm -f conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375fi
8376echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8377echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8378if test $ac_cv_func_shl_load = yes; then
8379 lt_cv_dlopen="shl_load"
8380else
8381 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8382echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8383if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386 ac_check_lib_save_LIBS=$LIBS
8387LIBS="-ldld $LIBS"
8388cat >conftest.$ac_ext <<_ACEOF
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
8394
8395/* Override any gcc2 internal prototype to avoid an error. */
8396#ifdef __cplusplus
8397extern "C"
8398#endif
8399/* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8401char shl_load ();
8402int
8403main ()
8404{
8405shl_load ();
8406 ;
8407 return 0;
8408}
8409_ACEOF
8410rm -f conftest.$ac_objext conftest$ac_exeext
8411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412 (eval $ac_link) 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -z "$ac_c_werror_flag"
8420 || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_lib_dld_shl_load=yes
8433else
8434 echo "$as_me: failed program was:" >&5
8435sed 's/^/| /' conftest.$ac_ext >&5
8436
8437ac_cv_lib_dld_shl_load=no
8438fi
8439rm -f conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441LIBS=$ac_check_lib_save_LIBS
8442fi
8443echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8444echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8445if test $ac_cv_lib_dld_shl_load = yes; then
8446 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8447else
8448 echo "$as_me:$LINENO: checking for dlopen" >&5
8449echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8450if test "${ac_cv_func_dlopen+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453 cat >conftest.$ac_ext <<_ACEOF
8454/* confdefs.h. */
8455_ACEOF
8456cat confdefs.h >>conftest.$ac_ext
8457cat >>conftest.$ac_ext <<_ACEOF
8458/* end confdefs.h. */
8459/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8461#define dlopen innocuous_dlopen
8462
8463/* System header to define __stub macros and hopefully few prototypes,
8464 which can conflict with char dlopen (); below.
8465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8466 <limits.h> exists even on freestanding compilers. */
8467
8468#ifdef __STDC__
8469# include <limits.h>
8470#else
8471# include <assert.h>
8472#endif
8473
8474#undef dlopen
8475
8476/* Override any gcc2 internal prototype to avoid an error. */
8477#ifdef __cplusplus
8478extern "C"
8479{
8480#endif
8481/* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8483char dlopen ();
8484/* The GNU C library defines this for functions which it implements
8485 to always fail with ENOSYS. Some functions are actually named
8486 something starting with __ and the normal name is an alias. */
8487#if defined (__stub_dlopen) || defined (__stub___dlopen)
8488choke me
8489#else
8490char (*f) () = dlopen;
8491#endif
8492#ifdef __cplusplus
8493}
8494#endif
8495
8496int
8497main ()
8498{
8499return f != dlopen;
8500 ;
8501 return 0;
8502}
8503_ACEOF
8504rm -f conftest.$ac_objext conftest$ac_exeext
8505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag"
8514 || test ! -s conftest.err'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_func_dlopen=yes
8527else
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531ac_cv_func_dlopen=no
8532fi
8533rm -f conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535fi
8536echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8537echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8538if test $ac_cv_func_dlopen = yes; then
8539 lt_cv_dlopen="dlopen"
8540else
8541 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8542echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8543if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545else
8546 ac_check_lib_save_LIBS=$LIBS
8547LIBS="-ldl $LIBS"
8548cat >conftest.$ac_ext <<_ACEOF
8549/* confdefs.h. */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h. */
8554
8555/* Override any gcc2 internal prototype to avoid an error. */
8556#ifdef __cplusplus
8557extern "C"
8558#endif
8559/* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8561char dlopen ();
8562int
8563main ()
8564{
8565dlopen ();
8566 ;
8567 return 0;
8568}
8569_ACEOF
8570rm -f conftest.$ac_objext conftest$ac_exeext
8571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572 (eval $ac_link) 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -z "$ac_c_werror_flag"
8580 || test ! -s conftest.err'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest$ac_exeext'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 ac_cv_lib_dl_dlopen=yes
8593else
8594 echo "$as_me: failed program was:" >&5
8595sed 's/^/| /' conftest.$ac_ext >&5
8596
8597ac_cv_lib_dl_dlopen=no
8598fi
8599rm -f conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8601LIBS=$ac_check_lib_save_LIBS
8602fi
8603echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8604echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8605if test $ac_cv_lib_dl_dlopen = yes; then
8606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8607else
8608 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8609echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8610if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else
8613 ac_check_lib_save_LIBS=$LIBS
8614LIBS="-lsvld $LIBS"
8615cat >conftest.$ac_ext <<_ACEOF
8616/* confdefs.h. */
8617_ACEOF
8618cat confdefs.h >>conftest.$ac_ext
8619cat >>conftest.$ac_ext <<_ACEOF
8620/* end confdefs.h. */
8621
8622/* Override any gcc2 internal prototype to avoid an error. */
8623#ifdef __cplusplus
8624extern "C"
8625#endif
8626/* We use char because int might match the return type of a gcc2
8627 builtin and then its argument prototype would still apply. */
8628char dlopen ();
8629int
8630main ()
8631{
8632dlopen ();
8633 ;
8634 return 0;
8635}
8636_ACEOF
8637rm -f conftest.$ac_objext conftest$ac_exeext
8638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag"
8647 || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_lib_svld_dlopen=yes
8660else
8661 echo "$as_me: failed program was:" >&5
8662sed 's/^/| /' conftest.$ac_ext >&5
8663
8664ac_cv_lib_svld_dlopen=no
8665fi
8666rm -f conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext conftest.$ac_ext
8668LIBS=$ac_check_lib_save_LIBS
8669fi
8670echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8671echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8672if test $ac_cv_lib_svld_dlopen = yes; then
8673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8674else
8675 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8676echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8677if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680 ac_check_lib_save_LIBS=$LIBS
8681LIBS="-ldld $LIBS"
8682cat >conftest.$ac_ext <<_ACEOF
8683/* confdefs.h. */
8684_ACEOF
8685cat confdefs.h >>conftest.$ac_ext
8686cat >>conftest.$ac_ext <<_ACEOF
8687/* end confdefs.h. */
8688
8689/* Override any gcc2 internal prototype to avoid an error. */
8690#ifdef __cplusplus
8691extern "C"
8692#endif
8693/* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695char dld_link ();
8696int
8697main ()
8698{
8699dld_link ();
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704rm -f conftest.$ac_objext conftest$ac_exeext
8705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_lib_dld_dld_link=yes
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
8731ac_cv_lib_dld_dld_link=no
8732fi
8733rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735LIBS=$ac_check_lib_save_LIBS
8736fi
8737echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8738echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8739if test $ac_cv_lib_dld_dld_link = yes; then
8740 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8741fi
8742
8743
8744fi
8745
8746
8747fi
8748
8749
8750fi
8751
8752
8753fi
8754
8755
8756fi
8757
8758 ;;
8759 esac
8760
8761 if test "x$lt_cv_dlopen" != xno; then
8762 enable_dlopen=yes
8763 else
8764 enable_dlopen=no
8765 fi
8766
8767 case $lt_cv_dlopen in
8768 dlopen)
8769 save_CPPFLAGS="$CPPFLAGS"
8770 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8771
8772 save_LDFLAGS="$LDFLAGS"
8773 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8774
8775 save_LIBS="$LIBS"
8776 LIBS="$lt_cv_dlopen_libs $LIBS"
8777
8778 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8779echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8780if test "${lt_cv_dlopen_self+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782else
8783 if test "$cross_compiling" = yes; then :
8784 lt_cv_dlopen_self=cross
8785else
8786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8787 lt_status=$lt_dlunknown
8788 cat > conftest.$ac_ext <<EOF
vlm1fcf7592006-08-18 02:27:55 +00008789#line 8789 "configure"
vlm8f3eb992004-06-17 23:42:48 +00008790#include "confdefs.h"
8791
8792#if HAVE_DLFCN_H
8793#include <dlfcn.h>
8794#endif
8795
8796#include <stdio.h>
8797
8798#ifdef RTLD_GLOBAL
8799# define LT_DLGLOBAL RTLD_GLOBAL
8800#else
8801# ifdef DL_GLOBAL
8802# define LT_DLGLOBAL DL_GLOBAL
8803# else
8804# define LT_DLGLOBAL 0
8805# endif
8806#endif
8807
8808/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8809 find out it does not work in some platform. */
8810#ifndef LT_DLLAZY_OR_NOW
8811# ifdef RTLD_LAZY
8812# define LT_DLLAZY_OR_NOW RTLD_LAZY
8813# else
8814# ifdef DL_LAZY
8815# define LT_DLLAZY_OR_NOW DL_LAZY
8816# else
8817# ifdef RTLD_NOW
8818# define LT_DLLAZY_OR_NOW RTLD_NOW
8819# else
8820# ifdef DL_NOW
8821# define LT_DLLAZY_OR_NOW DL_NOW
8822# else
8823# define LT_DLLAZY_OR_NOW 0
8824# endif
8825# endif
8826# endif
8827# endif
8828#endif
8829
8830#ifdef __cplusplus
8831extern "C" void exit (int);
8832#endif
8833
8834void fnord() { int i=42;}
8835int main ()
8836{
8837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8838 int status = $lt_dlunknown;
8839
8840 if (self)
8841 {
8842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8843 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8844 /* dlclose (self); */
8845 }
8846
8847 exit (status);
8848}
8849EOF
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8855 (./conftest; exit; ) 2>/dev/null
8856 lt_status=$?
8857 case x$lt_status in
8858 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8859 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8860 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8861 esac
8862 else :
8863 # compilation failed
8864 lt_cv_dlopen_self=no
8865 fi
8866fi
8867rm -fr conftest*
8868
8869
8870fi
8871echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8872echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8873
8874 if test "x$lt_cv_dlopen_self" = xyes; then
8875 LDFLAGS="$LDFLAGS $link_static_flag"
8876 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8877echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8878if test "${lt_cv_dlopen_self_static+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880else
8881 if test "$cross_compiling" = yes; then :
8882 lt_cv_dlopen_self_static=cross
8883else
8884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8885 lt_status=$lt_dlunknown
8886 cat > conftest.$ac_ext <<EOF
vlm1fcf7592006-08-18 02:27:55 +00008887#line 8887 "configure"
vlm8f3eb992004-06-17 23:42:48 +00008888#include "confdefs.h"
8889
8890#if HAVE_DLFCN_H
8891#include <dlfcn.h>
8892#endif
8893
8894#include <stdio.h>
8895
8896#ifdef RTLD_GLOBAL
8897# define LT_DLGLOBAL RTLD_GLOBAL
8898#else
8899# ifdef DL_GLOBAL
8900# define LT_DLGLOBAL DL_GLOBAL
8901# else
8902# define LT_DLGLOBAL 0
8903# endif
8904#endif
8905
8906/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8907 find out it does not work in some platform. */
8908#ifndef LT_DLLAZY_OR_NOW
8909# ifdef RTLD_LAZY
8910# define LT_DLLAZY_OR_NOW RTLD_LAZY
8911# else
8912# ifdef DL_LAZY
8913# define LT_DLLAZY_OR_NOW DL_LAZY
8914# else
8915# ifdef RTLD_NOW
8916# define LT_DLLAZY_OR_NOW RTLD_NOW
8917# else
8918# ifdef DL_NOW
8919# define LT_DLLAZY_OR_NOW DL_NOW
8920# else
8921# define LT_DLLAZY_OR_NOW 0
8922# endif
8923# endif
8924# endif
8925# endif
8926#endif
8927
8928#ifdef __cplusplus
8929extern "C" void exit (int);
8930#endif
8931
8932void fnord() { int i=42;}
8933int main ()
8934{
8935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8936 int status = $lt_dlunknown;
8937
8938 if (self)
8939 {
8940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8941 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8942 /* dlclose (self); */
8943 }
8944
8945 exit (status);
8946}
8947EOF
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8953 (./conftest; exit; ) 2>/dev/null
8954 lt_status=$?
8955 case x$lt_status in
8956 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8957 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8958 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8959 esac
8960 else :
8961 # compilation failed
8962 lt_cv_dlopen_self_static=no
8963 fi
8964fi
8965rm -fr conftest*
8966
8967
8968fi
8969echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8970echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8971 fi
8972
8973 CPPFLAGS="$save_CPPFLAGS"
8974 LDFLAGS="$save_LDFLAGS"
8975 LIBS="$save_LIBS"
8976 ;;
8977 esac
8978
8979 case $lt_cv_dlopen_self in
8980 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8981 *) enable_dlopen_self=unknown ;;
8982 esac
8983
8984 case $lt_cv_dlopen_self_static in
8985 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8986 *) enable_dlopen_self_static=unknown ;;
8987 esac
8988fi
8989
8990
8991# Report which librarie types wil actually be built
8992echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8993echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8994echo "$as_me:$LINENO: result: $can_build_shared" >&5
8995echo "${ECHO_T}$can_build_shared" >&6
8996
8997echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8998echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8999test "$can_build_shared" = "no" && enable_shared=no
9000
9001# On AIX, shared libraries and static libraries use the same namespace, and
9002# are all built from PIC.
9003case "$host_os" in
9004aix3*)
9005 test "$enable_shared" = yes && enable_static=no
9006 if test -n "$RANLIB"; then
9007 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9008 postinstall_cmds='$RANLIB $lib'
9009 fi
9010 ;;
9011
9012aix4* | aix5*)
9013 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9014 test "$enable_shared" = yes && enable_static=no
9015 fi
9016 ;;
9017 darwin* | rhapsody*)
9018 if test "$GCC" = yes; then
9019 archive_cmds_need_lc=no
9020 case "$host_os" in
9021 rhapsody* | darwin1.[012])
9022 allow_undefined_flag='-undefined suppress'
9023 ;;
9024 *) # Darwin 1.3 on
9025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9026 allow_undefined_flag='-flat_namespace -undefined suppress'
9027 else
9028 case ${MACOSX_DEPLOYMENT_TARGET} in
9029 10.[012])
9030 allow_undefined_flag='-flat_namespace -undefined suppress'
9031 ;;
9032 10.*)
9033 allow_undefined_flag='-undefined dynamic_lookup'
9034 ;;
9035 esac
9036 fi
9037 ;;
9038 esac
9039 output_verbose_link_cmd='echo'
9040 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9041 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9043 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}'
9044 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}'
9045 hardcode_direct=no
9046 hardcode_automatic=yes
9047 hardcode_shlibpath_var=unsupported
9048 whole_archive_flag_spec='-all_load $convenience'
9049 link_all_deplibs=yes
9050 else
9051 ld_shlibs=no
9052 fi
9053 ;;
9054esac
9055echo "$as_me:$LINENO: result: $enable_shared" >&5
9056echo "${ECHO_T}$enable_shared" >&6
9057
9058echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9059echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9060# Make sure either enable_shared or enable_static is yes.
9061test "$enable_shared" = yes || enable_static=yes
9062echo "$as_me:$LINENO: result: $enable_static" >&5
9063echo "${ECHO_T}$enable_static" >&6
9064
9065# The else clause should only fire when bootstrapping the
9066# libtool distribution, otherwise you forgot to ship ltmain.sh
9067# with your package, and you will get complaints that there are
9068# no rules to generate ltmain.sh.
9069if test -f "$ltmain"; then
9070 # See if we are running on zsh, and set the options which allow our commands through
9071 # without removal of \ escapes.
9072 if test -n "${ZSH_VERSION+set}" ; then
9073 setopt NO_GLOB_SUBST
9074 fi
9075 # Now quote all the things that may contain metacharacters while being
9076 # careful not to overquote the AC_SUBSTed values. We take copies of the
9077 # variables and quote the copies for generation of the libtool script.
9078 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9079 SED SHELL STRIP \
9080 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9081 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9082 deplibs_check_method reload_flag reload_cmds need_locks \
9083 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9084 lt_cv_sys_global_symbol_to_c_name_address \
9085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9086 old_postinstall_cmds old_postuninstall_cmds \
9087 compiler \
9088 CC \
9089 LD \
9090 lt_prog_compiler_wl \
9091 lt_prog_compiler_pic \
9092 lt_prog_compiler_static \
9093 lt_prog_compiler_no_builtin_flag \
9094 export_dynamic_flag_spec \
9095 thread_safe_flag_spec \
9096 whole_archive_flag_spec \
9097 enable_shared_with_static_runtimes \
9098 old_archive_cmds \
9099 old_archive_from_new_cmds \
9100 predep_objects \
9101 postdep_objects \
9102 predeps \
9103 postdeps \
9104 compiler_lib_search_path \
9105 archive_cmds \
9106 archive_expsym_cmds \
9107 postinstall_cmds \
9108 postuninstall_cmds \
9109 old_archive_from_expsyms_cmds \
9110 allow_undefined_flag \
9111 no_undefined_flag \
9112 export_symbols_cmds \
9113 hardcode_libdir_flag_spec \
9114 hardcode_libdir_flag_spec_ld \
9115 hardcode_libdir_separator \
9116 hardcode_automatic \
9117 module_cmds \
9118 module_expsym_cmds \
9119 lt_cv_prog_compiler_c_o \
9120 exclude_expsyms \
9121 include_expsyms; do
9122
9123 case $var in
9124 old_archive_cmds | \
9125 old_archive_from_new_cmds | \
9126 archive_cmds | \
9127 archive_expsym_cmds | \
9128 module_cmds | \
9129 module_expsym_cmds | \
9130 old_archive_from_expsyms_cmds | \
9131 export_symbols_cmds | \
9132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9133 postinstall_cmds | postuninstall_cmds | \
9134 old_postinstall_cmds | old_postuninstall_cmds | \
9135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9136 # Double-quote double-evaled strings.
9137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9138 ;;
9139 *)
9140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9141 ;;
9142 esac
9143 done
9144
9145 case $lt_echo in
9146 *'\$0 --fallback-echo"')
9147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9148 ;;
9149 esac
9150
9151cfgfile="${ofile}T"
9152 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9153 $rm -f "$cfgfile"
9154 { echo "$as_me:$LINENO: creating $ofile" >&5
9155echo "$as_me: creating $ofile" >&6;}
9156
9157 cat <<__EOF__ >> "$cfgfile"
9158#! $SHELL
9159
9160# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9161# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9162# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9163#
9164# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9165# Free Software Foundation, Inc.
9166#
9167# This file is part of GNU Libtool:
9168# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9169#
9170# This program is free software; you can redistribute it and/or modify
9171# it under the terms of the GNU General Public License as published by
9172# the Free Software Foundation; either version 2 of the License, or
9173# (at your option) any later version.
9174#
9175# This program is distributed in the hope that it will be useful, but
9176# WITHOUT ANY WARRANTY; without even the implied warranty of
9177# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9178# General Public License for more details.
9179#
9180# You should have received a copy of the GNU General Public License
9181# along with this program; if not, write to the Free Software
9182# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9183#
9184# As a special exception to the GNU General Public License, if you
9185# distribute this file as part of a program that contains a
9186# configuration script generated by Autoconf, you may include it under
9187# the same distribution terms that you use for the rest of that program.
9188
9189# A sed program that does not truncate output.
9190SED=$lt_SED
9191
9192# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9193Xsed="$SED -e s/^X//"
9194
9195# The HP-UX ksh and POSIX shell print the target directory to stdout
9196# if CDPATH is set.
9197if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9198
9199# The names of the tagged configurations supported by this script.
9200available_tags=
9201
9202# ### BEGIN LIBTOOL CONFIG
9203
9204# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9205
9206# Shell to use when invoking shell scripts.
9207SHELL=$lt_SHELL
9208
9209# Whether or not to build shared libraries.
9210build_libtool_libs=$enable_shared
9211
9212# Whether or not to build static libraries.
9213build_old_libs=$enable_static
9214
9215# Whether or not to add -lc for building shared libraries.
9216build_libtool_need_lc=$archive_cmds_need_lc
9217
9218# Whether or not to disallow shared libs when runtime libs are static
9219allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9220
9221# Whether or not to optimize for fast installation.
9222fast_install=$enable_fast_install
9223
9224# The host system.
9225host_alias=$host_alias
9226host=$host
9227
9228# An echo program that does not interpret backslashes.
9229echo=$lt_echo
9230
9231# The archiver.
9232AR=$lt_AR
9233AR_FLAGS=$lt_AR_FLAGS
9234
9235# A C compiler.
9236LTCC=$lt_LTCC
9237
9238# A language-specific compiler.
9239CC=$lt_compiler
9240
9241# Is the compiler the GNU C compiler?
9242with_gcc=$GCC
9243
9244# An ERE matcher.
9245EGREP=$lt_EGREP
9246
9247# The linker used to build libraries.
9248LD=$lt_LD
9249
9250# Whether we need hard or soft links.
9251LN_S=$lt_LN_S
9252
9253# A BSD-compatible nm program.
9254NM=$lt_NM
9255
9256# A symbol stripping program
9257STRIP=$lt_STRIP
9258
9259# Used to examine libraries when file_magic_cmd begins "file"
9260MAGIC_CMD=$MAGIC_CMD
9261
9262# Used on cygwin: DLL creation program.
9263DLLTOOL="$DLLTOOL"
9264
9265# Used on cygwin: object dumper.
9266OBJDUMP="$OBJDUMP"
9267
9268# Used on cygwin: assembler.
9269AS="$AS"
9270
9271# The name of the directory that contains temporary libtool files.
9272objdir=$objdir
9273
9274# How to create reloadable object files.
9275reload_flag=$lt_reload_flag
9276reload_cmds=$lt_reload_cmds
9277
9278# How to pass a linker flag through the compiler.
9279wl=$lt_lt_prog_compiler_wl
9280
9281# Object file suffix (normally "o").
9282objext="$ac_objext"
9283
9284# Old archive suffix (normally "a").
9285libext="$libext"
9286
9287# Shared library suffix (normally ".so").
9288shrext_cmds='$shrext_cmds'
9289
9290# Executable file suffix (normally "").
9291exeext="$exeext"
9292
9293# Additional compiler flags for building library objects.
9294pic_flag=$lt_lt_prog_compiler_pic
9295pic_mode=$pic_mode
9296
9297# What is the maximum length of a command?
9298max_cmd_len=$lt_cv_sys_max_cmd_len
9299
9300# Does compiler simultaneously support -c and -o options?
9301compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9302
9303# Must we lock files when doing compilation ?
9304need_locks=$lt_need_locks
9305
9306# Do we need the lib prefix for modules?
9307need_lib_prefix=$need_lib_prefix
9308
9309# Do we need a version for libraries?
9310need_version=$need_version
9311
9312# Whether dlopen is supported.
9313dlopen_support=$enable_dlopen
9314
9315# Whether dlopen of programs is supported.
9316dlopen_self=$enable_dlopen_self
9317
9318# Whether dlopen of statically linked programs is supported.
9319dlopen_self_static=$enable_dlopen_self_static
9320
9321# Compiler flag to prevent dynamic linking.
9322link_static_flag=$lt_lt_prog_compiler_static
9323
9324# Compiler flag to turn off builtin functions.
9325no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9326
9327# Compiler flag to allow reflexive dlopens.
9328export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9329
9330# Compiler flag to generate shared objects directly from archives.
9331whole_archive_flag_spec=$lt_whole_archive_flag_spec
9332
9333# Compiler flag to generate thread-safe objects.
9334thread_safe_flag_spec=$lt_thread_safe_flag_spec
9335
9336# Library versioning type.
9337version_type=$version_type
9338
9339# Format of library name prefix.
9340libname_spec=$lt_libname_spec
9341
9342# List of archive names. First name is the real one, the rest are links.
9343# The last name is the one that the linker finds with -lNAME.
9344library_names_spec=$lt_library_names_spec
9345
9346# The coded name of the library, if different from the real name.
9347soname_spec=$lt_soname_spec
9348
9349# Commands used to build and install an old-style archive.
9350RANLIB=$lt_RANLIB
9351old_archive_cmds=$lt_old_archive_cmds
9352old_postinstall_cmds=$lt_old_postinstall_cmds
9353old_postuninstall_cmds=$lt_old_postuninstall_cmds
9354
9355# Create an old-style archive from a shared archive.
9356old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9357
9358# Create a temporary old-style archive to link instead of a shared archive.
9359old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9360
9361# Commands used to build and install a shared archive.
9362archive_cmds=$lt_archive_cmds
9363archive_expsym_cmds=$lt_archive_expsym_cmds
9364postinstall_cmds=$lt_postinstall_cmds
9365postuninstall_cmds=$lt_postuninstall_cmds
9366
9367# Commands used to build a loadable module (assumed same as above if empty)
9368module_cmds=$lt_module_cmds
9369module_expsym_cmds=$lt_module_expsym_cmds
9370
9371# Commands to strip libraries.
9372old_striplib=$lt_old_striplib
9373striplib=$lt_striplib
9374
9375# Dependencies to place before the objects being linked to create a
9376# shared library.
9377predep_objects=$lt_predep_objects
9378
9379# Dependencies to place after the objects being linked to create a
9380# shared library.
9381postdep_objects=$lt_postdep_objects
9382
9383# Dependencies to place before the objects being linked to create a
9384# shared library.
9385predeps=$lt_predeps
9386
9387# Dependencies to place after the objects being linked to create a
9388# shared library.
9389postdeps=$lt_postdeps
9390
9391# The library search path used internally by the compiler when linking
9392# a shared library.
9393compiler_lib_search_path=$lt_compiler_lib_search_path
9394
9395# Method to check whether dependent libraries are shared objects.
9396deplibs_check_method=$lt_deplibs_check_method
9397
9398# Command to use when deplibs_check_method == file_magic.
9399file_magic_cmd=$lt_file_magic_cmd
9400
9401# Flag that allows shared libraries with undefined symbols to be built.
9402allow_undefined_flag=$lt_allow_undefined_flag
9403
9404# Flag that forces no undefined symbols.
9405no_undefined_flag=$lt_no_undefined_flag
9406
9407# Commands used to finish a libtool library installation in a directory.
9408finish_cmds=$lt_finish_cmds
9409
9410# Same as above, but a single script fragment to be evaled but not shown.
9411finish_eval=$lt_finish_eval
9412
9413# Take the output of nm and produce a listing of raw symbols and C names.
9414global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9415
9416# Transform the output of nm in a proper C declaration
9417global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9418
9419# Transform the output of nm in a C name address pair
9420global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9421
9422# This is the shared library runtime path variable.
9423runpath_var=$runpath_var
9424
9425# This is the shared library path variable.
9426shlibpath_var=$shlibpath_var
9427
9428# Is shlibpath searched before the hard-coded library search path?
9429shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9430
9431# How to hardcode a shared library path into an executable.
9432hardcode_action=$hardcode_action
9433
9434# Whether we should hardcode library paths into libraries.
9435hardcode_into_libs=$hardcode_into_libs
9436
9437# Flag to hardcode \$libdir into a binary during linking.
9438# This must work even if \$libdir does not exist.
9439hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9440
9441# If ld is used when linking, flag to hardcode \$libdir into
9442# a binary during linking. This must work even if \$libdir does
9443# not exist.
9444hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9445
9446# Whether we need a single -rpath flag with a separated argument.
9447hardcode_libdir_separator=$lt_hardcode_libdir_separator
9448
9449# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9450# resulting binary.
9451hardcode_direct=$hardcode_direct
9452
9453# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9454# resulting binary.
9455hardcode_minus_L=$hardcode_minus_L
9456
9457# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9458# the resulting binary.
9459hardcode_shlibpath_var=$hardcode_shlibpath_var
9460
9461# Set to yes if building a shared library automatically hardcodes DIR into the library
9462# and all subsequent libraries and executables linked against it.
9463hardcode_automatic=$hardcode_automatic
9464
9465# Variables whose values should be saved in libtool wrapper scripts and
9466# restored at relink time.
9467variables_saved_for_relink="$variables_saved_for_relink"
9468
9469# Whether libtool must link a program against all its dependency libraries.
9470link_all_deplibs=$link_all_deplibs
9471
9472# Compile-time system search path for libraries
9473sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9474
9475# Run-time system search path for libraries
9476sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9477
9478# Fix the shell variable \$srcfile for the compiler.
9479fix_srcfile_path="$fix_srcfile_path"
9480
9481# Set to yes if exported symbols are required.
9482always_export_symbols=$always_export_symbols
9483
9484# The commands to list exported symbols.
9485export_symbols_cmds=$lt_export_symbols_cmds
9486
9487# The commands to extract the exported symbol list from a shared archive.
9488extract_expsyms_cmds=$lt_extract_expsyms_cmds
9489
9490# Symbols that should not be listed in the preloaded symbols.
9491exclude_expsyms=$lt_exclude_expsyms
9492
9493# Symbols that must always be exported.
9494include_expsyms=$lt_include_expsyms
9495
9496# ### END LIBTOOL CONFIG
9497
9498__EOF__
9499
9500
9501 case $host_os in
9502 aix3*)
9503 cat <<\EOF >> "$cfgfile"
9504
9505# AIX sometimes has problems with the GCC collect2 program. For some
9506# reason, if we set the COLLECT_NAMES environment variable, the problems
9507# vanish in a puff of smoke.
9508if test "X${COLLECT_NAMES+set}" != Xset; then
9509 COLLECT_NAMES=
9510 export COLLECT_NAMES
9511fi
9512EOF
9513 ;;
9514 esac
9515
9516 # We use sed instead of cat because bash on DJGPP gets confused if
9517 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9518 # text mode, it properly converts lines to CR/LF. This bash problem
9519 # is reportedly fixed, but why not run on old versions too?
9520 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9521
9522 mv -f "$cfgfile" "$ofile" || \
9523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9524 chmod +x "$ofile"
9525
9526else
9527 # If there is no Makefile yet, we rely on a make rule to execute
9528 # `config.status --recheck' to rerun these tests and create the
9529 # libtool script then.
9530 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9531 if test -f "$ltmain_in"; then
9532 test -f Makefile && make "$ltmain"
9533 fi
9534fi
9535
9536
9537ac_ext=c
9538ac_cpp='$CPP $CPPFLAGS'
9539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542
9543CC="$lt_save_CC"
9544
9545
9546# Check whether --with-tags or --without-tags was given.
9547if test "${with_tags+set}" = set; then
9548 withval="$with_tags"
9549 tagnames="$withval"
9550fi;
9551
9552if test -f "$ltmain" && test -n "$tagnames"; then
9553 if test ! -f "${ofile}"; then
9554 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9555echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9556 fi
9557
9558 if test -z "$LTCC"; then
9559 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9560 if test -z "$LTCC"; then
9561 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9562echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9563 else
9564 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9565echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9566 fi
9567 fi
9568
9569 # Extract list of available tagged configurations in $ofile.
9570 # Note that this assumes the entire list is on one line.
9571 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9572
9573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9574 for tagname in $tagnames; do
9575 IFS="$lt_save_ifs"
9576 # Check whether tagname contains only valid characters
9577 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9578 "") ;;
9579 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9580echo "$as_me: error: invalid tag name: $tagname" >&2;}
9581 { (exit 1); exit 1; }; }
9582 ;;
9583 esac
9584
9585 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9586 then
9587 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9588echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9589 { (exit 1); exit 1; }; }
9590 fi
9591
9592 # Update the list of available tags.
9593 if test -n "$tagname"; then
9594 echo appending configuration tag \"$tagname\" to $ofile
9595
9596 case $tagname in
9597 CXX)
9598 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9599 ac_ext=cc
9600ac_cpp='$CXXCPP $CPPFLAGS'
9601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9604
9605
9606
9607
9608archive_cmds_need_lc_CXX=no
9609allow_undefined_flag_CXX=
9610always_export_symbols_CXX=no
9611archive_expsym_cmds_CXX=
9612export_dynamic_flag_spec_CXX=
9613hardcode_direct_CXX=no
9614hardcode_libdir_flag_spec_CXX=
9615hardcode_libdir_flag_spec_ld_CXX=
9616hardcode_libdir_separator_CXX=
9617hardcode_minus_L_CXX=no
9618hardcode_automatic_CXX=no
9619module_cmds_CXX=
9620module_expsym_cmds_CXX=
9621link_all_deplibs_CXX=unknown
9622old_archive_cmds_CXX=$old_archive_cmds
9623no_undefined_flag_CXX=
9624whole_archive_flag_spec_CXX=
9625enable_shared_with_static_runtimes_CXX=no
9626
9627# Dependencies to place before and after the object being linked:
9628predep_objects_CXX=
9629postdep_objects_CXX=
9630predeps_CXX=
9631postdeps_CXX=
9632compiler_lib_search_path_CXX=
9633
9634# Source file extension for C++ test sources.
9635ac_ext=cc
9636
9637# Object file extension for compiled C++ test sources.
9638objext=o
9639objext_CXX=$objext
9640
9641# Code to be used in simple compile tests
9642lt_simple_compile_test_code="int some_variable = 0;\n"
9643
9644# Code to be used in simple link tests
9645lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9646
9647# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9648
9649# If no C compiler was specified, use CC.
9650LTCC=${LTCC-"$CC"}
9651
9652# Allow CC to be a program name with arguments.
9653compiler=$CC
9654
9655
9656# Allow CC to be a program name with arguments.
9657lt_save_CC=$CC
9658lt_save_LD=$LD
9659lt_save_GCC=$GCC
9660GCC=$GXX
9661lt_save_with_gnu_ld=$with_gnu_ld
9662lt_save_path_LD=$lt_cv_path_LD
9663if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9664 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9665else
9666 unset lt_cv_prog_gnu_ld
9667fi
9668if test -n "${lt_cv_path_LDCXX+set}"; then
9669 lt_cv_path_LD=$lt_cv_path_LDCXX
9670else
9671 unset lt_cv_path_LD
9672fi
9673test -z "${LDCXX+set}" || LD=$LDCXX
9674CC=${CXX-"c++"}
9675compiler=$CC
9676compiler_CXX=$CC
9677cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9678
9679# We don't want -fno-exception wen compiling C++ code, so set the
9680# no_builtin_flag separately
9681if test "$GXX" = yes; then
9682 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9683else
9684 lt_prog_compiler_no_builtin_flag_CXX=
9685fi
9686
9687if test "$GXX" = yes; then
9688 # Set up default GNU C++ configuration
9689
9690
9691# Check whether --with-gnu-ld or --without-gnu-ld was given.
9692if test "${with_gnu_ld+set}" = set; then
9693 withval="$with_gnu_ld"
9694 test "$withval" = no || with_gnu_ld=yes
9695else
9696 with_gnu_ld=no
9697fi;
9698ac_prog=ld
9699if test "$GCC" = yes; then
9700 # Check if gcc -print-prog-name=ld gives a path.
9701 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9702echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9703 case $host in
9704 *-*-mingw*)
9705 # gcc leaves a trailing carriage return which upsets mingw
9706 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9707 *)
9708 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9709 esac
9710 case $ac_prog in
9711 # Accept absolute paths.
9712 [\\/]* | ?:[\\/]*)
9713 re_direlt='/[^/][^/]*/\.\./'
9714 # Canonicalize the pathname of ld
9715 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9716 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9717 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9718 done
9719 test -z "$LD" && LD="$ac_prog"
9720 ;;
9721 "")
9722 # If it fails, then pretend we aren't using GCC.
9723 ac_prog=ld
9724 ;;
9725 *)
9726 # If it is relative, then search for the first ld in PATH.
9727 with_gnu_ld=unknown
9728 ;;
9729 esac
9730elif test "$with_gnu_ld" = yes; then
9731 echo "$as_me:$LINENO: checking for GNU ld" >&5
9732echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9733else
9734 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9735echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9736fi
9737if test "${lt_cv_path_LD+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739else
9740 if test -z "$LD"; then
9741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9742 for ac_dir in $PATH; do
9743 IFS="$lt_save_ifs"
9744 test -z "$ac_dir" && ac_dir=.
9745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9746 lt_cv_path_LD="$ac_dir/$ac_prog"
9747 # Check to see if the program is GNU ld. I'd rather use --version,
9748 # but apparently some GNU ld's only accept -v.
9749 # Break only if it was the GNU/non-GNU ld that we prefer.
9750 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9751 *GNU* | *'with BFD'*)
9752 test "$with_gnu_ld" != no && break
9753 ;;
9754 *)
9755 test "$with_gnu_ld" != yes && break
9756 ;;
9757 esac
9758 fi
9759 done
9760 IFS="$lt_save_ifs"
9761else
9762 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9763fi
9764fi
9765
9766LD="$lt_cv_path_LD"
9767if test -n "$LD"; then
9768 echo "$as_me:$LINENO: result: $LD" >&5
9769echo "${ECHO_T}$LD" >&6
9770else
9771 echo "$as_me:$LINENO: result: no" >&5
9772echo "${ECHO_T}no" >&6
9773fi
9774test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9775echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9776 { (exit 1); exit 1; }; }
9777echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9778echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9779if test "${lt_cv_prog_gnu_ld+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781else
9782 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9783case `$LD -v 2>&1 </dev/null` in
9784*GNU* | *'with BFD'*)
9785 lt_cv_prog_gnu_ld=yes
9786 ;;
9787*)
9788 lt_cv_prog_gnu_ld=no
9789 ;;
9790esac
9791fi
9792echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9793echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9794with_gnu_ld=$lt_cv_prog_gnu_ld
9795
9796
9797
9798 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9799 # archiving commands below assume that GNU ld is being used.
9800 if test "$with_gnu_ld" = yes; then
9801 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 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'
9803
9804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9806
9807 # If archive_cmds runs LD, not CC, wlarc should be empty
9808 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9809 # investigate it a little bit more. (MM)
9810 wlarc='${wl}'
9811
9812 # ancient GNU ld didn't support --whole-archive et. al.
9813 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9814 grep 'no-whole-archive' > /dev/null; then
9815 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9816 else
9817 whole_archive_flag_spec_CXX=
9818 fi
9819 else
9820 with_gnu_ld=no
9821 wlarc=
9822
9823 # A generic and very simple default shared library creation
9824 # command for GNU C++ for the case where it uses the native
9825 # linker, instead of GNU ld. If possible, this setting should
9826 # overridden to take advantage of the native linker features on
9827 # the platform it is being used on.
9828 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9829 fi
9830
9831 # Commands to make compiler produce verbose output that lists
9832 # what "hidden" libraries, object files and flags are used when
9833 # linking a shared library.
9834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9835
9836else
9837 GXX=no
9838 with_gnu_ld=no
9839 wlarc=
9840fi
9841
9842# PORTME: fill in a description of your system's C++ link characteristics
9843echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9844echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9845ld_shlibs_CXX=yes
9846case $host_os in
9847 aix3*)
9848 # FIXME: insert proper C++ library support
9849 ld_shlibs_CXX=no
9850 ;;
9851 aix4* | aix5*)
9852 if test "$host_cpu" = ia64; then
9853 # On IA64, the linker does run time linking by default, so we don't
9854 # have to do anything special.
9855 aix_use_runtimelinking=no
9856 exp_sym_flag='-Bexport'
9857 no_entry_flag=""
9858 else
9859 aix_use_runtimelinking=no
9860
9861 # Test if we are trying to use run time linking or normal
9862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9863 # need to do runtime linking.
9864 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9865 for ld_flag in $LDFLAGS; do
9866 case $ld_flag in
9867 *-brtl*)
9868 aix_use_runtimelinking=yes
9869 break
9870 ;;
9871 esac
9872 done
9873 esac
9874
9875 exp_sym_flag='-bexport'
9876 no_entry_flag='-bnoentry'
9877 fi
9878
9879 # When large executables or shared objects are built, AIX ld can
9880 # have problems creating the table of contents. If linking a library
9881 # or program results in "error TOC overflow" add -mminimal-toc to
9882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9884
9885 archive_cmds_CXX=''
9886 hardcode_direct_CXX=yes
9887 hardcode_libdir_separator_CXX=':'
9888 link_all_deplibs_CXX=yes
9889
9890 if test "$GXX" = yes; then
9891 case $host_os in aix4.012|aix4.012.*)
9892 # We only want to do this on AIX 4.2 and lower, the check
9893 # below for broken collect2 doesn't work under 4.3+
9894 collect2name=`${CC} -print-prog-name=collect2`
9895 if test -f "$collect2name" && \
9896 strings "$collect2name" | grep resolve_lib_name >/dev/null
9897 then
9898 # We have reworked collect2
9899 hardcode_direct_CXX=yes
9900 else
9901 # We have old collect2
9902 hardcode_direct_CXX=unsupported
9903 # It fails to find uninstalled libraries when the uninstalled
9904 # path is not listed in the libpath. Setting hardcode_minus_L
9905 # to unsupported forces relinking
9906 hardcode_minus_L_CXX=yes
9907 hardcode_libdir_flag_spec_CXX='-L$libdir'
9908 hardcode_libdir_separator_CXX=
9909 fi
9910 esac
9911 shared_flag='-shared'
9912 else
9913 # not using gcc
9914 if test "$host_cpu" = ia64; then
9915 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9916 # chokes on -Wl,-G. The following line is correct:
9917 shared_flag='-G'
9918 else
9919 if test "$aix_use_runtimelinking" = yes; then
9920 shared_flag='${wl}-G'
9921 else
9922 shared_flag='${wl}-bM:SRE'
9923 fi
9924 fi
9925 fi
9926
9927 # It seems that -bexpall does not export symbols beginning with
9928 # underscore (_), so it is better to generate a list of symbols to export.
9929 always_export_symbols_CXX=yes
9930 if test "$aix_use_runtimelinking" = yes; then
9931 # Warning - without using the other runtime loading flags (-brtl),
9932 # -berok will link without error, but may produce a broken library.
9933 allow_undefined_flag_CXX='-berok'
9934 # Determine the default libpath from the value encoded in an empty executable.
9935 cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
9941
9942int
9943main ()
9944{
9945
9946 ;
9947 return 0;
9948}
9949_ACEOF
9950rm -f conftest.$ac_objext conftest$ac_exeext
9951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_cxx_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972
9973aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9974}'`
9975# Check for a 64-bit object if we didn't find anything.
9976if 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; }
9977}'`; fi
9978else
9979 echo "$as_me: failed program was:" >&5
9980sed 's/^/| /' conftest.$ac_ext >&5
9981
9982fi
9983rm -f conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9986
9987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9988
9989 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"
9990 else
9991 if test "$host_cpu" = ia64; then
9992 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9993 allow_undefined_flag_CXX="-z nodefs"
9994 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"
9995 else
9996 # Determine the default libpath from the value encoded in an empty executable.
9997 cat >conftest.$ac_ext <<_ACEOF
9998/* confdefs.h. */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
10002/* end confdefs.h. */
10003
10004int
10005main ()
10006{
10007
10008 ;
10009 return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext conftest$ac_exeext
10013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_cxx_werror_flag"
10022 || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034
10035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10036}'`
10037# Check for a 64-bit object if we didn't find anything.
10038if 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; }
10039}'`; fi
10040else
10041 echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
10043
10044fi
10045rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10048
10049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10050 # Warning - without using the other run time loading flags,
10051 # -berok will link without error, but may produce a broken library.
10052 no_undefined_flag_CXX=' ${wl}-bernotok'
10053 allow_undefined_flag_CXX=' ${wl}-berok'
10054 # -bexpall does not export symbols beginning with underscore (_)
10055 always_export_symbols_CXX=yes
10056 # Exported symbols can be pulled into shared objects from archives
10057 whole_archive_flag_spec_CXX=' '
10058 archive_cmds_need_lc_CXX=yes
10059 # This is similar to how AIX traditionally builds it's shared libraries.
10060 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'
10061 fi
10062 fi
10063 ;;
10064 chorus*)
10065 case $cc_basename in
10066 *)
10067 # FIXME: insert proper C++ library support
10068 ld_shlibs_CXX=no
10069 ;;
10070 esac
10071 ;;
10072
10073 cygwin* | mingw* | pw32*)
10074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10075 # as there is no search path for DLLs.
10076 hardcode_libdir_flag_spec_CXX='-L$libdir'
10077 allow_undefined_flag_CXX=unsupported
10078 always_export_symbols_CXX=no
10079 enable_shared_with_static_runtimes_CXX=yes
10080
10081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10082 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'
10083 # If the export-symbols file already is a .def file (1st line
10084 # is EXPORTS), use it as is; otherwise, prepend...
10085 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10086 cp $export_symbols $output_objdir/$soname.def;
10087 else
10088 echo EXPORTS > $output_objdir/$soname.def;
10089 cat $export_symbols >> $output_objdir/$soname.def;
10090 fi~
10091 $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'
10092 else
10093 ld_shlibs_CXX=no
10094 fi
10095 ;;
10096
10097 darwin* | rhapsody*)
10098 if test "$GXX" = yes; then
10099 archive_cmds_need_lc_CXX=no
10100 case "$host_os" in
10101 rhapsody* | darwin1.[012])
10102 allow_undefined_flag_CXX='-undefined suppress'
10103 ;;
10104 *) # Darwin 1.3 on
10105 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10106 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10107 else
10108 case ${MACOSX_DEPLOYMENT_TARGET} in
10109 10.[012])
10110 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10111 ;;
10112 10.*)
10113 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10114 ;;
10115 esac
10116 fi
10117 ;;
10118 esac
10119 lt_int_apple_cc_single_mod=no
10120 output_verbose_link_cmd='echo'
10121 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10122 lt_int_apple_cc_single_mod=yes
10123 fi
10124 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10125 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10126 else
10127 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'
10128 fi
10129 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10130
10131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10133 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}'
10134 else
10135 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}'
10136 fi
10137 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}'
10138 hardcode_direct_CXX=no
10139 hardcode_automatic_CXX=yes
10140 hardcode_shlibpath_var_CXX=unsupported
10141 whole_archive_flag_spec_CXX='-all_load $convenience'
10142 link_all_deplibs_CXX=yes
10143 else
10144 ld_shlibs_CXX=no
10145 fi
10146 ;;
10147
10148 dgux*)
10149 case $cc_basename in
10150 ec++)
10151 # FIXME: insert proper C++ library support
10152 ld_shlibs_CXX=no
10153 ;;
10154 ghcx)
10155 # Green Hills C++ Compiler
10156 # FIXME: insert proper C++ library support
10157 ld_shlibs_CXX=no
10158 ;;
10159 *)
10160 # FIXME: insert proper C++ library support
10161 ld_shlibs_CXX=no
10162 ;;
10163 esac
10164 ;;
10165 freebsd12*)
10166 # C++ shared libraries reported to be fairly broken before switch to ELF
10167 ld_shlibs_CXX=no
10168 ;;
10169 freebsd-elf*)
10170 archive_cmds_need_lc_CXX=no
10171 ;;
10172 freebsd* | kfreebsd*-gnu)
10173 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10174 # conventions
10175 ld_shlibs_CXX=yes
10176 ;;
10177 gnu*)
10178 ;;
10179 hpux9*)
10180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10181 hardcode_libdir_separator_CXX=:
10182 export_dynamic_flag_spec_CXX='${wl}-E'
10183 hardcode_direct_CXX=yes
10184 hardcode_minus_L_CXX=yes # Not in the search PATH,
10185 # but as the default
10186 # location of the library.
10187
10188 case $cc_basename in
10189 CC)
10190 # FIXME: insert proper C++ library support
10191 ld_shlibs_CXX=no
10192 ;;
10193 aCC)
10194 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'
10195 # Commands to make compiler produce verbose output that lists
10196 # what "hidden" libraries, object files and flags are used when
10197 # linking a shared library.
10198 #
10199 # There doesn't appear to be a way to prevent this compiler from
10200 # explicitly linking system object files so we need to strip them
10201 # from the output so that they don't get included in the library
10202 # dependencies.
10203 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'
10204 ;;
10205 *)
10206 if test "$GXX" = yes; then
10207 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'
10208 else
10209 # FIXME: insert proper C++ library support
10210 ld_shlibs_CXX=no
10211 fi
10212 ;;
10213 esac
10214 ;;
10215 hpux10*|hpux11*)
10216 if test $with_gnu_ld = no; then
10217 case "$host_cpu" in
10218 hppa*64*)
10219 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10220 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10221 hardcode_libdir_separator_CXX=:
10222 ;;
10223 ia64*)
10224 hardcode_libdir_flag_spec_CXX='-L$libdir'
10225 ;;
10226 *)
10227 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10228 hardcode_libdir_separator_CXX=:
10229 export_dynamic_flag_spec_CXX='${wl}-E'
10230 ;;
10231 esac
10232 fi
10233 case "$host_cpu" in
10234 hppa*64*)
10235 hardcode_direct_CXX=no
10236 hardcode_shlibpath_var_CXX=no
10237 ;;
10238 ia64*)
10239 hardcode_direct_CXX=no
10240 hardcode_shlibpath_var_CXX=no
10241 hardcode_minus_L_CXX=yes # Not in the search PATH,
10242 # but as the default
10243 # location of the library.
10244 ;;
10245 *)
10246 hardcode_direct_CXX=yes
10247 hardcode_minus_L_CXX=yes # Not in the search PATH,
10248 # but as the default
10249 # location of the library.
10250 ;;
10251 esac
10252
10253 case $cc_basename in
10254 CC)
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10257 ;;
10258 aCC)
10259 case "$host_cpu" in
10260 hppa*64*|ia64*)
10261 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10262 ;;
10263 *)
10264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10265 ;;
10266 esac
10267 # Commands to make compiler produce verbose output that lists
10268 # what "hidden" libraries, object files and flags are used when
10269 # linking a shared library.
10270 #
10271 # There doesn't appear to be a way to prevent this compiler from
10272 # explicitly linking system object files so we need to strip them
10273 # from the output so that they don't get included in the library
10274 # dependencies.
10275 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'
10276 ;;
10277 *)
10278 if test "$GXX" = yes; then
10279 if test $with_gnu_ld = no; then
10280 case "$host_cpu" in
10281 ia64*|hppa*64*)
10282 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10283 ;;
10284 *)
10285 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'
10286 ;;
10287 esac
10288 fi
10289 else
10290 # FIXME: insert proper C++ library support
10291 ld_shlibs_CXX=no
10292 fi
10293 ;;
10294 esac
10295 ;;
10296 irix5* | irix6*)
10297 case $cc_basename in
10298 CC)
10299 # SGI C++
10300 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'
10301
10302 # Archives containing C++ object files must be created using
10303 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10304 # necessary to make sure instantiated templates are included
10305 # in the archive.
10306 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10307 ;;
10308 *)
10309 if test "$GXX" = yes; then
10310 if test "$with_gnu_ld" = no; then
10311 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'
10312 else
10313 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'
10314 fi
10315 fi
10316 link_all_deplibs_CXX=yes
10317 ;;
10318 esac
10319 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10320 hardcode_libdir_separator_CXX=:
10321 ;;
10322 linux*)
10323 case $cc_basename in
10324 KCC)
10325 # Kuck and Associates, Inc. (KAI) C++ Compiler
10326
10327 # KCC will only create a shared library if the output file
10328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10329 # to its proper name (with version) after linking.
10330 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'
10331 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'
10332 # Commands to make compiler produce verbose output that lists
10333 # what "hidden" libraries, object files and flags are used when
10334 # linking a shared library.
10335 #
10336 # There doesn't appear to be a way to prevent this compiler from
10337 # explicitly linking system object files so we need to strip them
10338 # from the output so that they don't get included in the library
10339 # dependencies.
10340 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'
10341
10342 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10344
10345 # Archives containing C++ object files must be created using
10346 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10347 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10348 ;;
10349 icpc)
10350 # Intel C++
10351 with_gnu_ld=yes
10352 archive_cmds_need_lc_CXX=no
10353 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10354 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'
10355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10357 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10358 ;;
10359 cxx)
10360 # Compaq C++
10361 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10362 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'
10363
10364 runpath_var=LD_RUN_PATH
10365 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10366 hardcode_libdir_separator_CXX=:
10367
10368 # Commands to make compiler produce verbose output that lists
10369 # what "hidden" libraries, object files and flags are used when
10370 # linking a shared library.
10371 #
10372 # There doesn't appear to be a way to prevent this compiler from
10373 # explicitly linking system object files so we need to strip them
10374 # from the output so that they don't get included in the library
10375 # dependencies.
10376 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'
10377 ;;
10378 esac
10379 ;;
10380 lynxos*)
10381 # FIXME: insert proper C++ library support
10382 ld_shlibs_CXX=no
10383 ;;
10384 m88k*)
10385 # FIXME: insert proper C++ library support
10386 ld_shlibs_CXX=no
10387 ;;
10388 mvs*)
10389 case $cc_basename in
10390 cxx)
10391 # FIXME: insert proper C++ library support
10392 ld_shlibs_CXX=no
10393 ;;
10394 *)
10395 # FIXME: insert proper C++ library support
10396 ld_shlibs_CXX=no
10397 ;;
10398 esac
10399 ;;
10400 netbsd*)
10401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10402 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10403 wlarc=
10404 hardcode_libdir_flag_spec_CXX='-R$libdir'
10405 hardcode_direct_CXX=yes
10406 hardcode_shlibpath_var_CXX=no
10407 fi
10408 # Workaround some broken pre-1.5 toolchains
10409 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10410 ;;
10411 osf3*)
10412 case $cc_basename in
10413 KCC)
10414 # Kuck and Associates, Inc. (KAI) C++ Compiler
10415
10416 # KCC will only create a shared library if the output file
10417 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10418 # to its proper name (with version) after linking.
10419 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'
10420
10421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10422 hardcode_libdir_separator_CXX=:
10423
10424 # Archives containing C++ object files must be created using
10425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10427
10428 ;;
10429 RCC)
10430 # Rational C++ 2.4.1
10431 # FIXME: insert proper C++ library support
10432 ld_shlibs_CXX=no
10433 ;;
10434 cxx)
10435 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10436 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'
10437
10438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10439 hardcode_libdir_separator_CXX=:
10440
10441 # Commands to make compiler produce verbose output that lists
10442 # what "hidden" libraries, object files and flags are used when
10443 # linking a shared library.
10444 #
10445 # There doesn't appear to be a way to prevent this compiler from
10446 # explicitly linking system object files so we need to strip them
10447 # from the output so that they don't get included in the library
10448 # dependencies.
10449 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'
10450 ;;
10451 *)
10452 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10453 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10454 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'
10455
10456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10457 hardcode_libdir_separator_CXX=:
10458
10459 # Commands to make compiler produce verbose output that lists
10460 # what "hidden" libraries, object files and flags are used when
10461 # linking a shared library.
10462 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10463
10464 else
10465 # FIXME: insert proper C++ library support
10466 ld_shlibs_CXX=no
10467 fi
10468 ;;
10469 esac
10470 ;;
10471 osf4* | osf5*)
10472 case $cc_basename in
10473 KCC)
10474 # Kuck and Associates, Inc. (KAI) C++ Compiler
10475
10476 # KCC will only create a shared library if the output file
10477 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10478 # to its proper name (with version) after linking.
10479 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'
10480
10481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10482 hardcode_libdir_separator_CXX=:
10483
10484 # Archives containing C++ object files must be created using
10485 # the KAI C++ compiler.
10486 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10487 ;;
10488 RCC)
10489 # Rational C++ 2.4.1
10490 # FIXME: insert proper C++ library support
10491 ld_shlibs_CXX=no
10492 ;;
10493 cxx)
10494 allow_undefined_flag_CXX=' -expect_unresolved \*'
10495 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'
10496 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10497 echo "-hidden">> $lib.exp~
10498 $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~
10499 $rm $lib.exp'
10500
10501 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10502 hardcode_libdir_separator_CXX=:
10503
10504 # Commands to make compiler produce verbose output that lists
10505 # what "hidden" libraries, object files and flags are used when
10506 # linking a shared library.
10507 #
10508 # There doesn't appear to be a way to prevent this compiler from
10509 # explicitly linking system object files so we need to strip them
10510 # from the output so that they don't get included in the library
10511 # dependencies.
10512 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'
10513 ;;
10514 *)
10515 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10517 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'
10518
10519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10520 hardcode_libdir_separator_CXX=:
10521
10522 # Commands to make compiler produce verbose output that lists
10523 # what "hidden" libraries, object files and flags are used when
10524 # linking a shared library.
10525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10526
10527 else
10528 # FIXME: insert proper C++ library support
10529 ld_shlibs_CXX=no
10530 fi
10531 ;;
10532 esac
10533 ;;
10534 psos*)
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 sco*)
10539 archive_cmds_need_lc_CXX=no
10540 case $cc_basename in
10541 CC)
10542 # FIXME: insert proper C++ library support
10543 ld_shlibs_CXX=no
10544 ;;
10545 *)
10546 # FIXME: insert proper C++ library support
10547 ld_shlibs_CXX=no
10548 ;;
10549 esac
10550 ;;
10551 sunos4*)
10552 case $cc_basename in
10553 CC)
10554 # Sun C++ 4.x
10555 # FIXME: insert proper C++ library support
10556 ld_shlibs_CXX=no
10557 ;;
10558 lcc)
10559 # Lucid
10560 # FIXME: insert proper C++ library support
10561 ld_shlibs_CXX=no
10562 ;;
10563 *)
10564 # FIXME: insert proper C++ library support
10565 ld_shlibs_CXX=no
10566 ;;
10567 esac
10568 ;;
10569 solaris*)
10570 case $cc_basename in
10571 CC)
10572 # Sun C++ 4.2, 5.x and Centerline C++
10573 no_undefined_flag_CXX=' -zdefs'
10574 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10575 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10576 $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'
10577
10578 hardcode_libdir_flag_spec_CXX='-R$libdir'
10579 hardcode_shlibpath_var_CXX=no
10580 case $host_os in
10581 solaris2.0-5 | solaris2.0-5.*) ;;
10582 *)
10583 # The C++ compiler is used as linker so we must use $wl
10584 # flag to pass the commands to the underlying system
10585 # linker.
10586 # Supported since Solaris 2.6 (maybe 2.5.1?)
10587 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10588 ;;
10589 esac
10590 link_all_deplibs_CXX=yes
10591
10592 # Commands to make compiler produce verbose output that lists
10593 # what "hidden" libraries, object files and flags are used when
10594 # linking a shared library.
10595 #
10596 # There doesn't appear to be a way to prevent this compiler from
10597 # explicitly linking system object files so we need to strip them
10598 # from the output so that they don't get included in the library
10599 # dependencies.
10600 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'
10601
10602 # Archives containing C++ object files must be created using
10603 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10604 # necessary to make sure instantiated templates are included
10605 # in the archive.
10606 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10607 ;;
10608 gcx)
10609 # Green Hills C++ Compiler
10610 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10611
10612 # The C++ compiler must be used to create the archive.
10613 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10614 ;;
10615 *)
10616 # GNU C++ compiler with Solaris linker
10617 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10618 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10619 if $CC --version | grep -v '^2\.7' > /dev/null; then
10620 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10622 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10623
10624 # Commands to make compiler produce verbose output that lists
10625 # what "hidden" libraries, object files and flags are used when
10626 # linking a shared library.
10627 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10628 else
10629 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10630 # platform.
10631 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10632 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10633 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10634
10635 # Commands to make compiler produce verbose output that lists
10636 # what "hidden" libraries, object files and flags are used when
10637 # linking a shared library.
10638 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10639 fi
10640
10641 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10642 fi
10643 ;;
10644 esac
10645 ;;
10646 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10647 archive_cmds_need_lc_CXX=no
10648 ;;
10649 tandem*)
10650 case $cc_basename in
10651 NCC)
10652 # NonStop-UX NCC 3.20
10653 # FIXME: insert proper C++ library support
10654 ld_shlibs_CXX=no
10655 ;;
10656 *)
10657 # FIXME: insert proper C++ library support
10658 ld_shlibs_CXX=no
10659 ;;
10660 esac
10661 ;;
10662 vxworks*)
10663 # FIXME: insert proper C++ library support
10664 ld_shlibs_CXX=no
10665 ;;
10666 *)
10667 # FIXME: insert proper C++ library support
10668 ld_shlibs_CXX=no
10669 ;;
10670esac
10671echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10672echo "${ECHO_T}$ld_shlibs_CXX" >&6
10673test "$ld_shlibs_CXX" = no && can_build_shared=no
10674
10675GCC_CXX="$GXX"
10676LD_CXX="$LD"
10677
10678
10679cat > conftest.$ac_ext <<EOF
10680class Foo
10681{
10682public:
10683 Foo (void) { a = 0; }
10684private:
10685 int a;
10686};
10687EOF
10688
10689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690 (eval $ac_compile) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; then
10694 # Parse the compiler output and extract the necessary
10695 # objects, libraries and library flags.
10696
10697 # Sentinel used to keep track of whether or not we are before
10698 # the conftest object file.
10699 pre_test_object_deps_done=no
10700
10701 # The `*' in the case matches for architectures that use `case' in
10702 # $output_verbose_cmd can trigger glob expansion during the loop
10703 # eval without this substitution.
10704 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10705
10706 for p in `eval $output_verbose_link_cmd`; do
10707 case $p in
10708
10709 -L* | -R* | -l*)
10710 # Some compilers place space between "-{L,R}" and the path.
10711 # Remove the space.
10712 if test $p = "-L" \
10713 || test $p = "-R"; then
10714 prev=$p
10715 continue
10716 else
10717 prev=
10718 fi
10719
10720 if test "$pre_test_object_deps_done" = no; then
10721 case $p in
10722 -L* | -R*)
10723 # Internal compiler library paths should come after those
10724 # provided the user. The postdeps already come after the
10725 # user supplied libs so there is no need to process them.
10726 if test -z "$compiler_lib_search_path_CXX"; then
10727 compiler_lib_search_path_CXX="${prev}${p}"
10728 else
10729 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10730 fi
10731 ;;
10732 # The "-l" case would never come before the object being
10733 # linked, so don't bother handling this case.
10734 esac
10735 else
10736 if test -z "$postdeps_CXX"; then
10737 postdeps_CXX="${prev}${p}"
10738 else
10739 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10740 fi
10741 fi
10742 ;;
10743
10744 *.$objext)
10745 # This assumes that the test object file only shows up
10746 # once in the compiler output.
10747 if test "$p" = "conftest.$objext"; then
10748 pre_test_object_deps_done=yes
10749 continue
10750 fi
10751
10752 if test "$pre_test_object_deps_done" = no; then
10753 if test -z "$predep_objects_CXX"; then
10754 predep_objects_CXX="$p"
10755 else
10756 predep_objects_CXX="$predep_objects_CXX $p"
10757 fi
10758 else
10759 if test -z "$postdep_objects_CXX"; then
10760 postdep_objects_CXX="$p"
10761 else
10762 postdep_objects_CXX="$postdep_objects_CXX $p"
10763 fi
10764 fi
10765 ;;
10766
10767 *) ;; # Ignore the rest.
10768
10769 esac
10770 done
10771
10772 # Clean up.
10773 rm -f a.out a.exe
10774else
10775 echo "libtool.m4: error: problem compiling CXX test program"
10776fi
10777
10778$rm -f confest.$objext
10779
10780case " $postdeps_CXX " in
10781*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10782esac
10783
10784lt_prog_compiler_wl_CXX=
10785lt_prog_compiler_pic_CXX=
10786lt_prog_compiler_static_CXX=
10787
10788echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10789echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10790
10791 # C++ specific cases for pic, static, wl, etc.
10792 if test "$GXX" = yes; then
10793 lt_prog_compiler_wl_CXX='-Wl,'
10794 lt_prog_compiler_static_CXX='-static'
10795
10796 case $host_os in
10797 aix*)
10798 # All AIX code is PIC.
10799 if test "$host_cpu" = ia64; then
10800 # AIX 5 now supports IA64 processor
10801 lt_prog_compiler_static_CXX='-Bstatic'
10802 fi
10803 ;;
10804 amigaos*)
10805 # FIXME: we need at least 68020 code to build shared libraries, but
10806 # adding the `-m68020' flag to GCC prevents building anything better,
10807 # like `-m68040'.
10808 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10809 ;;
10810 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10811 # PIC is the default for these OSes.
10812 ;;
10813 mingw* | os2* | pw32*)
10814 # This hack is so that the source file can tell whether it is being
10815 # built for inclusion in a dll (and should export symbols for example).
10816 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10817 ;;
10818 darwin* | rhapsody*)
10819 # PIC is the default on this platform
10820 # Common symbols not allowed in MH_DYLIB files
10821 lt_prog_compiler_pic_CXX='-fno-common'
10822 ;;
10823 *djgpp*)
10824 # DJGPP does not support shared libraries at all
10825 lt_prog_compiler_pic_CXX=
10826 ;;
10827 sysv4*MP*)
10828 if test -d /usr/nec; then
10829 lt_prog_compiler_pic_CXX=-Kconform_pic
10830 fi
10831 ;;
10832 hpux*)
10833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10834 # not for PA HP-UX.
10835 case "$host_cpu" in
10836 hppa*64*|ia64*)
10837 ;;
10838 *)
10839 lt_prog_compiler_pic_CXX='-fPIC'
10840 ;;
10841 esac
10842 ;;
10843 *)
10844 lt_prog_compiler_pic_CXX='-fPIC'
10845 ;;
10846 esac
10847 else
10848 case $host_os in
10849 aix4* | aix5*)
10850 # All AIX code is PIC.
10851 if test "$host_cpu" = ia64; then
10852 # AIX 5 now supports IA64 processor
10853 lt_prog_compiler_static_CXX='-Bstatic'
10854 else
10855 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10856 fi
10857 ;;
10858 chorus*)
10859 case $cc_basename in
10860 cxch68)
10861 # Green Hills C++ Compiler
10862 # _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"
10863 ;;
10864 esac
10865 ;;
10866 dgux*)
10867 case $cc_basename in
10868 ec++)
10869 lt_prog_compiler_pic_CXX='-KPIC'
10870 ;;
10871 ghcx)
10872 # Green Hills C++ Compiler
10873 lt_prog_compiler_pic_CXX='-pic'
10874 ;;
10875 *)
10876 ;;
10877 esac
10878 ;;
10879 freebsd* | kfreebsd*-gnu)
10880 # FreeBSD uses GNU C++
10881 ;;
10882 hpux9* | hpux10* | hpux11*)
10883 case $cc_basename in
10884 CC)
10885 lt_prog_compiler_wl_CXX='-Wl,'
10886 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10887 if test "$host_cpu" != ia64; then
10888 lt_prog_compiler_pic_CXX='+Z'
10889 fi
10890 ;;
10891 aCC)
10892 lt_prog_compiler_wl_CXX='-Wl,'
10893 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10894 case "$host_cpu" in
10895 hppa*64*|ia64*)
10896 # +Z the default
10897 ;;
10898 *)
10899 lt_prog_compiler_pic_CXX='+Z'
10900 ;;
10901 esac
10902 ;;
10903 *)
10904 ;;
10905 esac
10906 ;;
10907 irix5* | irix6* | nonstopux*)
10908 case $cc_basename in
10909 CC)
10910 lt_prog_compiler_wl_CXX='-Wl,'
10911 lt_prog_compiler_static_CXX='-non_shared'
10912 # CC pic flag -KPIC is the default.
10913 ;;
10914 *)
10915 ;;
10916 esac
10917 ;;
10918 linux*)
10919 case $cc_basename in
10920 KCC)
10921 # KAI C++ Compiler
10922 lt_prog_compiler_wl_CXX='--backend -Wl,'
10923 lt_prog_compiler_pic_CXX='-fPIC'
10924 ;;
10925 icpc)
10926 # Intel C++
10927 lt_prog_compiler_wl_CXX='-Wl,'
10928 lt_prog_compiler_pic_CXX='-KPIC'
10929 lt_prog_compiler_static_CXX='-static'
10930 ;;
10931 cxx)
10932 # Compaq C++
10933 # Make sure the PIC flag is empty. It appears that all Alpha
10934 # Linux and Compaq Tru64 Unix objects are PIC.
10935 lt_prog_compiler_pic_CXX=
10936 lt_prog_compiler_static_CXX='-non_shared'
10937 ;;
10938 *)
10939 ;;
10940 esac
10941 ;;
10942 lynxos*)
10943 ;;
10944 m88k*)
10945 ;;
10946 mvs*)
10947 case $cc_basename in
10948 cxx)
10949 lt_prog_compiler_pic_CXX='-W c,exportall'
10950 ;;
10951 *)
10952 ;;
10953 esac
10954 ;;
10955 netbsd*)
10956 ;;
10957 osf3* | osf4* | osf5*)
10958 case $cc_basename in
10959 KCC)
10960 lt_prog_compiler_wl_CXX='--backend -Wl,'
10961 ;;
10962 RCC)
10963 # Rational C++ 2.4.1
10964 lt_prog_compiler_pic_CXX='-pic'
10965 ;;
10966 cxx)
10967 # Digital/Compaq C++
10968 lt_prog_compiler_wl_CXX='-Wl,'
10969 # Make sure the PIC flag is empty. It appears that all Alpha
10970 # Linux and Compaq Tru64 Unix objects are PIC.
10971 lt_prog_compiler_pic_CXX=
10972 lt_prog_compiler_static_CXX='-non_shared'
10973 ;;
10974 *)
10975 ;;
10976 esac
10977 ;;
10978 psos*)
10979 ;;
10980 sco*)
10981 case $cc_basename in
10982 CC)
10983 lt_prog_compiler_pic_CXX='-fPIC'
10984 ;;
10985 *)
10986 ;;
10987 esac
10988 ;;
10989 solaris*)
10990 case $cc_basename in
10991 CC)
10992 # Sun C++ 4.2, 5.x and Centerline C++
10993 lt_prog_compiler_pic_CXX='-KPIC'
10994 lt_prog_compiler_static_CXX='-Bstatic'
10995 lt_prog_compiler_wl_CXX='-Qoption ld '
10996 ;;
10997 gcx)
10998 # Green Hills C++ Compiler
10999 lt_prog_compiler_pic_CXX='-PIC'
11000 ;;
11001 *)
11002 ;;
11003 esac
11004 ;;
11005 sunos4*)
11006 case $cc_basename in
11007 CC)
11008 # Sun C++ 4.x
11009 lt_prog_compiler_pic_CXX='-pic'
11010 lt_prog_compiler_static_CXX='-Bstatic'
11011 ;;
11012 lcc)
11013 # Lucid
11014 lt_prog_compiler_pic_CXX='-pic'
11015 ;;
11016 *)
11017 ;;
11018 esac
11019 ;;
11020 tandem*)
11021 case $cc_basename in
11022 NCC)
11023 # NonStop-UX NCC 3.20
11024 lt_prog_compiler_pic_CXX='-KPIC'
11025 ;;
11026 *)
11027 ;;
11028 esac
11029 ;;
11030 unixware*)
11031 ;;
11032 vxworks*)
11033 ;;
11034 *)
11035 lt_prog_compiler_can_build_shared_CXX=no
11036 ;;
11037 esac
11038 fi
11039
11040echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11041echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11042
11043#
11044# Check to make sure the PIC flag actually works.
11045#
11046if test -n "$lt_prog_compiler_pic_CXX"; then
11047
11048echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11049echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11050if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052else
11053 lt_prog_compiler_pic_works_CXX=no
11054 ac_outfile=conftest.$ac_objext
11055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11056 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11057 # Insert the option either (1) after the last *FLAGS variable, or
11058 # (2) before a word containing "conftest.", or (3) at the end.
11059 # Note that $ac_compile itself does not contain backslashes and begins
11060 # with a dollar sign (not a hyphen), so the echo should work correctly.
11061 # The option is referenced via a variable to avoid confusing sed.
11062 lt_compile=`echo "$ac_compile" | $SED \
11063 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11065 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +000011066 (eval echo "\"\$as_me:11066: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000011067 (eval "$lt_compile" 2>conftest.err)
11068 ac_status=$?
11069 cat conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +000011070 echo "$as_me:11070: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000011071 if (exit $ac_status) && test -s "$ac_outfile"; then
11072 # The compiler can only warn and ignore the option if not recognized
11073 # So say no if there are warnings
11074 if test ! -s conftest.err; then
11075 lt_prog_compiler_pic_works_CXX=yes
11076 fi
11077 fi
11078 $rm conftest*
11079
11080fi
11081echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11082echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11083
11084if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11085 case $lt_prog_compiler_pic_CXX in
11086 "" | " "*) ;;
11087 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11088 esac
11089else
11090 lt_prog_compiler_pic_CXX=
11091 lt_prog_compiler_can_build_shared_CXX=no
11092fi
11093
11094fi
11095case "$host_os" in
11096 # For platforms which do not support PIC, -DPIC is meaningless:
11097 *djgpp*)
11098 lt_prog_compiler_pic_CXX=
11099 ;;
11100 *)
11101 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11102 ;;
11103esac
11104
11105echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11106echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11107if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109else
11110 lt_cv_prog_compiler_c_o_CXX=no
11111 $rm -r conftest 2>/dev/null
11112 mkdir conftest
11113 cd conftest
11114 mkdir out
11115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11116
11117 lt_compiler_flag="-o out/conftest2.$ac_objext"
11118 # Insert the option either (1) after the last *FLAGS variable, or
11119 # (2) before a word containing "conftest.", or (3) at the end.
11120 # Note that $ac_compile itself does not contain backslashes and begins
11121 # with a dollar sign (not a hyphen), so the echo should work correctly.
11122 lt_compile=`echo "$ac_compile" | $SED \
11123 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11125 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +000011126 (eval echo "\"\$as_me:11126: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000011127 (eval "$lt_compile" 2>out/conftest.err)
11128 ac_status=$?
11129 cat out/conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +000011130 echo "$as_me:11130: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000011131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11132 then
11133 # The compiler can only warn and ignore the option if not recognized
11134 # So say no if there are warnings
11135 if test ! -s out/conftest.err; then
11136 lt_cv_prog_compiler_c_o_CXX=yes
11137 fi
11138 fi
11139 chmod u+w .
11140 $rm conftest*
11141 # SGI C++ compiler will create directory out/ii_files/ for
11142 # template instantiation
11143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11144 $rm out/* && rmdir out
11145 cd ..
11146 rmdir conftest
11147 $rm conftest*
11148
11149fi
11150echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11151echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11152
11153
11154hard_links="nottested"
11155if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11156 # do not overwrite the value of need_locks provided by the user
11157 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11158echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11159 hard_links=yes
11160 $rm conftest*
11161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11162 touch conftest.a
11163 ln conftest.a conftest.b 2>&5 || hard_links=no
11164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11165 echo "$as_me:$LINENO: result: $hard_links" >&5
11166echo "${ECHO_T}$hard_links" >&6
11167 if test "$hard_links" = no; then
11168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11169echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11170 need_locks=warn
11171 fi
11172else
11173 need_locks=no
11174fi
11175
11176echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11177echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11178
11179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11180 case $host_os in
11181 aix4* | aix5*)
11182 # If we're using GNU nm, then we don't want the "-C" option.
11183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11184 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11185 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'
11186 else
11187 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'
11188 fi
11189 ;;
11190 pw32*)
11191 export_symbols_cmds_CXX="$ltdll_cmds"
11192 ;;
11193 cygwin* | mingw*)
11194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11195 ;;
11196 *)
11197 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11198 ;;
11199 esac
11200
11201echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11202echo "${ECHO_T}$ld_shlibs_CXX" >&6
11203test "$ld_shlibs_CXX" = no && can_build_shared=no
11204
11205variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11206if test "$GCC" = yes; then
11207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11208fi
11209
11210#
11211# Do we need to explicitly link libc?
11212#
11213case "x$archive_cmds_need_lc_CXX" in
11214x|xyes)
11215 # Assume -lc should be added
11216 archive_cmds_need_lc_CXX=yes
11217
11218 if test "$enable_shared" = yes && test "$GCC" = yes; then
11219 case $archive_cmds_CXX in
11220 *'~'*)
11221 # FIXME: we may have to deal with multi-command sequences.
11222 ;;
11223 '$CC '*)
11224 # Test whether the compiler implicitly links with -lc since on some
11225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11226 # to ld, don't add -lc before -lgcc.
11227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11228echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11229 $rm conftest*
11230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11231
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } 2>conftest.err; then
11237 soname=conftest
11238 lib=conftest
11239 libobjs=conftest.$ac_objext
11240 deplibs=
11241 wl=$lt_prog_compiler_wl_CXX
11242 compiler_flags=-v
11243 linker_flags=-v
11244 verstring=
11245 output_objdir=.
11246 libname=conftest
11247 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11248 allow_undefined_flag_CXX=
11249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11250 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }
11254 then
11255 archive_cmds_need_lc_CXX=no
11256 else
11257 archive_cmds_need_lc_CXX=yes
11258 fi
11259 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11260 else
11261 cat conftest.err 1>&5
11262 fi
11263 $rm conftest*
11264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11265echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11266 ;;
11267 esac
11268 fi
11269 ;;
11270esac
11271
11272echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11273echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11274library_names_spec=
11275libname_spec='lib$name'
11276soname_spec=
11277shrext_cmds=".so"
11278postinstall_cmds=
11279postuninstall_cmds=
11280finish_cmds=
11281finish_eval=
11282shlibpath_var=
11283shlibpath_overrides_runpath=unknown
11284version_type=none
11285dynamic_linker="$host_os ld.so"
11286sys_lib_dlsearch_path_spec="/lib /usr/lib"
11287if test "$GCC" = yes; then
11288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11290 # if the path contains ";" then we assume it to be the separator
11291 # otherwise default to the standard path separator (i.e. ":") - it is
11292 # assumed that no part of a normal pathname contains ";" but that should
11293 # okay in the real world where ";" in dirpaths is itself problematic.
11294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11295 else
11296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11297 fi
11298else
11299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11300fi
11301need_lib_prefix=unknown
11302hardcode_into_libs=no
11303
11304# when you set need_version to no, make sure it does not cause -set_version
11305# flags to be left without arguments
11306need_version=unknown
11307
11308case $host_os in
11309aix3*)
11310 version_type=linux
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11312 shlibpath_var=LIBPATH
11313
11314 # AIX 3 has no versioning support, so we append a major version to the name.
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 ;;
11317
11318aix4* | aix5*)
11319 version_type=linux
11320 need_lib_prefix=no
11321 need_version=no
11322 hardcode_into_libs=yes
11323 if test "$host_cpu" = ia64; then
11324 # AIX 5 supports IA64
11325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 else
11328 # With GCC up to 2.95.x, collect2 would create an import file
11329 # for dependence libraries. The import file would start with
11330 # the line `#! .'. This would cause the generated library to
11331 # depend on `.', always an invalid library. This was fixed in
11332 # development snapshots of GCC prior to 3.0.
11333 case $host_os in
11334 aix4 | aix4.[01] | aix4.[01].*)
11335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11336 echo ' yes '
11337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11338 :
11339 else
11340 can_build_shared=no
11341 fi
11342 ;;
11343 esac
11344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11345 # soname into executable. Probably we can add versioning support to
11346 # collect2, so additional links can be useful in future.
11347 if test "$aix_use_runtimelinking" = yes; then
11348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11349 # instead of lib<name>.a to let people know that these are not
11350 # typical AIX shared libraries.
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 else
11353 # We preserve .a as extension for shared libraries through AIX4.2
11354 # and later when we are not doing run time linking.
11355 library_names_spec='${libname}${release}.a $libname.a'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 fi
11358 shlibpath_var=LIBPATH
11359 fi
11360 ;;
11361
11362amigaos*)
11363 library_names_spec='$libname.ixlibrary $libname.a'
11364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11365 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'
11366 ;;
11367
11368beos*)
11369 library_names_spec='${libname}${shared_ext}'
11370 dynamic_linker="$host_os ld.so"
11371 shlibpath_var=LIBRARY_PATH
11372 ;;
11373
11374bsdi4*)
11375 version_type=linux
11376 need_version=no
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11383 # the default ld.so.conf also contains /usr/contrib/lib and
11384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11385 # libtool to hard-code these into programs
11386 ;;
11387
11388cygwin* | mingw* | pw32*)
11389 version_type=windows
11390 shrext_cmds=".dll"
11391 need_version=no
11392 need_lib_prefix=no
11393
11394 case $GCC,$host_os in
11395 yes,cygwin* | yes,mingw* | yes,pw32*)
11396 library_names_spec='$libname.dll.a'
11397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11398 postinstall_cmds='base_file=`basename \${file}`~
11399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11400 dldir=$destdir/`dirname \$dlpath`~
11401 test -d \$dldir || mkdir -p \$dldir~
11402 $install_prog $dir/$dlname \$dldir/$dlname'
11403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11404 dlpath=$dir/\$dldll~
11405 $rm \$dlpath'
11406 shlibpath_overrides_runpath=yes
11407
11408 case $host_os in
11409 cygwin*)
11410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11413 ;;
11414 mingw*)
11415 # MinGW DLLs use traditional 'lib' prefix
11416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11419 # It is most probably a Windows format PATH printed by
11420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11421 # path with ; separators, and with drive letters. We can handle the
11422 # drive letters (cygwin fileutils understands them), so leave them,
11423 # especially as we might pass files found there to a mingw objdump,
11424 # which wouldn't understand a cygwinified path. Ahh.
11425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11426 else
11427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11428 fi
11429 ;;
11430 pw32*)
11431 # pw32 DLLs use 'pw' prefix rather than 'lib'
11432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11433 ;;
11434 esac
11435 ;;
11436
11437 *)
11438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11439 ;;
11440 esac
11441 dynamic_linker='Win32 ld.exe'
11442 # FIXME: first we should search . and the directory the executable is in
11443 shlibpath_var=PATH
11444 ;;
11445
11446darwin* | rhapsody*)
11447 dynamic_linker="$host_os dyld"
11448 version_type=darwin
11449 need_lib_prefix=no
11450 need_version=no
11451 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11452 soname_spec='${libname}${release}${major}$shared_ext'
11453 shlibpath_overrides_runpath=yes
11454 shlibpath_var=DYLD_LIBRARY_PATH
11455 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11457 if test "$GCC" = yes; then
11458 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"`
11459 else
11460 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11461 fi
11462 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11463 ;;
11464
11465dgux*)
11466 version_type=linux
11467 need_lib_prefix=no
11468 need_version=no
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 shlibpath_var=LD_LIBRARY_PATH
11472 ;;
11473
11474freebsd1*)
11475 dynamic_linker=no
11476 ;;
11477
11478kfreebsd*-gnu)
11479 version_type=linux
11480 need_lib_prefix=no
11481 need_version=no
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11483 soname_spec='${libname}${release}${shared_ext}$major'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=no
11486 hardcode_into_libs=yes
11487 dynamic_linker='GNU ld.so'
11488 ;;
11489
11490freebsd*)
11491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11492 version_type=freebsd-$objformat
11493 case $version_type in
11494 freebsd-elf*)
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11496 need_version=no
11497 need_lib_prefix=no
11498 ;;
11499 freebsd-*)
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11501 need_version=yes
11502 ;;
11503 esac
11504 shlibpath_var=LD_LIBRARY_PATH
11505 case $host_os in
11506 freebsd2*)
11507 shlibpath_overrides_runpath=yes
11508 ;;
11509 freebsd3.01* | freebsdelf3.01*)
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11512 ;;
11513 *) # from 3.2 on
11514 shlibpath_overrides_runpath=no
11515 hardcode_into_libs=yes
11516 ;;
11517 esac
11518 ;;
11519
11520gnu*)
11521 version_type=linux
11522 need_lib_prefix=no
11523 need_version=no
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 hardcode_into_libs=yes
11528 ;;
11529
11530hpux9* | hpux10* | hpux11*)
11531 # Give a soname corresponding to the major version so that dld.sl refuses to
11532 # link against other versions.
11533 version_type=sunos
11534 need_lib_prefix=no
11535 need_version=no
11536 case "$host_cpu" in
11537 ia64*)
11538 shrext_cmds='.so'
11539 hardcode_into_libs=yes
11540 dynamic_linker="$host_os dld.so"
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 if test "X$HPUX_IA64_MODE" = X32; then
11546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11547 else
11548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11549 fi
11550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11551 ;;
11552 hppa*64*)
11553 shrext_cmds='.sl'
11554 hardcode_into_libs=yes
11555 dynamic_linker="$host_os dld.sl"
11556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11562 ;;
11563 *)
11564 shrext_cmds='.sl'
11565 dynamic_linker="$host_os dld.sl"
11566 shlibpath_var=SHLIB_PATH
11567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 ;;
11571 esac
11572 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11573 postinstall_cmds='chmod 555 $lib'
11574 ;;
11575
11576irix5* | irix6* | nonstopux*)
11577 case $host_os in
11578 nonstopux*) version_type=nonstopux ;;
11579 *)
11580 if test "$lt_cv_prog_gnu_ld" = yes; then
11581 version_type=linux
11582 else
11583 version_type=irix
11584 fi ;;
11585 esac
11586 need_lib_prefix=no
11587 need_version=no
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11590 case $host_os in
11591 irix5* | nonstopux*)
11592 libsuff= shlibsuff=
11593 ;;
11594 *)
11595 case $LD in # libtool.m4 will add one of these switches to LD
11596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11597 libsuff= shlibsuff= libmagic=32-bit;;
11598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11599 libsuff=32 shlibsuff=N32 libmagic=N32;;
11600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11602 *) libsuff= shlibsuff= libmagic=never-match;;
11603 esac
11604 ;;
11605 esac
11606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11607 shlibpath_overrides_runpath=no
11608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11610 hardcode_into_libs=yes
11611 ;;
11612
11613# No shared lib support for Linux oldld, aout, or coff.
11614linux*oldld* | linux*aout* | linux*coff*)
11615 dynamic_linker=no
11616 ;;
11617
11618# This must be Linux ELF.
11619linux*)
11620 version_type=linux
11621 need_lib_prefix=no
11622 need_version=no
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11626 shlibpath_var=LD_LIBRARY_PATH
11627 shlibpath_overrides_runpath=no
11628 # This implies no fast_install, which is unacceptable.
11629 # Some rework will be needed to allow for fast_install
11630 # before this can be enabled.
11631 hardcode_into_libs=yes
11632
11633 # Append ld.so.conf contents to the search path
11634 if test -f /etc/ld.so.conf; then
11635 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11637 fi
11638
11639 # We used to test for /lib/ld.so.1 and disable shared libraries on
11640 # powerpc, because MkLinux only supported shared libraries with the
11641 # GNU dynamic linker. Since this was broken with cross compilers,
11642 # most powerpc-linux boxes support dynamic linking these days and
11643 # people can always --disable-shared, the test was removed, and we
11644 # assume the GNU/Linux dynamic linker is in use.
11645 dynamic_linker='GNU/Linux ld.so'
11646 ;;
11647
11648knetbsd*-gnu)
11649 version_type=linux
11650 need_lib_prefix=no
11651 need_version=no
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=no
11656 hardcode_into_libs=yes
11657 dynamic_linker='GNU ld.so'
11658 ;;
11659
11660netbsd*)
11661 version_type=sunos
11662 need_lib_prefix=no
11663 need_version=no
11664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11667 dynamic_linker='NetBSD (a.out) ld.so'
11668 else
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 dynamic_linker='NetBSD ld.elf_so'
11672 fi
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11675 hardcode_into_libs=yes
11676 ;;
11677
11678newsos6)
11679 version_type=linux
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 ;;
11684
11685nto-qnx*)
11686 version_type=linux
11687 need_lib_prefix=no
11688 need_version=no
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 shlibpath_overrides_runpath=yes
11693 ;;
11694
11695openbsd*)
11696 version_type=sunos
11697 need_lib_prefix=no
11698 need_version=yes
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11703 case $host_os in
11704 openbsd2.[89] | openbsd2.[89].*)
11705 shlibpath_overrides_runpath=no
11706 ;;
11707 *)
11708 shlibpath_overrides_runpath=yes
11709 ;;
11710 esac
11711 else
11712 shlibpath_overrides_runpath=yes
11713 fi
11714 ;;
11715
11716os2*)
11717 libname_spec='$name'
11718 shrext_cmds=".dll"
11719 need_lib_prefix=no
11720 library_names_spec='$libname${shared_ext} $libname.a'
11721 dynamic_linker='OS/2 ld.exe'
11722 shlibpath_var=LIBPATH
11723 ;;
11724
11725osf3* | osf4* | osf5*)
11726 version_type=osf
11727 need_lib_prefix=no
11728 need_version=no
11729 soname_spec='${libname}${release}${shared_ext}$major'
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11734 ;;
11735
11736sco3.2v5*)
11737 version_type=osf
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 ;;
11742
11743solaris*)
11744 version_type=linux
11745 need_lib_prefix=no
11746 need_version=no
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 soname_spec='${libname}${release}${shared_ext}$major'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11751 hardcode_into_libs=yes
11752 # ldd complains unless libraries are executable
11753 postinstall_cmds='chmod +x $lib'
11754 ;;
11755
11756sunos4*)
11757 version_type=sunos
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 if test "$with_gnu_ld" = yes; then
11763 need_lib_prefix=no
11764 fi
11765 need_version=yes
11766 ;;
11767
11768sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11769 version_type=linux
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 case $host_vendor in
11774 sni)
11775 shlibpath_overrides_runpath=no
11776 need_lib_prefix=no
11777 export_dynamic_flag_spec='${wl}-Blargedynsym'
11778 runpath_var=LD_RUN_PATH
11779 ;;
11780 siemens)
11781 need_lib_prefix=no
11782 ;;
11783 motorola)
11784 need_lib_prefix=no
11785 need_version=no
11786 shlibpath_overrides_runpath=no
11787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11788 ;;
11789 esac
11790 ;;
11791
11792sysv4*MP*)
11793 if test -d /usr/nec ;then
11794 version_type=linux
11795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11796 soname_spec='$libname${shared_ext}.$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 fi
11799 ;;
11800
11801uts4*)
11802 version_type=linux
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 ;;
11807
11808*)
11809 dynamic_linker=no
11810 ;;
11811esac
11812echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11813echo "${ECHO_T}$dynamic_linker" >&6
11814test "$dynamic_linker" = no && can_build_shared=no
11815
11816echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11817echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11818hardcode_action_CXX=
11819if test -n "$hardcode_libdir_flag_spec_CXX" || \
11820 test -n "$runpath_var CXX" || \
11821 test "X$hardcode_automatic_CXX"="Xyes" ; then
11822
11823 # We can hardcode non-existant directories.
11824 if test "$hardcode_direct_CXX" != no &&
11825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11826 # have to relink, otherwise we might link with an installed library
11827 # when we should be linking with a yet-to-be-installed one
11828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11829 test "$hardcode_minus_L_CXX" != no; then
11830 # Linking always hardcodes the temporary library directory.
11831 hardcode_action_CXX=relink
11832 else
11833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11834 hardcode_action_CXX=immediate
11835 fi
11836else
11837 # We cannot hardcode anything, or else we can only hardcode existing
11838 # directories.
11839 hardcode_action_CXX=unsupported
11840fi
11841echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11842echo "${ECHO_T}$hardcode_action_CXX" >&6
11843
11844if test "$hardcode_action_CXX" = relink; then
11845 # Fast installation is not supported
11846 enable_fast_install=no
11847elif test "$shlibpath_overrides_runpath" = yes ||
11848 test "$enable_shared" = no; then
11849 # Fast installation is not necessary
11850 enable_fast_install=needless
11851fi
11852
11853striplib=
11854old_striplib=
11855echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11856echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11857if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11859 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11860 echo "$as_me:$LINENO: result: yes" >&5
11861echo "${ECHO_T}yes" >&6
11862else
11863# FIXME - insert some real tests, host_os isn't really good enough
11864 case $host_os in
11865 darwin*)
11866 if test -n "$STRIP" ; then
11867 striplib="$STRIP -x"
11868 echo "$as_me:$LINENO: result: yes" >&5
11869echo "${ECHO_T}yes" >&6
11870 else
11871 echo "$as_me:$LINENO: result: no" >&5
11872echo "${ECHO_T}no" >&6
11873fi
11874 ;;
11875 *)
11876 echo "$as_me:$LINENO: result: no" >&5
11877echo "${ECHO_T}no" >&6
11878 ;;
11879 esac
11880fi
11881
11882if test "x$enable_dlopen" != xyes; then
11883 enable_dlopen=unknown
11884 enable_dlopen_self=unknown
11885 enable_dlopen_self_static=unknown
11886else
11887 lt_cv_dlopen=no
11888 lt_cv_dlopen_libs=
11889
11890 case $host_os in
11891 beos*)
11892 lt_cv_dlopen="load_add_on"
11893 lt_cv_dlopen_libs=
11894 lt_cv_dlopen_self=yes
11895 ;;
11896
11897 mingw* | pw32*)
11898 lt_cv_dlopen="LoadLibrary"
11899 lt_cv_dlopen_libs=
11900 ;;
11901
11902 cygwin*)
11903 lt_cv_dlopen="dlopen"
11904 lt_cv_dlopen_libs=
11905 ;;
11906
11907 darwin*)
11908 # if libdl is installed we need to link against it
11909 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11910echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11911if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913else
11914 ac_check_lib_save_LIBS=$LIBS
11915LIBS="-ldl $LIBS"
11916cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922
11923/* Override any gcc2 internal prototype to avoid an error. */
11924#ifdef __cplusplus
11925extern "C"
11926#endif
11927/* We use char because int might match the return type of a gcc2
11928 builtin and then its argument prototype would still apply. */
11929char dlopen ();
11930int
11931main ()
11932{
11933dlopen ();
11934 ;
11935 return 0;
11936}
11937_ACEOF
11938rm -f conftest.$ac_objext conftest$ac_exeext
11939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940 (eval $ac_link) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_cxx_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_cv_lib_dl_dlopen=yes
11961else
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965ac_cv_lib_dl_dlopen=no
11966fi
11967rm -f conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969LIBS=$ac_check_lib_save_LIBS
11970fi
11971echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11972echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11973if test $ac_cv_lib_dl_dlopen = yes; then
11974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11975else
11976
11977 lt_cv_dlopen="dyld"
11978 lt_cv_dlopen_libs=
11979 lt_cv_dlopen_self=yes
11980
11981fi
11982
11983 ;;
11984
11985 *)
11986 echo "$as_me:$LINENO: checking for shl_load" >&5
11987echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11988if test "${ac_cv_func_shl_load+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
11991 cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11999#define shl_load innocuous_shl_load
12000
12001/* System header to define __stub macros and hopefully few prototypes,
12002 which can conflict with char shl_load (); below.
12003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004 <limits.h> exists even on freestanding compilers. */
12005
12006#ifdef __STDC__
12007# include <limits.h>
12008#else
12009# include <assert.h>
12010#endif
12011
12012#undef shl_load
12013
12014/* Override any gcc2 internal prototype to avoid an error. */
12015#ifdef __cplusplus
12016extern "C"
12017{
12018#endif
12019/* We use char because int might match the return type of a gcc2
12020 builtin and then its argument prototype would still apply. */
12021char shl_load ();
12022/* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025#if defined (__stub_shl_load) || defined (__stub___shl_load)
12026choke me
12027#else
12028char (*f) () = shl_load;
12029#endif
12030#ifdef __cplusplus
12031}
12032#endif
12033
12034int
12035main ()
12036{
12037return f != shl_load;
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext conftest$ac_exeext
12043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_cxx_werror_flag"
12052 || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_func_shl_load=yes
12065else
12066 echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069ac_cv_func_shl_load=no
12070fi
12071rm -f conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073fi
12074echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12075echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12076if test $ac_cv_func_shl_load = yes; then
12077 lt_cv_dlopen="shl_load"
12078else
12079 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12080echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12081if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083else
12084 ac_check_lib_save_LIBS=$LIBS
12085LIBS="-ldld $LIBS"
12086cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092
12093/* Override any gcc2 internal prototype to avoid an error. */
12094#ifdef __cplusplus
12095extern "C"
12096#endif
12097/* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12099char shl_load ();
12100int
12101main ()
12102{
12103shl_load ();
12104 ;
12105 return 0;
12106}
12107_ACEOF
12108rm -f conftest.$ac_objext conftest$ac_exeext
12109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110 (eval $ac_link) 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_cxx_werror_flag"
12118 || test ! -s conftest.err'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_lib_dld_shl_load=yes
12131else
12132 echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
12135ac_cv_lib_dld_shl_load=no
12136fi
12137rm -f conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139LIBS=$ac_check_lib_save_LIBS
12140fi
12141echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12142echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12143if test $ac_cv_lib_dld_shl_load = yes; then
12144 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12145else
12146 echo "$as_me:$LINENO: checking for dlopen" >&5
12147echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12148if test "${ac_cv_func_dlopen+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150else
12151 cat >conftest.$ac_ext <<_ACEOF
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
12157/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12159#define dlopen innocuous_dlopen
12160
12161/* System header to define __stub macros and hopefully few prototypes,
12162 which can conflict with char dlopen (); below.
12163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164 <limits.h> exists even on freestanding compilers. */
12165
12166#ifdef __STDC__
12167# include <limits.h>
12168#else
12169# include <assert.h>
12170#endif
12171
12172#undef dlopen
12173
12174/* Override any gcc2 internal prototype to avoid an error. */
12175#ifdef __cplusplus
12176extern "C"
12177{
12178#endif
12179/* We use char because int might match the return type of a gcc2
12180 builtin and then its argument prototype would still apply. */
12181char dlopen ();
12182/* The GNU C library defines this for functions which it implements
12183 to always fail with ENOSYS. Some functions are actually named
12184 something starting with __ and the normal name is an alias. */
12185#if defined (__stub_dlopen) || defined (__stub___dlopen)
12186choke me
12187#else
12188char (*f) () = dlopen;
12189#endif
12190#ifdef __cplusplus
12191}
12192#endif
12193
12194int
12195main ()
12196{
12197return f != dlopen;
12198 ;
12199 return 0;
12200}
12201_ACEOF
12202rm -f conftest.$ac_objext conftest$ac_exeext
12203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204 (eval $ac_link) 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_cxx_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest$ac_exeext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_func_dlopen=yes
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229ac_cv_func_dlopen=no
12230fi
12231rm -f conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12233fi
12234echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12235echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12236if test $ac_cv_func_dlopen = yes; then
12237 lt_cv_dlopen="dlopen"
12238else
12239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12240echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12241if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243else
12244 ac_check_lib_save_LIBS=$LIBS
12245LIBS="-ldl $LIBS"
12246cat >conftest.$ac_ext <<_ACEOF
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
12252
12253/* Override any gcc2 internal prototype to avoid an error. */
12254#ifdef __cplusplus
12255extern "C"
12256#endif
12257/* We use char because int might match the return type of a gcc2
12258 builtin and then its argument prototype would still apply. */
12259char dlopen ();
12260int
12261main ()
12262{
12263dlopen ();
12264 ;
12265 return 0;
12266}
12267_ACEOF
12268rm -f conftest.$ac_objext conftest$ac_exeext
12269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270 (eval $ac_link) 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_cxx_werror_flag"
12278 || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest$ac_exeext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_lib_dl_dlopen=yes
12291else
12292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295ac_cv_lib_dl_dlopen=no
12296fi
12297rm -f conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299LIBS=$ac_check_lib_save_LIBS
12300fi
12301echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12302echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12303if test $ac_cv_lib_dl_dlopen = yes; then
12304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12305else
12306 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12307echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12308if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310else
12311 ac_check_lib_save_LIBS=$LIBS
12312LIBS="-lsvld $LIBS"
12313cat >conftest.$ac_ext <<_ACEOF
12314/* confdefs.h. */
12315_ACEOF
12316cat confdefs.h >>conftest.$ac_ext
12317cat >>conftest.$ac_ext <<_ACEOF
12318/* end confdefs.h. */
12319
12320/* Override any gcc2 internal prototype to avoid an error. */
12321#ifdef __cplusplus
12322extern "C"
12323#endif
12324/* We use char because int might match the return type of a gcc2
12325 builtin and then its argument prototype would still apply. */
12326char dlopen ();
12327int
12328main ()
12329{
12330dlopen ();
12331 ;
12332 return 0;
12333}
12334_ACEOF
12335rm -f conftest.$ac_objext conftest$ac_exeext
12336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_cxx_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_lib_svld_dlopen=yes
12358else
12359 echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
12362ac_cv_lib_svld_dlopen=no
12363fi
12364rm -f conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366LIBS=$ac_check_lib_save_LIBS
12367fi
12368echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12369echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12370if test $ac_cv_lib_svld_dlopen = yes; then
12371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12372else
12373 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12374echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12375if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378 ac_check_lib_save_LIBS=$LIBS
12379LIBS="-ldld $LIBS"
12380cat >conftest.$ac_ext <<_ACEOF
12381/* confdefs.h. */
12382_ACEOF
12383cat confdefs.h >>conftest.$ac_ext
12384cat >>conftest.$ac_ext <<_ACEOF
12385/* end confdefs.h. */
12386
12387/* Override any gcc2 internal prototype to avoid an error. */
12388#ifdef __cplusplus
12389extern "C"
12390#endif
12391/* We use char because int might match the return type of a gcc2
12392 builtin and then its argument prototype would still apply. */
12393char dld_link ();
12394int
12395main ()
12396{
12397dld_link ();
12398 ;
12399 return 0;
12400}
12401_ACEOF
12402rm -f conftest.$ac_objext conftest$ac_exeext
12403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_cxx_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_lib_dld_dld_link=yes
12425else
12426 echo "$as_me: failed program was:" >&5
12427sed 's/^/| /' conftest.$ac_ext >&5
12428
12429ac_cv_lib_dld_dld_link=no
12430fi
12431rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433LIBS=$ac_check_lib_save_LIBS
12434fi
12435echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12436echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12437if test $ac_cv_lib_dld_dld_link = yes; then
12438 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12439fi
12440
12441
12442fi
12443
12444
12445fi
12446
12447
12448fi
12449
12450
12451fi
12452
12453
12454fi
12455
12456 ;;
12457 esac
12458
12459 if test "x$lt_cv_dlopen" != xno; then
12460 enable_dlopen=yes
12461 else
12462 enable_dlopen=no
12463 fi
12464
12465 case $lt_cv_dlopen in
12466 dlopen)
12467 save_CPPFLAGS="$CPPFLAGS"
12468 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12469
12470 save_LDFLAGS="$LDFLAGS"
12471 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12472
12473 save_LIBS="$LIBS"
12474 LIBS="$lt_cv_dlopen_libs $LIBS"
12475
12476 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12477echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12478if test "${lt_cv_dlopen_self+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480else
12481 if test "$cross_compiling" = yes; then :
12482 lt_cv_dlopen_self=cross
12483else
12484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12485 lt_status=$lt_dlunknown
12486 cat > conftest.$ac_ext <<EOF
vlm1fcf7592006-08-18 02:27:55 +000012487#line 12487 "configure"
vlm8f3eb992004-06-17 23:42:48 +000012488#include "confdefs.h"
12489
12490#if HAVE_DLFCN_H
12491#include <dlfcn.h>
12492#endif
12493
12494#include <stdio.h>
12495
12496#ifdef RTLD_GLOBAL
12497# define LT_DLGLOBAL RTLD_GLOBAL
12498#else
12499# ifdef DL_GLOBAL
12500# define LT_DLGLOBAL DL_GLOBAL
12501# else
12502# define LT_DLGLOBAL 0
12503# endif
12504#endif
12505
12506/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12507 find out it does not work in some platform. */
12508#ifndef LT_DLLAZY_OR_NOW
12509# ifdef RTLD_LAZY
12510# define LT_DLLAZY_OR_NOW RTLD_LAZY
12511# else
12512# ifdef DL_LAZY
12513# define LT_DLLAZY_OR_NOW DL_LAZY
12514# else
12515# ifdef RTLD_NOW
12516# define LT_DLLAZY_OR_NOW RTLD_NOW
12517# else
12518# ifdef DL_NOW
12519# define LT_DLLAZY_OR_NOW DL_NOW
12520# else
12521# define LT_DLLAZY_OR_NOW 0
12522# endif
12523# endif
12524# endif
12525# endif
12526#endif
12527
12528#ifdef __cplusplus
12529extern "C" void exit (int);
12530#endif
12531
12532void fnord() { int i=42;}
12533int main ()
12534{
12535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12536 int status = $lt_dlunknown;
12537
12538 if (self)
12539 {
12540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12541 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12542 /* dlclose (self); */
12543 }
12544
12545 exit (status);
12546}
12547EOF
12548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549 (eval $ac_link) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12553 (./conftest; exit; ) 2>/dev/null
12554 lt_status=$?
12555 case x$lt_status in
12556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12558 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12559 esac
12560 else :
12561 # compilation failed
12562 lt_cv_dlopen_self=no
12563 fi
12564fi
12565rm -fr conftest*
12566
12567
12568fi
12569echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12570echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12571
12572 if test "x$lt_cv_dlopen_self" = xyes; then
12573 LDFLAGS="$LDFLAGS $link_static_flag"
12574 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12575echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12576if test "${lt_cv_dlopen_self_static+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12578else
12579 if test "$cross_compiling" = yes; then :
12580 lt_cv_dlopen_self_static=cross
12581else
12582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12583 lt_status=$lt_dlunknown
12584 cat > conftest.$ac_ext <<EOF
vlm1fcf7592006-08-18 02:27:55 +000012585#line 12585 "configure"
vlm8f3eb992004-06-17 23:42:48 +000012586#include "confdefs.h"
12587
12588#if HAVE_DLFCN_H
12589#include <dlfcn.h>
12590#endif
12591
12592#include <stdio.h>
12593
12594#ifdef RTLD_GLOBAL
12595# define LT_DLGLOBAL RTLD_GLOBAL
12596#else
12597# ifdef DL_GLOBAL
12598# define LT_DLGLOBAL DL_GLOBAL
12599# else
12600# define LT_DLGLOBAL 0
12601# endif
12602#endif
12603
12604/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12605 find out it does not work in some platform. */
12606#ifndef LT_DLLAZY_OR_NOW
12607# ifdef RTLD_LAZY
12608# define LT_DLLAZY_OR_NOW RTLD_LAZY
12609# else
12610# ifdef DL_LAZY
12611# define LT_DLLAZY_OR_NOW DL_LAZY
12612# else
12613# ifdef RTLD_NOW
12614# define LT_DLLAZY_OR_NOW RTLD_NOW
12615# else
12616# ifdef DL_NOW
12617# define LT_DLLAZY_OR_NOW DL_NOW
12618# else
12619# define LT_DLLAZY_OR_NOW 0
12620# endif
12621# endif
12622# endif
12623# endif
12624#endif
12625
12626#ifdef __cplusplus
12627extern "C" void exit (int);
12628#endif
12629
12630void fnord() { int i=42;}
12631int main ()
12632{
12633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12634 int status = $lt_dlunknown;
12635
12636 if (self)
12637 {
12638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12640 /* dlclose (self); */
12641 }
12642
12643 exit (status);
12644}
12645EOF
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12651 (./conftest; exit; ) 2>/dev/null
12652 lt_status=$?
12653 case x$lt_status in
12654 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12655 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12656 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12657 esac
12658 else :
12659 # compilation failed
12660 lt_cv_dlopen_self_static=no
12661 fi
12662fi
12663rm -fr conftest*
12664
12665
12666fi
12667echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12668echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12669 fi
12670
12671 CPPFLAGS="$save_CPPFLAGS"
12672 LDFLAGS="$save_LDFLAGS"
12673 LIBS="$save_LIBS"
12674 ;;
12675 esac
12676
12677 case $lt_cv_dlopen_self in
12678 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12679 *) enable_dlopen_self=unknown ;;
12680 esac
12681
12682 case $lt_cv_dlopen_self_static in
12683 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12684 *) enable_dlopen_self_static=unknown ;;
12685 esac
12686fi
12687
12688
12689# The else clause should only fire when bootstrapping the
12690# libtool distribution, otherwise you forgot to ship ltmain.sh
12691# with your package, and you will get complaints that there are
12692# no rules to generate ltmain.sh.
12693if test -f "$ltmain"; then
12694 # See if we are running on zsh, and set the options which allow our commands through
12695 # without removal of \ escapes.
12696 if test -n "${ZSH_VERSION+set}" ; then
12697 setopt NO_GLOB_SUBST
12698 fi
12699 # Now quote all the things that may contain metacharacters while being
12700 # careful not to overquote the AC_SUBSTed values. We take copies of the
12701 # variables and quote the copies for generation of the libtool script.
12702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12703 SED SHELL STRIP \
12704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12706 deplibs_check_method reload_flag reload_cmds need_locks \
12707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12708 lt_cv_sys_global_symbol_to_c_name_address \
12709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12710 old_postinstall_cmds old_postuninstall_cmds \
12711 compiler_CXX \
12712 CC_CXX \
12713 LD_CXX \
12714 lt_prog_compiler_wl_CXX \
12715 lt_prog_compiler_pic_CXX \
12716 lt_prog_compiler_static_CXX \
12717 lt_prog_compiler_no_builtin_flag_CXX \
12718 export_dynamic_flag_spec_CXX \
12719 thread_safe_flag_spec_CXX \
12720 whole_archive_flag_spec_CXX \
12721 enable_shared_with_static_runtimes_CXX \
12722 old_archive_cmds_CXX \
12723 old_archive_from_new_cmds_CXX \
12724 predep_objects_CXX \
12725 postdep_objects_CXX \
12726 predeps_CXX \
12727 postdeps_CXX \
12728 compiler_lib_search_path_CXX \
12729 archive_cmds_CXX \
12730 archive_expsym_cmds_CXX \
12731 postinstall_cmds_CXX \
12732 postuninstall_cmds_CXX \
12733 old_archive_from_expsyms_cmds_CXX \
12734 allow_undefined_flag_CXX \
12735 no_undefined_flag_CXX \
12736 export_symbols_cmds_CXX \
12737 hardcode_libdir_flag_spec_CXX \
12738 hardcode_libdir_flag_spec_ld_CXX \
12739 hardcode_libdir_separator_CXX \
12740 hardcode_automatic_CXX \
12741 module_cmds_CXX \
12742 module_expsym_cmds_CXX \
12743 lt_cv_prog_compiler_c_o_CXX \
12744 exclude_expsyms_CXX \
12745 include_expsyms_CXX; do
12746
12747 case $var in
12748 old_archive_cmds_CXX | \
12749 old_archive_from_new_cmds_CXX | \
12750 archive_cmds_CXX | \
12751 archive_expsym_cmds_CXX | \
12752 module_cmds_CXX | \
12753 module_expsym_cmds_CXX | \
12754 old_archive_from_expsyms_cmds_CXX | \
12755 export_symbols_cmds_CXX | \
12756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12757 postinstall_cmds | postuninstall_cmds | \
12758 old_postinstall_cmds | old_postuninstall_cmds | \
12759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12760 # Double-quote double-evaled strings.
12761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12762 ;;
12763 *)
12764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12765 ;;
12766 esac
12767 done
12768
12769 case $lt_echo in
12770 *'\$0 --fallback-echo"')
12771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12772 ;;
12773 esac
12774
12775cfgfile="$ofile"
12776
12777 cat <<__EOF__ >> "$cfgfile"
12778# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12779
12780# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12781
12782# Shell to use when invoking shell scripts.
12783SHELL=$lt_SHELL
12784
12785# Whether or not to build shared libraries.
12786build_libtool_libs=$enable_shared
12787
12788# Whether or not to build static libraries.
12789build_old_libs=$enable_static
12790
12791# Whether or not to add -lc for building shared libraries.
12792build_libtool_need_lc=$archive_cmds_need_lc_CXX
12793
12794# Whether or not to disallow shared libs when runtime libs are static
12795allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12796
12797# Whether or not to optimize for fast installation.
12798fast_install=$enable_fast_install
12799
12800# The host system.
12801host_alias=$host_alias
12802host=$host
12803
12804# An echo program that does not interpret backslashes.
12805echo=$lt_echo
12806
12807# The archiver.
12808AR=$lt_AR
12809AR_FLAGS=$lt_AR_FLAGS
12810
12811# A C compiler.
12812LTCC=$lt_LTCC
12813
12814# A language-specific compiler.
12815CC=$lt_compiler_CXX
12816
12817# Is the compiler the GNU C compiler?
12818with_gcc=$GCC_CXX
12819
12820# An ERE matcher.
12821EGREP=$lt_EGREP
12822
12823# The linker used to build libraries.
12824LD=$lt_LD_CXX
12825
12826# Whether we need hard or soft links.
12827LN_S=$lt_LN_S
12828
12829# A BSD-compatible nm program.
12830NM=$lt_NM
12831
12832# A symbol stripping program
12833STRIP=$lt_STRIP
12834
12835# Used to examine libraries when file_magic_cmd begins "file"
12836MAGIC_CMD=$MAGIC_CMD
12837
12838# Used on cygwin: DLL creation program.
12839DLLTOOL="$DLLTOOL"
12840
12841# Used on cygwin: object dumper.
12842OBJDUMP="$OBJDUMP"
12843
12844# Used on cygwin: assembler.
12845AS="$AS"
12846
12847# The name of the directory that contains temporary libtool files.
12848objdir=$objdir
12849
12850# How to create reloadable object files.
12851reload_flag=$lt_reload_flag
12852reload_cmds=$lt_reload_cmds
12853
12854# How to pass a linker flag through the compiler.
12855wl=$lt_lt_prog_compiler_wl_CXX
12856
12857# Object file suffix (normally "o").
12858objext="$ac_objext"
12859
12860# Old archive suffix (normally "a").
12861libext="$libext"
12862
12863# Shared library suffix (normally ".so").
12864shrext_cmds='$shrext_cmds'
12865
12866# Executable file suffix (normally "").
12867exeext="$exeext"
12868
12869# Additional compiler flags for building library objects.
12870pic_flag=$lt_lt_prog_compiler_pic_CXX
12871pic_mode=$pic_mode
12872
12873# What is the maximum length of a command?
12874max_cmd_len=$lt_cv_sys_max_cmd_len
12875
12876# Does compiler simultaneously support -c and -o options?
12877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12878
12879# Must we lock files when doing compilation ?
12880need_locks=$lt_need_locks
12881
12882# Do we need the lib prefix for modules?
12883need_lib_prefix=$need_lib_prefix
12884
12885# Do we need a version for libraries?
12886need_version=$need_version
12887
12888# Whether dlopen is supported.
12889dlopen_support=$enable_dlopen
12890
12891# Whether dlopen of programs is supported.
12892dlopen_self=$enable_dlopen_self
12893
12894# Whether dlopen of statically linked programs is supported.
12895dlopen_self_static=$enable_dlopen_self_static
12896
12897# Compiler flag to prevent dynamic linking.
12898link_static_flag=$lt_lt_prog_compiler_static_CXX
12899
12900# Compiler flag to turn off builtin functions.
12901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12902
12903# Compiler flag to allow reflexive dlopens.
12904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12905
12906# Compiler flag to generate shared objects directly from archives.
12907whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12908
12909# Compiler flag to generate thread-safe objects.
12910thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12911
12912# Library versioning type.
12913version_type=$version_type
12914
12915# Format of library name prefix.
12916libname_spec=$lt_libname_spec
12917
12918# List of archive names. First name is the real one, the rest are links.
12919# The last name is the one that the linker finds with -lNAME.
12920library_names_spec=$lt_library_names_spec
12921
12922# The coded name of the library, if different from the real name.
12923soname_spec=$lt_soname_spec
12924
12925# Commands used to build and install an old-style archive.
12926RANLIB=$lt_RANLIB
12927old_archive_cmds=$lt_old_archive_cmds_CXX
12928old_postinstall_cmds=$lt_old_postinstall_cmds
12929old_postuninstall_cmds=$lt_old_postuninstall_cmds
12930
12931# Create an old-style archive from a shared archive.
12932old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12933
12934# Create a temporary old-style archive to link instead of a shared archive.
12935old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12936
12937# Commands used to build and install a shared archive.
12938archive_cmds=$lt_archive_cmds_CXX
12939archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12940postinstall_cmds=$lt_postinstall_cmds
12941postuninstall_cmds=$lt_postuninstall_cmds
12942
12943# Commands used to build a loadable module (assumed same as above if empty)
12944module_cmds=$lt_module_cmds_CXX
12945module_expsym_cmds=$lt_module_expsym_cmds_CXX
12946
12947# Commands to strip libraries.
12948old_striplib=$lt_old_striplib
12949striplib=$lt_striplib
12950
12951# Dependencies to place before the objects being linked to create a
12952# shared library.
12953predep_objects=$lt_predep_objects_CXX
12954
12955# Dependencies to place after the objects being linked to create a
12956# shared library.
12957postdep_objects=$lt_postdep_objects_CXX
12958
12959# Dependencies to place before the objects being linked to create a
12960# shared library.
12961predeps=$lt_predeps_CXX
12962
12963# Dependencies to place after the objects being linked to create a
12964# shared library.
12965postdeps=$lt_postdeps_CXX
12966
12967# The library search path used internally by the compiler when linking
12968# a shared library.
12969compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12970
12971# Method to check whether dependent libraries are shared objects.
12972deplibs_check_method=$lt_deplibs_check_method
12973
12974# Command to use when deplibs_check_method == file_magic.
12975file_magic_cmd=$lt_file_magic_cmd
12976
12977# Flag that allows shared libraries with undefined symbols to be built.
12978allow_undefined_flag=$lt_allow_undefined_flag_CXX
12979
12980# Flag that forces no undefined symbols.
12981no_undefined_flag=$lt_no_undefined_flag_CXX
12982
12983# Commands used to finish a libtool library installation in a directory.
12984finish_cmds=$lt_finish_cmds
12985
12986# Same as above, but a single script fragment to be evaled but not shown.
12987finish_eval=$lt_finish_eval
12988
12989# Take the output of nm and produce a listing of raw symbols and C names.
12990global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12991
12992# Transform the output of nm in a proper C declaration
12993global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12994
12995# Transform the output of nm in a C name address pair
12996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12997
12998# This is the shared library runtime path variable.
12999runpath_var=$runpath_var
13000
13001# This is the shared library path variable.
13002shlibpath_var=$shlibpath_var
13003
13004# Is shlibpath searched before the hard-coded library search path?
13005shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13006
13007# How to hardcode a shared library path into an executable.
13008hardcode_action=$hardcode_action_CXX
13009
13010# Whether we should hardcode library paths into libraries.
13011hardcode_into_libs=$hardcode_into_libs
13012
13013# Flag to hardcode \$libdir into a binary during linking.
13014# This must work even if \$libdir does not exist.
13015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13016
13017# If ld is used when linking, flag to hardcode \$libdir into
13018# a binary during linking. This must work even if \$libdir does
13019# not exist.
13020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13021
13022# Whether we need a single -rpath flag with a separated argument.
13023hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13024
13025# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13026# resulting binary.
13027hardcode_direct=$hardcode_direct_CXX
13028
13029# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13030# resulting binary.
13031hardcode_minus_L=$hardcode_minus_L_CXX
13032
13033# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13034# the resulting binary.
13035hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13036
13037# Set to yes if building a shared library automatically hardcodes DIR into the library
13038# and all subsequent libraries and executables linked against it.
13039hardcode_automatic=$hardcode_automatic_CXX
13040
13041# Variables whose values should be saved in libtool wrapper scripts and
13042# restored at relink time.
13043variables_saved_for_relink="$variables_saved_for_relink"
13044
13045# Whether libtool must link a program against all its dependency libraries.
13046link_all_deplibs=$link_all_deplibs_CXX
13047
13048# Compile-time system search path for libraries
13049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13050
13051# Run-time system search path for libraries
13052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13053
13054# Fix the shell variable \$srcfile for the compiler.
13055fix_srcfile_path="$fix_srcfile_path_CXX"
13056
13057# Set to yes if exported symbols are required.
13058always_export_symbols=$always_export_symbols_CXX
13059
13060# The commands to list exported symbols.
13061export_symbols_cmds=$lt_export_symbols_cmds_CXX
13062
13063# The commands to extract the exported symbol list from a shared archive.
13064extract_expsyms_cmds=$lt_extract_expsyms_cmds
13065
13066# Symbols that should not be listed in the preloaded symbols.
13067exclude_expsyms=$lt_exclude_expsyms_CXX
13068
13069# Symbols that must always be exported.
13070include_expsyms=$lt_include_expsyms_CXX
13071
13072# ### END LIBTOOL TAG CONFIG: $tagname
13073
13074__EOF__
13075
13076
13077else
13078 # If there is no Makefile yet, we rely on a make rule to execute
13079 # `config.status --recheck' to rerun these tests and create the
13080 # libtool script then.
13081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13082 if test -f "$ltmain_in"; then
13083 test -f Makefile && make "$ltmain"
13084 fi
13085fi
13086
13087
13088ac_ext=c
13089ac_cpp='$CPP $CPPFLAGS'
13090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13092ac_compiler_gnu=$ac_cv_c_compiler_gnu
13093
13094CC=$lt_save_CC
13095LDCXX=$LD
13096LD=$lt_save_LD
13097GCC=$lt_save_GCC
13098with_gnu_ldcxx=$with_gnu_ld
13099with_gnu_ld=$lt_save_with_gnu_ld
13100lt_cv_path_LDCXX=$lt_cv_path_LD
13101lt_cv_path_LD=$lt_save_path_LD
13102lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13103lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13104
13105 else
13106 tagname=""
13107 fi
13108 ;;
13109
13110 F77)
13111 if test -n "$F77" && test "X$F77" != "Xno"; then
13112
13113ac_ext=f
13114ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13115ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13117
13118
13119archive_cmds_need_lc_F77=no
13120allow_undefined_flag_F77=
13121always_export_symbols_F77=no
13122archive_expsym_cmds_F77=
13123export_dynamic_flag_spec_F77=
13124hardcode_direct_F77=no
13125hardcode_libdir_flag_spec_F77=
13126hardcode_libdir_flag_spec_ld_F77=
13127hardcode_libdir_separator_F77=
13128hardcode_minus_L_F77=no
13129hardcode_automatic_F77=no
13130module_cmds_F77=
13131module_expsym_cmds_F77=
13132link_all_deplibs_F77=unknown
13133old_archive_cmds_F77=$old_archive_cmds
13134no_undefined_flag_F77=
13135whole_archive_flag_spec_F77=
13136enable_shared_with_static_runtimes_F77=no
13137
13138# Source file extension for f77 test sources.
13139ac_ext=f
13140
13141# Object file extension for compiled f77 test sources.
13142objext=o
13143objext_F77=$objext
13144
13145# Code to be used in simple compile tests
13146lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13147
13148# Code to be used in simple link tests
13149lt_simple_link_test_code=" program t\n end\n"
13150
13151# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13152
13153# If no C compiler was specified, use CC.
13154LTCC=${LTCC-"$CC"}
13155
13156# Allow CC to be a program name with arguments.
13157compiler=$CC
13158
13159
13160# Allow CC to be a program name with arguments.
13161lt_save_CC="$CC"
13162CC=${F77-"f77"}
13163compiler=$CC
13164compiler_F77=$CC
13165cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13166
13167echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13168echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13169echo "$as_me:$LINENO: result: $can_build_shared" >&5
13170echo "${ECHO_T}$can_build_shared" >&6
13171
13172echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13173echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13174test "$can_build_shared" = "no" && enable_shared=no
13175
13176# On AIX, shared libraries and static libraries use the same namespace, and
13177# are all built from PIC.
13178case "$host_os" in
13179aix3*)
13180 test "$enable_shared" = yes && enable_static=no
13181 if test -n "$RANLIB"; then
13182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13183 postinstall_cmds='$RANLIB $lib'
13184 fi
13185 ;;
13186aix4* | aix5*)
13187 test "$enable_shared" = yes && enable_static=no
13188 ;;
13189esac
13190echo "$as_me:$LINENO: result: $enable_shared" >&5
13191echo "${ECHO_T}$enable_shared" >&6
13192
13193echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13194echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13195# Make sure either enable_shared or enable_static is yes.
13196test "$enable_shared" = yes || enable_static=yes
13197echo "$as_me:$LINENO: result: $enable_static" >&5
13198echo "${ECHO_T}$enable_static" >&6
13199
13200test "$ld_shlibs_F77" = no && can_build_shared=no
13201
13202GCC_F77="$G77"
13203LD_F77="$LD"
13204
13205lt_prog_compiler_wl_F77=
13206lt_prog_compiler_pic_F77=
13207lt_prog_compiler_static_F77=
13208
13209echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13210echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13211
13212 if test "$GCC" = yes; then
13213 lt_prog_compiler_wl_F77='-Wl,'
13214 lt_prog_compiler_static_F77='-static'
13215
13216 case $host_os in
13217 aix*)
13218 # All AIX code is PIC.
13219 if test "$host_cpu" = ia64; then
13220 # AIX 5 now supports IA64 processor
13221 lt_prog_compiler_static_F77='-Bstatic'
13222 fi
13223 ;;
13224
13225 amigaos*)
13226 # FIXME: we need at least 68020 code to build shared libraries, but
13227 # adding the `-m68020' flag to GCC prevents building anything better,
13228 # like `-m68040'.
13229 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13230 ;;
13231
13232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13233 # PIC is the default for these OSes.
13234 ;;
13235
13236 mingw* | pw32* | os2*)
13237 # This hack is so that the source file can tell whether it is being
13238 # built for inclusion in a dll (and should export symbols for example).
13239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13240 ;;
13241
13242 darwin* | rhapsody*)
13243 # PIC is the default on this platform
13244 # Common symbols not allowed in MH_DYLIB files
13245 lt_prog_compiler_pic_F77='-fno-common'
13246 ;;
13247
13248 msdosdjgpp*)
13249 # Just because we use GCC doesn't mean we suddenly get shared libraries
13250 # on systems that don't support them.
13251 lt_prog_compiler_can_build_shared_F77=no
13252 enable_shared=no
13253 ;;
13254
13255 sysv4*MP*)
13256 if test -d /usr/nec; then
13257 lt_prog_compiler_pic_F77=-Kconform_pic
13258 fi
13259 ;;
13260
13261 hpux*)
13262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13263 # not for PA HP-UX.
13264 case "$host_cpu" in
13265 hppa*64*|ia64*)
13266 # +Z the default
13267 ;;
13268 *)
13269 lt_prog_compiler_pic_F77='-fPIC'
13270 ;;
13271 esac
13272 ;;
13273
13274 *)
13275 lt_prog_compiler_pic_F77='-fPIC'
13276 ;;
13277 esac
13278 else
13279 # PORTME Check for flag to pass linker flags through the system compiler.
13280 case $host_os in
13281 aix*)
13282 lt_prog_compiler_wl_F77='-Wl,'
13283 if test "$host_cpu" = ia64; then
13284 # AIX 5 now supports IA64 processor
13285 lt_prog_compiler_static_F77='-Bstatic'
13286 else
13287 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13288 fi
13289 ;;
13290
13291 mingw* | pw32* | os2*)
13292 # This hack is so that the source file can tell whether it is being
13293 # built for inclusion in a dll (and should export symbols for example).
13294 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13295 ;;
13296
13297 hpux9* | hpux10* | hpux11*)
13298 lt_prog_compiler_wl_F77='-Wl,'
13299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13300 # not for PA HP-UX.
13301 case "$host_cpu" in
13302 hppa*64*|ia64*)
13303 # +Z the default
13304 ;;
13305 *)
13306 lt_prog_compiler_pic_F77='+Z'
13307 ;;
13308 esac
13309 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13310 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13311 ;;
13312
13313 irix5* | irix6* | nonstopux*)
13314 lt_prog_compiler_wl_F77='-Wl,'
13315 # PIC (with -KPIC) is the default.
13316 lt_prog_compiler_static_F77='-non_shared'
13317 ;;
13318
13319 newsos6)
13320 lt_prog_compiler_pic_F77='-KPIC'
13321 lt_prog_compiler_static_F77='-Bstatic'
13322 ;;
13323
13324 linux*)
13325 case $CC in
13326 icc* | ecc*)
13327 lt_prog_compiler_wl_F77='-Wl,'
13328 lt_prog_compiler_pic_F77='-KPIC'
13329 lt_prog_compiler_static_F77='-static'
13330 ;;
13331 ccc*)
13332 lt_prog_compiler_wl_F77='-Wl,'
13333 # All Alpha code is PIC.
13334 lt_prog_compiler_static_F77='-non_shared'
13335 ;;
13336 esac
13337 ;;
13338
13339 osf3* | osf4* | osf5*)
13340 lt_prog_compiler_wl_F77='-Wl,'
13341 # All OSF/1 code is PIC.
13342 lt_prog_compiler_static_F77='-non_shared'
13343 ;;
13344
13345 sco3.2v5*)
13346 lt_prog_compiler_pic_F77='-Kpic'
13347 lt_prog_compiler_static_F77='-dn'
13348 ;;
13349
13350 solaris*)
13351 lt_prog_compiler_wl_F77='-Wl,'
13352 lt_prog_compiler_pic_F77='-KPIC'
13353 lt_prog_compiler_static_F77='-Bstatic'
13354 ;;
13355
13356 sunos4*)
13357 lt_prog_compiler_wl_F77='-Qoption ld '
13358 lt_prog_compiler_pic_F77='-PIC'
13359 lt_prog_compiler_static_F77='-Bstatic'
13360 ;;
13361
13362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13363 lt_prog_compiler_wl_F77='-Wl,'
13364 lt_prog_compiler_pic_F77='-KPIC'
13365 lt_prog_compiler_static_F77='-Bstatic'
13366 ;;
13367
13368 sysv4*MP*)
13369 if test -d /usr/nec ;then
13370 lt_prog_compiler_pic_F77='-Kconform_pic'
13371 lt_prog_compiler_static_F77='-Bstatic'
13372 fi
13373 ;;
13374
13375 uts4*)
13376 lt_prog_compiler_pic_F77='-pic'
13377 lt_prog_compiler_static_F77='-Bstatic'
13378 ;;
13379
13380 *)
13381 lt_prog_compiler_can_build_shared_F77=no
13382 ;;
13383 esac
13384 fi
13385
13386echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13387echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13388
13389#
13390# Check to make sure the PIC flag actually works.
13391#
13392if test -n "$lt_prog_compiler_pic_F77"; then
13393
13394echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13395echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13396if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398else
13399 lt_prog_compiler_pic_works_F77=no
13400 ac_outfile=conftest.$ac_objext
13401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13402 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13403 # Insert the option either (1) after the last *FLAGS variable, or
13404 # (2) before a word containing "conftest.", or (3) at the end.
13405 # Note that $ac_compile itself does not contain backslashes and begins
13406 # with a dollar sign (not a hyphen), so the echo should work correctly.
13407 # The option is referenced via a variable to avoid confusing sed.
13408 lt_compile=`echo "$ac_compile" | $SED \
13409 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13411 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +000013412 (eval echo "\"\$as_me:13412: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000013413 (eval "$lt_compile" 2>conftest.err)
13414 ac_status=$?
13415 cat conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +000013416 echo "$as_me:13416: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000013417 if (exit $ac_status) && test -s "$ac_outfile"; then
13418 # The compiler can only warn and ignore the option if not recognized
13419 # So say no if there are warnings
13420 if test ! -s conftest.err; then
13421 lt_prog_compiler_pic_works_F77=yes
13422 fi
13423 fi
13424 $rm conftest*
13425
13426fi
13427echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13428echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13429
13430if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13431 case $lt_prog_compiler_pic_F77 in
13432 "" | " "*) ;;
13433 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13434 esac
13435else
13436 lt_prog_compiler_pic_F77=
13437 lt_prog_compiler_can_build_shared_F77=no
13438fi
13439
13440fi
13441case "$host_os" in
13442 # For platforms which do not support PIC, -DPIC is meaningless:
13443 *djgpp*)
13444 lt_prog_compiler_pic_F77=
13445 ;;
13446 *)
13447 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13448 ;;
13449esac
13450
13451echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13452echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13453if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455else
13456 lt_cv_prog_compiler_c_o_F77=no
13457 $rm -r conftest 2>/dev/null
13458 mkdir conftest
13459 cd conftest
13460 mkdir out
13461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13462
13463 lt_compiler_flag="-o out/conftest2.$ac_objext"
13464 # Insert the option either (1) after the last *FLAGS variable, or
13465 # (2) before a word containing "conftest.", or (3) at the end.
13466 # Note that $ac_compile itself does not contain backslashes and begins
13467 # with a dollar sign (not a hyphen), so the echo should work correctly.
13468 lt_compile=`echo "$ac_compile" | $SED \
13469 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13471 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +000013472 (eval echo "\"\$as_me:13472: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000013473 (eval "$lt_compile" 2>out/conftest.err)
13474 ac_status=$?
13475 cat out/conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +000013476 echo "$as_me:13476: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000013477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13478 then
13479 # The compiler can only warn and ignore the option if not recognized
13480 # So say no if there are warnings
13481 if test ! -s out/conftest.err; then
13482 lt_cv_prog_compiler_c_o_F77=yes
13483 fi
13484 fi
13485 chmod u+w .
13486 $rm conftest*
13487 # SGI C++ compiler will create directory out/ii_files/ for
13488 # template instantiation
13489 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13490 $rm out/* && rmdir out
13491 cd ..
13492 rmdir conftest
13493 $rm conftest*
13494
13495fi
13496echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13497echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13498
13499
13500hard_links="nottested"
13501if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13502 # do not overwrite the value of need_locks provided by the user
13503 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13504echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13505 hard_links=yes
13506 $rm conftest*
13507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13508 touch conftest.a
13509 ln conftest.a conftest.b 2>&5 || hard_links=no
13510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13511 echo "$as_me:$LINENO: result: $hard_links" >&5
13512echo "${ECHO_T}$hard_links" >&6
13513 if test "$hard_links" = no; then
13514 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13515echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13516 need_locks=warn
13517 fi
13518else
13519 need_locks=no
13520fi
13521
13522echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13523echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13524
13525 runpath_var=
13526 allow_undefined_flag_F77=
13527 enable_shared_with_static_runtimes_F77=no
13528 archive_cmds_F77=
13529 archive_expsym_cmds_F77=
13530 old_archive_From_new_cmds_F77=
13531 old_archive_from_expsyms_cmds_F77=
13532 export_dynamic_flag_spec_F77=
13533 whole_archive_flag_spec_F77=
13534 thread_safe_flag_spec_F77=
13535 hardcode_libdir_flag_spec_F77=
13536 hardcode_libdir_flag_spec_ld_F77=
13537 hardcode_libdir_separator_F77=
13538 hardcode_direct_F77=no
13539 hardcode_minus_L_F77=no
13540 hardcode_shlibpath_var_F77=unsupported
13541 link_all_deplibs_F77=unknown
13542 hardcode_automatic_F77=no
13543 module_cmds_F77=
13544 module_expsym_cmds_F77=
13545 always_export_symbols_F77=no
13546 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13547 # include_expsyms should be a list of space-separated symbols to be *always*
13548 # included in the symbol list
13549 include_expsyms_F77=
13550 # exclude_expsyms can be an extended regexp of symbols to exclude
13551 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13553 # as well as any symbol that contains `d'.
13554 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13556 # platforms (ab)use it in PIC code, but their linkers get confused if
13557 # the symbol is explicitly referenced. Since portable code cannot
13558 # rely on this symbol name, it's probably fine to never include it in
13559 # preloaded symbol tables.
13560 extract_expsyms_cmds=
13561
13562 case $host_os in
13563 cygwin* | mingw* | pw32*)
13564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13565 # When not using gcc, we currently assume that we are using
13566 # Microsoft Visual C++.
13567 if test "$GCC" != yes; then
13568 with_gnu_ld=no
13569 fi
13570 ;;
13571 openbsd*)
13572 with_gnu_ld=no
13573 ;;
13574 esac
13575
13576 ld_shlibs_F77=yes
13577 if test "$with_gnu_ld" = yes; then
13578 # If archive_cmds runs LD, not CC, wlarc should be empty
13579 wlarc='${wl}'
13580
13581 # See if GNU ld supports shared libraries.
13582 case $host_os in
13583 aix3* | aix4* | aix5*)
13584 # On AIX/PPC, the GNU linker is very broken
13585 if test "$host_cpu" != ia64; then
13586 ld_shlibs_F77=no
13587 cat <<EOF 1>&2
13588
13589*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13590*** to be unable to reliably create shared libraries on AIX.
13591*** Therefore, libtool is disabling shared libraries support. If you
13592*** really care for shared libraries, you may want to modify your PATH
13593*** so that a non-GNU linker is found, and then restart.
13594
13595EOF
13596 fi
13597 ;;
13598
13599 amigaos*)
13600 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)'
13601 hardcode_libdir_flag_spec_F77='-L$libdir'
13602 hardcode_minus_L_F77=yes
13603
13604 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13605 # that the semantics of dynamic libraries on AmigaOS, at least up
13606 # to version 4, is to share data among multiple programs linked
13607 # with the same dynamic library. Since this doesn't match the
13608 # behavior of shared libraries on other platforms, we can't use
13609 # them.
13610 ld_shlibs_F77=no
13611 ;;
13612
13613 beos*)
13614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615 allow_undefined_flag_F77=unsupported
13616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13617 # support --undefined. This deserves some investigation. FIXME
13618 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13619 else
13620 ld_shlibs_F77=no
13621 fi
13622 ;;
13623
13624 cygwin* | mingw* | pw32*)
13625 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13626 # as there is no search path for DLLs.
13627 hardcode_libdir_flag_spec_F77='-L$libdir'
13628 allow_undefined_flag_F77=unsupported
13629 always_export_symbols_F77=no
13630 enable_shared_with_static_runtimes_F77=yes
13631 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13632
13633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13635 # If the export-symbols file already is a .def file (1st line
13636 # is EXPORTS), use it as is; otherwise, prepend...
13637 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13638 cp $export_symbols $output_objdir/$soname.def;
13639 else
13640 echo EXPORTS > $output_objdir/$soname.def;
13641 cat $export_symbols >> $output_objdir/$soname.def;
13642 fi~
13643 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13644 else
13645 ld_shlibs=no
13646 fi
13647 ;;
13648
13649 netbsd*)
13650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13651 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13652 wlarc=
13653 else
13654 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13655 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13656 fi
13657 ;;
13658
13659 solaris* | sysv5*)
13660 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13661 ld_shlibs_F77=no
13662 cat <<EOF 1>&2
13663
13664*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13665*** create shared libraries on Solaris systems. Therefore, libtool
13666*** is disabling shared libraries support. We urge you to upgrade GNU
13667*** binutils to release 2.9.1 or newer. Another option is to modify
13668*** your PATH or compiler configuration so that the native linker is
13669*** used, and then restart.
13670
13671EOF
13672 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13673 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13674 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13675 else
13676 ld_shlibs_F77=no
13677 fi
13678 ;;
13679
13680 sunos4*)
13681 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13682 wlarc=
13683 hardcode_direct_F77=yes
13684 hardcode_shlibpath_var_F77=no
13685 ;;
13686
13687 linux*)
13688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13689 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13690 archive_cmds_F77="$tmp_archive_cmds"
13691 supports_anon_versioning=no
13692 case `$LD -v 2>/dev/null` in
13693 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13696 *\ 2.11.*) ;; # other 2.11 versions
13697 *) supports_anon_versioning=yes ;;
13698 esac
13699 if test $supports_anon_versioning = yes; then
13700 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13701cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13702$echo "local: *; };" >> $output_objdir/$libname.ver~
13703 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13704 else
13705 archive_expsym_cmds_F77="$tmp_archive_cmds"
13706 fi
13707 else
13708 ld_shlibs_F77=no
13709 fi
13710 ;;
13711
13712 *)
13713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13714 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13716 else
13717 ld_shlibs_F77=no
13718 fi
13719 ;;
13720 esac
13721
13722 if test "$ld_shlibs_F77" = yes; then
13723 runpath_var=LD_RUN_PATH
13724 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13725 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13726 # ancient GNU ld didn't support --whole-archive et. al.
13727 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13728 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13729 else
13730 whole_archive_flag_spec_F77=
13731 fi
13732 fi
13733 else
13734 # PORTME fill in a description of your system's linker (not GNU ld)
13735 case $host_os in
13736 aix3*)
13737 allow_undefined_flag_F77=unsupported
13738 always_export_symbols_F77=yes
13739 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'
13740 # Note: this linker hardcodes the directories in LIBPATH if there
13741 # are no directories specified by -L.
13742 hardcode_minus_L_F77=yes
13743 if test "$GCC" = yes && test -z "$link_static_flag"; then
13744 # Neither direct hardcoding nor static linking is supported with a
13745 # broken collect2.
13746 hardcode_direct_F77=unsupported
13747 fi
13748 ;;
13749
13750 aix4* | aix5*)
13751 if test "$host_cpu" = ia64; then
13752 # On IA64, the linker does run time linking by default, so we don't
13753 # have to do anything special.
13754 aix_use_runtimelinking=no
13755 exp_sym_flag='-Bexport'
13756 no_entry_flag=""
13757 else
13758 # If we're using GNU nm, then we don't want the "-C" option.
13759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13760 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13761 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'
13762 else
13763 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'
13764 fi
13765 aix_use_runtimelinking=no
13766
13767 # Test if we are trying to use run time linking or normal
13768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13769 # need to do runtime linking.
13770 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13771 for ld_flag in $LDFLAGS; do
13772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13773 aix_use_runtimelinking=yes
13774 break
13775 fi
13776 done
13777 esac
13778
13779 exp_sym_flag='-bexport'
13780 no_entry_flag='-bnoentry'
13781 fi
13782
13783 # When large executables or shared objects are built, AIX ld can
13784 # have problems creating the table of contents. If linking a library
13785 # or program results in "error TOC overflow" add -mminimal-toc to
13786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13788
13789 archive_cmds_F77=''
13790 hardcode_direct_F77=yes
13791 hardcode_libdir_separator_F77=':'
13792 link_all_deplibs_F77=yes
13793
13794 if test "$GCC" = yes; then
13795 case $host_os in aix4.012|aix4.012.*)
13796 # We only want to do this on AIX 4.2 and lower, the check
13797 # below for broken collect2 doesn't work under 4.3+
13798 collect2name=`${CC} -print-prog-name=collect2`
13799 if test -f "$collect2name" && \
13800 strings "$collect2name" | grep resolve_lib_name >/dev/null
13801 then
13802 # We have reworked collect2
13803 hardcode_direct_F77=yes
13804 else
13805 # We have old collect2
13806 hardcode_direct_F77=unsupported
13807 # It fails to find uninstalled libraries when the uninstalled
13808 # path is not listed in the libpath. Setting hardcode_minus_L
13809 # to unsupported forces relinking
13810 hardcode_minus_L_F77=yes
13811 hardcode_libdir_flag_spec_F77='-L$libdir'
13812 hardcode_libdir_separator_F77=
13813 fi
13814 esac
13815 shared_flag='-shared'
13816 else
13817 # not using gcc
13818 if test "$host_cpu" = ia64; then
13819 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13820 # chokes on -Wl,-G. The following line is correct:
13821 shared_flag='-G'
13822 else
13823 if test "$aix_use_runtimelinking" = yes; then
13824 shared_flag='${wl}-G'
13825 else
13826 shared_flag='${wl}-bM:SRE'
13827 fi
13828 fi
13829 fi
13830
13831 # It seems that -bexpall does not export symbols beginning with
13832 # underscore (_), so it is better to generate a list of symbols to export.
13833 always_export_symbols_F77=yes
13834 if test "$aix_use_runtimelinking" = yes; then
13835 # Warning - without using the other runtime loading flags (-brtl),
13836 # -berok will link without error, but may produce a broken library.
13837 allow_undefined_flag_F77='-berok'
13838 # Determine the default libpath from the value encoded in an empty executable.
13839 cat >conftest.$ac_ext <<_ACEOF
13840 program main
13841
13842 end
13843_ACEOF
13844rm -f conftest.$ac_objext conftest$ac_exeext
13845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_f77_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866
13867aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13868}'`
13869# Check for a 64-bit object if we didn't find anything.
13870if 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; }
13871}'`; fi
13872else
13873 echo "$as_me: failed program was:" >&5
13874sed 's/^/| /' conftest.$ac_ext >&5
13875
13876fi
13877rm -f conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13880
13881 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13882 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"
13883 else
13884 if test "$host_cpu" = ia64; then
13885 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13886 allow_undefined_flag_F77="-z nodefs"
13887 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"
13888 else
13889 # Determine the default libpath from the value encoded in an empty executable.
13890 cat >conftest.$ac_ext <<_ACEOF
13891 program main
13892
13893 end
13894_ACEOF
13895rm -f conftest.$ac_objext conftest$ac_exeext
13896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>conftest.er1
13898 ac_status=$?
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try='test -z "$ac_f77_werror_flag"
13905 || test ! -s conftest.err'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try='test -s conftest$ac_exeext'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917
13918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13919}'`
13920# Check for a 64-bit object if we didn't find anything.
13921if 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; }
13922}'`; fi
13923else
13924 echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927fi
13928rm -f conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13931
13932 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13933 # Warning - without using the other run time loading flags,
13934 # -berok will link without error, but may produce a broken library.
13935 no_undefined_flag_F77=' ${wl}-bernotok'
13936 allow_undefined_flag_F77=' ${wl}-berok'
13937 # -bexpall does not export symbols beginning with underscore (_)
13938 always_export_symbols_F77=yes
13939 # Exported symbols can be pulled into shared objects from archives
13940 whole_archive_flag_spec_F77=' '
13941 archive_cmds_need_lc_F77=yes
13942 # This is similar to how AIX traditionally builds it's shared libraries.
13943 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'
13944 fi
13945 fi
13946 ;;
13947
13948 amigaos*)
13949 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)'
13950 hardcode_libdir_flag_spec_F77='-L$libdir'
13951 hardcode_minus_L_F77=yes
13952 # see comment about different semantics on the GNU ld section
13953 ld_shlibs_F77=no
13954 ;;
13955
13956 bsdi4*)
13957 export_dynamic_flag_spec_F77=-rdynamic
13958 ;;
13959
13960 cygwin* | mingw* | pw32*)
13961 # When not using gcc, we currently assume that we are using
13962 # Microsoft Visual C++.
13963 # hardcode_libdir_flag_spec is actually meaningless, as there is
13964 # no search path for DLLs.
13965 hardcode_libdir_flag_spec_F77=' '
13966 allow_undefined_flag_F77=unsupported
13967 # Tell ltmain to make .lib files, not .a files.
13968 libext=lib
13969 # Tell ltmain to make .dll files, not .so files.
13970 shrext_cmds=".dll"
13971 # FIXME: Setting linknames here is a bad hack.
13972 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13973 # The linker will automatically build a .lib file if we build a DLL.
13974 old_archive_From_new_cmds_F77='true'
13975 # FIXME: Should let the user specify the lib program.
13976 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13977 fix_srcfile_path='`cygpath -w "$srcfile"`'
13978 enable_shared_with_static_runtimes_F77=yes
13979 ;;
13980
13981 darwin* | rhapsody*)
13982 if test "$GXX" = yes ; then
13983 archive_cmds_need_lc_F77=no
13984 case "$host_os" in
13985 rhapsody* | darwin1.[012])
13986 allow_undefined_flag_F77='-undefined suppress'
13987 ;;
13988 *) # Darwin 1.3 on
13989 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13990 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13991 else
13992 case ${MACOSX_DEPLOYMENT_TARGET} in
13993 10.[012])
13994 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13995 ;;
13996 10.*)
13997 allow_undefined_flag_F77='-undefined dynamic_lookup'
13998 ;;
13999 esac
14000 fi
14001 ;;
14002 esac
14003 lt_int_apple_cc_single_mod=no
14004 output_verbose_link_cmd='echo'
14005 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14006 lt_int_apple_cc_single_mod=yes
14007 fi
14008 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14009 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14010 else
14011 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'
14012 fi
14013 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14014 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14015 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14016 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}'
14017 else
14018 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}'
14019 fi
14020 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}'
14021 hardcode_direct_F77=no
14022 hardcode_automatic_F77=yes
14023 hardcode_shlibpath_var_F77=unsupported
14024 whole_archive_flag_spec_F77='-all_load $convenience'
14025 link_all_deplibs_F77=yes
14026 else
14027 ld_shlibs_F77=no
14028 fi
14029 ;;
14030
14031 dgux*)
14032 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14033 hardcode_libdir_flag_spec_F77='-L$libdir'
14034 hardcode_shlibpath_var_F77=no
14035 ;;
14036
14037 freebsd1*)
14038 ld_shlibs_F77=no
14039 ;;
14040
14041 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14042 # support. Future versions do this automatically, but an explicit c++rt0.o
14043 # does not break anything, and helps significantly (at the cost of a little
14044 # extra space).
14045 freebsd2.2*)
14046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14047 hardcode_libdir_flag_spec_F77='-R$libdir'
14048 hardcode_direct_F77=yes
14049 hardcode_shlibpath_var_F77=no
14050 ;;
14051
14052 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14053 freebsd2*)
14054 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14055 hardcode_direct_F77=yes
14056 hardcode_minus_L_F77=yes
14057 hardcode_shlibpath_var_F77=no
14058 ;;
14059
14060 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14061 freebsd* | kfreebsd*-gnu)
14062 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14063 hardcode_libdir_flag_spec_F77='-R$libdir'
14064 hardcode_direct_F77=yes
14065 hardcode_shlibpath_var_F77=no
14066 ;;
14067
14068 hpux9*)
14069 if test "$GCC" = yes; then
14070 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'
14071 else
14072 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'
14073 fi
14074 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14075 hardcode_libdir_separator_F77=:
14076 hardcode_direct_F77=yes
14077
14078 # hardcode_minus_L: Not really in the search PATH,
14079 # but as the default location of the library.
14080 hardcode_minus_L_F77=yes
14081 export_dynamic_flag_spec_F77='${wl}-E'
14082 ;;
14083
14084 hpux10* | hpux11*)
14085 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14086 case "$host_cpu" in
14087 hppa*64*|ia64*)
14088 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14089 ;;
14090 *)
14091 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14092 ;;
14093 esac
14094 else
14095 case "$host_cpu" in
14096 hppa*64*|ia64*)
14097 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14098 ;;
14099 *)
14100 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14101 ;;
14102 esac
14103 fi
14104 if test "$with_gnu_ld" = no; then
14105 case "$host_cpu" in
14106 hppa*64*)
14107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14108 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14109 hardcode_libdir_separator_F77=:
14110 hardcode_direct_F77=no
14111 hardcode_shlibpath_var_F77=no
14112 ;;
14113 ia64*)
14114 hardcode_libdir_flag_spec_F77='-L$libdir'
14115 hardcode_direct_F77=no
14116 hardcode_shlibpath_var_F77=no
14117
14118 # hardcode_minus_L: Not really in the search PATH,
14119 # but as the default location of the library.
14120 hardcode_minus_L_F77=yes
14121 ;;
14122 *)
14123 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14124 hardcode_libdir_separator_F77=:
14125 hardcode_direct_F77=yes
14126 export_dynamic_flag_spec_F77='${wl}-E'
14127
14128 # hardcode_minus_L: Not really in the search PATH,
14129 # but as the default location of the library.
14130 hardcode_minus_L_F77=yes
14131 ;;
14132 esac
14133 fi
14134 ;;
14135
14136 irix5* | irix6* | nonstopux*)
14137 if test "$GCC" = yes; then
14138 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'
14139 else
14140 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'
14141 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14142 fi
14143 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14144 hardcode_libdir_separator_F77=:
14145 link_all_deplibs_F77=yes
14146 ;;
14147
14148 netbsd*)
14149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14150 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14151 else
14152 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14153 fi
14154 hardcode_libdir_flag_spec_F77='-R$libdir'
14155 hardcode_direct_F77=yes
14156 hardcode_shlibpath_var_F77=no
14157 ;;
14158
14159 newsos6)
14160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14161 hardcode_direct_F77=yes
14162 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14163 hardcode_libdir_separator_F77=:
14164 hardcode_shlibpath_var_F77=no
14165 ;;
14166
14167 openbsd*)
14168 hardcode_direct_F77=yes
14169 hardcode_shlibpath_var_F77=no
14170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14171 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14172 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173 export_dynamic_flag_spec_F77='${wl}-E'
14174 else
14175 case $host_os in
14176 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14177 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14178 hardcode_libdir_flag_spec_F77='-R$libdir'
14179 ;;
14180 *)
14181 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14182 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14183 ;;
14184 esac
14185 fi
14186 ;;
14187
14188 os2*)
14189 hardcode_libdir_flag_spec_F77='-L$libdir'
14190 hardcode_minus_L_F77=yes
14191 allow_undefined_flag_F77=unsupported
14192 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'
14193 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14194 ;;
14195
14196 osf3*)
14197 if test "$GCC" = yes; then
14198 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14199 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'
14200 else
14201 allow_undefined_flag_F77=' -expect_unresolved \*'
14202 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'
14203 fi
14204 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14205 hardcode_libdir_separator_F77=:
14206 ;;
14207
14208 osf4* | osf5*) # as osf3* with the addition of -msym flag
14209 if test "$GCC" = yes; then
14210 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14211 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'
14212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14213 else
14214 allow_undefined_flag_F77=' -expect_unresolved \*'
14215 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'
14216 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~
14217 $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'
14218
14219 # Both c and cxx compiler support -rpath directly
14220 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14221 fi
14222 hardcode_libdir_separator_F77=:
14223 ;;
14224
14225 sco3.2v5*)
14226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_shlibpath_var_F77=no
14228 export_dynamic_flag_spec_F77='${wl}-Bexport'
14229 runpath_var=LD_RUN_PATH
14230 hardcode_runpath_var=yes
14231 ;;
14232
14233 solaris*)
14234 no_undefined_flag_F77=' -z text'
14235 if test "$GCC" = yes; then
14236 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14238 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14239 else
14240 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14241 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14242 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14243 fi
14244 hardcode_libdir_flag_spec_F77='-R$libdir'
14245 hardcode_shlibpath_var_F77=no
14246 case $host_os in
14247 solaris2.[0-5] | solaris2.[0-5].*) ;;
14248 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14249 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14250 esac
14251 link_all_deplibs_F77=yes
14252 ;;
14253
14254 sunos4*)
14255 if test "x$host_vendor" = xsequent; then
14256 # Use $CC to link under sequent, because it throws in some extra .o
14257 # files that make .init and .fini sections work.
14258 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14259 else
14260 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14261 fi
14262 hardcode_libdir_flag_spec_F77='-L$libdir'
14263 hardcode_direct_F77=yes
14264 hardcode_minus_L_F77=yes
14265 hardcode_shlibpath_var_F77=no
14266 ;;
14267
14268 sysv4)
14269 case $host_vendor in
14270 sni)
14271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 hardcode_direct_F77=yes # is this really true???
14273 ;;
14274 siemens)
14275 ## LD is ld it makes a PLAMLIB
14276 ## CC just makes a GrossModule.
14277 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14278 reload_cmds_F77='$CC -r -o $output$reload_objs'
14279 hardcode_direct_F77=no
14280 ;;
14281 motorola)
14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14284 ;;
14285 esac
14286 runpath_var='LD_RUN_PATH'
14287 hardcode_shlibpath_var_F77=no
14288 ;;
14289
14290 sysv4.3*)
14291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_shlibpath_var_F77=no
14293 export_dynamic_flag_spec_F77='-Bexport'
14294 ;;
14295
14296 sysv4*MP*)
14297 if test -d /usr/nec; then
14298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14299 hardcode_shlibpath_var_F77=no
14300 runpath_var=LD_RUN_PATH
14301 hardcode_runpath_var=yes
14302 ld_shlibs_F77=yes
14303 fi
14304 ;;
14305
14306 sysv4.2uw2*)
14307 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_direct_F77=yes
14309 hardcode_minus_L_F77=no
14310 hardcode_shlibpath_var_F77=no
14311 hardcode_runpath_var=yes
14312 runpath_var=LD_RUN_PATH
14313 ;;
14314
14315 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14316 no_undefined_flag_F77='${wl}-z ${wl}text'
14317 if test "$GCC" = yes; then
14318 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319 else
14320 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14321 fi
14322 runpath_var='LD_RUN_PATH'
14323 hardcode_shlibpath_var_F77=no
14324 ;;
14325
14326 sysv5*)
14327 no_undefined_flag_F77=' -z text'
14328 # $CC -shared without GNU ld will not create a library from C++
14329 # object files and a static libstdc++, better avoid it by now
14330 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14331 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14333 hardcode_libdir_flag_spec_F77=
14334 hardcode_shlibpath_var_F77=no
14335 runpath_var='LD_RUN_PATH'
14336 ;;
14337
14338 uts4*)
14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_libdir_flag_spec_F77='-L$libdir'
14341 hardcode_shlibpath_var_F77=no
14342 ;;
14343
14344 *)
14345 ld_shlibs_F77=no
14346 ;;
14347 esac
14348 fi
14349
14350echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14351echo "${ECHO_T}$ld_shlibs_F77" >&6
14352test "$ld_shlibs_F77" = no && can_build_shared=no
14353
14354variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14355if test "$GCC" = yes; then
14356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14357fi
14358
14359#
14360# Do we need to explicitly link libc?
14361#
14362case "x$archive_cmds_need_lc_F77" in
14363x|xyes)
14364 # Assume -lc should be added
14365 archive_cmds_need_lc_F77=yes
14366
14367 if test "$enable_shared" = yes && test "$GCC" = yes; then
14368 case $archive_cmds_F77 in
14369 *'~'*)
14370 # FIXME: we may have to deal with multi-command sequences.
14371 ;;
14372 '$CC '*)
14373 # Test whether the compiler implicitly links with -lc since on some
14374 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14375 # to ld, don't add -lc before -lgcc.
14376 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14377echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14378 $rm conftest*
14379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14380
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } 2>conftest.err; then
14386 soname=conftest
14387 lib=conftest
14388 libobjs=conftest.$ac_objext
14389 deplibs=
14390 wl=$lt_prog_compiler_wl_F77
14391 compiler_flags=-v
14392 linker_flags=-v
14393 verstring=
14394 output_objdir=.
14395 libname=conftest
14396 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14397 allow_undefined_flag_F77=
14398 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14399 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }
14403 then
14404 archive_cmds_need_lc_F77=no
14405 else
14406 archive_cmds_need_lc_F77=yes
14407 fi
14408 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14409 else
14410 cat conftest.err 1>&5
14411 fi
14412 $rm conftest*
14413 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14414echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14415 ;;
14416 esac
14417 fi
14418 ;;
14419esac
14420
14421echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14422echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14423library_names_spec=
14424libname_spec='lib$name'
14425soname_spec=
14426shrext_cmds=".so"
14427postinstall_cmds=
14428postuninstall_cmds=
14429finish_cmds=
14430finish_eval=
14431shlibpath_var=
14432shlibpath_overrides_runpath=unknown
14433version_type=none
14434dynamic_linker="$host_os ld.so"
14435sys_lib_dlsearch_path_spec="/lib /usr/lib"
14436if test "$GCC" = yes; then
14437 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14439 # if the path contains ";" then we assume it to be the separator
14440 # otherwise default to the standard path separator (i.e. ":") - it is
14441 # assumed that no part of a normal pathname contains ";" but that should
14442 # okay in the real world where ";" in dirpaths is itself problematic.
14443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14444 else
14445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14446 fi
14447else
14448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14449fi
14450need_lib_prefix=unknown
14451hardcode_into_libs=no
14452
14453# when you set need_version to no, make sure it does not cause -set_version
14454# flags to be left without arguments
14455need_version=unknown
14456
14457case $host_os in
14458aix3*)
14459 version_type=linux
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14461 shlibpath_var=LIBPATH
14462
14463 # AIX 3 has no versioning support, so we append a major version to the name.
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 ;;
14466
14467aix4* | aix5*)
14468 version_type=linux
14469 need_lib_prefix=no
14470 need_version=no
14471 hardcode_into_libs=yes
14472 if test "$host_cpu" = ia64; then
14473 # AIX 5 supports IA64
14474 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 else
14477 # With GCC up to 2.95.x, collect2 would create an import file
14478 # for dependence libraries. The import file would start with
14479 # the line `#! .'. This would cause the generated library to
14480 # depend on `.', always an invalid library. This was fixed in
14481 # development snapshots of GCC prior to 3.0.
14482 case $host_os in
14483 aix4 | aix4.[01] | aix4.[01].*)
14484 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14485 echo ' yes '
14486 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14487 :
14488 else
14489 can_build_shared=no
14490 fi
14491 ;;
14492 esac
14493 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14494 # soname into executable. Probably we can add versioning support to
14495 # collect2, so additional links can be useful in future.
14496 if test "$aix_use_runtimelinking" = yes; then
14497 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14498 # instead of lib<name>.a to let people know that these are not
14499 # typical AIX shared libraries.
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 else
14502 # We preserve .a as extension for shared libraries through AIX4.2
14503 # and later when we are not doing run time linking.
14504 library_names_spec='${libname}${release}.a $libname.a'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 fi
14507 shlibpath_var=LIBPATH
14508 fi
14509 ;;
14510
14511amigaos*)
14512 library_names_spec='$libname.ixlibrary $libname.a'
14513 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14514 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'
14515 ;;
14516
14517beos*)
14518 library_names_spec='${libname}${shared_ext}'
14519 dynamic_linker="$host_os ld.so"
14520 shlibpath_var=LIBRARY_PATH
14521 ;;
14522
14523bsdi4*)
14524 version_type=linux
14525 need_version=no
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14532 # the default ld.so.conf also contains /usr/contrib/lib and
14533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14534 # libtool to hard-code these into programs
14535 ;;
14536
14537cygwin* | mingw* | pw32*)
14538 version_type=windows
14539 shrext_cmds=".dll"
14540 need_version=no
14541 need_lib_prefix=no
14542
14543 case $GCC,$host_os in
14544 yes,cygwin* | yes,mingw* | yes,pw32*)
14545 library_names_spec='$libname.dll.a'
14546 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14547 postinstall_cmds='base_file=`basename \${file}`~
14548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14549 dldir=$destdir/`dirname \$dlpath`~
14550 test -d \$dldir || mkdir -p \$dldir~
14551 $install_prog $dir/$dlname \$dldir/$dlname'
14552 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14553 dlpath=$dir/\$dldll~
14554 $rm \$dlpath'
14555 shlibpath_overrides_runpath=yes
14556
14557 case $host_os in
14558 cygwin*)
14559 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14560 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14562 ;;
14563 mingw*)
14564 # MinGW DLLs use traditional 'lib' prefix
14565 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14567 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14568 # It is most probably a Windows format PATH printed by
14569 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14570 # path with ; separators, and with drive letters. We can handle the
14571 # drive letters (cygwin fileutils understands them), so leave them,
14572 # especially as we might pass files found there to a mingw objdump,
14573 # which wouldn't understand a cygwinified path. Ahh.
14574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14575 else
14576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14577 fi
14578 ;;
14579 pw32*)
14580 # pw32 DLLs use 'pw' prefix rather than 'lib'
14581 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14582 ;;
14583 esac
14584 ;;
14585
14586 *)
14587 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14588 ;;
14589 esac
14590 dynamic_linker='Win32 ld.exe'
14591 # FIXME: first we should search . and the directory the executable is in
14592 shlibpath_var=PATH
14593 ;;
14594
14595darwin* | rhapsody*)
14596 dynamic_linker="$host_os dyld"
14597 version_type=darwin
14598 need_lib_prefix=no
14599 need_version=no
14600 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14601 soname_spec='${libname}${release}${major}$shared_ext'
14602 shlibpath_overrides_runpath=yes
14603 shlibpath_var=DYLD_LIBRARY_PATH
14604 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14605 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14606 if test "$GCC" = yes; then
14607 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"`
14608 else
14609 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14610 fi
14611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14612 ;;
14613
14614dgux*)
14615 version_type=linux
14616 need_lib_prefix=no
14617 need_version=no
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 shlibpath_var=LD_LIBRARY_PATH
14621 ;;
14622
14623freebsd1*)
14624 dynamic_linker=no
14625 ;;
14626
14627kfreebsd*-gnu)
14628 version_type=linux
14629 need_lib_prefix=no
14630 need_version=no
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 shlibpath_overrides_runpath=no
14635 hardcode_into_libs=yes
14636 dynamic_linker='GNU ld.so'
14637 ;;
14638
14639freebsd*)
14640 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14641 version_type=freebsd-$objformat
14642 case $version_type in
14643 freebsd-elf*)
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14645 need_version=no
14646 need_lib_prefix=no
14647 ;;
14648 freebsd-*)
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14650 need_version=yes
14651 ;;
14652 esac
14653 shlibpath_var=LD_LIBRARY_PATH
14654 case $host_os in
14655 freebsd2*)
14656 shlibpath_overrides_runpath=yes
14657 ;;
14658 freebsd3.01* | freebsdelf3.01*)
14659 shlibpath_overrides_runpath=yes
14660 hardcode_into_libs=yes
14661 ;;
14662 *) # from 3.2 on
14663 shlibpath_overrides_runpath=no
14664 hardcode_into_libs=yes
14665 ;;
14666 esac
14667 ;;
14668
14669gnu*)
14670 version_type=linux
14671 need_lib_prefix=no
14672 need_version=no
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 hardcode_into_libs=yes
14677 ;;
14678
14679hpux9* | hpux10* | hpux11*)
14680 # Give a soname corresponding to the major version so that dld.sl refuses to
14681 # link against other versions.
14682 version_type=sunos
14683 need_lib_prefix=no
14684 need_version=no
14685 case "$host_cpu" in
14686 ia64*)
14687 shrext_cmds='.so'
14688 hardcode_into_libs=yes
14689 dynamic_linker="$host_os dld.so"
14690 shlibpath_var=LD_LIBRARY_PATH
14691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 if test "X$HPUX_IA64_MODE" = X32; then
14695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14696 else
14697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14698 fi
14699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14700 ;;
14701 hppa*64*)
14702 shrext_cmds='.sl'
14703 hardcode_into_libs=yes
14704 dynamic_linker="$host_os dld.sl"
14705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14711 ;;
14712 *)
14713 shrext_cmds='.sl'
14714 dynamic_linker="$host_os dld.sl"
14715 shlibpath_var=SHLIB_PATH
14716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 ;;
14720 esac
14721 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14722 postinstall_cmds='chmod 555 $lib'
14723 ;;
14724
14725irix5* | irix6* | nonstopux*)
14726 case $host_os in
14727 nonstopux*) version_type=nonstopux ;;
14728 *)
14729 if test "$lt_cv_prog_gnu_ld" = yes; then
14730 version_type=linux
14731 else
14732 version_type=irix
14733 fi ;;
14734 esac
14735 need_lib_prefix=no
14736 need_version=no
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14739 case $host_os in
14740 irix5* | nonstopux*)
14741 libsuff= shlibsuff=
14742 ;;
14743 *)
14744 case $LD in # libtool.m4 will add one of these switches to LD
14745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14746 libsuff= shlibsuff= libmagic=32-bit;;
14747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14748 libsuff=32 shlibsuff=N32 libmagic=N32;;
14749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14750 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14751 *) libsuff= shlibsuff= libmagic=never-match;;
14752 esac
14753 ;;
14754 esac
14755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14756 shlibpath_overrides_runpath=no
14757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14759 hardcode_into_libs=yes
14760 ;;
14761
14762# No shared lib support for Linux oldld, aout, or coff.
14763linux*oldld* | linux*aout* | linux*coff*)
14764 dynamic_linker=no
14765 ;;
14766
14767# This must be Linux ELF.
14768linux*)
14769 version_type=linux
14770 need_lib_prefix=no
14771 need_version=no
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 soname_spec='${libname}${release}${shared_ext}$major'
14774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=no
14777 # This implies no fast_install, which is unacceptable.
14778 # Some rework will be needed to allow for fast_install
14779 # before this can be enabled.
14780 hardcode_into_libs=yes
14781
14782 # Append ld.so.conf contents to the search path
14783 if test -f /etc/ld.so.conf; then
14784 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14786 fi
14787
14788 # We used to test for /lib/ld.so.1 and disable shared libraries on
14789 # powerpc, because MkLinux only supported shared libraries with the
14790 # GNU dynamic linker. Since this was broken with cross compilers,
14791 # most powerpc-linux boxes support dynamic linking these days and
14792 # people can always --disable-shared, the test was removed, and we
14793 # assume the GNU/Linux dynamic linker is in use.
14794 dynamic_linker='GNU/Linux ld.so'
14795 ;;
14796
14797knetbsd*-gnu)
14798 version_type=linux
14799 need_lib_prefix=no
14800 need_version=no
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=no
14805 hardcode_into_libs=yes
14806 dynamic_linker='GNU ld.so'
14807 ;;
14808
14809netbsd*)
14810 version_type=sunos
14811 need_lib_prefix=no
14812 need_version=no
14813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14816 dynamic_linker='NetBSD (a.out) ld.so'
14817 else
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 dynamic_linker='NetBSD ld.elf_so'
14821 fi
14822 shlibpath_var=LD_LIBRARY_PATH
14823 shlibpath_overrides_runpath=yes
14824 hardcode_into_libs=yes
14825 ;;
14826
14827newsos6)
14828 version_type=linux
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 ;;
14833
14834nto-qnx*)
14835 version_type=linux
14836 need_lib_prefix=no
14837 need_version=no
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 soname_spec='${libname}${release}${shared_ext}$major'
14840 shlibpath_var=LD_LIBRARY_PATH
14841 shlibpath_overrides_runpath=yes
14842 ;;
14843
14844openbsd*)
14845 version_type=sunos
14846 need_lib_prefix=no
14847 need_version=yes
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14852 case $host_os in
14853 openbsd2.[89] | openbsd2.[89].*)
14854 shlibpath_overrides_runpath=no
14855 ;;
14856 *)
14857 shlibpath_overrides_runpath=yes
14858 ;;
14859 esac
14860 else
14861 shlibpath_overrides_runpath=yes
14862 fi
14863 ;;
14864
14865os2*)
14866 libname_spec='$name'
14867 shrext_cmds=".dll"
14868 need_lib_prefix=no
14869 library_names_spec='$libname${shared_ext} $libname.a'
14870 dynamic_linker='OS/2 ld.exe'
14871 shlibpath_var=LIBPATH
14872 ;;
14873
14874osf3* | osf4* | osf5*)
14875 version_type=osf
14876 need_lib_prefix=no
14877 need_version=no
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14882 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14883 ;;
14884
14885sco3.2v5*)
14886 version_type=osf
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 ;;
14891
14892solaris*)
14893 version_type=linux
14894 need_lib_prefix=no
14895 need_version=no
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 soname_spec='${libname}${release}${shared_ext}$major'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath=yes
14900 hardcode_into_libs=yes
14901 # ldd complains unless libraries are executable
14902 postinstall_cmds='chmod +x $lib'
14903 ;;
14904
14905sunos4*)
14906 version_type=sunos
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 shlibpath_overrides_runpath=yes
14911 if test "$with_gnu_ld" = yes; then
14912 need_lib_prefix=no
14913 fi
14914 need_version=yes
14915 ;;
14916
14917sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14918 version_type=linux
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 case $host_vendor in
14923 sni)
14924 shlibpath_overrides_runpath=no
14925 need_lib_prefix=no
14926 export_dynamic_flag_spec='${wl}-Blargedynsym'
14927 runpath_var=LD_RUN_PATH
14928 ;;
14929 siemens)
14930 need_lib_prefix=no
14931 ;;
14932 motorola)
14933 need_lib_prefix=no
14934 need_version=no
14935 shlibpath_overrides_runpath=no
14936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14937 ;;
14938 esac
14939 ;;
14940
14941sysv4*MP*)
14942 if test -d /usr/nec ;then
14943 version_type=linux
14944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14945 soname_spec='$libname${shared_ext}.$major'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 fi
14948 ;;
14949
14950uts4*)
14951 version_type=linux
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 ;;
14956
14957*)
14958 dynamic_linker=no
14959 ;;
14960esac
14961echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14962echo "${ECHO_T}$dynamic_linker" >&6
14963test "$dynamic_linker" = no && can_build_shared=no
14964
14965echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14966echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14967hardcode_action_F77=
14968if test -n "$hardcode_libdir_flag_spec_F77" || \
14969 test -n "$runpath_var F77" || \
14970 test "X$hardcode_automatic_F77"="Xyes" ; then
14971
14972 # We can hardcode non-existant directories.
14973 if test "$hardcode_direct_F77" != no &&
14974 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14975 # have to relink, otherwise we might link with an installed library
14976 # when we should be linking with a yet-to-be-installed one
14977 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14978 test "$hardcode_minus_L_F77" != no; then
14979 # Linking always hardcodes the temporary library directory.
14980 hardcode_action_F77=relink
14981 else
14982 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14983 hardcode_action_F77=immediate
14984 fi
14985else
14986 # We cannot hardcode anything, or else we can only hardcode existing
14987 # directories.
14988 hardcode_action_F77=unsupported
14989fi
14990echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14991echo "${ECHO_T}$hardcode_action_F77" >&6
14992
14993if test "$hardcode_action_F77" = relink; then
14994 # Fast installation is not supported
14995 enable_fast_install=no
14996elif test "$shlibpath_overrides_runpath" = yes ||
14997 test "$enable_shared" = no; then
14998 # Fast installation is not necessary
14999 enable_fast_install=needless
15000fi
15001
15002striplib=
15003old_striplib=
15004echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15005echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15006if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15007 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15008 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15009 echo "$as_me:$LINENO: result: yes" >&5
15010echo "${ECHO_T}yes" >&6
15011else
15012# FIXME - insert some real tests, host_os isn't really good enough
15013 case $host_os in
15014 darwin*)
15015 if test -n "$STRIP" ; then
15016 striplib="$STRIP -x"
15017 echo "$as_me:$LINENO: result: yes" >&5
15018echo "${ECHO_T}yes" >&6
15019 else
15020 echo "$as_me:$LINENO: result: no" >&5
15021echo "${ECHO_T}no" >&6
15022fi
15023 ;;
15024 *)
15025 echo "$as_me:$LINENO: result: no" >&5
15026echo "${ECHO_T}no" >&6
15027 ;;
15028 esac
15029fi
15030
15031
15032
15033# The else clause should only fire when bootstrapping the
15034# libtool distribution, otherwise you forgot to ship ltmain.sh
15035# with your package, and you will get complaints that there are
15036# no rules to generate ltmain.sh.
15037if test -f "$ltmain"; then
15038 # See if we are running on zsh, and set the options which allow our commands through
15039 # without removal of \ escapes.
15040 if test -n "${ZSH_VERSION+set}" ; then
15041 setopt NO_GLOB_SUBST
15042 fi
15043 # Now quote all the things that may contain metacharacters while being
15044 # careful not to overquote the AC_SUBSTed values. We take copies of the
15045 # variables and quote the copies for generation of the libtool script.
15046 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15047 SED SHELL STRIP \
15048 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15049 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15050 deplibs_check_method reload_flag reload_cmds need_locks \
15051 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15052 lt_cv_sys_global_symbol_to_c_name_address \
15053 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15054 old_postinstall_cmds old_postuninstall_cmds \
15055 compiler_F77 \
15056 CC_F77 \
15057 LD_F77 \
15058 lt_prog_compiler_wl_F77 \
15059 lt_prog_compiler_pic_F77 \
15060 lt_prog_compiler_static_F77 \
15061 lt_prog_compiler_no_builtin_flag_F77 \
15062 export_dynamic_flag_spec_F77 \
15063 thread_safe_flag_spec_F77 \
15064 whole_archive_flag_spec_F77 \
15065 enable_shared_with_static_runtimes_F77 \
15066 old_archive_cmds_F77 \
15067 old_archive_from_new_cmds_F77 \
15068 predep_objects_F77 \
15069 postdep_objects_F77 \
15070 predeps_F77 \
15071 postdeps_F77 \
15072 compiler_lib_search_path_F77 \
15073 archive_cmds_F77 \
15074 archive_expsym_cmds_F77 \
15075 postinstall_cmds_F77 \
15076 postuninstall_cmds_F77 \
15077 old_archive_from_expsyms_cmds_F77 \
15078 allow_undefined_flag_F77 \
15079 no_undefined_flag_F77 \
15080 export_symbols_cmds_F77 \
15081 hardcode_libdir_flag_spec_F77 \
15082 hardcode_libdir_flag_spec_ld_F77 \
15083 hardcode_libdir_separator_F77 \
15084 hardcode_automatic_F77 \
15085 module_cmds_F77 \
15086 module_expsym_cmds_F77 \
15087 lt_cv_prog_compiler_c_o_F77 \
15088 exclude_expsyms_F77 \
15089 include_expsyms_F77; do
15090
15091 case $var in
15092 old_archive_cmds_F77 | \
15093 old_archive_from_new_cmds_F77 | \
15094 archive_cmds_F77 | \
15095 archive_expsym_cmds_F77 | \
15096 module_cmds_F77 | \
15097 module_expsym_cmds_F77 | \
15098 old_archive_from_expsyms_cmds_F77 | \
15099 export_symbols_cmds_F77 | \
15100 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15101 postinstall_cmds | postuninstall_cmds | \
15102 old_postinstall_cmds | old_postuninstall_cmds | \
15103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15104 # Double-quote double-evaled strings.
15105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15106 ;;
15107 *)
15108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15109 ;;
15110 esac
15111 done
15112
15113 case $lt_echo in
15114 *'\$0 --fallback-echo"')
15115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15116 ;;
15117 esac
15118
15119cfgfile="$ofile"
15120
15121 cat <<__EOF__ >> "$cfgfile"
15122# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15123
15124# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15125
15126# Shell to use when invoking shell scripts.
15127SHELL=$lt_SHELL
15128
15129# Whether or not to build shared libraries.
15130build_libtool_libs=$enable_shared
15131
15132# Whether or not to build static libraries.
15133build_old_libs=$enable_static
15134
15135# Whether or not to add -lc for building shared libraries.
15136build_libtool_need_lc=$archive_cmds_need_lc_F77
15137
15138# Whether or not to disallow shared libs when runtime libs are static
15139allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15140
15141# Whether or not to optimize for fast installation.
15142fast_install=$enable_fast_install
15143
15144# The host system.
15145host_alias=$host_alias
15146host=$host
15147
15148# An echo program that does not interpret backslashes.
15149echo=$lt_echo
15150
15151# The archiver.
15152AR=$lt_AR
15153AR_FLAGS=$lt_AR_FLAGS
15154
15155# A C compiler.
15156LTCC=$lt_LTCC
15157
15158# A language-specific compiler.
15159CC=$lt_compiler_F77
15160
15161# Is the compiler the GNU C compiler?
15162with_gcc=$GCC_F77
15163
15164# An ERE matcher.
15165EGREP=$lt_EGREP
15166
15167# The linker used to build libraries.
15168LD=$lt_LD_F77
15169
15170# Whether we need hard or soft links.
15171LN_S=$lt_LN_S
15172
15173# A BSD-compatible nm program.
15174NM=$lt_NM
15175
15176# A symbol stripping program
15177STRIP=$lt_STRIP
15178
15179# Used to examine libraries when file_magic_cmd begins "file"
15180MAGIC_CMD=$MAGIC_CMD
15181
15182# Used on cygwin: DLL creation program.
15183DLLTOOL="$DLLTOOL"
15184
15185# Used on cygwin: object dumper.
15186OBJDUMP="$OBJDUMP"
15187
15188# Used on cygwin: assembler.
15189AS="$AS"
15190
15191# The name of the directory that contains temporary libtool files.
15192objdir=$objdir
15193
15194# How to create reloadable object files.
15195reload_flag=$lt_reload_flag
15196reload_cmds=$lt_reload_cmds
15197
15198# How to pass a linker flag through the compiler.
15199wl=$lt_lt_prog_compiler_wl_F77
15200
15201# Object file suffix (normally "o").
15202objext="$ac_objext"
15203
15204# Old archive suffix (normally "a").
15205libext="$libext"
15206
15207# Shared library suffix (normally ".so").
15208shrext_cmds='$shrext_cmds'
15209
15210# Executable file suffix (normally "").
15211exeext="$exeext"
15212
15213# Additional compiler flags for building library objects.
15214pic_flag=$lt_lt_prog_compiler_pic_F77
15215pic_mode=$pic_mode
15216
15217# What is the maximum length of a command?
15218max_cmd_len=$lt_cv_sys_max_cmd_len
15219
15220# Does compiler simultaneously support -c and -o options?
15221compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15222
15223# Must we lock files when doing compilation ?
15224need_locks=$lt_need_locks
15225
15226# Do we need the lib prefix for modules?
15227need_lib_prefix=$need_lib_prefix
15228
15229# Do we need a version for libraries?
15230need_version=$need_version
15231
15232# Whether dlopen is supported.
15233dlopen_support=$enable_dlopen
15234
15235# Whether dlopen of programs is supported.
15236dlopen_self=$enable_dlopen_self
15237
15238# Whether dlopen of statically linked programs is supported.
15239dlopen_self_static=$enable_dlopen_self_static
15240
15241# Compiler flag to prevent dynamic linking.
15242link_static_flag=$lt_lt_prog_compiler_static_F77
15243
15244# Compiler flag to turn off builtin functions.
15245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15246
15247# Compiler flag to allow reflexive dlopens.
15248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15249
15250# Compiler flag to generate shared objects directly from archives.
15251whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15252
15253# Compiler flag to generate thread-safe objects.
15254thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15255
15256# Library versioning type.
15257version_type=$version_type
15258
15259# Format of library name prefix.
15260libname_spec=$lt_libname_spec
15261
15262# List of archive names. First name is the real one, the rest are links.
15263# The last name is the one that the linker finds with -lNAME.
15264library_names_spec=$lt_library_names_spec
15265
15266# The coded name of the library, if different from the real name.
15267soname_spec=$lt_soname_spec
15268
15269# Commands used to build and install an old-style archive.
15270RANLIB=$lt_RANLIB
15271old_archive_cmds=$lt_old_archive_cmds_F77
15272old_postinstall_cmds=$lt_old_postinstall_cmds
15273old_postuninstall_cmds=$lt_old_postuninstall_cmds
15274
15275# Create an old-style archive from a shared archive.
15276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15277
15278# Create a temporary old-style archive to link instead of a shared archive.
15279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15280
15281# Commands used to build and install a shared archive.
15282archive_cmds=$lt_archive_cmds_F77
15283archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15284postinstall_cmds=$lt_postinstall_cmds
15285postuninstall_cmds=$lt_postuninstall_cmds
15286
15287# Commands used to build a loadable module (assumed same as above if empty)
15288module_cmds=$lt_module_cmds_F77
15289module_expsym_cmds=$lt_module_expsym_cmds_F77
15290
15291# Commands to strip libraries.
15292old_striplib=$lt_old_striplib
15293striplib=$lt_striplib
15294
15295# Dependencies to place before the objects being linked to create a
15296# shared library.
15297predep_objects=$lt_predep_objects_F77
15298
15299# Dependencies to place after the objects being linked to create a
15300# shared library.
15301postdep_objects=$lt_postdep_objects_F77
15302
15303# Dependencies to place before the objects being linked to create a
15304# shared library.
15305predeps=$lt_predeps_F77
15306
15307# Dependencies to place after the objects being linked to create a
15308# shared library.
15309postdeps=$lt_postdeps_F77
15310
15311# The library search path used internally by the compiler when linking
15312# a shared library.
15313compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15314
15315# Method to check whether dependent libraries are shared objects.
15316deplibs_check_method=$lt_deplibs_check_method
15317
15318# Command to use when deplibs_check_method == file_magic.
15319file_magic_cmd=$lt_file_magic_cmd
15320
15321# Flag that allows shared libraries with undefined symbols to be built.
15322allow_undefined_flag=$lt_allow_undefined_flag_F77
15323
15324# Flag that forces no undefined symbols.
15325no_undefined_flag=$lt_no_undefined_flag_F77
15326
15327# Commands used to finish a libtool library installation in a directory.
15328finish_cmds=$lt_finish_cmds
15329
15330# Same as above, but a single script fragment to be evaled but not shown.
15331finish_eval=$lt_finish_eval
15332
15333# Take the output of nm and produce a listing of raw symbols and C names.
15334global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15335
15336# Transform the output of nm in a proper C declaration
15337global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15338
15339# Transform the output of nm in a C name address pair
15340global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15341
15342# This is the shared library runtime path variable.
15343runpath_var=$runpath_var
15344
15345# This is the shared library path variable.
15346shlibpath_var=$shlibpath_var
15347
15348# Is shlibpath searched before the hard-coded library search path?
15349shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15350
15351# How to hardcode a shared library path into an executable.
15352hardcode_action=$hardcode_action_F77
15353
15354# Whether we should hardcode library paths into libraries.
15355hardcode_into_libs=$hardcode_into_libs
15356
15357# Flag to hardcode \$libdir into a binary during linking.
15358# This must work even if \$libdir does not exist.
15359hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15360
15361# If ld is used when linking, flag to hardcode \$libdir into
15362# a binary during linking. This must work even if \$libdir does
15363# not exist.
15364hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15365
15366# Whether we need a single -rpath flag with a separated argument.
15367hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15368
15369# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15370# resulting binary.
15371hardcode_direct=$hardcode_direct_F77
15372
15373# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15374# resulting binary.
15375hardcode_minus_L=$hardcode_minus_L_F77
15376
15377# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15378# the resulting binary.
15379hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15380
15381# Set to yes if building a shared library automatically hardcodes DIR into the library
15382# and all subsequent libraries and executables linked against it.
15383hardcode_automatic=$hardcode_automatic_F77
15384
15385# Variables whose values should be saved in libtool wrapper scripts and
15386# restored at relink time.
15387variables_saved_for_relink="$variables_saved_for_relink"
15388
15389# Whether libtool must link a program against all its dependency libraries.
15390link_all_deplibs=$link_all_deplibs_F77
15391
15392# Compile-time system search path for libraries
15393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15394
15395# Run-time system search path for libraries
15396sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15397
15398# Fix the shell variable \$srcfile for the compiler.
15399fix_srcfile_path="$fix_srcfile_path_F77"
15400
15401# Set to yes if exported symbols are required.
15402always_export_symbols=$always_export_symbols_F77
15403
15404# The commands to list exported symbols.
15405export_symbols_cmds=$lt_export_symbols_cmds_F77
15406
15407# The commands to extract the exported symbol list from a shared archive.
15408extract_expsyms_cmds=$lt_extract_expsyms_cmds
15409
15410# Symbols that should not be listed in the preloaded symbols.
15411exclude_expsyms=$lt_exclude_expsyms_F77
15412
15413# Symbols that must always be exported.
15414include_expsyms=$lt_include_expsyms_F77
15415
15416# ### END LIBTOOL TAG CONFIG: $tagname
15417
15418__EOF__
15419
15420
15421else
15422 # If there is no Makefile yet, we rely on a make rule to execute
15423 # `config.status --recheck' to rerun these tests and create the
15424 # libtool script then.
15425 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15426 if test -f "$ltmain_in"; then
15427 test -f Makefile && make "$ltmain"
15428 fi
15429fi
15430
15431
15432ac_ext=c
15433ac_cpp='$CPP $CPPFLAGS'
15434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15436ac_compiler_gnu=$ac_cv_c_compiler_gnu
15437
15438CC="$lt_save_CC"
15439
15440 else
15441 tagname=""
15442 fi
15443 ;;
15444
15445 GCJ)
15446 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15447
15448
15449
15450# Source file extension for Java test sources.
15451ac_ext=java
15452
15453# Object file extension for compiled Java test sources.
15454objext=o
15455objext_GCJ=$objext
15456
15457# Code to be used in simple compile tests
15458lt_simple_compile_test_code="class foo {}\n"
15459
15460# Code to be used in simple link tests
15461lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15462
15463# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15464
15465# If no C compiler was specified, use CC.
15466LTCC=${LTCC-"$CC"}
15467
15468# Allow CC to be a program name with arguments.
15469compiler=$CC
15470
15471
15472# Allow CC to be a program name with arguments.
15473lt_save_CC="$CC"
15474CC=${GCJ-"gcj"}
15475compiler=$CC
15476compiler_GCJ=$CC
15477
15478# GCJ did not exist at the time GCC didn't implicitly link libc in.
15479archive_cmds_need_lc_GCJ=no
15480
15481
15482lt_prog_compiler_no_builtin_flag_GCJ=
15483
15484if test "$GCC" = yes; then
15485 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15486
15487
15488echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15489echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15490if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492else
15493 lt_cv_prog_compiler_rtti_exceptions=no
15494 ac_outfile=conftest.$ac_objext
15495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15496 lt_compiler_flag="-fno-rtti -fno-exceptions"
15497 # Insert the option either (1) after the last *FLAGS variable, or
15498 # (2) before a word containing "conftest.", or (3) at the end.
15499 # Note that $ac_compile itself does not contain backslashes and begins
15500 # with a dollar sign (not a hyphen), so the echo should work correctly.
15501 # The option is referenced via a variable to avoid confusing sed.
15502 lt_compile=`echo "$ac_compile" | $SED \
15503 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +000015506 (eval echo "\"\$as_me:15506: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000015507 (eval "$lt_compile" 2>conftest.err)
15508 ac_status=$?
15509 cat conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +000015510 echo "$as_me:15510: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000015511 if (exit $ac_status) && test -s "$ac_outfile"; then
15512 # The compiler can only warn and ignore the option if not recognized
15513 # So say no if there are warnings
15514 if test ! -s conftest.err; then
15515 lt_cv_prog_compiler_rtti_exceptions=yes
15516 fi
15517 fi
15518 $rm conftest*
15519
15520fi
15521echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15522echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15523
15524if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15525 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15526else
15527 :
15528fi
15529
15530fi
15531
15532lt_prog_compiler_wl_GCJ=
15533lt_prog_compiler_pic_GCJ=
15534lt_prog_compiler_static_GCJ=
15535
15536echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15537echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15538
15539 if test "$GCC" = yes; then
15540 lt_prog_compiler_wl_GCJ='-Wl,'
15541 lt_prog_compiler_static_GCJ='-static'
15542
15543 case $host_os in
15544 aix*)
15545 # All AIX code is PIC.
15546 if test "$host_cpu" = ia64; then
15547 # AIX 5 now supports IA64 processor
15548 lt_prog_compiler_static_GCJ='-Bstatic'
15549 fi
15550 ;;
15551
15552 amigaos*)
15553 # FIXME: we need at least 68020 code to build shared libraries, but
15554 # adding the `-m68020' flag to GCC prevents building anything better,
15555 # like `-m68040'.
15556 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15557 ;;
15558
15559 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15560 # PIC is the default for these OSes.
15561 ;;
15562
15563 mingw* | pw32* | os2*)
15564 # This hack is so that the source file can tell whether it is being
15565 # built for inclusion in a dll (and should export symbols for example).
15566 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15567 ;;
15568
15569 darwin* | rhapsody*)
15570 # PIC is the default on this platform
15571 # Common symbols not allowed in MH_DYLIB files
15572 lt_prog_compiler_pic_GCJ='-fno-common'
15573 ;;
15574
15575 msdosdjgpp*)
15576 # Just because we use GCC doesn't mean we suddenly get shared libraries
15577 # on systems that don't support them.
15578 lt_prog_compiler_can_build_shared_GCJ=no
15579 enable_shared=no
15580 ;;
15581
15582 sysv4*MP*)
15583 if test -d /usr/nec; then
15584 lt_prog_compiler_pic_GCJ=-Kconform_pic
15585 fi
15586 ;;
15587
15588 hpux*)
15589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15590 # not for PA HP-UX.
15591 case "$host_cpu" in
15592 hppa*64*|ia64*)
15593 # +Z the default
15594 ;;
15595 *)
15596 lt_prog_compiler_pic_GCJ='-fPIC'
15597 ;;
15598 esac
15599 ;;
15600
15601 *)
15602 lt_prog_compiler_pic_GCJ='-fPIC'
15603 ;;
15604 esac
15605 else
15606 # PORTME Check for flag to pass linker flags through the system compiler.
15607 case $host_os in
15608 aix*)
15609 lt_prog_compiler_wl_GCJ='-Wl,'
15610 if test "$host_cpu" = ia64; then
15611 # AIX 5 now supports IA64 processor
15612 lt_prog_compiler_static_GCJ='-Bstatic'
15613 else
15614 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15615 fi
15616 ;;
15617
15618 mingw* | pw32* | os2*)
15619 # This hack is so that the source file can tell whether it is being
15620 # built for inclusion in a dll (and should export symbols for example).
15621 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15622 ;;
15623
15624 hpux9* | hpux10* | hpux11*)
15625 lt_prog_compiler_wl_GCJ='-Wl,'
15626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15627 # not for PA HP-UX.
15628 case "$host_cpu" in
15629 hppa*64*|ia64*)
15630 # +Z the default
15631 ;;
15632 *)
15633 lt_prog_compiler_pic_GCJ='+Z'
15634 ;;
15635 esac
15636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15637 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15638 ;;
15639
15640 irix5* | irix6* | nonstopux*)
15641 lt_prog_compiler_wl_GCJ='-Wl,'
15642 # PIC (with -KPIC) is the default.
15643 lt_prog_compiler_static_GCJ='-non_shared'
15644 ;;
15645
15646 newsos6)
15647 lt_prog_compiler_pic_GCJ='-KPIC'
15648 lt_prog_compiler_static_GCJ='-Bstatic'
15649 ;;
15650
15651 linux*)
15652 case $CC in
15653 icc* | ecc*)
15654 lt_prog_compiler_wl_GCJ='-Wl,'
15655 lt_prog_compiler_pic_GCJ='-KPIC'
15656 lt_prog_compiler_static_GCJ='-static'
15657 ;;
15658 ccc*)
15659 lt_prog_compiler_wl_GCJ='-Wl,'
15660 # All Alpha code is PIC.
15661 lt_prog_compiler_static_GCJ='-non_shared'
15662 ;;
15663 esac
15664 ;;
15665
15666 osf3* | osf4* | osf5*)
15667 lt_prog_compiler_wl_GCJ='-Wl,'
15668 # All OSF/1 code is PIC.
15669 lt_prog_compiler_static_GCJ='-non_shared'
15670 ;;
15671
15672 sco3.2v5*)
15673 lt_prog_compiler_pic_GCJ='-Kpic'
15674 lt_prog_compiler_static_GCJ='-dn'
15675 ;;
15676
15677 solaris*)
15678 lt_prog_compiler_wl_GCJ='-Wl,'
15679 lt_prog_compiler_pic_GCJ='-KPIC'
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15681 ;;
15682
15683 sunos4*)
15684 lt_prog_compiler_wl_GCJ='-Qoption ld '
15685 lt_prog_compiler_pic_GCJ='-PIC'
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15687 ;;
15688
15689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15690 lt_prog_compiler_wl_GCJ='-Wl,'
15691 lt_prog_compiler_pic_GCJ='-KPIC'
15692 lt_prog_compiler_static_GCJ='-Bstatic'
15693 ;;
15694
15695 sysv4*MP*)
15696 if test -d /usr/nec ;then
15697 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15698 lt_prog_compiler_static_GCJ='-Bstatic'
15699 fi
15700 ;;
15701
15702 uts4*)
15703 lt_prog_compiler_pic_GCJ='-pic'
15704 lt_prog_compiler_static_GCJ='-Bstatic'
15705 ;;
15706
15707 *)
15708 lt_prog_compiler_can_build_shared_GCJ=no
15709 ;;
15710 esac
15711 fi
15712
15713echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15714echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15715
15716#
15717# Check to make sure the PIC flag actually works.
15718#
15719if test -n "$lt_prog_compiler_pic_GCJ"; then
15720
15721echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15722echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15723if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725else
15726 lt_prog_compiler_pic_works_GCJ=no
15727 ac_outfile=conftest.$ac_objext
15728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15729 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15730 # Insert the option either (1) after the last *FLAGS variable, or
15731 # (2) before a word containing "conftest.", or (3) at the end.
15732 # Note that $ac_compile itself does not contain backslashes and begins
15733 # with a dollar sign (not a hyphen), so the echo should work correctly.
15734 # The option is referenced via a variable to avoid confusing sed.
15735 lt_compile=`echo "$ac_compile" | $SED \
15736 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15738 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +000015739 (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000015740 (eval "$lt_compile" 2>conftest.err)
15741 ac_status=$?
15742 cat conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +000015743 echo "$as_me:15743: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000015744 if (exit $ac_status) && test -s "$ac_outfile"; then
15745 # The compiler can only warn and ignore the option if not recognized
15746 # So say no if there are warnings
15747 if test ! -s conftest.err; then
15748 lt_prog_compiler_pic_works_GCJ=yes
15749 fi
15750 fi
15751 $rm conftest*
15752
15753fi
15754echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15755echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15756
15757if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15758 case $lt_prog_compiler_pic_GCJ in
15759 "" | " "*) ;;
15760 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15761 esac
15762else
15763 lt_prog_compiler_pic_GCJ=
15764 lt_prog_compiler_can_build_shared_GCJ=no
15765fi
15766
15767fi
15768case "$host_os" in
15769 # For platforms which do not support PIC, -DPIC is meaningless:
15770 *djgpp*)
15771 lt_prog_compiler_pic_GCJ=
15772 ;;
15773 *)
15774 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15775 ;;
15776esac
15777
15778echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15780if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else
15783 lt_cv_prog_compiler_c_o_GCJ=no
15784 $rm -r conftest 2>/dev/null
15785 mkdir conftest
15786 cd conftest
15787 mkdir out
15788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15789
15790 lt_compiler_flag="-o out/conftest2.$ac_objext"
15791 # Insert the option either (1) after the last *FLAGS variable, or
15792 # (2) before a word containing "conftest.", or (3) at the end.
15793 # Note that $ac_compile itself does not contain backslashes and begins
15794 # with a dollar sign (not a hyphen), so the echo should work correctly.
15795 lt_compile=`echo "$ac_compile" | $SED \
15796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798 -e 's:$: $lt_compiler_flag:'`
vlm1fcf7592006-08-18 02:27:55 +000015799 (eval echo "\"\$as_me:15799: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000015800 (eval "$lt_compile" 2>out/conftest.err)
15801 ac_status=$?
15802 cat out/conftest.err >&5
vlm1fcf7592006-08-18 02:27:55 +000015803 echo "$as_me:15803: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000015804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15805 then
15806 # The compiler can only warn and ignore the option if not recognized
15807 # So say no if there are warnings
15808 if test ! -s out/conftest.err; then
15809 lt_cv_prog_compiler_c_o_GCJ=yes
15810 fi
15811 fi
15812 chmod u+w .
15813 $rm conftest*
15814 # SGI C++ compiler will create directory out/ii_files/ for
15815 # template instantiation
15816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15817 $rm out/* && rmdir out
15818 cd ..
15819 rmdir conftest
15820 $rm conftest*
15821
15822fi
15823echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15824echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15825
15826
15827hard_links="nottested"
15828if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15829 # do not overwrite the value of need_locks provided by the user
15830 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15831echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15832 hard_links=yes
15833 $rm conftest*
15834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15835 touch conftest.a
15836 ln conftest.a conftest.b 2>&5 || hard_links=no
15837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15838 echo "$as_me:$LINENO: result: $hard_links" >&5
15839echo "${ECHO_T}$hard_links" >&6
15840 if test "$hard_links" = no; then
15841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15842echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15843 need_locks=warn
15844 fi
15845else
15846 need_locks=no
15847fi
15848
15849echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15850echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15851
15852 runpath_var=
15853 allow_undefined_flag_GCJ=
15854 enable_shared_with_static_runtimes_GCJ=no
15855 archive_cmds_GCJ=
15856 archive_expsym_cmds_GCJ=
15857 old_archive_From_new_cmds_GCJ=
15858 old_archive_from_expsyms_cmds_GCJ=
15859 export_dynamic_flag_spec_GCJ=
15860 whole_archive_flag_spec_GCJ=
15861 thread_safe_flag_spec_GCJ=
15862 hardcode_libdir_flag_spec_GCJ=
15863 hardcode_libdir_flag_spec_ld_GCJ=
15864 hardcode_libdir_separator_GCJ=
15865 hardcode_direct_GCJ=no
15866 hardcode_minus_L_GCJ=no
15867 hardcode_shlibpath_var_GCJ=unsupported
15868 link_all_deplibs_GCJ=unknown
15869 hardcode_automatic_GCJ=no
15870 module_cmds_GCJ=
15871 module_expsym_cmds_GCJ=
15872 always_export_symbols_GCJ=no
15873 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15874 # include_expsyms should be a list of space-separated symbols to be *always*
15875 # included in the symbol list
15876 include_expsyms_GCJ=
15877 # exclude_expsyms can be an extended regexp of symbols to exclude
15878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15880 # as well as any symbol that contains `d'.
15881 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15883 # platforms (ab)use it in PIC code, but their linkers get confused if
15884 # the symbol is explicitly referenced. Since portable code cannot
15885 # rely on this symbol name, it's probably fine to never include it in
15886 # preloaded symbol tables.
15887 extract_expsyms_cmds=
15888
15889 case $host_os in
15890 cygwin* | mingw* | pw32*)
15891 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15892 # When not using gcc, we currently assume that we are using
15893 # Microsoft Visual C++.
15894 if test "$GCC" != yes; then
15895 with_gnu_ld=no
15896 fi
15897 ;;
15898 openbsd*)
15899 with_gnu_ld=no
15900 ;;
15901 esac
15902
15903 ld_shlibs_GCJ=yes
15904 if test "$with_gnu_ld" = yes; then
15905 # If archive_cmds runs LD, not CC, wlarc should be empty
15906 wlarc='${wl}'
15907
15908 # See if GNU ld supports shared libraries.
15909 case $host_os in
15910 aix3* | aix4* | aix5*)
15911 # On AIX/PPC, the GNU linker is very broken
15912 if test "$host_cpu" != ia64; then
15913 ld_shlibs_GCJ=no
15914 cat <<EOF 1>&2
15915
15916*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15917*** to be unable to reliably create shared libraries on AIX.
15918*** Therefore, libtool is disabling shared libraries support. If you
15919*** really care for shared libraries, you may want to modify your PATH
15920*** so that a non-GNU linker is found, and then restart.
15921
15922EOF
15923 fi
15924 ;;
15925
15926 amigaos*)
15927 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)'
15928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15929 hardcode_minus_L_GCJ=yes
15930
15931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15932 # that the semantics of dynamic libraries on AmigaOS, at least up
15933 # to version 4, is to share data among multiple programs linked
15934 # with the same dynamic library. Since this doesn't match the
15935 # behavior of shared libraries on other platforms, we can't use
15936 # them.
15937 ld_shlibs_GCJ=no
15938 ;;
15939
15940 beos*)
15941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15942 allow_undefined_flag_GCJ=unsupported
15943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15944 # support --undefined. This deserves some investigation. FIXME
15945 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946 else
15947 ld_shlibs_GCJ=no
15948 fi
15949 ;;
15950
15951 cygwin* | mingw* | pw32*)
15952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15953 # as there is no search path for DLLs.
15954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15955 allow_undefined_flag_GCJ=unsupported
15956 always_export_symbols_GCJ=no
15957 enable_shared_with_static_runtimes_GCJ=yes
15958 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15959
15960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15962 # If the export-symbols file already is a .def file (1st line
15963 # is EXPORTS), use it as is; otherwise, prepend...
15964 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15965 cp $export_symbols $output_objdir/$soname.def;
15966 else
15967 echo EXPORTS > $output_objdir/$soname.def;
15968 cat $export_symbols >> $output_objdir/$soname.def;
15969 fi~
15970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15971 else
15972 ld_shlibs=no
15973 fi
15974 ;;
15975
15976 netbsd*)
15977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15979 wlarc=
15980 else
15981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15983 fi
15984 ;;
15985
15986 solaris* | sysv5*)
15987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15988 ld_shlibs_GCJ=no
15989 cat <<EOF 1>&2
15990
15991*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15992*** create shared libraries on Solaris systems. Therefore, libtool
15993*** is disabling shared libraries support. We urge you to upgrade GNU
15994*** binutils to release 2.9.1 or newer. Another option is to modify
15995*** your PATH or compiler configuration so that the native linker is
15996*** used, and then restart.
15997
15998EOF
15999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16000 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16002 else
16003 ld_shlibs_GCJ=no
16004 fi
16005 ;;
16006
16007 sunos4*)
16008 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16009 wlarc=
16010 hardcode_direct_GCJ=yes
16011 hardcode_shlibpath_var_GCJ=no
16012 ;;
16013
16014 linux*)
16015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16016 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_cmds_GCJ="$tmp_archive_cmds"
16018 supports_anon_versioning=no
16019 case `$LD -v 2>/dev/null` in
16020 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16023 *\ 2.11.*) ;; # other 2.11 versions
16024 *) supports_anon_versioning=yes ;;
16025 esac
16026 if test $supports_anon_versioning = yes; then
16027 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16028cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16029$echo "local: *; };" >> $output_objdir/$libname.ver~
16030 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16031 else
16032 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16033 fi
16034 else
16035 ld_shlibs_GCJ=no
16036 fi
16037 ;;
16038
16039 *)
16040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16041 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043 else
16044 ld_shlibs_GCJ=no
16045 fi
16046 ;;
16047 esac
16048
16049 if test "$ld_shlibs_GCJ" = yes; then
16050 runpath_var=LD_RUN_PATH
16051 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16052 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16053 # ancient GNU ld didn't support --whole-archive et. al.
16054 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16055 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16056 else
16057 whole_archive_flag_spec_GCJ=
16058 fi
16059 fi
16060 else
16061 # PORTME fill in a description of your system's linker (not GNU ld)
16062 case $host_os in
16063 aix3*)
16064 allow_undefined_flag_GCJ=unsupported
16065 always_export_symbols_GCJ=yes
16066 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'
16067 # Note: this linker hardcodes the directories in LIBPATH if there
16068 # are no directories specified by -L.
16069 hardcode_minus_L_GCJ=yes
16070 if test "$GCC" = yes && test -z "$link_static_flag"; then
16071 # Neither direct hardcoding nor static linking is supported with a
16072 # broken collect2.
16073 hardcode_direct_GCJ=unsupported
16074 fi
16075 ;;
16076
16077 aix4* | aix5*)
16078 if test "$host_cpu" = ia64; then
16079 # On IA64, the linker does run time linking by default, so we don't
16080 # have to do anything special.
16081 aix_use_runtimelinking=no
16082 exp_sym_flag='-Bexport'
16083 no_entry_flag=""
16084 else
16085 # If we're using GNU nm, then we don't want the "-C" option.
16086 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16087 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16088 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'
16089 else
16090 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'
16091 fi
16092 aix_use_runtimelinking=no
16093
16094 # Test if we are trying to use run time linking or normal
16095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16096 # need to do runtime linking.
16097 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16098 for ld_flag in $LDFLAGS; do
16099 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16100 aix_use_runtimelinking=yes
16101 break
16102 fi
16103 done
16104 esac
16105
16106 exp_sym_flag='-bexport'
16107 no_entry_flag='-bnoentry'
16108 fi
16109
16110 # When large executables or shared objects are built, AIX ld can
16111 # have problems creating the table of contents. If linking a library
16112 # or program results in "error TOC overflow" add -mminimal-toc to
16113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16115
16116 archive_cmds_GCJ=''
16117 hardcode_direct_GCJ=yes
16118 hardcode_libdir_separator_GCJ=':'
16119 link_all_deplibs_GCJ=yes
16120
16121 if test "$GCC" = yes; then
16122 case $host_os in aix4.012|aix4.012.*)
16123 # We only want to do this on AIX 4.2 and lower, the check
16124 # below for broken collect2 doesn't work under 4.3+
16125 collect2name=`${CC} -print-prog-name=collect2`
16126 if test -f "$collect2name" && \
16127 strings "$collect2name" | grep resolve_lib_name >/dev/null
16128 then
16129 # We have reworked collect2
16130 hardcode_direct_GCJ=yes
16131 else
16132 # We have old collect2
16133 hardcode_direct_GCJ=unsupported
16134 # It fails to find uninstalled libraries when the uninstalled
16135 # path is not listed in the libpath. Setting hardcode_minus_L
16136 # to unsupported forces relinking
16137 hardcode_minus_L_GCJ=yes
16138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16139 hardcode_libdir_separator_GCJ=
16140 fi
16141 esac
16142 shared_flag='-shared'
16143 else
16144 # not using gcc
16145 if test "$host_cpu" = ia64; then
16146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16147 # chokes on -Wl,-G. The following line is correct:
16148 shared_flag='-G'
16149 else
16150 if test "$aix_use_runtimelinking" = yes; then
16151 shared_flag='${wl}-G'
16152 else
16153 shared_flag='${wl}-bM:SRE'
16154 fi
16155 fi
16156 fi
16157
16158 # It seems that -bexpall does not export symbols beginning with
16159 # underscore (_), so it is better to generate a list of symbols to export.
16160 always_export_symbols_GCJ=yes
16161 if test "$aix_use_runtimelinking" = yes; then
16162 # Warning - without using the other runtime loading flags (-brtl),
16163 # -berok will link without error, but may produce a broken library.
16164 allow_undefined_flag_GCJ='-berok'
16165 # Determine the default libpath from the value encoded in an empty executable.
16166 cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h. */
16172
16173int
16174main ()
16175{
16176
16177 ;
16178 return 0;
16179}
16180_ACEOF
16181rm -f conftest.$ac_objext conftest$ac_exeext
16182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16183 (eval $ac_link) 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag"
16191 || test ! -s conftest.err'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; } &&
16197 { ac_try='test -s conftest$ac_exeext'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203
16204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16205}'`
16206# Check for a 64-bit object if we didn't find anything.
16207if 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; }
16208}'`; fi
16209else
16210 echo "$as_me: failed program was:" >&5
16211sed 's/^/| /' conftest.$ac_ext >&5
16212
16213fi
16214rm -f conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16217
16218 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16219 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"
16220 else
16221 if test "$host_cpu" = ia64; then
16222 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16223 allow_undefined_flag_GCJ="-z nodefs"
16224 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"
16225 else
16226 # Determine the default libpath from the value encoded in an empty executable.
16227 cat >conftest.$ac_ext <<_ACEOF
16228/* confdefs.h. */
16229_ACEOF
16230cat confdefs.h >>conftest.$ac_ext
16231cat >>conftest.$ac_ext <<_ACEOF
16232/* end confdefs.h. */
16233
16234int
16235main ()
16236{
16237
16238 ;
16239 return 0;
16240}
16241_ACEOF
16242rm -f conftest.$ac_objext conftest$ac_exeext
16243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16244 (eval $ac_link) 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag"
16252 || test ! -s conftest.err'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; } &&
16258 { ac_try='test -s conftest$ac_exeext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264
16265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16266}'`
16267# Check for a 64-bit object if we didn't find anything.
16268if 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; }
16269}'`; fi
16270else
16271 echo "$as_me: failed program was:" >&5
16272sed 's/^/| /' conftest.$ac_ext >&5
16273
16274fi
16275rm -f conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16277if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16278
16279 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16280 # Warning - without using the other run time loading flags,
16281 # -berok will link without error, but may produce a broken library.
16282 no_undefined_flag_GCJ=' ${wl}-bernotok'
16283 allow_undefined_flag_GCJ=' ${wl}-berok'
16284 # -bexpall does not export symbols beginning with underscore (_)
16285 always_export_symbols_GCJ=yes
16286 # Exported symbols can be pulled into shared objects from archives
16287 whole_archive_flag_spec_GCJ=' '
16288 archive_cmds_need_lc_GCJ=yes
16289 # This is similar to how AIX traditionally builds it's shared libraries.
16290 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'
16291 fi
16292 fi
16293 ;;
16294
16295 amigaos*)
16296 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)'
16297 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16298 hardcode_minus_L_GCJ=yes
16299 # see comment about different semantics on the GNU ld section
16300 ld_shlibs_GCJ=no
16301 ;;
16302
16303 bsdi4*)
16304 export_dynamic_flag_spec_GCJ=-rdynamic
16305 ;;
16306
16307 cygwin* | mingw* | pw32*)
16308 # When not using gcc, we currently assume that we are using
16309 # Microsoft Visual C++.
16310 # hardcode_libdir_flag_spec is actually meaningless, as there is
16311 # no search path for DLLs.
16312 hardcode_libdir_flag_spec_GCJ=' '
16313 allow_undefined_flag_GCJ=unsupported
16314 # Tell ltmain to make .lib files, not .a files.
16315 libext=lib
16316 # Tell ltmain to make .dll files, not .so files.
16317 shrext_cmds=".dll"
16318 # FIXME: Setting linknames here is a bad hack.
16319 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16320 # The linker will automatically build a .lib file if we build a DLL.
16321 old_archive_From_new_cmds_GCJ='true'
16322 # FIXME: Should let the user specify the lib program.
16323 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16324 fix_srcfile_path='`cygpath -w "$srcfile"`'
16325 enable_shared_with_static_runtimes_GCJ=yes
16326 ;;
16327
16328 darwin* | rhapsody*)
16329 if test "$GXX" = yes ; then
16330 archive_cmds_need_lc_GCJ=no
16331 case "$host_os" in
16332 rhapsody* | darwin1.[012])
16333 allow_undefined_flag_GCJ='-undefined suppress'
16334 ;;
16335 *) # Darwin 1.3 on
16336 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16337 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16338 else
16339 case ${MACOSX_DEPLOYMENT_TARGET} in
16340 10.[012])
16341 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16342 ;;
16343 10.*)
16344 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16345 ;;
16346 esac
16347 fi
16348 ;;
16349 esac
16350 lt_int_apple_cc_single_mod=no
16351 output_verbose_link_cmd='echo'
16352 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16353 lt_int_apple_cc_single_mod=yes
16354 fi
16355 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16356 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16357 else
16358 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'
16359 fi
16360 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16361 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16362 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16363 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}'
16364 else
16365 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}'
16366 fi
16367 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}'
16368 hardcode_direct_GCJ=no
16369 hardcode_automatic_GCJ=yes
16370 hardcode_shlibpath_var_GCJ=unsupported
16371 whole_archive_flag_spec_GCJ='-all_load $convenience'
16372 link_all_deplibs_GCJ=yes
16373 else
16374 ld_shlibs_GCJ=no
16375 fi
16376 ;;
16377
16378 dgux*)
16379 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16381 hardcode_shlibpath_var_GCJ=no
16382 ;;
16383
16384 freebsd1*)
16385 ld_shlibs_GCJ=no
16386 ;;
16387
16388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16389 # support. Future versions do this automatically, but an explicit c++rt0.o
16390 # does not break anything, and helps significantly (at the cost of a little
16391 # extra space).
16392 freebsd2.2*)
16393 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16394 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16395 hardcode_direct_GCJ=yes
16396 hardcode_shlibpath_var_GCJ=no
16397 ;;
16398
16399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16400 freebsd2*)
16401 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_direct_GCJ=yes
16403 hardcode_minus_L_GCJ=yes
16404 hardcode_shlibpath_var_GCJ=no
16405 ;;
16406
16407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16408 freebsd* | kfreebsd*-gnu)
16409 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16410 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16411 hardcode_direct_GCJ=yes
16412 hardcode_shlibpath_var_GCJ=no
16413 ;;
16414
16415 hpux9*)
16416 if test "$GCC" = yes; then
16417 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'
16418 else
16419 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'
16420 fi
16421 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16422 hardcode_libdir_separator_GCJ=:
16423 hardcode_direct_GCJ=yes
16424
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L_GCJ=yes
16428 export_dynamic_flag_spec_GCJ='${wl}-E'
16429 ;;
16430
16431 hpux10* | hpux11*)
16432 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16433 case "$host_cpu" in
16434 hppa*64*|ia64*)
16435 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16436 ;;
16437 *)
16438 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16439 ;;
16440 esac
16441 else
16442 case "$host_cpu" in
16443 hppa*64*|ia64*)
16444 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16445 ;;
16446 *)
16447 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16448 ;;
16449 esac
16450 fi
16451 if test "$with_gnu_ld" = no; then
16452 case "$host_cpu" in
16453 hppa*64*)
16454 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16455 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16456 hardcode_libdir_separator_GCJ=:
16457 hardcode_direct_GCJ=no
16458 hardcode_shlibpath_var_GCJ=no
16459 ;;
16460 ia64*)
16461 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16462 hardcode_direct_GCJ=no
16463 hardcode_shlibpath_var_GCJ=no
16464
16465 # hardcode_minus_L: Not really in the search PATH,
16466 # but as the default location of the library.
16467 hardcode_minus_L_GCJ=yes
16468 ;;
16469 *)
16470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16471 hardcode_libdir_separator_GCJ=:
16472 hardcode_direct_GCJ=yes
16473 export_dynamic_flag_spec_GCJ='${wl}-E'
16474
16475 # hardcode_minus_L: Not really in the search PATH,
16476 # but as the default location of the library.
16477 hardcode_minus_L_GCJ=yes
16478 ;;
16479 esac
16480 fi
16481 ;;
16482
16483 irix5* | irix6* | nonstopux*)
16484 if test "$GCC" = yes; then
16485 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'
16486 else
16487 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'
16488 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16489 fi
16490 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16491 hardcode_libdir_separator_GCJ=:
16492 link_all_deplibs_GCJ=yes
16493 ;;
16494
16495 netbsd*)
16496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16497 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16498 else
16499 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16500 fi
16501 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16502 hardcode_direct_GCJ=yes
16503 hardcode_shlibpath_var_GCJ=no
16504 ;;
16505
16506 newsos6)
16507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_direct_GCJ=yes
16509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16510 hardcode_libdir_separator_GCJ=:
16511 hardcode_shlibpath_var_GCJ=no
16512 ;;
16513
16514 openbsd*)
16515 hardcode_direct_GCJ=yes
16516 hardcode_shlibpath_var_GCJ=no
16517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16520 export_dynamic_flag_spec_GCJ='${wl}-E'
16521 else
16522 case $host_os in
16523 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16524 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16525 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16526 ;;
16527 *)
16528 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16529 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16530 ;;
16531 esac
16532 fi
16533 ;;
16534
16535 os2*)
16536 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16537 hardcode_minus_L_GCJ=yes
16538 allow_undefined_flag_GCJ=unsupported
16539 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'
16540 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16541 ;;
16542
16543 osf3*)
16544 if test "$GCC" = yes; then
16545 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16546 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'
16547 else
16548 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16549 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'
16550 fi
16551 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16552 hardcode_libdir_separator_GCJ=:
16553 ;;
16554
16555 osf4* | osf5*) # as osf3* with the addition of -msym flag
16556 if test "$GCC" = yes; then
16557 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16558 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'
16559 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16560 else
16561 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16562 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'
16563 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~
16564 $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'
16565
16566 # Both c and cxx compiler support -rpath directly
16567 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16568 fi
16569 hardcode_libdir_separator_GCJ=:
16570 ;;
16571
16572 sco3.2v5*)
16573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_shlibpath_var_GCJ=no
16575 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16576 runpath_var=LD_RUN_PATH
16577 hardcode_runpath_var=yes
16578 ;;
16579
16580 solaris*)
16581 no_undefined_flag_GCJ=' -z text'
16582 if test "$GCC" = yes; then
16583 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16584 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16585 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16586 else
16587 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16590 fi
16591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16592 hardcode_shlibpath_var_GCJ=no
16593 case $host_os in
16594 solaris2.[0-5] | solaris2.[0-5].*) ;;
16595 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16596 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16597 esac
16598 link_all_deplibs_GCJ=yes
16599 ;;
16600
16601 sunos4*)
16602 if test "x$host_vendor" = xsequent; then
16603 # Use $CC to link under sequent, because it throws in some extra .o
16604 # files that make .init and .fini sections work.
16605 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16606 else
16607 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16608 fi
16609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16610 hardcode_direct_GCJ=yes
16611 hardcode_minus_L_GCJ=yes
16612 hardcode_shlibpath_var_GCJ=no
16613 ;;
16614
16615 sysv4)
16616 case $host_vendor in
16617 sni)
16618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_direct_GCJ=yes # is this really true???
16620 ;;
16621 siemens)
16622 ## LD is ld it makes a PLAMLIB
16623 ## CC just makes a GrossModule.
16624 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16625 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16626 hardcode_direct_GCJ=no
16627 ;;
16628 motorola)
16629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16630 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16631 ;;
16632 esac
16633 runpath_var='LD_RUN_PATH'
16634 hardcode_shlibpath_var_GCJ=no
16635 ;;
16636
16637 sysv4.3*)
16638 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_shlibpath_var_GCJ=no
16640 export_dynamic_flag_spec_GCJ='-Bexport'
16641 ;;
16642
16643 sysv4*MP*)
16644 if test -d /usr/nec; then
16645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_shlibpath_var_GCJ=no
16647 runpath_var=LD_RUN_PATH
16648 hardcode_runpath_var=yes
16649 ld_shlibs_GCJ=yes
16650 fi
16651 ;;
16652
16653 sysv4.2uw2*)
16654 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_direct_GCJ=yes
16656 hardcode_minus_L_GCJ=no
16657 hardcode_shlibpath_var_GCJ=no
16658 hardcode_runpath_var=yes
16659 runpath_var=LD_RUN_PATH
16660 ;;
16661
16662 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16663 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16664 if test "$GCC" = yes; then
16665 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 else
16667 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16668 fi
16669 runpath_var='LD_RUN_PATH'
16670 hardcode_shlibpath_var_GCJ=no
16671 ;;
16672
16673 sysv5*)
16674 no_undefined_flag_GCJ=' -z text'
16675 # $CC -shared without GNU ld will not create a library from C++
16676 # object files and a static libstdc++, better avoid it by now
16677 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16680 hardcode_libdir_flag_spec_GCJ=
16681 hardcode_shlibpath_var_GCJ=no
16682 runpath_var='LD_RUN_PATH'
16683 ;;
16684
16685 uts4*)
16686 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16688 hardcode_shlibpath_var_GCJ=no
16689 ;;
16690
16691 *)
16692 ld_shlibs_GCJ=no
16693 ;;
16694 esac
16695 fi
16696
16697echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16698echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16699test "$ld_shlibs_GCJ" = no && can_build_shared=no
16700
16701variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16702if test "$GCC" = yes; then
16703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16704fi
16705
16706#
16707# Do we need to explicitly link libc?
16708#
16709case "x$archive_cmds_need_lc_GCJ" in
16710x|xyes)
16711 # Assume -lc should be added
16712 archive_cmds_need_lc_GCJ=yes
16713
16714 if test "$enable_shared" = yes && test "$GCC" = yes; then
16715 case $archive_cmds_GCJ in
16716 *'~'*)
16717 # FIXME: we may have to deal with multi-command sequences.
16718 ;;
16719 '$CC '*)
16720 # Test whether the compiler implicitly links with -lc since on some
16721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16722 # to ld, don't add -lc before -lgcc.
16723 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16724echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16725 $rm conftest*
16726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16727
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } 2>conftest.err; then
16733 soname=conftest
16734 lib=conftest
16735 libobjs=conftest.$ac_objext
16736 deplibs=
16737 wl=$lt_prog_compiler_wl_GCJ
16738 compiler_flags=-v
16739 linker_flags=-v
16740 verstring=
16741 output_objdir=.
16742 libname=conftest
16743 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16744 allow_undefined_flag_GCJ=
16745 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16746 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }
16750 then
16751 archive_cmds_need_lc_GCJ=no
16752 else
16753 archive_cmds_need_lc_GCJ=yes
16754 fi
16755 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16756 else
16757 cat conftest.err 1>&5
16758 fi
16759 $rm conftest*
16760 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16761echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16762 ;;
16763 esac
16764 fi
16765 ;;
16766esac
16767
16768echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16769echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16770library_names_spec=
16771libname_spec='lib$name'
16772soname_spec=
16773shrext_cmds=".so"
16774postinstall_cmds=
16775postuninstall_cmds=
16776finish_cmds=
16777finish_eval=
16778shlibpath_var=
16779shlibpath_overrides_runpath=unknown
16780version_type=none
16781dynamic_linker="$host_os ld.so"
16782sys_lib_dlsearch_path_spec="/lib /usr/lib"
16783if test "$GCC" = yes; then
16784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16786 # if the path contains ";" then we assume it to be the separator
16787 # otherwise default to the standard path separator (i.e. ":") - it is
16788 # assumed that no part of a normal pathname contains ";" but that should
16789 # okay in the real world where ";" in dirpaths is itself problematic.
16790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16791 else
16792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16793 fi
16794else
16795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16796fi
16797need_lib_prefix=unknown
16798hardcode_into_libs=no
16799
16800# when you set need_version to no, make sure it does not cause -set_version
16801# flags to be left without arguments
16802need_version=unknown
16803
16804case $host_os in
16805aix3*)
16806 version_type=linux
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16808 shlibpath_var=LIBPATH
16809
16810 # AIX 3 has no versioning support, so we append a major version to the name.
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 ;;
16813
16814aix4* | aix5*)
16815 version_type=linux
16816 need_lib_prefix=no
16817 need_version=no
16818 hardcode_into_libs=yes
16819 if test "$host_cpu" = ia64; then
16820 # AIX 5 supports IA64
16821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 else
16824 # With GCC up to 2.95.x, collect2 would create an import file
16825 # for dependence libraries. The import file would start with
16826 # the line `#! .'. This would cause the generated library to
16827 # depend on `.', always an invalid library. This was fixed in
16828 # development snapshots of GCC prior to 3.0.
16829 case $host_os in
16830 aix4 | aix4.[01] | aix4.[01].*)
16831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16832 echo ' yes '
16833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16834 :
16835 else
16836 can_build_shared=no
16837 fi
16838 ;;
16839 esac
16840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16841 # soname into executable. Probably we can add versioning support to
16842 # collect2, so additional links can be useful in future.
16843 if test "$aix_use_runtimelinking" = yes; then
16844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16845 # instead of lib<name>.a to let people know that these are not
16846 # typical AIX shared libraries.
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848 else
16849 # We preserve .a as extension for shared libraries through AIX4.2
16850 # and later when we are not doing run time linking.
16851 library_names_spec='${libname}${release}.a $libname.a'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 fi
16854 shlibpath_var=LIBPATH
16855 fi
16856 ;;
16857
16858amigaos*)
16859 library_names_spec='$libname.ixlibrary $libname.a'
16860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16861 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'
16862 ;;
16863
16864beos*)
16865 library_names_spec='${libname}${shared_ext}'
16866 dynamic_linker="$host_os ld.so"
16867 shlibpath_var=LIBRARY_PATH
16868 ;;
16869
16870bsdi4*)
16871 version_type=linux
16872 need_version=no
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16879 # the default ld.so.conf also contains /usr/contrib/lib and
16880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16881 # libtool to hard-code these into programs
16882 ;;
16883
16884cygwin* | mingw* | pw32*)
16885 version_type=windows
16886 shrext_cmds=".dll"
16887 need_version=no
16888 need_lib_prefix=no
16889
16890 case $GCC,$host_os in
16891 yes,cygwin* | yes,mingw* | yes,pw32*)
16892 library_names_spec='$libname.dll.a'
16893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16894 postinstall_cmds='base_file=`basename \${file}`~
16895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16896 dldir=$destdir/`dirname \$dlpath`~
16897 test -d \$dldir || mkdir -p \$dldir~
16898 $install_prog $dir/$dlname \$dldir/$dlname'
16899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16900 dlpath=$dir/\$dldll~
16901 $rm \$dlpath'
16902 shlibpath_overrides_runpath=yes
16903
16904 case $host_os in
16905 cygwin*)
16906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16909 ;;
16910 mingw*)
16911 # MinGW DLLs use traditional 'lib' prefix
16912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16915 # It is most probably a Windows format PATH printed by
16916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16917 # path with ; separators, and with drive letters. We can handle the
16918 # drive letters (cygwin fileutils understands them), so leave them,
16919 # especially as we might pass files found there to a mingw objdump,
16920 # which wouldn't understand a cygwinified path. Ahh.
16921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16922 else
16923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16924 fi
16925 ;;
16926 pw32*)
16927 # pw32 DLLs use 'pw' prefix rather than 'lib'
16928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16929 ;;
16930 esac
16931 ;;
16932
16933 *)
16934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16935 ;;
16936 esac
16937 dynamic_linker='Win32 ld.exe'
16938 # FIXME: first we should search . and the directory the executable is in
16939 shlibpath_var=PATH
16940 ;;
16941
16942darwin* | rhapsody*)
16943 dynamic_linker="$host_os dyld"
16944 version_type=darwin
16945 need_lib_prefix=no
16946 need_version=no
16947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16948 soname_spec='${libname}${release}${major}$shared_ext'
16949 shlibpath_overrides_runpath=yes
16950 shlibpath_var=DYLD_LIBRARY_PATH
16951 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16953 if test "$GCC" = yes; then
16954 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"`
16955 else
16956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16957 fi
16958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16959 ;;
16960
16961dgux*)
16962 version_type=linux
16963 need_lib_prefix=no
16964 need_version=no
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 ;;
16969
16970freebsd1*)
16971 dynamic_linker=no
16972 ;;
16973
16974kfreebsd*-gnu)
16975 version_type=linux
16976 need_lib_prefix=no
16977 need_version=no
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=no
16982 hardcode_into_libs=yes
16983 dynamic_linker='GNU ld.so'
16984 ;;
16985
16986freebsd*)
16987 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16988 version_type=freebsd-$objformat
16989 case $version_type in
16990 freebsd-elf*)
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16992 need_version=no
16993 need_lib_prefix=no
16994 ;;
16995 freebsd-*)
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16997 need_version=yes
16998 ;;
16999 esac
17000 shlibpath_var=LD_LIBRARY_PATH
17001 case $host_os in
17002 freebsd2*)
17003 shlibpath_overrides_runpath=yes
17004 ;;
17005 freebsd3.01* | freebsdelf3.01*)
17006 shlibpath_overrides_runpath=yes
17007 hardcode_into_libs=yes
17008 ;;
17009 *) # from 3.2 on
17010 shlibpath_overrides_runpath=no
17011 hardcode_into_libs=yes
17012 ;;
17013 esac
17014 ;;
17015
17016gnu*)
17017 version_type=linux
17018 need_lib_prefix=no
17019 need_version=no
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 hardcode_into_libs=yes
17024 ;;
17025
17026hpux9* | hpux10* | hpux11*)
17027 # Give a soname corresponding to the major version so that dld.sl refuses to
17028 # link against other versions.
17029 version_type=sunos
17030 need_lib_prefix=no
17031 need_version=no
17032 case "$host_cpu" in
17033 ia64*)
17034 shrext_cmds='.so'
17035 hardcode_into_libs=yes
17036 dynamic_linker="$host_os dld.so"
17037 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 if test "X$HPUX_IA64_MODE" = X32; then
17042 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17043 else
17044 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17045 fi
17046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17047 ;;
17048 hppa*64*)
17049 shrext_cmds='.sl'
17050 hardcode_into_libs=yes
17051 dynamic_linker="$host_os dld.sl"
17052 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17058 ;;
17059 *)
17060 shrext_cmds='.sl'
17061 dynamic_linker="$host_os dld.sl"
17062 shlibpath_var=SHLIB_PATH
17063 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 ;;
17067 esac
17068 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17069 postinstall_cmds='chmod 555 $lib'
17070 ;;
17071
17072irix5* | irix6* | nonstopux*)
17073 case $host_os in
17074 nonstopux*) version_type=nonstopux ;;
17075 *)
17076 if test "$lt_cv_prog_gnu_ld" = yes; then
17077 version_type=linux
17078 else
17079 version_type=irix
17080 fi ;;
17081 esac
17082 need_lib_prefix=no
17083 need_version=no
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17086 case $host_os in
17087 irix5* | nonstopux*)
17088 libsuff= shlibsuff=
17089 ;;
17090 *)
17091 case $LD in # libtool.m4 will add one of these switches to LD
17092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17093 libsuff= shlibsuff= libmagic=32-bit;;
17094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17095 libsuff=32 shlibsuff=N32 libmagic=N32;;
17096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17097 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17098 *) libsuff= shlibsuff= libmagic=never-match;;
17099 esac
17100 ;;
17101 esac
17102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17103 shlibpath_overrides_runpath=no
17104 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17105 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17106 hardcode_into_libs=yes
17107 ;;
17108
17109# No shared lib support for Linux oldld, aout, or coff.
17110linux*oldld* | linux*aout* | linux*coff*)
17111 dynamic_linker=no
17112 ;;
17113
17114# This must be Linux ELF.
17115linux*)
17116 version_type=linux
17117 need_lib_prefix=no
17118 need_version=no
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17122 shlibpath_var=LD_LIBRARY_PATH
17123 shlibpath_overrides_runpath=no
17124 # This implies no fast_install, which is unacceptable.
17125 # Some rework will be needed to allow for fast_install
17126 # before this can be enabled.
17127 hardcode_into_libs=yes
17128
17129 # Append ld.so.conf contents to the search path
17130 if test -f /etc/ld.so.conf; then
17131 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17133 fi
17134
17135 # We used to test for /lib/ld.so.1 and disable shared libraries on
17136 # powerpc, because MkLinux only supported shared libraries with the
17137 # GNU dynamic linker. Since this was broken with cross compilers,
17138 # most powerpc-linux boxes support dynamic linking these days and
17139 # people can always --disable-shared, the test was removed, and we
17140 # assume the GNU/Linux dynamic linker is in use.
17141 dynamic_linker='GNU/Linux ld.so'
17142 ;;
17143
17144knetbsd*-gnu)
17145 version_type=linux
17146 need_lib_prefix=no
17147 need_version=no
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=no
17152 hardcode_into_libs=yes
17153 dynamic_linker='GNU ld.so'
17154 ;;
17155
17156netbsd*)
17157 version_type=sunos
17158 need_lib_prefix=no
17159 need_version=no
17160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17163 dynamic_linker='NetBSD (a.out) ld.so'
17164 else
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 dynamic_linker='NetBSD ld.elf_so'
17168 fi
17169 shlibpath_var=LD_LIBRARY_PATH
17170 shlibpath_overrides_runpath=yes
17171 hardcode_into_libs=yes
17172 ;;
17173
17174newsos6)
17175 version_type=linux
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 shlibpath_var=LD_LIBRARY_PATH
17178 shlibpath_overrides_runpath=yes
17179 ;;
17180
17181nto-qnx*)
17182 version_type=linux
17183 need_lib_prefix=no
17184 need_version=no
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=yes
17189 ;;
17190
17191openbsd*)
17192 version_type=sunos
17193 need_lib_prefix=no
17194 need_version=yes
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17199 case $host_os in
17200 openbsd2.[89] | openbsd2.[89].*)
17201 shlibpath_overrides_runpath=no
17202 ;;
17203 *)
17204 shlibpath_overrides_runpath=yes
17205 ;;
17206 esac
17207 else
17208 shlibpath_overrides_runpath=yes
17209 fi
17210 ;;
17211
17212os2*)
17213 libname_spec='$name'
17214 shrext_cmds=".dll"
17215 need_lib_prefix=no
17216 library_names_spec='$libname${shared_ext} $libname.a'
17217 dynamic_linker='OS/2 ld.exe'
17218 shlibpath_var=LIBPATH
17219 ;;
17220
17221osf3* | osf4* | osf5*)
17222 version_type=osf
17223 need_lib_prefix=no
17224 need_version=no
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17230 ;;
17231
17232sco3.2v5*)
17233 version_type=osf
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 ;;
17238
17239solaris*)
17240 version_type=linux
17241 need_lib_prefix=no
17242 need_version=no
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 shlibpath_overrides_runpath=yes
17247 hardcode_into_libs=yes
17248 # ldd complains unless libraries are executable
17249 postinstall_cmds='chmod +x $lib'
17250 ;;
17251
17252sunos4*)
17253 version_type=sunos
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=yes
17258 if test "$with_gnu_ld" = yes; then
17259 need_lib_prefix=no
17260 fi
17261 need_version=yes
17262 ;;
17263
17264sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17265 version_type=linux
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267 soname_spec='${libname}${release}${shared_ext}$major'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 case $host_vendor in
17270 sni)
17271 shlibpath_overrides_runpath=no
17272 need_lib_prefix=no
17273 export_dynamic_flag_spec='${wl}-Blargedynsym'
17274 runpath_var=LD_RUN_PATH
17275 ;;
17276 siemens)
17277 need_lib_prefix=no
17278 ;;
17279 motorola)
17280 need_lib_prefix=no
17281 need_version=no
17282 shlibpath_overrides_runpath=no
17283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17284 ;;
17285 esac
17286 ;;
17287
17288sysv4*MP*)
17289 if test -d /usr/nec ;then
17290 version_type=linux
17291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17292 soname_spec='$libname${shared_ext}.$major'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 fi
17295 ;;
17296
17297uts4*)
17298 version_type=linux
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 ;;
17303
17304*)
17305 dynamic_linker=no
17306 ;;
17307esac
17308echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17309echo "${ECHO_T}$dynamic_linker" >&6
17310test "$dynamic_linker" = no && can_build_shared=no
17311
17312echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17313echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17314hardcode_action_GCJ=
17315if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17316 test -n "$runpath_var GCJ" || \
17317 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17318
17319 # We can hardcode non-existant directories.
17320 if test "$hardcode_direct_GCJ" != no &&
17321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17322 # have to relink, otherwise we might link with an installed library
17323 # when we should be linking with a yet-to-be-installed one
17324 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17325 test "$hardcode_minus_L_GCJ" != no; then
17326 # Linking always hardcodes the temporary library directory.
17327 hardcode_action_GCJ=relink
17328 else
17329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17330 hardcode_action_GCJ=immediate
17331 fi
17332else
17333 # We cannot hardcode anything, or else we can only hardcode existing
17334 # directories.
17335 hardcode_action_GCJ=unsupported
17336fi
17337echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17338echo "${ECHO_T}$hardcode_action_GCJ" >&6
17339
17340if test "$hardcode_action_GCJ" = relink; then
17341 # Fast installation is not supported
17342 enable_fast_install=no
17343elif test "$shlibpath_overrides_runpath" = yes ||
17344 test "$enable_shared" = no; then
17345 # Fast installation is not necessary
17346 enable_fast_install=needless
17347fi
17348
17349striplib=
17350old_striplib=
17351echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17352echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17353if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17354 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17355 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17356 echo "$as_me:$LINENO: result: yes" >&5
17357echo "${ECHO_T}yes" >&6
17358else
17359# FIXME - insert some real tests, host_os isn't really good enough
17360 case $host_os in
17361 darwin*)
17362 if test -n "$STRIP" ; then
17363 striplib="$STRIP -x"
17364 echo "$as_me:$LINENO: result: yes" >&5
17365echo "${ECHO_T}yes" >&6
17366 else
17367 echo "$as_me:$LINENO: result: no" >&5
17368echo "${ECHO_T}no" >&6
17369fi
17370 ;;
17371 *)
17372 echo "$as_me:$LINENO: result: no" >&5
17373echo "${ECHO_T}no" >&6
17374 ;;
17375 esac
17376fi
17377
17378if test "x$enable_dlopen" != xyes; then
17379 enable_dlopen=unknown
17380 enable_dlopen_self=unknown
17381 enable_dlopen_self_static=unknown
17382else
17383 lt_cv_dlopen=no
17384 lt_cv_dlopen_libs=
17385
17386 case $host_os in
17387 beos*)
17388 lt_cv_dlopen="load_add_on"
17389 lt_cv_dlopen_libs=
17390 lt_cv_dlopen_self=yes
17391 ;;
17392
17393 mingw* | pw32*)
17394 lt_cv_dlopen="LoadLibrary"
17395 lt_cv_dlopen_libs=
17396 ;;
17397
17398 cygwin*)
17399 lt_cv_dlopen="dlopen"
17400 lt_cv_dlopen_libs=
17401 ;;
17402
17403 darwin*)
17404 # if libdl is installed we need to link against it
17405 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17406echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17407if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409else
17410 ac_check_lib_save_LIBS=$LIBS
17411LIBS="-ldl $LIBS"
17412cat >conftest.$ac_ext <<_ACEOF
17413/* confdefs.h. */
17414_ACEOF
17415cat confdefs.h >>conftest.$ac_ext
17416cat >>conftest.$ac_ext <<_ACEOF
17417/* end confdefs.h. */
17418
17419/* Override any gcc2 internal prototype to avoid an error. */
17420#ifdef __cplusplus
17421extern "C"
17422#endif
17423/* We use char because int might match the return type of a gcc2
17424 builtin and then its argument prototype would still apply. */
17425char dlopen ();
17426int
17427main ()
17428{
17429dlopen ();
17430 ;
17431 return 0;
17432}
17433_ACEOF
17434rm -f conftest.$ac_objext conftest$ac_exeext
17435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17436 (eval $ac_link) 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } &&
17443 { ac_try='test -z "$ac_c_werror_flag"
17444 || test ! -s conftest.err'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; } &&
17450 { ac_try='test -s conftest$ac_exeext'
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_cv_lib_dl_dlopen=yes
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461ac_cv_lib_dl_dlopen=no
17462fi
17463rm -f conftest.err conftest.$ac_objext \
17464 conftest$ac_exeext conftest.$ac_ext
17465LIBS=$ac_check_lib_save_LIBS
17466fi
17467echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17468echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17469if test $ac_cv_lib_dl_dlopen = yes; then
17470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17471else
17472
17473 lt_cv_dlopen="dyld"
17474 lt_cv_dlopen_libs=
17475 lt_cv_dlopen_self=yes
17476
17477fi
17478
17479 ;;
17480
17481 *)
17482 echo "$as_me:$LINENO: checking for shl_load" >&5
17483echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17484if test "${ac_cv_func_shl_load+set}" = set; then
17485 echo $ECHO_N "(cached) $ECHO_C" >&6
17486else
17487 cat >conftest.$ac_ext <<_ACEOF
17488/* confdefs.h. */
17489_ACEOF
17490cat confdefs.h >>conftest.$ac_ext
17491cat >>conftest.$ac_ext <<_ACEOF
17492/* end confdefs.h. */
17493/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17495#define shl_load innocuous_shl_load
17496
17497/* System header to define __stub macros and hopefully few prototypes,
17498 which can conflict with char shl_load (); below.
17499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 <limits.h> exists even on freestanding compilers. */
17501
17502#ifdef __STDC__
17503# include <limits.h>
17504#else
17505# include <assert.h>
17506#endif
17507
17508#undef shl_load
17509
17510/* Override any gcc2 internal prototype to avoid an error. */
17511#ifdef __cplusplus
17512extern "C"
17513{
17514#endif
17515/* We use char because int might match the return type of a gcc2
17516 builtin and then its argument prototype would still apply. */
17517char shl_load ();
17518/* The GNU C library defines this for functions which it implements
17519 to always fail with ENOSYS. Some functions are actually named
17520 something starting with __ and the normal name is an alias. */
17521#if defined (__stub_shl_load) || defined (__stub___shl_load)
17522choke me
17523#else
17524char (*f) () = shl_load;
17525#endif
17526#ifdef __cplusplus
17527}
17528#endif
17529
17530int
17531main ()
17532{
17533return f != shl_load;
17534 ;
17535 return 0;
17536}
17537_ACEOF
17538rm -f conftest.$ac_objext conftest$ac_exeext
17539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17540 (eval $ac_link) 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -z "$ac_c_werror_flag"
17548 || test ! -s conftest.err'
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest$ac_exeext'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; }; then
17560 ac_cv_func_shl_load=yes
17561else
17562 echo "$as_me: failed program was:" >&5
17563sed 's/^/| /' conftest.$ac_ext >&5
17564
17565ac_cv_func_shl_load=no
17566fi
17567rm -f conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17569fi
17570echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17571echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17572if test $ac_cv_func_shl_load = yes; then
17573 lt_cv_dlopen="shl_load"
17574else
17575 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17576echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17577if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579else
17580 ac_check_lib_save_LIBS=$LIBS
17581LIBS="-ldld $LIBS"
17582cat >conftest.$ac_ext <<_ACEOF
17583/* confdefs.h. */
17584_ACEOF
17585cat confdefs.h >>conftest.$ac_ext
17586cat >>conftest.$ac_ext <<_ACEOF
17587/* end confdefs.h. */
17588
17589/* Override any gcc2 internal prototype to avoid an error. */
17590#ifdef __cplusplus
17591extern "C"
17592#endif
17593/* We use char because int might match the return type of a gcc2
17594 builtin and then its argument prototype would still apply. */
17595char shl_load ();
17596int
17597main ()
17598{
17599shl_load ();
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext conftest$ac_exeext
17605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17606 (eval $ac_link) 2>conftest.er1
17607 ac_status=$?
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try='test -z "$ac_c_werror_flag"
17614 || test ! -s conftest.err'
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest$ac_exeext'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 ac_cv_lib_dld_shl_load=yes
17627else
17628 echo "$as_me: failed program was:" >&5
17629sed 's/^/| /' conftest.$ac_ext >&5
17630
17631ac_cv_lib_dld_shl_load=no
17632fi
17633rm -f conftest.err conftest.$ac_objext \
17634 conftest$ac_exeext conftest.$ac_ext
17635LIBS=$ac_check_lib_save_LIBS
17636fi
17637echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17638echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17639if test $ac_cv_lib_dld_shl_load = yes; then
17640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17641else
17642 echo "$as_me:$LINENO: checking for dlopen" >&5
17643echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17644if test "${ac_cv_func_dlopen+set}" = set; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17646else
17647 cat >conftest.$ac_ext <<_ACEOF
17648/* confdefs.h. */
17649_ACEOF
17650cat confdefs.h >>conftest.$ac_ext
17651cat >>conftest.$ac_ext <<_ACEOF
17652/* end confdefs.h. */
17653/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17655#define dlopen innocuous_dlopen
17656
17657/* System header to define __stub macros and hopefully few prototypes,
17658 which can conflict with char dlopen (); below.
17659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17660 <limits.h> exists even on freestanding compilers. */
17661
17662#ifdef __STDC__
17663# include <limits.h>
17664#else
17665# include <assert.h>
17666#endif
17667
17668#undef dlopen
17669
17670/* Override any gcc2 internal prototype to avoid an error. */
17671#ifdef __cplusplus
17672extern "C"
17673{
17674#endif
17675/* We use char because int might match the return type of a gcc2
17676 builtin and then its argument prototype would still apply. */
17677char dlopen ();
17678/* The GNU C library defines this for functions which it implements
17679 to always fail with ENOSYS. Some functions are actually named
17680 something starting with __ and the normal name is an alias. */
17681#if defined (__stub_dlopen) || defined (__stub___dlopen)
17682choke me
17683#else
17684char (*f) () = dlopen;
17685#endif
17686#ifdef __cplusplus
17687}
17688#endif
17689
17690int
17691main ()
17692{
17693return f != dlopen;
17694 ;
17695 return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext conftest$ac_exeext
17699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17700 (eval $ac_link) 2>conftest.er1
17701 ac_status=$?
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
17707 { ac_try='test -z "$ac_c_werror_flag"
17708 || test ! -s conftest.err'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest$ac_exeext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_func_dlopen=yes
17721else
17722 echo "$as_me: failed program was:" >&5
17723sed 's/^/| /' conftest.$ac_ext >&5
17724
17725ac_cv_func_dlopen=no
17726fi
17727rm -f conftest.err conftest.$ac_objext \
17728 conftest$ac_exeext conftest.$ac_ext
17729fi
17730echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17731echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17732if test $ac_cv_func_dlopen = yes; then
17733 lt_cv_dlopen="dlopen"
17734else
17735 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17736echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17737if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739else
17740 ac_check_lib_save_LIBS=$LIBS
17741LIBS="-ldl $LIBS"
17742cat >conftest.$ac_ext <<_ACEOF
17743/* confdefs.h. */
17744_ACEOF
17745cat confdefs.h >>conftest.$ac_ext
17746cat >>conftest.$ac_ext <<_ACEOF
17747/* end confdefs.h. */
17748
17749/* Override any gcc2 internal prototype to avoid an error. */
17750#ifdef __cplusplus
17751extern "C"
17752#endif
17753/* We use char because int might match the return type of a gcc2
17754 builtin and then its argument prototype would still apply. */
17755char dlopen ();
17756int
17757main ()
17758{
17759dlopen ();
17760 ;
17761 return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext conftest$ac_exeext
17765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766 (eval $ac_link) 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_cv_lib_dl_dlopen=yes
17787else
17788 echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791ac_cv_lib_dl_dlopen=no
17792fi
17793rm -f conftest.err conftest.$ac_objext \
17794 conftest$ac_exeext conftest.$ac_ext
17795LIBS=$ac_check_lib_save_LIBS
17796fi
17797echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17798echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17799if test $ac_cv_lib_dl_dlopen = yes; then
17800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17801else
17802 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17803echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17804if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806else
17807 ac_check_lib_save_LIBS=$LIBS
17808LIBS="-lsvld $LIBS"
17809cat >conftest.$ac_ext <<_ACEOF
17810/* confdefs.h. */
17811_ACEOF
17812cat confdefs.h >>conftest.$ac_ext
17813cat >>conftest.$ac_ext <<_ACEOF
17814/* end confdefs.h. */
17815
17816/* Override any gcc2 internal prototype to avoid an error. */
17817#ifdef __cplusplus
17818extern "C"
17819#endif
17820/* We use char because int might match the return type of a gcc2
17821 builtin and then its argument prototype would still apply. */
17822char dlopen ();
17823int
17824main ()
17825{
17826dlopen ();
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext conftest$ac_exeext
17832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833 (eval $ac_link) 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest$ac_exeext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 ac_cv_lib_svld_dlopen=yes
17854else
17855 echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
17858ac_cv_lib_svld_dlopen=no
17859fi
17860rm -f conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17862LIBS=$ac_check_lib_save_LIBS
17863fi
17864echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17865echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17866if test $ac_cv_lib_svld_dlopen = yes; then
17867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17868else
17869 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17870echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17871if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17873else
17874 ac_check_lib_save_LIBS=$LIBS
17875LIBS="-ldld $LIBS"
17876cat >conftest.$ac_ext <<_ACEOF
17877/* confdefs.h. */
17878_ACEOF
17879cat confdefs.h >>conftest.$ac_ext
17880cat >>conftest.$ac_ext <<_ACEOF
17881/* end confdefs.h. */
17882
17883/* Override any gcc2 internal prototype to avoid an error. */
17884#ifdef __cplusplus
17885extern "C"
17886#endif
17887/* We use char because int might match the return type of a gcc2
17888 builtin and then its argument prototype would still apply. */
17889char dld_link ();
17890int
17891main ()
17892{
17893dld_link ();
17894 ;
17895 return 0;
17896}
17897_ACEOF
17898rm -f conftest.$ac_objext conftest$ac_exeext
17899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17900 (eval $ac_link) 2>conftest.er1
17901 ac_status=$?
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag"
17908 || test ! -s conftest.err'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_lib_dld_dld_link=yes
17921else
17922 echo "$as_me: failed program was:" >&5
17923sed 's/^/| /' conftest.$ac_ext >&5
17924
17925ac_cv_lib_dld_dld_link=no
17926fi
17927rm -f conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
17929LIBS=$ac_check_lib_save_LIBS
17930fi
17931echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17932echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17933if test $ac_cv_lib_dld_dld_link = yes; then
17934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17935fi
17936
17937
17938fi
17939
17940
17941fi
17942
17943
17944fi
17945
17946
17947fi
17948
17949
17950fi
17951
17952 ;;
17953 esac
17954
17955 if test "x$lt_cv_dlopen" != xno; then
17956 enable_dlopen=yes
17957 else
17958 enable_dlopen=no
17959 fi
17960
17961 case $lt_cv_dlopen in
17962 dlopen)
17963 save_CPPFLAGS="$CPPFLAGS"
17964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17965
17966 save_LDFLAGS="$LDFLAGS"
17967 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17968
17969 save_LIBS="$LIBS"
17970 LIBS="$lt_cv_dlopen_libs $LIBS"
17971
17972 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17973echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17974if test "${lt_cv_dlopen_self+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977 if test "$cross_compiling" = yes; then :
17978 lt_cv_dlopen_self=cross
17979else
17980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17981 lt_status=$lt_dlunknown
17982 cat > conftest.$ac_ext <<EOF
vlm1fcf7592006-08-18 02:27:55 +000017983#line 17983 "configure"
vlm8f3eb992004-06-17 23:42:48 +000017984#include "confdefs.h"
17985
17986#if HAVE_DLFCN_H
17987#include <dlfcn.h>
17988#endif
17989
17990#include <stdio.h>
17991
17992#ifdef RTLD_GLOBAL
17993# define LT_DLGLOBAL RTLD_GLOBAL
17994#else
17995# ifdef DL_GLOBAL
17996# define LT_DLGLOBAL DL_GLOBAL
17997# else
17998# define LT_DLGLOBAL 0
17999# endif
18000#endif
18001
18002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18003 find out it does not work in some platform. */
18004#ifndef LT_DLLAZY_OR_NOW
18005# ifdef RTLD_LAZY
18006# define LT_DLLAZY_OR_NOW RTLD_LAZY
18007# else
18008# ifdef DL_LAZY
18009# define LT_DLLAZY_OR_NOW DL_LAZY
18010# else
18011# ifdef RTLD_NOW
18012# define LT_DLLAZY_OR_NOW RTLD_NOW
18013# else
18014# ifdef DL_NOW
18015# define LT_DLLAZY_OR_NOW DL_NOW
18016# else
18017# define LT_DLLAZY_OR_NOW 0
18018# endif
18019# endif
18020# endif
18021# endif
18022#endif
18023
18024#ifdef __cplusplus
18025extern "C" void exit (int);
18026#endif
18027
18028void fnord() { int i=42;}
18029int main ()
18030{
18031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18032 int status = $lt_dlunknown;
18033
18034 if (self)
18035 {
18036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18038 /* dlclose (self); */
18039 }
18040
18041 exit (status);
18042}
18043EOF
18044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045 (eval $ac_link) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18049 (./conftest; exit; ) 2>/dev/null
18050 lt_status=$?
18051 case x$lt_status in
18052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18054 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18055 esac
18056 else :
18057 # compilation failed
18058 lt_cv_dlopen_self=no
18059 fi
18060fi
18061rm -fr conftest*
18062
18063
18064fi
18065echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18066echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18067
18068 if test "x$lt_cv_dlopen_self" = xyes; then
18069 LDFLAGS="$LDFLAGS $link_static_flag"
18070 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18071echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18072if test "${lt_cv_dlopen_self_static+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074else
18075 if test "$cross_compiling" = yes; then :
18076 lt_cv_dlopen_self_static=cross
18077else
18078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18079 lt_status=$lt_dlunknown
18080 cat > conftest.$ac_ext <<EOF
vlm1fcf7592006-08-18 02:27:55 +000018081#line 18081 "configure"
vlm8f3eb992004-06-17 23:42:48 +000018082#include "confdefs.h"
18083
18084#if HAVE_DLFCN_H
18085#include <dlfcn.h>
18086#endif
18087
18088#include <stdio.h>
18089
18090#ifdef RTLD_GLOBAL
18091# define LT_DLGLOBAL RTLD_GLOBAL
18092#else
18093# ifdef DL_GLOBAL
18094# define LT_DLGLOBAL DL_GLOBAL
18095# else
18096# define LT_DLGLOBAL 0
18097# endif
18098#endif
18099
18100/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18101 find out it does not work in some platform. */
18102#ifndef LT_DLLAZY_OR_NOW
18103# ifdef RTLD_LAZY
18104# define LT_DLLAZY_OR_NOW RTLD_LAZY
18105# else
18106# ifdef DL_LAZY
18107# define LT_DLLAZY_OR_NOW DL_LAZY
18108# else
18109# ifdef RTLD_NOW
18110# define LT_DLLAZY_OR_NOW RTLD_NOW
18111# else
18112# ifdef DL_NOW
18113# define LT_DLLAZY_OR_NOW DL_NOW
18114# else
18115# define LT_DLLAZY_OR_NOW 0
18116# endif
18117# endif
18118# endif
18119# endif
18120#endif
18121
18122#ifdef __cplusplus
18123extern "C" void exit (int);
18124#endif
18125
18126void fnord() { int i=42;}
18127int main ()
18128{
18129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18130 int status = $lt_dlunknown;
18131
18132 if (self)
18133 {
18134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18135 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18136 /* dlclose (self); */
18137 }
18138
18139 exit (status);
18140}
18141EOF
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18147 (./conftest; exit; ) 2>/dev/null
18148 lt_status=$?
18149 case x$lt_status in
18150 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18151 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18152 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18153 esac
18154 else :
18155 # compilation failed
18156 lt_cv_dlopen_self_static=no
18157 fi
18158fi
18159rm -fr conftest*
18160
18161
18162fi
18163echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18164echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18165 fi
18166
18167 CPPFLAGS="$save_CPPFLAGS"
18168 LDFLAGS="$save_LDFLAGS"
18169 LIBS="$save_LIBS"
18170 ;;
18171 esac
18172
18173 case $lt_cv_dlopen_self in
18174 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18175 *) enable_dlopen_self=unknown ;;
18176 esac
18177
18178 case $lt_cv_dlopen_self_static in
18179 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18180 *) enable_dlopen_self_static=unknown ;;
18181 esac
18182fi
18183
18184
18185# The else clause should only fire when bootstrapping the
18186# libtool distribution, otherwise you forgot to ship ltmain.sh
18187# with your package, and you will get complaints that there are
18188# no rules to generate ltmain.sh.
18189if test -f "$ltmain"; then
18190 # See if we are running on zsh, and set the options which allow our commands through
18191 # without removal of \ escapes.
18192 if test -n "${ZSH_VERSION+set}" ; then
18193 setopt NO_GLOB_SUBST
18194 fi
18195 # Now quote all the things that may contain metacharacters while being
18196 # careful not to overquote the AC_SUBSTed values. We take copies of the
18197 # variables and quote the copies for generation of the libtool script.
18198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18199 SED SHELL STRIP \
18200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18202 deplibs_check_method reload_flag reload_cmds need_locks \
18203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18204 lt_cv_sys_global_symbol_to_c_name_address \
18205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18206 old_postinstall_cmds old_postuninstall_cmds \
18207 compiler_GCJ \
18208 CC_GCJ \
18209 LD_GCJ \
18210 lt_prog_compiler_wl_GCJ \
18211 lt_prog_compiler_pic_GCJ \
18212 lt_prog_compiler_static_GCJ \
18213 lt_prog_compiler_no_builtin_flag_GCJ \
18214 export_dynamic_flag_spec_GCJ \
18215 thread_safe_flag_spec_GCJ \
18216 whole_archive_flag_spec_GCJ \
18217 enable_shared_with_static_runtimes_GCJ \
18218 old_archive_cmds_GCJ \
18219 old_archive_from_new_cmds_GCJ \
18220 predep_objects_GCJ \
18221 postdep_objects_GCJ \
18222 predeps_GCJ \
18223 postdeps_GCJ \
18224 compiler_lib_search_path_GCJ \
18225 archive_cmds_GCJ \
18226 archive_expsym_cmds_GCJ \
18227 postinstall_cmds_GCJ \
18228 postuninstall_cmds_GCJ \
18229 old_archive_from_expsyms_cmds_GCJ \
18230 allow_undefined_flag_GCJ \
18231 no_undefined_flag_GCJ \
18232 export_symbols_cmds_GCJ \
18233 hardcode_libdir_flag_spec_GCJ \
18234 hardcode_libdir_flag_spec_ld_GCJ \
18235 hardcode_libdir_separator_GCJ \
18236 hardcode_automatic_GCJ \
18237 module_cmds_GCJ \
18238 module_expsym_cmds_GCJ \
18239 lt_cv_prog_compiler_c_o_GCJ \
18240 exclude_expsyms_GCJ \
18241 include_expsyms_GCJ; do
18242
18243 case $var in
18244 old_archive_cmds_GCJ | \
18245 old_archive_from_new_cmds_GCJ | \
18246 archive_cmds_GCJ | \
18247 archive_expsym_cmds_GCJ | \
18248 module_cmds_GCJ | \
18249 module_expsym_cmds_GCJ | \
18250 old_archive_from_expsyms_cmds_GCJ | \
18251 export_symbols_cmds_GCJ | \
18252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18253 postinstall_cmds | postuninstall_cmds | \
18254 old_postinstall_cmds | old_postuninstall_cmds | \
18255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18256 # Double-quote double-evaled strings.
18257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18258 ;;
18259 *)
18260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18261 ;;
18262 esac
18263 done
18264
18265 case $lt_echo in
18266 *'\$0 --fallback-echo"')
18267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18268 ;;
18269 esac
18270
18271cfgfile="$ofile"
18272
18273 cat <<__EOF__ >> "$cfgfile"
18274# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18275
18276# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18277
18278# Shell to use when invoking shell scripts.
18279SHELL=$lt_SHELL
18280
18281# Whether or not to build shared libraries.
18282build_libtool_libs=$enable_shared
18283
18284# Whether or not to build static libraries.
18285build_old_libs=$enable_static
18286
18287# Whether or not to add -lc for building shared libraries.
18288build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18289
18290# Whether or not to disallow shared libs when runtime libs are static
18291allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18292
18293# Whether or not to optimize for fast installation.
18294fast_install=$enable_fast_install
18295
18296# The host system.
18297host_alias=$host_alias
18298host=$host
18299
18300# An echo program that does not interpret backslashes.
18301echo=$lt_echo
18302
18303# The archiver.
18304AR=$lt_AR
18305AR_FLAGS=$lt_AR_FLAGS
18306
18307# A C compiler.
18308LTCC=$lt_LTCC
18309
18310# A language-specific compiler.
18311CC=$lt_compiler_GCJ
18312
18313# Is the compiler the GNU C compiler?
18314with_gcc=$GCC_GCJ
18315
18316# An ERE matcher.
18317EGREP=$lt_EGREP
18318
18319# The linker used to build libraries.
18320LD=$lt_LD_GCJ
18321
18322# Whether we need hard or soft links.
18323LN_S=$lt_LN_S
18324
18325# A BSD-compatible nm program.
18326NM=$lt_NM
18327
18328# A symbol stripping program
18329STRIP=$lt_STRIP
18330
18331# Used to examine libraries when file_magic_cmd begins "file"
18332MAGIC_CMD=$MAGIC_CMD
18333
18334# Used on cygwin: DLL creation program.
18335DLLTOOL="$DLLTOOL"
18336
18337# Used on cygwin: object dumper.
18338OBJDUMP="$OBJDUMP"
18339
18340# Used on cygwin: assembler.
18341AS="$AS"
18342
18343# The name of the directory that contains temporary libtool files.
18344objdir=$objdir
18345
18346# How to create reloadable object files.
18347reload_flag=$lt_reload_flag
18348reload_cmds=$lt_reload_cmds
18349
18350# How to pass a linker flag through the compiler.
18351wl=$lt_lt_prog_compiler_wl_GCJ
18352
18353# Object file suffix (normally "o").
18354objext="$ac_objext"
18355
18356# Old archive suffix (normally "a").
18357libext="$libext"
18358
18359# Shared library suffix (normally ".so").
18360shrext_cmds='$shrext_cmds'
18361
18362# Executable file suffix (normally "").
18363exeext="$exeext"
18364
18365# Additional compiler flags for building library objects.
18366pic_flag=$lt_lt_prog_compiler_pic_GCJ
18367pic_mode=$pic_mode
18368
18369# What is the maximum length of a command?
18370max_cmd_len=$lt_cv_sys_max_cmd_len
18371
18372# Does compiler simultaneously support -c and -o options?
18373compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18374
18375# Must we lock files when doing compilation ?
18376need_locks=$lt_need_locks
18377
18378# Do we need the lib prefix for modules?
18379need_lib_prefix=$need_lib_prefix
18380
18381# Do we need a version for libraries?
18382need_version=$need_version
18383
18384# Whether dlopen is supported.
18385dlopen_support=$enable_dlopen
18386
18387# Whether dlopen of programs is supported.
18388dlopen_self=$enable_dlopen_self
18389
18390# Whether dlopen of statically linked programs is supported.
18391dlopen_self_static=$enable_dlopen_self_static
18392
18393# Compiler flag to prevent dynamic linking.
18394link_static_flag=$lt_lt_prog_compiler_static_GCJ
18395
18396# Compiler flag to turn off builtin functions.
18397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18398
18399# Compiler flag to allow reflexive dlopens.
18400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18401
18402# Compiler flag to generate shared objects directly from archives.
18403whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18404
18405# Compiler flag to generate thread-safe objects.
18406thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18407
18408# Library versioning type.
18409version_type=$version_type
18410
18411# Format of library name prefix.
18412libname_spec=$lt_libname_spec
18413
18414# List of archive names. First name is the real one, the rest are links.
18415# The last name is the one that the linker finds with -lNAME.
18416library_names_spec=$lt_library_names_spec
18417
18418# The coded name of the library, if different from the real name.
18419soname_spec=$lt_soname_spec
18420
18421# Commands used to build and install an old-style archive.
18422RANLIB=$lt_RANLIB
18423old_archive_cmds=$lt_old_archive_cmds_GCJ
18424old_postinstall_cmds=$lt_old_postinstall_cmds
18425old_postuninstall_cmds=$lt_old_postuninstall_cmds
18426
18427# Create an old-style archive from a shared archive.
18428old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18429
18430# Create a temporary old-style archive to link instead of a shared archive.
18431old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18432
18433# Commands used to build and install a shared archive.
18434archive_cmds=$lt_archive_cmds_GCJ
18435archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18436postinstall_cmds=$lt_postinstall_cmds
18437postuninstall_cmds=$lt_postuninstall_cmds
18438
18439# Commands used to build a loadable module (assumed same as above if empty)
18440module_cmds=$lt_module_cmds_GCJ
18441module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18442
18443# Commands to strip libraries.
18444old_striplib=$lt_old_striplib
18445striplib=$lt_striplib
18446
18447# Dependencies to place before the objects being linked to create a
18448# shared library.
18449predep_objects=$lt_predep_objects_GCJ
18450
18451# Dependencies to place after the objects being linked to create a
18452# shared library.
18453postdep_objects=$lt_postdep_objects_GCJ
18454
18455# Dependencies to place before the objects being linked to create a
18456# shared library.
18457predeps=$lt_predeps_GCJ
18458
18459# Dependencies to place after the objects being linked to create a
18460# shared library.
18461postdeps=$lt_postdeps_GCJ
18462
18463# The library search path used internally by the compiler when linking
18464# a shared library.
18465compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18466
18467# Method to check whether dependent libraries are shared objects.
18468deplibs_check_method=$lt_deplibs_check_method
18469
18470# Command to use when deplibs_check_method == file_magic.
18471file_magic_cmd=$lt_file_magic_cmd
18472
18473# Flag that allows shared libraries with undefined symbols to be built.
18474allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18475
18476# Flag that forces no undefined symbols.
18477no_undefined_flag=$lt_no_undefined_flag_GCJ
18478
18479# Commands used to finish a libtool library installation in a directory.
18480finish_cmds=$lt_finish_cmds
18481
18482# Same as above, but a single script fragment to be evaled but not shown.
18483finish_eval=$lt_finish_eval
18484
18485# Take the output of nm and produce a listing of raw symbols and C names.
18486global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18487
18488# Transform the output of nm in a proper C declaration
18489global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18490
18491# Transform the output of nm in a C name address pair
18492global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18493
18494# This is the shared library runtime path variable.
18495runpath_var=$runpath_var
18496
18497# This is the shared library path variable.
18498shlibpath_var=$shlibpath_var
18499
18500# Is shlibpath searched before the hard-coded library search path?
18501shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18502
18503# How to hardcode a shared library path into an executable.
18504hardcode_action=$hardcode_action_GCJ
18505
18506# Whether we should hardcode library paths into libraries.
18507hardcode_into_libs=$hardcode_into_libs
18508
18509# Flag to hardcode \$libdir into a binary during linking.
18510# This must work even if \$libdir does not exist.
18511hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18512
18513# If ld is used when linking, flag to hardcode \$libdir into
18514# a binary during linking. This must work even if \$libdir does
18515# not exist.
18516hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18517
18518# Whether we need a single -rpath flag with a separated argument.
18519hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18520
18521# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18522# resulting binary.
18523hardcode_direct=$hardcode_direct_GCJ
18524
18525# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18526# resulting binary.
18527hardcode_minus_L=$hardcode_minus_L_GCJ
18528
18529# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18530# the resulting binary.
18531hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18532
18533# Set to yes if building a shared library automatically hardcodes DIR into the library
18534# and all subsequent libraries and executables linked against it.
18535hardcode_automatic=$hardcode_automatic_GCJ
18536
18537# Variables whose values should be saved in libtool wrapper scripts and
18538# restored at relink time.
18539variables_saved_for_relink="$variables_saved_for_relink"
18540
18541# Whether libtool must link a program against all its dependency libraries.
18542link_all_deplibs=$link_all_deplibs_GCJ
18543
18544# Compile-time system search path for libraries
18545sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18546
18547# Run-time system search path for libraries
18548sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18549
18550# Fix the shell variable \$srcfile for the compiler.
18551fix_srcfile_path="$fix_srcfile_path_GCJ"
18552
18553# Set to yes if exported symbols are required.
18554always_export_symbols=$always_export_symbols_GCJ
18555
18556# The commands to list exported symbols.
18557export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18558
18559# The commands to extract the exported symbol list from a shared archive.
18560extract_expsyms_cmds=$lt_extract_expsyms_cmds
18561
18562# Symbols that should not be listed in the preloaded symbols.
18563exclude_expsyms=$lt_exclude_expsyms_GCJ
18564
18565# Symbols that must always be exported.
18566include_expsyms=$lt_include_expsyms_GCJ
18567
18568# ### END LIBTOOL TAG CONFIG: $tagname
18569
18570__EOF__
18571
18572
18573else
18574 # If there is no Makefile yet, we rely on a make rule to execute
18575 # `config.status --recheck' to rerun these tests and create the
18576 # libtool script then.
18577 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18578 if test -f "$ltmain_in"; then
18579 test -f Makefile && make "$ltmain"
18580 fi
18581fi
18582
18583
18584ac_ext=c
18585ac_cpp='$CPP $CPPFLAGS'
18586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18588ac_compiler_gnu=$ac_cv_c_compiler_gnu
18589
18590CC="$lt_save_CC"
18591
18592 else
18593 tagname=""
18594 fi
18595 ;;
18596
18597 RC)
18598
18599
18600
18601# Source file extension for RC test sources.
18602ac_ext=rc
18603
18604# Object file extension for compiled RC test sources.
18605objext=o
18606objext_RC=$objext
18607
18608# Code to be used in simple compile tests
18609lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18610
18611# Code to be used in simple link tests
18612lt_simple_link_test_code="$lt_simple_compile_test_code"
18613
18614# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18615
18616# If no C compiler was specified, use CC.
18617LTCC=${LTCC-"$CC"}
18618
18619# Allow CC to be a program name with arguments.
18620compiler=$CC
18621
18622
18623# Allow CC to be a program name with arguments.
18624lt_save_CC="$CC"
18625CC=${RC-"windres"}
18626compiler=$CC
18627compiler_RC=$CC
18628lt_cv_prog_compiler_c_o_RC=yes
18629
18630# The else clause should only fire when bootstrapping the
18631# libtool distribution, otherwise you forgot to ship ltmain.sh
18632# with your package, and you will get complaints that there are
18633# no rules to generate ltmain.sh.
18634if test -f "$ltmain"; then
18635 # See if we are running on zsh, and set the options which allow our commands through
18636 # without removal of \ escapes.
18637 if test -n "${ZSH_VERSION+set}" ; then
18638 setopt NO_GLOB_SUBST
18639 fi
18640 # Now quote all the things that may contain metacharacters while being
18641 # careful not to overquote the AC_SUBSTed values. We take copies of the
18642 # variables and quote the copies for generation of the libtool script.
18643 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18644 SED SHELL STRIP \
18645 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18646 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18647 deplibs_check_method reload_flag reload_cmds need_locks \
18648 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18649 lt_cv_sys_global_symbol_to_c_name_address \
18650 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18651 old_postinstall_cmds old_postuninstall_cmds \
18652 compiler_RC \
18653 CC_RC \
18654 LD_RC \
18655 lt_prog_compiler_wl_RC \
18656 lt_prog_compiler_pic_RC \
18657 lt_prog_compiler_static_RC \
18658 lt_prog_compiler_no_builtin_flag_RC \
18659 export_dynamic_flag_spec_RC \
18660 thread_safe_flag_spec_RC \
18661 whole_archive_flag_spec_RC \
18662 enable_shared_with_static_runtimes_RC \
18663 old_archive_cmds_RC \
18664 old_archive_from_new_cmds_RC \
18665 predep_objects_RC \
18666 postdep_objects_RC \
18667 predeps_RC \
18668 postdeps_RC \
18669 compiler_lib_search_path_RC \
18670 archive_cmds_RC \
18671 archive_expsym_cmds_RC \
18672 postinstall_cmds_RC \
18673 postuninstall_cmds_RC \
18674 old_archive_from_expsyms_cmds_RC \
18675 allow_undefined_flag_RC \
18676 no_undefined_flag_RC \
18677 export_symbols_cmds_RC \
18678 hardcode_libdir_flag_spec_RC \
18679 hardcode_libdir_flag_spec_ld_RC \
18680 hardcode_libdir_separator_RC \
18681 hardcode_automatic_RC \
18682 module_cmds_RC \
18683 module_expsym_cmds_RC \
18684 lt_cv_prog_compiler_c_o_RC \
18685 exclude_expsyms_RC \
18686 include_expsyms_RC; do
18687
18688 case $var in
18689 old_archive_cmds_RC | \
18690 old_archive_from_new_cmds_RC | \
18691 archive_cmds_RC | \
18692 archive_expsym_cmds_RC | \
18693 module_cmds_RC | \
18694 module_expsym_cmds_RC | \
18695 old_archive_from_expsyms_cmds_RC | \
18696 export_symbols_cmds_RC | \
18697 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18698 postinstall_cmds | postuninstall_cmds | \
18699 old_postinstall_cmds | old_postuninstall_cmds | \
18700 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18701 # Double-quote double-evaled strings.
18702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18703 ;;
18704 *)
18705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18706 ;;
18707 esac
18708 done
18709
18710 case $lt_echo in
18711 *'\$0 --fallback-echo"')
18712 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18713 ;;
18714 esac
18715
18716cfgfile="$ofile"
18717
18718 cat <<__EOF__ >> "$cfgfile"
18719# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18720
18721# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18722
18723# Shell to use when invoking shell scripts.
18724SHELL=$lt_SHELL
18725
18726# Whether or not to build shared libraries.
18727build_libtool_libs=$enable_shared
18728
18729# Whether or not to build static libraries.
18730build_old_libs=$enable_static
18731
18732# Whether or not to add -lc for building shared libraries.
18733build_libtool_need_lc=$archive_cmds_need_lc_RC
18734
18735# Whether or not to disallow shared libs when runtime libs are static
18736allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18737
18738# Whether or not to optimize for fast installation.
18739fast_install=$enable_fast_install
18740
18741# The host system.
18742host_alias=$host_alias
18743host=$host
18744
18745# An echo program that does not interpret backslashes.
18746echo=$lt_echo
18747
18748# The archiver.
18749AR=$lt_AR
18750AR_FLAGS=$lt_AR_FLAGS
18751
18752# A C compiler.
18753LTCC=$lt_LTCC
18754
18755# A language-specific compiler.
18756CC=$lt_compiler_RC
18757
18758# Is the compiler the GNU C compiler?
18759with_gcc=$GCC_RC
18760
18761# An ERE matcher.
18762EGREP=$lt_EGREP
18763
18764# The linker used to build libraries.
18765LD=$lt_LD_RC
18766
18767# Whether we need hard or soft links.
18768LN_S=$lt_LN_S
18769
18770# A BSD-compatible nm program.
18771NM=$lt_NM
18772
18773# A symbol stripping program
18774STRIP=$lt_STRIP
18775
18776# Used to examine libraries when file_magic_cmd begins "file"
18777MAGIC_CMD=$MAGIC_CMD
18778
18779# Used on cygwin: DLL creation program.
18780DLLTOOL="$DLLTOOL"
18781
18782# Used on cygwin: object dumper.
18783OBJDUMP="$OBJDUMP"
18784
18785# Used on cygwin: assembler.
18786AS="$AS"
18787
18788# The name of the directory that contains temporary libtool files.
18789objdir=$objdir
18790
18791# How to create reloadable object files.
18792reload_flag=$lt_reload_flag
18793reload_cmds=$lt_reload_cmds
18794
18795# How to pass a linker flag through the compiler.
18796wl=$lt_lt_prog_compiler_wl_RC
18797
18798# Object file suffix (normally "o").
18799objext="$ac_objext"
18800
18801# Old archive suffix (normally "a").
18802libext="$libext"
18803
18804# Shared library suffix (normally ".so").
18805shrext_cmds='$shrext_cmds'
18806
18807# Executable file suffix (normally "").
18808exeext="$exeext"
18809
18810# Additional compiler flags for building library objects.
18811pic_flag=$lt_lt_prog_compiler_pic_RC
18812pic_mode=$pic_mode
18813
18814# What is the maximum length of a command?
18815max_cmd_len=$lt_cv_sys_max_cmd_len
18816
18817# Does compiler simultaneously support -c and -o options?
18818compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18819
18820# Must we lock files when doing compilation ?
18821need_locks=$lt_need_locks
18822
18823# Do we need the lib prefix for modules?
18824need_lib_prefix=$need_lib_prefix
18825
18826# Do we need a version for libraries?
18827need_version=$need_version
18828
18829# Whether dlopen is supported.
18830dlopen_support=$enable_dlopen
18831
18832# Whether dlopen of programs is supported.
18833dlopen_self=$enable_dlopen_self
18834
18835# Whether dlopen of statically linked programs is supported.
18836dlopen_self_static=$enable_dlopen_self_static
18837
18838# Compiler flag to prevent dynamic linking.
18839link_static_flag=$lt_lt_prog_compiler_static_RC
18840
18841# Compiler flag to turn off builtin functions.
18842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18843
18844# Compiler flag to allow reflexive dlopens.
18845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18846
18847# Compiler flag to generate shared objects directly from archives.
18848whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18849
18850# Compiler flag to generate thread-safe objects.
18851thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18852
18853# Library versioning type.
18854version_type=$version_type
18855
18856# Format of library name prefix.
18857libname_spec=$lt_libname_spec
18858
18859# List of archive names. First name is the real one, the rest are links.
18860# The last name is the one that the linker finds with -lNAME.
18861library_names_spec=$lt_library_names_spec
18862
18863# The coded name of the library, if different from the real name.
18864soname_spec=$lt_soname_spec
18865
18866# Commands used to build and install an old-style archive.
18867RANLIB=$lt_RANLIB
18868old_archive_cmds=$lt_old_archive_cmds_RC
18869old_postinstall_cmds=$lt_old_postinstall_cmds
18870old_postuninstall_cmds=$lt_old_postuninstall_cmds
18871
18872# Create an old-style archive from a shared archive.
18873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18874
18875# Create a temporary old-style archive to link instead of a shared archive.
18876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18877
18878# Commands used to build and install a shared archive.
18879archive_cmds=$lt_archive_cmds_RC
18880archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18881postinstall_cmds=$lt_postinstall_cmds
18882postuninstall_cmds=$lt_postuninstall_cmds
18883
18884# Commands used to build a loadable module (assumed same as above if empty)
18885module_cmds=$lt_module_cmds_RC
18886module_expsym_cmds=$lt_module_expsym_cmds_RC
18887
18888# Commands to strip libraries.
18889old_striplib=$lt_old_striplib
18890striplib=$lt_striplib
18891
18892# Dependencies to place before the objects being linked to create a
18893# shared library.
18894predep_objects=$lt_predep_objects_RC
18895
18896# Dependencies to place after the objects being linked to create a
18897# shared library.
18898postdep_objects=$lt_postdep_objects_RC
18899
18900# Dependencies to place before the objects being linked to create a
18901# shared library.
18902predeps=$lt_predeps_RC
18903
18904# Dependencies to place after the objects being linked to create a
18905# shared library.
18906postdeps=$lt_postdeps_RC
18907
18908# The library search path used internally by the compiler when linking
18909# a shared library.
18910compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18911
18912# Method to check whether dependent libraries are shared objects.
18913deplibs_check_method=$lt_deplibs_check_method
18914
18915# Command to use when deplibs_check_method == file_magic.
18916file_magic_cmd=$lt_file_magic_cmd
18917
18918# Flag that allows shared libraries with undefined symbols to be built.
18919allow_undefined_flag=$lt_allow_undefined_flag_RC
18920
18921# Flag that forces no undefined symbols.
18922no_undefined_flag=$lt_no_undefined_flag_RC
18923
18924# Commands used to finish a libtool library installation in a directory.
18925finish_cmds=$lt_finish_cmds
18926
18927# Same as above, but a single script fragment to be evaled but not shown.
18928finish_eval=$lt_finish_eval
18929
18930# Take the output of nm and produce a listing of raw symbols and C names.
18931global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18932
18933# Transform the output of nm in a proper C declaration
18934global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18935
18936# Transform the output of nm in a C name address pair
18937global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18938
18939# This is the shared library runtime path variable.
18940runpath_var=$runpath_var
18941
18942# This is the shared library path variable.
18943shlibpath_var=$shlibpath_var
18944
18945# Is shlibpath searched before the hard-coded library search path?
18946shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18947
18948# How to hardcode a shared library path into an executable.
18949hardcode_action=$hardcode_action_RC
18950
18951# Whether we should hardcode library paths into libraries.
18952hardcode_into_libs=$hardcode_into_libs
18953
18954# Flag to hardcode \$libdir into a binary during linking.
18955# This must work even if \$libdir does not exist.
18956hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18957
18958# If ld is used when linking, flag to hardcode \$libdir into
18959# a binary during linking. This must work even if \$libdir does
18960# not exist.
18961hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18962
18963# Whether we need a single -rpath flag with a separated argument.
18964hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18965
18966# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18967# resulting binary.
18968hardcode_direct=$hardcode_direct_RC
18969
18970# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18971# resulting binary.
18972hardcode_minus_L=$hardcode_minus_L_RC
18973
18974# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18975# the resulting binary.
18976hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18977
18978# Set to yes if building a shared library automatically hardcodes DIR into the library
18979# and all subsequent libraries and executables linked against it.
18980hardcode_automatic=$hardcode_automatic_RC
18981
18982# Variables whose values should be saved in libtool wrapper scripts and
18983# restored at relink time.
18984variables_saved_for_relink="$variables_saved_for_relink"
18985
18986# Whether libtool must link a program against all its dependency libraries.
18987link_all_deplibs=$link_all_deplibs_RC
18988
18989# Compile-time system search path for libraries
18990sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18991
18992# Run-time system search path for libraries
18993sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18994
18995# Fix the shell variable \$srcfile for the compiler.
18996fix_srcfile_path="$fix_srcfile_path_RC"
18997
18998# Set to yes if exported symbols are required.
18999always_export_symbols=$always_export_symbols_RC
19000
19001# The commands to list exported symbols.
19002export_symbols_cmds=$lt_export_symbols_cmds_RC
19003
19004# The commands to extract the exported symbol list from a shared archive.
19005extract_expsyms_cmds=$lt_extract_expsyms_cmds
19006
19007# Symbols that should not be listed in the preloaded symbols.
19008exclude_expsyms=$lt_exclude_expsyms_RC
19009
19010# Symbols that must always be exported.
19011include_expsyms=$lt_include_expsyms_RC
19012
19013# ### END LIBTOOL TAG CONFIG: $tagname
19014
19015__EOF__
19016
19017
19018else
19019 # If there is no Makefile yet, we rely on a make rule to execute
19020 # `config.status --recheck' to rerun these tests and create the
19021 # libtool script then.
19022 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19023 if test -f "$ltmain_in"; then
19024 test -f Makefile && make "$ltmain"
19025 fi
19026fi
19027
19028
19029ac_ext=c
19030ac_cpp='$CPP $CPPFLAGS'
19031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033ac_compiler_gnu=$ac_cv_c_compiler_gnu
19034
19035CC="$lt_save_CC"
19036
19037 ;;
19038
19039 *)
19040 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19041echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19042 { (exit 1); exit 1; }; }
19043 ;;
19044 esac
19045
19046 # Append the new tag name to the list of available tags.
19047 if test -n "$tagname" ; then
19048 available_tags="$available_tags $tagname"
19049 fi
19050 fi
19051 done
19052 IFS="$lt_save_ifs"
19053
19054 # Now substitute the updated list of available tags.
19055 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19056 mv "${ofile}T" "$ofile"
19057 chmod +x "$ofile"
19058 else
19059 rm -f "${ofile}T"
19060 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19061echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19062 { (exit 1); exit 1; }; }
19063 fi
19064fi
19065
vlmfa67ddc2004-06-03 03:38:44 +000019066
19067
19068# This can be used to rebuild libtool when needed
vlm8f3eb992004-06-17 23:42:48 +000019069LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
vlmfa67ddc2004-06-03 03:38:44 +000019070
19071# Always use our own libtool.
19072LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19073
vlm8f3eb992004-06-17 23:42:48 +000019074# Prevent multiple expansion
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
vlmfa67ddc2004-06-03 03:38:44 +000019094
19095
19096# Check whether --enable-autoconf or --disable-autoconf was given.
19097if test "${enable_autoconf+set}" = set; then
19098 enableval="$enable_autoconf"
19099 enable_autoconf=$enableval
19100else
19101 enable_autoconf=yes
19102
19103fi;
19104# Extract the first word of "autoconf", so it can be a program name with args.
19105set dummy autoconf; ac_word=$2
19106echo "$as_me:$LINENO: checking for $ac_word" >&5
19107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19108if test "${ac_cv_path_AUTOCONF+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110else
19111 case $AUTOCONF in
19112 [\\/]* | ?:[\\/]*)
19113 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
19114 ;;
19115 *)
19116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19117for as_dir in $PATH
19118do
19119 IFS=$as_save_IFS
19120 test -z "$as_dir" && as_dir=.
19121 for ac_exec_ext in '' $ac_executable_extensions; do
19122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19123 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
19124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19125 break 2
19126 fi
19127done
19128done
19129
19130 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available"
19131 ;;
19132esac
19133fi
19134AUTOCONF=$ac_cv_path_AUTOCONF
19135
19136if test -n "$AUTOCONF"; then
19137 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
19138echo "${ECHO_T}$AUTOCONF" >&6
19139else
19140 echo "$as_me:$LINENO: result: no" >&5
19141echo "${ECHO_T}no" >&6
19142fi
19143
19144# Extract the first word of "autoheader", so it can be a program name with args.
19145set dummy autoheader; ac_word=$2
19146echo "$as_me:$LINENO: checking for $ac_word" >&5
19147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19148if test "${ac_cv_path_AUTOHEADER+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150else
19151 case $AUTOHEADER in
19152 [\\/]* | ?:[\\/]*)
19153 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
19154 ;;
19155 *)
19156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19157for as_dir in $PATH
19158do
19159 IFS=$as_save_IFS
19160 test -z "$as_dir" && as_dir=.
19161 for ac_exec_ext in '' $ac_executable_extensions; do
19162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19163 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
19164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19165 break 2
19166 fi
19167done
19168done
19169
19170 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available"
19171 ;;
19172esac
19173fi
19174AUTOHEADER=$ac_cv_path_AUTOHEADER
19175
19176if test -n "$AUTOHEADER"; then
19177 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
19178echo "${ECHO_T}$AUTOHEADER" >&6
19179else
19180 echo "$as_me:$LINENO: result: no" >&5
19181echo "${ECHO_T}no" >&6
19182fi
19183
19184if test -z "$AUTOCONF"; then enable_autoconf=no ; fi
19185if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi
19186if test x$enable_autoconf = xyes; then
19187 CONFIGURE_DEPENDS="configure.in aclocal.m4"
19188fi
19189
19190
19191ac_ext=c
19192ac_cpp='$CPP $CPPFLAGS'
19193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19195ac_compiler_gnu=$ac_cv_c_compiler_gnu
19196if test -n "$ac_tool_prefix"; then
19197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19198set dummy ${ac_tool_prefix}gcc; ac_word=$2
19199echo "$as_me:$LINENO: checking for $ac_word" >&5
19200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19201if test "${ac_cv_prog_CC+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19203else
19204 if test -n "$CC"; then
19205 ac_cv_prog_CC="$CC" # Let the user override the test.
19206else
19207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19208for as_dir in $PATH
19209do
19210 IFS=$as_save_IFS
19211 test -z "$as_dir" && as_dir=.
19212 for ac_exec_ext in '' $ac_executable_extensions; do
19213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19214 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19216 break 2
19217 fi
19218done
19219done
19220
19221fi
19222fi
19223CC=$ac_cv_prog_CC
19224if test -n "$CC"; then
19225 echo "$as_me:$LINENO: result: $CC" >&5
19226echo "${ECHO_T}$CC" >&6
19227else
19228 echo "$as_me:$LINENO: result: no" >&5
19229echo "${ECHO_T}no" >&6
19230fi
19231
19232fi
19233if test -z "$ac_cv_prog_CC"; then
19234 ac_ct_CC=$CC
19235 # Extract the first word of "gcc", so it can be a program name with args.
19236set dummy gcc; ac_word=$2
19237echo "$as_me:$LINENO: checking for $ac_word" >&5
19238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19241else
19242 if test -n "$ac_ct_CC"; then
19243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19244else
19245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19246for as_dir in $PATH
19247do
19248 IFS=$as_save_IFS
19249 test -z "$as_dir" && as_dir=.
19250 for ac_exec_ext in '' $ac_executable_extensions; do
19251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19252 ac_cv_prog_ac_ct_CC="gcc"
19253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19254 break 2
19255 fi
19256done
19257done
19258
19259fi
19260fi
19261ac_ct_CC=$ac_cv_prog_ac_ct_CC
19262if test -n "$ac_ct_CC"; then
19263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19264echo "${ECHO_T}$ac_ct_CC" >&6
19265else
19266 echo "$as_me:$LINENO: result: no" >&5
19267echo "${ECHO_T}no" >&6
19268fi
19269
19270 CC=$ac_ct_CC
19271else
19272 CC="$ac_cv_prog_CC"
19273fi
19274
19275if test -z "$CC"; then
19276 if test -n "$ac_tool_prefix"; then
19277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19278set dummy ${ac_tool_prefix}cc; ac_word=$2
19279echo "$as_me:$LINENO: checking for $ac_word" >&5
19280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19281if test "${ac_cv_prog_CC+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283else
19284 if test -n "$CC"; then
19285 ac_cv_prog_CC="$CC" # Let the user override the test.
19286else
19287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19288for as_dir in $PATH
19289do
19290 IFS=$as_save_IFS
19291 test -z "$as_dir" && as_dir=.
19292 for ac_exec_ext in '' $ac_executable_extensions; do
19293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19294 ac_cv_prog_CC="${ac_tool_prefix}cc"
19295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19296 break 2
19297 fi
19298done
19299done
19300
19301fi
19302fi
19303CC=$ac_cv_prog_CC
19304if test -n "$CC"; then
19305 echo "$as_me:$LINENO: result: $CC" >&5
19306echo "${ECHO_T}$CC" >&6
19307else
19308 echo "$as_me:$LINENO: result: no" >&5
19309echo "${ECHO_T}no" >&6
19310fi
19311
19312fi
19313if test -z "$ac_cv_prog_CC"; then
19314 ac_ct_CC=$CC
19315 # Extract the first word of "cc", so it can be a program name with args.
19316set dummy cc; ac_word=$2
19317echo "$as_me:$LINENO: checking for $ac_word" >&5
19318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19319if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19321else
19322 if test -n "$ac_ct_CC"; then
19323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19324else
19325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19326for as_dir in $PATH
19327do
19328 IFS=$as_save_IFS
19329 test -z "$as_dir" && as_dir=.
19330 for ac_exec_ext in '' $ac_executable_extensions; do
19331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19332 ac_cv_prog_ac_ct_CC="cc"
19333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19334 break 2
19335 fi
19336done
19337done
19338
19339fi
19340fi
19341ac_ct_CC=$ac_cv_prog_ac_ct_CC
19342if test -n "$ac_ct_CC"; then
19343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19344echo "${ECHO_T}$ac_ct_CC" >&6
19345else
19346 echo "$as_me:$LINENO: result: no" >&5
19347echo "${ECHO_T}no" >&6
19348fi
19349
19350 CC=$ac_ct_CC
19351else
19352 CC="$ac_cv_prog_CC"
19353fi
19354
19355fi
19356if test -z "$CC"; then
19357 # Extract the first word of "cc", so it can be a program name with args.
19358set dummy cc; ac_word=$2
19359echo "$as_me:$LINENO: checking for $ac_word" >&5
19360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19361if test "${ac_cv_prog_CC+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19363else
19364 if test -n "$CC"; then
19365 ac_cv_prog_CC="$CC" # Let the user override the test.
19366else
19367 ac_prog_rejected=no
19368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19369for as_dir in $PATH
19370do
19371 IFS=$as_save_IFS
19372 test -z "$as_dir" && as_dir=.
19373 for ac_exec_ext in '' $ac_executable_extensions; do
19374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19376 ac_prog_rejected=yes
19377 continue
19378 fi
19379 ac_cv_prog_CC="cc"
19380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19381 break 2
19382 fi
19383done
19384done
19385
19386if test $ac_prog_rejected = yes; then
19387 # We found a bogon in the path, so make sure we never use it.
19388 set dummy $ac_cv_prog_CC
19389 shift
19390 if test $# != 0; then
19391 # We chose a different compiler from the bogus one.
19392 # However, it has the same basename, so the bogon will be chosen
19393 # first if we set CC to just the basename; use the full file name.
19394 shift
19395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19396 fi
19397fi
19398fi
19399fi
19400CC=$ac_cv_prog_CC
19401if test -n "$CC"; then
19402 echo "$as_me:$LINENO: result: $CC" >&5
19403echo "${ECHO_T}$CC" >&6
19404else
19405 echo "$as_me:$LINENO: result: no" >&5
19406echo "${ECHO_T}no" >&6
19407fi
19408
19409fi
19410if test -z "$CC"; then
19411 if test -n "$ac_tool_prefix"; then
19412 for ac_prog in cl
19413 do
19414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19416echo "$as_me:$LINENO: checking for $ac_word" >&5
19417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19418if test "${ac_cv_prog_CC+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19420else
19421 if test -n "$CC"; then
19422 ac_cv_prog_CC="$CC" # Let the user override the test.
19423else
19424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19425for as_dir in $PATH
19426do
19427 IFS=$as_save_IFS
19428 test -z "$as_dir" && as_dir=.
19429 for ac_exec_ext in '' $ac_executable_extensions; do
19430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19433 break 2
19434 fi
19435done
19436done
19437
19438fi
19439fi
19440CC=$ac_cv_prog_CC
19441if test -n "$CC"; then
19442 echo "$as_me:$LINENO: result: $CC" >&5
19443echo "${ECHO_T}$CC" >&6
19444else
19445 echo "$as_me:$LINENO: result: no" >&5
19446echo "${ECHO_T}no" >&6
19447fi
19448
19449 test -n "$CC" && break
19450 done
19451fi
19452if test -z "$CC"; then
19453 ac_ct_CC=$CC
19454 for ac_prog in cl
19455do
19456 # Extract the first word of "$ac_prog", so it can be a program name with args.
19457set dummy $ac_prog; ac_word=$2
19458echo "$as_me:$LINENO: checking for $ac_word" >&5
19459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19460if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462else
19463 if test -n "$ac_ct_CC"; then
19464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19465else
19466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19467for as_dir in $PATH
19468do
19469 IFS=$as_save_IFS
19470 test -z "$as_dir" && as_dir=.
19471 for ac_exec_ext in '' $ac_executable_extensions; do
19472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19473 ac_cv_prog_ac_ct_CC="$ac_prog"
19474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19475 break 2
19476 fi
19477done
19478done
19479
19480fi
19481fi
19482ac_ct_CC=$ac_cv_prog_ac_ct_CC
19483if test -n "$ac_ct_CC"; then
19484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19485echo "${ECHO_T}$ac_ct_CC" >&6
19486else
19487 echo "$as_me:$LINENO: result: no" >&5
19488echo "${ECHO_T}no" >&6
19489fi
19490
19491 test -n "$ac_ct_CC" && break
19492done
19493
19494 CC=$ac_ct_CC
19495fi
19496
19497fi
19498
19499
19500test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19501See \`config.log' for more details." >&5
19502echo "$as_me: error: no acceptable C compiler found in \$PATH
19503See \`config.log' for more details." >&2;}
19504 { (exit 1); exit 1; }; }
19505
19506# Provide some information about the compiler.
19507echo "$as_me:$LINENO:" \
19508 "checking for C compiler version" >&5
19509ac_compiler=`set X $ac_compile; echo $2`
19510{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19511 (eval $ac_compiler --version </dev/null >&5) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }
19515{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19516 (eval $ac_compiler -v </dev/null >&5) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }
19520{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19521 (eval $ac_compiler -V </dev/null >&5) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }
19525
19526echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19527echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19528if test "${ac_cv_c_compiler_gnu+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19530else
19531 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000019532/* confdefs.h. */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h. */
19537
19538int
19539main ()
19540{
19541#ifndef __GNUC__
19542 choke me
19543#endif
19544
19545 ;
19546 return 0;
19547}
19548_ACEOF
19549rm -f conftest.$ac_objext
19550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000019551 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000019552 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000019553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000019556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000019558 { ac_try='test -z "$ac_c_werror_flag"
19559 || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000019566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_compiler_gnu=yes
19572else
19573 echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576ac_compiler_gnu=no
19577fi
vlm8f3eb992004-06-17 23:42:48 +000019578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000019579ac_cv_c_compiler_gnu=$ac_compiler_gnu
19580
19581fi
19582echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19583echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19584GCC=`test $ac_compiler_gnu = yes && echo yes`
19585ac_test_CFLAGS=${CFLAGS+set}
19586ac_save_CFLAGS=$CFLAGS
19587CFLAGS="-g"
19588echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19589echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19590if test "${ac_cv_prog_cc_g+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592else
19593 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000019594/* confdefs.h. */
19595_ACEOF
19596cat confdefs.h >>conftest.$ac_ext
19597cat >>conftest.$ac_ext <<_ACEOF
19598/* end confdefs.h. */
19599
19600int
19601main ()
19602{
19603
19604 ;
19605 return 0;
19606}
19607_ACEOF
19608rm -f conftest.$ac_objext
19609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000019610 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000019611 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000019612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000019615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000019617 { ac_try='test -z "$ac_c_werror_flag"
19618 || test ! -s conftest.err'
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; } &&
19624 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000019625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19630 ac_cv_prog_cc_g=yes
19631else
19632 echo "$as_me: failed program was:" >&5
19633sed 's/^/| /' conftest.$ac_ext >&5
19634
19635ac_cv_prog_cc_g=no
19636fi
vlm8f3eb992004-06-17 23:42:48 +000019637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000019638fi
19639echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19640echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19641if test "$ac_test_CFLAGS" = set; then
19642 CFLAGS=$ac_save_CFLAGS
19643elif test $ac_cv_prog_cc_g = yes; then
19644 if test "$GCC" = yes; then
19645 CFLAGS="-g -O2"
19646 else
19647 CFLAGS="-g"
19648 fi
19649else
19650 if test "$GCC" = yes; then
19651 CFLAGS="-O2"
19652 else
19653 CFLAGS=
19654 fi
19655fi
19656echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19657echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19658if test "${ac_cv_prog_cc_stdc+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660else
19661 ac_cv_prog_cc_stdc=no
19662ac_save_CC=$CC
19663cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000019664/* confdefs.h. */
19665_ACEOF
19666cat confdefs.h >>conftest.$ac_ext
19667cat >>conftest.$ac_ext <<_ACEOF
19668/* end confdefs.h. */
19669#include <stdarg.h>
19670#include <stdio.h>
19671#include <sys/types.h>
19672#include <sys/stat.h>
19673/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19674struct buf { int x; };
19675FILE * (*rcsopen) (struct buf *, struct stat *, int);
19676static char *e (p, i)
19677 char **p;
19678 int i;
19679{
19680 return p[i];
19681}
19682static char *f (char * (*g) (char **, int), char **p, ...)
19683{
19684 char *s;
19685 va_list v;
19686 va_start (v,p);
19687 s = g (p, va_arg (v,int));
19688 va_end (v);
19689 return s;
19690}
vlm8f3eb992004-06-17 23:42:48 +000019691
19692/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19693 function prototypes and stuff, but not '\xHH' hex character constants.
19694 These don't provoke an error unfortunately, instead are silently treated
19695 as 'x'. The following induces an error, until -std1 is added to get
19696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19697 array size at least. It's necessary to write '\x00'==0 to get something
19698 that's true only with -std1. */
19699int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19700
vlmfa67ddc2004-06-03 03:38:44 +000019701int test (int i, double x);
19702struct s1 {int (*f) (int a);};
19703struct s2 {int (*f) (double a);};
19704int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19705int argc;
19706char **argv;
19707int
19708main ()
19709{
19710return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19711 ;
19712 return 0;
19713}
19714_ACEOF
19715# Don't try gcc -ansi; that turns off useful extensions and
19716# breaks some systems' header files.
19717# AIX -qlanglvl=ansi
19718# Ultrix and OSF/1 -std1
19719# HP-UX 10.20 and later -Ae
19720# HP-UX older versions -Aa -D_HPUX_SOURCE
19721# SVR4 -Xc -D__EXTENSIONS__
19722for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19723do
19724 CC="$ac_save_CC $ac_arg"
19725 rm -f conftest.$ac_objext
19726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000019727 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000019728 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000019729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000019732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000019734 { ac_try='test -z "$ac_c_werror_flag"
19735 || test ! -s conftest.err'
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; } &&
19741 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000019742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 ac_cv_prog_cc_stdc=$ac_arg
19748break
19749else
19750 echo "$as_me: failed program was:" >&5
19751sed 's/^/| /' conftest.$ac_ext >&5
19752
19753fi
vlm8f3eb992004-06-17 23:42:48 +000019754rm -f conftest.err conftest.$ac_objext
vlmfa67ddc2004-06-03 03:38:44 +000019755done
19756rm -f conftest.$ac_ext conftest.$ac_objext
19757CC=$ac_save_CC
19758
19759fi
19760
19761case "x$ac_cv_prog_cc_stdc" in
19762 x|xno)
19763 echo "$as_me:$LINENO: result: none needed" >&5
19764echo "${ECHO_T}none needed" >&6 ;;
19765 *)
19766 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19767echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19768 CC="$CC $ac_cv_prog_cc_stdc" ;;
19769esac
19770
19771# Some people use a C++ compiler to compile C. Since we use `exit',
19772# in C++ we need to declare it. In case someone uses the same compiler
19773# for both compiling C and C++ we need to have the C++ compiler decide
19774# the declaration of exit, since it's the most demanding environment.
19775cat >conftest.$ac_ext <<_ACEOF
19776#ifndef __cplusplus
19777 choke me
19778#endif
19779_ACEOF
19780rm -f conftest.$ac_objext
19781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000019782 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000019783 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000019784 grep -v '^ *+' conftest.er1 >conftest.err
19785 rm -f conftest.er1
19786 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000019787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000019789 { ac_try='test -z "$ac_c_werror_flag"
19790 || test ! -s conftest.err'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000019797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 for ac_declaration in \
vlm8f3eb992004-06-17 23:42:48 +000019803 '' \
vlmfa67ddc2004-06-03 03:38:44 +000019804 'extern "C" void std::exit (int) throw (); using std::exit;' \
19805 'extern "C" void std::exit (int); using std::exit;' \
19806 'extern "C" void exit (int) throw ();' \
19807 'extern "C" void exit (int);' \
19808 'void exit (int);'
19809do
19810 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000019811/* confdefs.h. */
19812_ACEOF
19813cat confdefs.h >>conftest.$ac_ext
19814cat >>conftest.$ac_ext <<_ACEOF
19815/* end confdefs.h. */
vlmfa67ddc2004-06-03 03:38:44 +000019816$ac_declaration
vlm8f3eb992004-06-17 23:42:48 +000019817#include <stdlib.h>
vlmfa67ddc2004-06-03 03:38:44 +000019818int
19819main ()
19820{
19821exit (42);
19822 ;
19823 return 0;
19824}
19825_ACEOF
19826rm -f conftest.$ac_objext
19827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000019828 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000019829 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000019830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000019833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000019835 { ac_try='test -z "$ac_c_werror_flag"
19836 || test ! -s conftest.err'
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000019843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 :
19849else
19850 echo "$as_me: failed program was:" >&5
19851sed 's/^/| /' conftest.$ac_ext >&5
19852
19853continue
19854fi
vlm8f3eb992004-06-17 23:42:48 +000019855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000019856 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000019857/* confdefs.h. */
19858_ACEOF
19859cat confdefs.h >>conftest.$ac_ext
19860cat >>conftest.$ac_ext <<_ACEOF
19861/* end confdefs.h. */
19862$ac_declaration
19863int
19864main ()
19865{
19866exit (42);
19867 ;
19868 return 0;
19869}
19870_ACEOF
19871rm -f conftest.$ac_objext
19872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000019873 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000019874 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000019875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
19877 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000019878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000019880 { ac_try='test -z "$ac_c_werror_flag"
19881 || test ! -s conftest.err'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; } &&
19887 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000019888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 break
19894else
19895 echo "$as_me: failed program was:" >&5
19896sed 's/^/| /' conftest.$ac_ext >&5
19897
19898fi
vlm8f3eb992004-06-17 23:42:48 +000019899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000019900done
19901rm -f conftest*
19902if test -n "$ac_declaration"; then
19903 echo '#ifdef __cplusplus' >>confdefs.h
19904 echo $ac_declaration >>confdefs.h
19905 echo '#endif' >>confdefs.h
19906fi
19907
19908else
19909 echo "$as_me: failed program was:" >&5
19910sed 's/^/| /' conftest.$ac_ext >&5
19911
19912fi
vlm8f3eb992004-06-17 23:42:48 +000019913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000019914ac_ext=c
19915ac_cpp='$CPP $CPPFLAGS'
19916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19918ac_compiler_gnu=$ac_cv_c_compiler_gnu
19919
19920depcc="$CC" am_compiler_list=
19921
19922echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19923echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19924if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926else
19927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19928 # We make a subdir and do the tests there. Otherwise we can end up
19929 # making bogus files that we don't know about and never remove. For
19930 # instance it was reported that on HP-UX the gcc test will end up
19931 # making a dummy file named `D' -- because `-MD' means `put the output
19932 # in D'.
19933 mkdir conftest.dir
19934 # Copy depcomp to subdir because otherwise we won't find it if we're
19935 # using a relative directory.
19936 cp "$am_depcomp" conftest.dir
19937 cd conftest.dir
vlm8f3eb992004-06-17 23:42:48 +000019938 # We will build objects and dependencies in a subdirectory because
19939 # it helps to detect inapplicable dependency modes. For instance
19940 # both Tru64's cc and ICC support -MD to output dependencies as a
19941 # side effect of compilation, but ICC will put the dependencies in
19942 # the current directory while Tru64 will put them in the object
19943 # directory.
19944 mkdir sub
vlmfa67ddc2004-06-03 03:38:44 +000019945
19946 am_cv_CC_dependencies_compiler_type=none
19947 if test "$am_compiler_list" = ""; then
19948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19949 fi
19950 for depmode in $am_compiler_list; do
vlm8f3eb992004-06-17 23:42:48 +000019951 # Setup a source with many dependencies, because some compilers
19952 # like to wrap large dependency lists on column 80 (with \), and
19953 # we should not choose a depcomp mode which is confused by this.
19954 #
vlmfa67ddc2004-06-03 03:38:44 +000019955 # We need to recreate these files for each test, as the compiler may
19956 # overwrite some of them when testing with obscure command lines.
19957 # This happens at least with the AIX C compiler.
vlm8f3eb992004-06-17 23:42:48 +000019958 : > sub/conftest.c
19959 for i in 1 2 3 4 5 6; do
19960 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19961 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19962 # Solaris 8's {/usr,}/bin/sh.
19963 touch sub/conftst$i.h
19964 done
19965 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
vlmfa67ddc2004-06-03 03:38:44 +000019966
19967 case $depmode in
19968 nosideeffect)
19969 # after this tag, mechanisms are not by side-effect, so they'll
19970 # only be used when explicitly requested
19971 if test "x$enable_dependency_tracking" = xyes; then
19972 continue
19973 else
19974 break
19975 fi
19976 ;;
19977 none) break ;;
19978 esac
19979 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19980 # mode. It turns out that the SunPro C++ compiler does not properly
19981 # handle `-M -o', and we need to detect this.
19982 if depmode=$depmode \
vlm8f3eb992004-06-17 23:42:48 +000019983 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19985 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19986 >/dev/null 2>conftest.err &&
19987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19988 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
vlmfa67ddc2004-06-03 03:38:44 +000019989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
vlm8f3eb992004-06-17 23:42:48 +000019990 # icc doesn't choke on unknown options, it will just issue warnings
19991 # or remarks (even with -Werror). So we grep stderr for any message
19992 # that says an option was ignored or not supported.
19993 # When given -MP, icc 7.0 and 7.1 complain thusly:
19994 # icc: Command line warning: ignoring option '-M'; no argument required
19995 # The diagnosis changed in icc 8.0:
19996 # icc: Command line remark: option '-MP' not supported
19997 if (grep 'ignoring option' conftest.err ||
19998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19999 am_cv_CC_dependencies_compiler_type=$depmode
20000 break
20001 fi
vlmfa67ddc2004-06-03 03:38:44 +000020002 fi
20003 done
20004
20005 cd ..
20006 rm -rf conftest.dir
20007else
20008 am_cv_CC_dependencies_compiler_type=none
20009fi
20010
20011fi
20012echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20013echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
vlm8f3eb992004-06-17 23:42:48 +000020014CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20015
20016
20017
20018if
20019 test "x$enable_dependency_tracking" != xno \
20020 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20021 am__fastdepCC_TRUE=
20022 am__fastdepCC_FALSE='#'
20023else
20024 am__fastdepCC_TRUE='#'
20025 am__fastdepCC_FALSE=
20026fi
vlmfa67ddc2004-06-03 03:38:44 +000020027
20028
20029ac_ext=c
20030ac_cpp='$CPP $CPPFLAGS'
20031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20033ac_compiler_gnu=$ac_cv_c_compiler_gnu
20034echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20035echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
20036# On Suns, sometimes $CPP names a directory.
20037if test -n "$CPP" && test -d "$CPP"; then
20038 CPP=
20039fi
20040if test -z "$CPP"; then
20041 if test "${ac_cv_prog_CPP+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 # Double quotes because CPP needs to be expanded
20045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20046 do
20047 ac_preproc_ok=false
20048for ac_c_preproc_warn_flag in '' yes
20049do
20050 # Use a header file that comes with gcc, so configuring glibc
20051 # with a fresh cross-compiler works.
20052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20053 # <limits.h> exists even on freestanding compilers.
20054 # On the NeXT, cc -E runs the code through the compiler's parser,
20055 # not just through cpp. "Syntax error" is here to catch this case.
20056 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020057/* confdefs.h. */
20058_ACEOF
20059cat confdefs.h >>conftest.$ac_ext
20060cat >>conftest.$ac_ext <<_ACEOF
20061/* end confdefs.h. */
20062#ifdef __STDC__
20063# include <limits.h>
20064#else
20065# include <assert.h>
20066#endif
vlm8f3eb992004-06-17 23:42:48 +000020067 Syntax error
vlmfa67ddc2004-06-03 03:38:44 +000020068_ACEOF
20069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } >/dev/null; then
20077 if test -s conftest.err; then
20078 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000020079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000020080 else
20081 ac_cpp_err=
20082 fi
20083else
20084 ac_cpp_err=yes
20085fi
20086if test -z "$ac_cpp_err"; then
20087 :
20088else
20089 echo "$as_me: failed program was:" >&5
20090sed 's/^/| /' conftest.$ac_ext >&5
20091
20092 # Broken: fails on valid input.
20093continue
20094fi
20095rm -f conftest.err conftest.$ac_ext
20096
20097 # OK, works on sane cases. Now check whether non-existent headers
20098 # can be detected and how.
20099 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020100/* confdefs.h. */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h. */
20105#include <ac_nonexistent.h>
20106_ACEOF
20107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } >/dev/null; then
20115 if test -s conftest.err; then
20116 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000020117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000020118 else
20119 ac_cpp_err=
20120 fi
20121else
20122 ac_cpp_err=yes
20123fi
20124if test -z "$ac_cpp_err"; then
20125 # Broken: success on invalid input.
20126continue
20127else
20128 echo "$as_me: failed program was:" >&5
20129sed 's/^/| /' conftest.$ac_ext >&5
20130
20131 # Passes both tests.
20132ac_preproc_ok=:
20133break
20134fi
20135rm -f conftest.err conftest.$ac_ext
20136
20137done
20138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20139rm -f conftest.err conftest.$ac_ext
20140if $ac_preproc_ok; then
20141 break
20142fi
20143
20144 done
20145 ac_cv_prog_CPP=$CPP
20146
20147fi
20148 CPP=$ac_cv_prog_CPP
20149else
20150 ac_cv_prog_CPP=$CPP
20151fi
20152echo "$as_me:$LINENO: result: $CPP" >&5
20153echo "${ECHO_T}$CPP" >&6
20154ac_preproc_ok=false
20155for ac_c_preproc_warn_flag in '' yes
20156do
20157 # Use a header file that comes with gcc, so configuring glibc
20158 # with a fresh cross-compiler works.
20159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20160 # <limits.h> exists even on freestanding compilers.
20161 # On the NeXT, cc -E runs the code through the compiler's parser,
20162 # not just through cpp. "Syntax error" is here to catch this case.
20163 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020164/* confdefs.h. */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h. */
20169#ifdef __STDC__
20170# include <limits.h>
20171#else
20172# include <assert.h>
20173#endif
vlm8f3eb992004-06-17 23:42:48 +000020174 Syntax error
vlmfa67ddc2004-06-03 03:38:44 +000020175_ACEOF
20176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20178 ac_status=$?
20179 grep -v '^ *+' conftest.er1 >conftest.err
20180 rm -f conftest.er1
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } >/dev/null; then
20184 if test -s conftest.err; then
20185 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000020186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000020187 else
20188 ac_cpp_err=
20189 fi
20190else
20191 ac_cpp_err=yes
20192fi
20193if test -z "$ac_cpp_err"; then
20194 :
20195else
20196 echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199 # Broken: fails on valid input.
20200continue
20201fi
20202rm -f conftest.err conftest.$ac_ext
20203
20204 # OK, works on sane cases. Now check whether non-existent headers
20205 # can be detected and how.
20206 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020207/* confdefs.h. */
20208_ACEOF
20209cat confdefs.h >>conftest.$ac_ext
20210cat >>conftest.$ac_ext <<_ACEOF
20211/* end confdefs.h. */
20212#include <ac_nonexistent.h>
20213_ACEOF
20214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20216 ac_status=$?
20217 grep -v '^ *+' conftest.er1 >conftest.err
20218 rm -f conftest.er1
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } >/dev/null; then
20222 if test -s conftest.err; then
20223 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000020224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000020225 else
20226 ac_cpp_err=
20227 fi
20228else
20229 ac_cpp_err=yes
20230fi
20231if test -z "$ac_cpp_err"; then
20232 # Broken: success on invalid input.
20233continue
20234else
20235 echo "$as_me: failed program was:" >&5
20236sed 's/^/| /' conftest.$ac_ext >&5
20237
20238 # Passes both tests.
20239ac_preproc_ok=:
20240break
20241fi
20242rm -f conftest.err conftest.$ac_ext
20243
20244done
20245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20246rm -f conftest.err conftest.$ac_ext
20247if $ac_preproc_ok; then
20248 :
20249else
20250 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
20251See \`config.log' for more details." >&5
20252echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
20253See \`config.log' for more details." >&2;}
20254 { (exit 1); exit 1; }; }
20255fi
20256
20257ac_ext=c
20258ac_cpp='$CPP $CPPFLAGS'
20259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20261ac_compiler_gnu=$ac_cv_c_compiler_gnu
20262
20263# Find a good install program. We prefer a C program (faster),
20264# so one script is as good as another. But avoid the broken or
20265# incompatible versions:
20266# SysV /etc/install, /usr/sbin/install
20267# SunOS /usr/etc/install
20268# IRIX /sbin/install
20269# AIX /bin/install
20270# AmigaOS /C/install, which installs bootblocks on floppy discs
20271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20272# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
vlm8f3eb992004-06-17 23:42:48 +000020274# OS/2's system install, which has a completely different semantic
vlmfa67ddc2004-06-03 03:38:44 +000020275# ./install, which can be erroneously created by make from ./install.sh.
20276echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20277echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20278if test -z "$INSTALL"; then
20279if test "${ac_cv_path_install+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20281else
20282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20283for as_dir in $PATH
20284do
20285 IFS=$as_save_IFS
20286 test -z "$as_dir" && as_dir=.
20287 # Account for people who put trailing slashes in PATH elements.
20288case $as_dir/ in
20289 ./ | .// | /cC/* | \
20290 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
vlm8f3eb992004-06-17 23:42:48 +000020291 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
vlmfa67ddc2004-06-03 03:38:44 +000020292 /usr/ucb/* ) ;;
20293 *)
20294 # OSF1 and SCO ODT 3.0 have their own names for install.
20295 # Don't use installbsd from OSF since it installs stuff as root
20296 # by default.
20297 for ac_prog in ginstall scoinst install; do
20298 for ac_exec_ext in '' $ac_executable_extensions; do
vlm8f3eb992004-06-17 23:42:48 +000020299 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20300 if test $ac_prog = install &&
20301 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20302 # AIX install. It has an incompatible calling convention.
20303 :
20304 elif test $ac_prog = install &&
20305 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20306 # program-specific install script used by HP pwplus--don't use.
20307 :
20308 else
20309 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20310 break 3
20311 fi
20312 fi
vlmfa67ddc2004-06-03 03:38:44 +000020313 done
20314 done
20315 ;;
20316esac
20317done
20318
20319
20320fi
20321 if test "${ac_cv_path_install+set}" = set; then
20322 INSTALL=$ac_cv_path_install
20323 else
20324 # As a last resort, use the slow shell script. We don't cache a
20325 # path for INSTALL within a source directory, because that will
20326 # break other packages using the cache if that directory is
20327 # removed, or if the path is relative.
20328 INSTALL=$ac_install_sh
20329 fi
20330fi
20331echo "$as_me:$LINENO: result: $INSTALL" >&5
20332echo "${ECHO_T}$INSTALL" >&6
20333
20334# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20335# It thinks the first close brace ends the variable substitution.
20336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20337
20338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20339
20340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20341
20342echo "$as_me:$LINENO: checking whether ln -s works" >&5
20343echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
20344LN_S=$as_ln_s
20345if test "$LN_S" = "ln -s"; then
20346 echo "$as_me:$LINENO: result: yes" >&5
20347echo "${ECHO_T}yes" >&6
20348else
20349 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20350echo "${ECHO_T}no, using $LN_S" >&6
20351fi
20352
20353echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20354echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
vlm8f3eb992004-06-17 23:42:48 +000020355set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
vlmfa67ddc2004-06-03 03:38:44 +000020356if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20358else
20359 cat >conftest.make <<\_ACEOF
20360all:
20361 @echo 'ac_maketemp="$(MAKE)"'
20362_ACEOF
20363# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20364eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20365if test -n "$ac_maketemp"; then
20366 eval ac_cv_prog_make_${ac_make}_set=yes
20367else
20368 eval ac_cv_prog_make_${ac_make}_set=no
20369fi
20370rm -f conftest.make
20371fi
20372if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20373 echo "$as_me:$LINENO: result: yes" >&5
20374echo "${ECHO_T}yes" >&6
20375 SET_MAKE=
20376else
20377 echo "$as_me:$LINENO: result: no" >&5
20378echo "${ECHO_T}no" >&6
20379 SET_MAKE="MAKE=${MAKE-make}"
20380fi
20381
20382for ac_prog in 'bison -y' byacc
20383do
20384 # Extract the first word of "$ac_prog", so it can be a program name with args.
20385set dummy $ac_prog; ac_word=$2
20386echo "$as_me:$LINENO: checking for $ac_word" >&5
20387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20388if test "${ac_cv_prog_YACC+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20390else
20391 if test -n "$YACC"; then
20392 ac_cv_prog_YACC="$YACC" # Let the user override the test.
20393else
20394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20395for as_dir in $PATH
20396do
20397 IFS=$as_save_IFS
20398 test -z "$as_dir" && as_dir=.
20399 for ac_exec_ext in '' $ac_executable_extensions; do
20400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20401 ac_cv_prog_YACC="$ac_prog"
20402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20403 break 2
20404 fi
20405done
20406done
20407
20408fi
20409fi
20410YACC=$ac_cv_prog_YACC
20411if test -n "$YACC"; then
20412 echo "$as_me:$LINENO: result: $YACC" >&5
20413echo "${ECHO_T}$YACC" >&6
20414else
20415 echo "$as_me:$LINENO: result: no" >&5
20416echo "${ECHO_T}no" >&6
20417fi
20418
20419 test -n "$YACC" && break
20420done
20421test -n "$YACC" || YACC="yacc"
20422
vlmfa67ddc2004-06-03 03:38:44 +000020423for ac_prog in flex lex
20424do
20425 # Extract the first word of "$ac_prog", so it can be a program name with args.
20426set dummy $ac_prog; ac_word=$2
20427echo "$as_me:$LINENO: checking for $ac_word" >&5
20428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20429if test "${ac_cv_prog_LEX+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431else
20432 if test -n "$LEX"; then
20433 ac_cv_prog_LEX="$LEX" # Let the user override the test.
20434else
20435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20436for as_dir in $PATH
20437do
20438 IFS=$as_save_IFS
20439 test -z "$as_dir" && as_dir=.
20440 for ac_exec_ext in '' $ac_executable_extensions; do
20441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20442 ac_cv_prog_LEX="$ac_prog"
20443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20444 break 2
20445 fi
20446done
20447done
20448
20449fi
20450fi
20451LEX=$ac_cv_prog_LEX
20452if test -n "$LEX"; then
20453 echo "$as_me:$LINENO: result: $LEX" >&5
20454echo "${ECHO_T}$LEX" >&6
20455else
20456 echo "$as_me:$LINENO: result: no" >&5
20457echo "${ECHO_T}no" >&6
20458fi
20459
20460 test -n "$LEX" && break
20461done
20462test -n "$LEX" || LEX=":"
20463
20464if test -z "$LEXLIB"
20465then
20466 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
20467echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
20468if test "${ac_cv_lib_fl_yywrap+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20470else
20471 ac_check_lib_save_LIBS=$LIBS
20472LIBS="-lfl $LIBS"
20473cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020474/* confdefs.h. */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h. */
20479
20480/* Override any gcc2 internal prototype to avoid an error. */
20481#ifdef __cplusplus
20482extern "C"
20483#endif
20484/* We use char because int might match the return type of a gcc2
20485 builtin and then its argument prototype would still apply. */
20486char yywrap ();
20487int
20488main ()
20489{
20490yywrap ();
20491 ;
20492 return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext conftest$ac_exeext
20496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000020497 (eval $ac_link) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020498 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000020499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000020502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000020504 { ac_try='test -z "$ac_c_werror_flag"
20505 || test ! -s conftest.err'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; } &&
20511 { ac_try='test -s conftest$ac_exeext'
vlmfa67ddc2004-06-03 03:38:44 +000020512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_lib_fl_yywrap=yes
20518else
20519 echo "$as_me: failed program was:" >&5
20520sed 's/^/| /' conftest.$ac_ext >&5
20521
20522ac_cv_lib_fl_yywrap=no
20523fi
vlm8f3eb992004-06-17 23:42:48 +000020524rm -f conftest.err conftest.$ac_objext \
20525 conftest$ac_exeext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020526LIBS=$ac_check_lib_save_LIBS
20527fi
20528echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
20529echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
20530if test $ac_cv_lib_fl_yywrap = yes; then
20531 LEXLIB="-lfl"
20532else
20533 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
20534echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
20535if test "${ac_cv_lib_l_yywrap+set}" = set; then
20536 echo $ECHO_N "(cached) $ECHO_C" >&6
20537else
20538 ac_check_lib_save_LIBS=$LIBS
20539LIBS="-ll $LIBS"
20540cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020541/* confdefs.h. */
20542_ACEOF
20543cat confdefs.h >>conftest.$ac_ext
20544cat >>conftest.$ac_ext <<_ACEOF
20545/* end confdefs.h. */
20546
20547/* Override any gcc2 internal prototype to avoid an error. */
20548#ifdef __cplusplus
20549extern "C"
20550#endif
20551/* We use char because int might match the return type of a gcc2
20552 builtin and then its argument prototype would still apply. */
20553char yywrap ();
20554int
20555main ()
20556{
20557yywrap ();
20558 ;
20559 return 0;
20560}
20561_ACEOF
20562rm -f conftest.$ac_objext conftest$ac_exeext
20563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000020564 (eval $ac_link) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020565 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000020566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000020569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000020571 { ac_try='test -z "$ac_c_werror_flag"
20572 || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest$ac_exeext'
vlmfa67ddc2004-06-03 03:38:44 +000020579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_cv_lib_l_yywrap=yes
20585else
20586 echo "$as_me: failed program was:" >&5
20587sed 's/^/| /' conftest.$ac_ext >&5
20588
20589ac_cv_lib_l_yywrap=no
20590fi
vlm8f3eb992004-06-17 23:42:48 +000020591rm -f conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020593LIBS=$ac_check_lib_save_LIBS
20594fi
20595echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
20596echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
20597if test $ac_cv_lib_l_yywrap = yes; then
20598 LEXLIB="-ll"
20599fi
20600
20601fi
20602
20603fi
20604
20605if test "x$LEX" != "x:"; then
20606 echo "$as_me:$LINENO: checking lex output file root" >&5
20607echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
20608if test "${ac_cv_prog_lex_root+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610else
20611 # The minimal lex program is just a single line: %%. But some broken lexes
20612# (Solaris, I think it was) want two %% lines, so accommodate them.
20613cat >conftest.l <<_ACEOF
20614%%
20615%%
20616_ACEOF
20617{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
20618 (eval $LEX conftest.l) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }
20622if test -f lex.yy.c; then
20623 ac_cv_prog_lex_root=lex.yy
20624elif test -f lexyy.c; then
20625 ac_cv_prog_lex_root=lexyy
20626else
20627 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20628echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20629 { (exit 1); exit 1; }; }
20630fi
20631fi
20632echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20633echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
20634rm -f conftest.l
20635LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20636
20637echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20638echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
20639if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20641else
20642 # POSIX says lex can declare yytext either as a pointer or an array; the
20643# default is implementation-dependent. Figure out which it is, since
20644# not all implementations provide the %pointer and %array declarations.
20645ac_cv_prog_lex_yytext_pointer=no
20646echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
20647ac_save_LIBS=$LIBS
20648LIBS="$LIBS $LEXLIB"
20649cat >conftest.$ac_ext <<_ACEOF
20650`cat $LEX_OUTPUT_ROOT.c`
20651_ACEOF
20652rm -f conftest.$ac_objext conftest$ac_exeext
20653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000020654 (eval $ac_link) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020655 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000020656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000020659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000020661 { ac_try='test -z "$ac_c_werror_flag"
20662 || test ! -s conftest.err'
20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest$ac_exeext'
vlmfa67ddc2004-06-03 03:38:44 +000020669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_cv_prog_lex_yytext_pointer=yes
20675else
20676 echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
20679fi
vlm8f3eb992004-06-17 23:42:48 +000020680rm -f conftest.err conftest.$ac_objext \
20681 conftest$ac_exeext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020682LIBS=$ac_save_LIBS
20683rm -f "${LEX_OUTPUT_ROOT}.c"
20684
20685fi
20686echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20687echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
20688if test $ac_cv_prog_lex_yytext_pointer = yes; then
20689
20690cat >>confdefs.h <<\_ACEOF
20691#define YYTEXT_POINTER 1
20692_ACEOF
20693
20694fi
20695
20696fi
vlm8f3eb992004-06-17 23:42:48 +000020697if test "$LEX" = :; then
20698 LEX=${am_missing_run}flex
20699fi
vlm77fff672005-03-30 05:14:26 +000020700# Extract the first word of "ar", so it can be a program name with args.
20701set dummy ar; ac_word=$2
20702echo "$as_me:$LINENO: checking for $ac_word" >&5
20703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20704if test "${ac_cv_path_AR+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20706else
20707 case $AR in
20708 [\\/]* | ?:[\\/]*)
20709 ac_cv_path_AR="$AR" # Let the user override the test with a path.
20710 ;;
20711 *)
20712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20713as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
20714for as_dir in $as_dummy
20715do
20716 IFS=$as_save_IFS
20717 test -z "$as_dir" && as_dir=.
20718 for ac_exec_ext in '' $ac_executable_extensions; do
20719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20720 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
20721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20722 break 2
20723 fi
20724done
20725done
20726
20727 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
20728 ;;
20729esac
20730fi
20731AR=$ac_cv_path_AR
20732
20733if test -n "$AR"; then
20734 echo "$as_me:$LINENO: result: $AR" >&5
20735echo "${ECHO_T}$AR" >&6
20736else
20737 echo "$as_me:$LINENO: result: no" >&5
20738echo "${ECHO_T}no" >&6
20739fi
vlmfa67ddc2004-06-03 03:38:44 +000020740
vlmdda60c42004-08-23 10:41:38 +000020741case "$host_os" in
vlmef98a372006-03-18 06:39:49 +000020742cygwin)
vlm4888a862006-03-18 06:25:40 +000020743 case "$target" in
vlmdda60c42004-08-23 10:41:38 +000020744 *mingw*)
20745 CC="$CC -mno-cygwin"
20746 esac
20747 ;;
vlm4888a862006-03-18 06:25:40 +000020748esac
20749
vlmee2e9c52004-09-26 14:18:32 +000020750# Check whether --enable-Werror or --disable-Werror was given.
20751if test "${enable_Werror+set}" = set; then
20752 enableval="$enable_Werror"
20753 enable_werror=$enableval
20754else
20755 enable_werror=no
vlmfa67ddc2004-06-03 03:38:44 +000020756fi;
vlmee2e9c52004-09-26 14:18:32 +000020757if test x$enable_werror = xyes; then
20758 ADD_CFLAGS="-Werror -W -Wpointer-arith"
20759fi
vlmfa67ddc2004-06-03 03:38:44 +000020760
20761
20762case "$GCC" in
20763 yes)
20764 CFLAGS="$CFLAGS -Wall"
20765 CFLAGS="$CFLAGS -Wshadow"
20766 CFLAGS="$CFLAGS -Wcast-qual"
20767 CFLAGS="$CFLAGS -Wcast-align"
vlm1ca8d232004-09-26 13:16:33 +000020768 CFLAGS="$CFLAGS -Wchar-subscripts"
vlmfa67ddc2004-06-03 03:38:44 +000020769 CFLAGS="$CFLAGS -Wmissing-prototypes"
20770 CFLAGS="$CFLAGS -Wmissing-declarations"
vlmfa67ddc2004-06-03 03:38:44 +000020771 ;;
20772esac
20773
20774
vlmfa67ddc2004-06-03 03:38:44 +000020775echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20776echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20777if test "${ac_cv_header_stdc+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20779else
20780 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020781/* confdefs.h. */
20782_ACEOF
20783cat confdefs.h >>conftest.$ac_ext
20784cat >>conftest.$ac_ext <<_ACEOF
20785/* end confdefs.h. */
20786#include <stdlib.h>
20787#include <stdarg.h>
20788#include <string.h>
20789#include <float.h>
20790
20791int
20792main ()
20793{
20794
20795 ;
20796 return 0;
20797}
20798_ACEOF
20799rm -f conftest.$ac_objext
20800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000020801 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020802 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000020803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000020806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000020808 { ac_try='test -z "$ac_c_werror_flag"
20809 || test ! -s conftest.err'
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20812 ac_status=$?
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; } &&
20815 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000020816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; }; then
20821 ac_cv_header_stdc=yes
20822else
20823 echo "$as_me: failed program was:" >&5
20824sed 's/^/| /' conftest.$ac_ext >&5
20825
20826ac_cv_header_stdc=no
20827fi
vlm8f3eb992004-06-17 23:42:48 +000020828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020829
20830if test $ac_cv_header_stdc = yes; then
20831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20832 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
20838#include <string.h>
20839
20840_ACEOF
20841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20842 $EGREP "memchr" >/dev/null 2>&1; then
20843 :
20844else
20845 ac_cv_header_stdc=no
20846fi
20847rm -f conftest*
20848
20849fi
20850
20851if test $ac_cv_header_stdc = yes; then
20852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20853 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020854/* confdefs.h. */
20855_ACEOF
20856cat confdefs.h >>conftest.$ac_ext
20857cat >>conftest.$ac_ext <<_ACEOF
20858/* end confdefs.h. */
20859#include <stdlib.h>
20860
20861_ACEOF
20862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20863 $EGREP "free" >/dev/null 2>&1; then
20864 :
20865else
20866 ac_cv_header_stdc=no
20867fi
20868rm -f conftest*
20869
20870fi
20871
20872if test $ac_cv_header_stdc = yes; then
20873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20874 if test "$cross_compiling" = yes; then
20875 :
20876else
20877 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h. */
20883#include <ctype.h>
20884#if ((' ' & 0x0FF) == 0x020)
20885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20887#else
20888# define ISLOWER(c) \
vlm8f3eb992004-06-17 23:42:48 +000020889 (('a' <= (c) && (c) <= 'i') \
20890 || ('j' <= (c) && (c) <= 'r') \
20891 || ('s' <= (c) && (c) <= 'z'))
vlmfa67ddc2004-06-03 03:38:44 +000020892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20893#endif
20894
20895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20896int
20897main ()
20898{
20899 int i;
20900 for (i = 0; i < 256; i++)
20901 if (XOR (islower (i), ISLOWER (i))
vlm8f3eb992004-06-17 23:42:48 +000020902 || toupper (i) != TOUPPER (i))
vlmfa67ddc2004-06-03 03:38:44 +000020903 exit(2);
20904 exit (0);
20905}
20906_ACEOF
20907rm -f conftest$ac_exeext
20908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20909 (eval $ac_link) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 :
20919else
20920 echo "$as_me: program exited with status $ac_status" >&5
20921echo "$as_me: failed program was:" >&5
20922sed 's/^/| /' conftest.$ac_ext >&5
20923
20924( exit $ac_status )
20925ac_cv_header_stdc=no
20926fi
vlm8f3eb992004-06-17 23:42:48 +000020927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020928fi
20929fi
20930fi
20931echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20932echo "${ECHO_T}$ac_cv_header_stdc" >&6
20933if test $ac_cv_header_stdc = yes; then
20934
20935cat >>confdefs.h <<\_ACEOF
20936#define STDC_HEADERS 1
20937_ACEOF
20938
20939fi
20940
vlmfa67ddc2004-06-03 03:38:44 +000020941
vlm1f1d8cb2004-08-13 16:58:19 +000020942for ac_header in sys/param.h
vlmfa67ddc2004-06-03 03:38:44 +000020943do
20944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20945if eval "test \"\${$as_ac_Header+set}\" = set"; then
20946 echo "$as_me:$LINENO: checking for $ac_header" >&5
20947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20948if eval "test \"\${$as_ac_Header+set}\" = set"; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20950fi
20951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20953else
20954 # Is the header compilable?
20955echo "$as_me:$LINENO: checking $ac_header usability" >&5
20956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20957cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020958/* confdefs.h. */
20959_ACEOF
20960cat confdefs.h >>conftest.$ac_ext
20961cat >>conftest.$ac_ext <<_ACEOF
20962/* end confdefs.h. */
20963$ac_includes_default
20964#include <$ac_header>
20965_ACEOF
20966rm -f conftest.$ac_objext
20967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000020968 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020969 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000020970 grep -v '^ *+' conftest.er1 >conftest.err
20971 rm -f conftest.er1
20972 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000020973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000020975 { ac_try='test -z "$ac_c_werror_flag"
20976 || test ! -s conftest.err'
20977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978 (eval $ac_try) 2>&5
20979 ac_status=$?
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; } &&
20982 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000020983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; }; then
20988 ac_header_compiler=yes
20989else
20990 echo "$as_me: failed program was:" >&5
20991sed 's/^/| /' conftest.$ac_ext >&5
20992
20993ac_header_compiler=no
20994fi
vlm8f3eb992004-06-17 23:42:48 +000020995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20997echo "${ECHO_T}$ac_header_compiler" >&6
20998
20999# Is the header present?
21000echo "$as_me:$LINENO: checking $ac_header presence" >&5
21001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21002cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008#include <$ac_header>
21009_ACEOF
21010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21012 ac_status=$?
21013 grep -v '^ *+' conftest.er1 >conftest.err
21014 rm -f conftest.er1
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } >/dev/null; then
21018 if test -s conftest.err; then
21019 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000021020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000021021 else
21022 ac_cpp_err=
21023 fi
21024else
21025 ac_cpp_err=yes
21026fi
21027if test -z "$ac_cpp_err"; then
21028 ac_header_preproc=yes
21029else
21030 echo "$as_me: failed program was:" >&5
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
21033 ac_header_preproc=no
21034fi
21035rm -f conftest.err conftest.$ac_ext
21036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21037echo "${ECHO_T}$ac_header_preproc" >&6
21038
21039# So? What about this header?
vlm8f3eb992004-06-17 23:42:48 +000021040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21041 yes:no: )
vlmfa67ddc2004-06-03 03:38:44 +000021042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
vlm8f3eb992004-06-17 23:42:48 +000021044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21046 ac_header_preproc=yes
vlmfa67ddc2004-06-03 03:38:44 +000021047 ;;
vlm8f3eb992004-06-17 23:42:48 +000021048 no:yes:* )
vlmfa67ddc2004-06-03 03:38:44 +000021049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
vlm8f3eb992004-06-17 23:42:48 +000021051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
vlmfa67ddc2004-06-03 03:38:44 +000021057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
vlm8f3eb992004-06-17 23:42:48 +000021059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
vlmfa67ddc2004-06-03 03:38:44 +000021061 (
21062 cat <<\_ASBOX
vlm8f3eb992004-06-17 23:42:48 +000021063## ------------------------------------------ ##
21064## Report this to the AC_PACKAGE_NAME lists. ##
21065## ------------------------------------------ ##
vlmfa67ddc2004-06-03 03:38:44 +000021066_ASBOX
21067 ) |
21068 sed "s/^/$as_me: WARNING: /" >&2
21069 ;;
21070esac
21071echo "$as_me:$LINENO: checking for $ac_header" >&5
21072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21073if eval "test \"\${$as_ac_Header+set}\" = set"; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21075else
vlm8f3eb992004-06-17 23:42:48 +000021076 eval "$as_ac_Header=\$ac_header_preproc"
vlmfa67ddc2004-06-03 03:38:44 +000021077fi
21078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21080
21081fi
21082if test `eval echo '${'$as_ac_Header'}'` = yes; then
21083 cat >>confdefs.h <<_ACEOF
21084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21085_ACEOF
21086
21087fi
21088
21089done
21090
21091
21092echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21093echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21094if test "${ac_cv_c_bigendian+set}" = set; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21096else
21097 # See if sys/param.h defines the BYTE_ORDER macro.
21098cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021099/* confdefs.h. */
21100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
21103/* end confdefs.h. */
21104#include <sys/types.h>
21105#include <sys/param.h>
21106
21107int
21108main ()
21109{
21110#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21111 bogus endian macros
21112#endif
21113
21114 ;
21115 return 0;
21116}
21117_ACEOF
21118rm -f conftest.$ac_objext
21119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000021120 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021121 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000021127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000021135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 # It does; now see whether it defined to BIG_ENDIAN or not.
21141cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021142/* confdefs.h. */
21143_ACEOF
21144cat confdefs.h >>conftest.$ac_ext
21145cat >>conftest.$ac_ext <<_ACEOF
21146/* end confdefs.h. */
21147#include <sys/types.h>
21148#include <sys/param.h>
21149
21150int
21151main ()
21152{
21153#if BYTE_ORDER != BIG_ENDIAN
21154 not big endian
21155#endif
21156
21157 ;
21158 return 0;
21159}
21160_ACEOF
21161rm -f conftest.$ac_objext
21162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000021163 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021164 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021165 grep -v '^ *+' conftest.er1 >conftest.err
21166 rm -f conftest.er1
21167 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000021170 { ac_try='test -z "$ac_c_werror_flag"
21171 || test ! -s conftest.err'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000021178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_c_bigendian=yes
21184else
21185 echo "$as_me: failed program was:" >&5
21186sed 's/^/| /' conftest.$ac_ext >&5
21187
21188ac_cv_c_bigendian=no
21189fi
vlm8f3eb992004-06-17 23:42:48 +000021190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021191else
21192 echo "$as_me: failed program was:" >&5
21193sed 's/^/| /' conftest.$ac_ext >&5
21194
21195# It does not; compile a test program.
21196if test "$cross_compiling" = yes; then
21197 # try to guess the endianness by grepping values into an object file
21198 ac_cv_c_bigendian=unknown
21199 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021200/* confdefs.h. */
21201_ACEOF
21202cat confdefs.h >>conftest.$ac_ext
21203cat >>conftest.$ac_ext <<_ACEOF
21204/* end confdefs.h. */
21205short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21206short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21207void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21208short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21209short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21210void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21211int
21212main ()
21213{
21214 _ascii (); _ebcdic ();
21215 ;
21216 return 0;
21217}
21218_ACEOF
21219rm -f conftest.$ac_objext
21220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000021221 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021222 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021223 grep -v '^ *+' conftest.er1 >conftest.err
21224 rm -f conftest.er1
21225 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000021228 { ac_try='test -z "$ac_c_werror_flag"
21229 || test ! -s conftest.err'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000021236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21242 ac_cv_c_bigendian=yes
21243fi
21244if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21245 if test "$ac_cv_c_bigendian" = unknown; then
21246 ac_cv_c_bigendian=no
21247 else
21248 # finding both strings is unlikely to happen, but who knows?
21249 ac_cv_c_bigendian=unknown
21250 fi
21251fi
21252else
21253 echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
21256fi
vlm8f3eb992004-06-17 23:42:48 +000021257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021258else
21259 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021260/* confdefs.h. */
21261_ACEOF
21262cat confdefs.h >>conftest.$ac_ext
21263cat >>conftest.$ac_ext <<_ACEOF
21264/* end confdefs.h. */
21265int
21266main ()
21267{
21268 /* Are we little or big endian? From Harbison&Steele. */
21269 union
21270 {
21271 long l;
21272 char c[sizeof (long)];
21273 } u;
21274 u.l = 1;
21275 exit (u.c[sizeof (long) - 1] == 1);
21276}
21277_ACEOF
21278rm -f conftest$ac_exeext
21279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21280 (eval $ac_link) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_c_bigendian=no
21290else
21291 echo "$as_me: program exited with status $ac_status" >&5
21292echo "$as_me: failed program was:" >&5
21293sed 's/^/| /' conftest.$ac_ext >&5
21294
21295( exit $ac_status )
21296ac_cv_c_bigendian=yes
21297fi
vlm8f3eb992004-06-17 23:42:48 +000021298rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021299fi
21300fi
vlm8f3eb992004-06-17 23:42:48 +000021301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021302fi
21303echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21304echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21305case $ac_cv_c_bigendian in
21306 yes)
21307
21308cat >>confdefs.h <<\_ACEOF
21309#define WORDS_BIGENDIAN 1
21310_ACEOF
21311 ;;
21312 no)
21313 ;;
21314 *)
21315 { { echo "$as_me:$LINENO: error: unknown endianness
21316presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21317echo "$as_me: error: unknown endianness
21318presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21319 { (exit 1); exit 1; }; } ;;
21320esac
21321
21322echo "$as_me:$LINENO: checking for off_t" >&5
21323echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21324if test "${ac_cv_type_off_t+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21326else
21327 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021328/* confdefs.h. */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h. */
21333$ac_includes_default
21334int
21335main ()
21336{
21337if ((off_t *) 0)
21338 return 0;
21339if (sizeof (off_t))
21340 return 0;
21341 ;
21342 return 0;
21343}
21344_ACEOF
21345rm -f conftest.$ac_objext
21346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000021347 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021348 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000021354 { ac_try='test -z "$ac_c_werror_flag"
21355 || test ! -s conftest.err'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000021362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_type_off_t=yes
21368else
21369 echo "$as_me: failed program was:" >&5
21370sed 's/^/| /' conftest.$ac_ext >&5
21371
21372ac_cv_type_off_t=no
21373fi
vlm8f3eb992004-06-17 23:42:48 +000021374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021375fi
21376echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21377echo "${ECHO_T}$ac_cv_type_off_t" >&6
21378if test $ac_cv_type_off_t = yes; then
21379 :
21380else
21381
21382cat >>confdefs.h <<_ACEOF
21383#define off_t long
21384_ACEOF
21385
21386fi
21387
21388echo "$as_me:$LINENO: checking for size_t" >&5
21389echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21390if test "${ac_cv_type_size_t+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21392else
21393 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021394/* confdefs.h. */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h. */
21399$ac_includes_default
21400int
21401main ()
21402{
21403if ((size_t *) 0)
21404 return 0;
21405if (sizeof (size_t))
21406 return 0;
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext
21412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000021413 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021414 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000021420 { ac_try='test -z "$ac_c_werror_flag"
21421 || test ! -s conftest.err'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000021428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_cv_type_size_t=yes
21434else
21435 echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438ac_cv_type_size_t=no
21439fi
vlm8f3eb992004-06-17 23:42:48 +000021440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021441fi
21442echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21443echo "${ECHO_T}$ac_cv_type_size_t" >&6
21444if test $ac_cv_type_size_t = yes; then
21445 :
21446else
21447
21448cat >>confdefs.h <<_ACEOF
21449#define size_t unsigned
21450_ACEOF
21451
21452fi
21453
21454echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21455echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21456if test "${ac_cv_struct_tm+set}" = set; then
21457 echo $ECHO_N "(cached) $ECHO_C" >&6
21458else
21459 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021460/* confdefs.h. */
21461_ACEOF
21462cat confdefs.h >>conftest.$ac_ext
21463cat >>conftest.$ac_ext <<_ACEOF
21464/* end confdefs.h. */
21465#include <sys/types.h>
21466#include <time.h>
21467
21468int
21469main ()
21470{
21471struct tm *tp; tp->tm_sec;
21472 ;
21473 return 0;
21474}
21475_ACEOF
21476rm -f conftest.$ac_objext
21477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000021478 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021479 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021480 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1
21482 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000021485 { ac_try='test -z "$ac_c_werror_flag"
21486 || test ! -s conftest.err'
21487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488 (eval $ac_try) 2>&5
21489 ac_status=$?
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; } &&
21492 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000021493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; }; then
21498 ac_cv_struct_tm=time.h
21499else
21500 echo "$as_me: failed program was:" >&5
21501sed 's/^/| /' conftest.$ac_ext >&5
21502
21503ac_cv_struct_tm=sys/time.h
21504fi
vlm8f3eb992004-06-17 23:42:48 +000021505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021506fi
21507echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21508echo "${ECHO_T}$ac_cv_struct_tm" >&6
21509if test $ac_cv_struct_tm = sys/time.h; then
21510
21511cat >>confdefs.h <<\_ACEOF
21512#define TM_IN_SYS_TIME 1
21513_ACEOF
21514
21515fi
21516
21517echo "$as_me:$LINENO: checking for intmax_t" >&5
21518echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
21519if test "${ac_cv_type_intmax_t+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521else
21522 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021523/* confdefs.h. */
21524_ACEOF
21525cat confdefs.h >>conftest.$ac_ext
21526cat >>conftest.$ac_ext <<_ACEOF
21527/* end confdefs.h. */
21528$ac_includes_default
21529int
21530main ()
21531{
21532if ((intmax_t *) 0)
21533 return 0;
21534if (sizeof (intmax_t))
21535 return 0;
21536 ;
21537 return 0;
21538}
21539_ACEOF
21540rm -f conftest.$ac_objext
21541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000021542 (eval $ac_compile) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021543 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000021549 { ac_try='test -z "$ac_c_werror_flag"
21550 || test ! -s conftest.err'
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; } &&
21556 { ac_try='test -s conftest.$ac_objext'
vlmfa67ddc2004-06-03 03:38:44 +000021557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_cv_type_intmax_t=yes
21563else
21564 echo "$as_me: failed program was:" >&5
21565sed 's/^/| /' conftest.$ac_ext >&5
21566
21567ac_cv_type_intmax_t=no
21568fi
vlm8f3eb992004-06-17 23:42:48 +000021569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021570fi
21571echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
21572echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
21573if test $ac_cv_type_intmax_t = yes; then
21574 :
21575else
21576
21577cat >>confdefs.h <<_ACEOF
21578#define intmax_t int64_t
21579_ACEOF
21580
21581fi
21582
21583
21584
21585
21586for ac_func in strtoimax strtoll
21587do
21588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21589echo "$as_me:$LINENO: checking for $ac_func" >&5
21590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21591if eval "test \"\${$as_ac_var+set}\" = set"; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21593else
21594 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021595/* confdefs.h. */
21596_ACEOF
21597cat confdefs.h >>conftest.$ac_ext
21598cat >>conftest.$ac_ext <<_ACEOF
21599/* end confdefs.h. */
vlm8f3eb992004-06-17 23:42:48 +000021600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21602#define $ac_func innocuous_$ac_func
21603
vlmfa67ddc2004-06-03 03:38:44 +000021604/* System header to define __stub macros and hopefully few prototypes,
21605 which can conflict with char $ac_func (); below.
21606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21607 <limits.h> exists even on freestanding compilers. */
vlm8f3eb992004-06-17 23:42:48 +000021608
vlmfa67ddc2004-06-03 03:38:44 +000021609#ifdef __STDC__
21610# include <limits.h>
21611#else
21612# include <assert.h>
21613#endif
vlm8f3eb992004-06-17 23:42:48 +000021614
21615#undef $ac_func
21616
vlmfa67ddc2004-06-03 03:38:44 +000021617/* Override any gcc2 internal prototype to avoid an error. */
21618#ifdef __cplusplus
21619extern "C"
21620{
21621#endif
21622/* We use char because int might match the return type of a gcc2
21623 builtin and then its argument prototype would still apply. */
21624char $ac_func ();
21625/* The GNU C library defines this for functions which it implements
21626 to always fail with ENOSYS. Some functions are actually named
21627 something starting with __ and the normal name is an alias. */
21628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21629choke me
21630#else
21631char (*f) () = $ac_func;
21632#endif
21633#ifdef __cplusplus
21634}
21635#endif
21636
21637int
21638main ()
21639{
21640return f != $ac_func;
21641 ;
21642 return 0;
21643}
21644_ACEOF
21645rm -f conftest.$ac_objext conftest$ac_exeext
21646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
vlm8f3eb992004-06-17 23:42:48 +000021647 (eval $ac_link) 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021648 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021649 grep -v '^ *+' conftest.er1 >conftest.err
21650 rm -f conftest.er1
21651 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
vlm8f3eb992004-06-17 23:42:48 +000021654 { ac_try='test -z "$ac_c_werror_flag"
21655 || test ! -s conftest.err'
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21658 ac_status=$?
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; } &&
21661 { ac_try='test -s conftest$ac_exeext'
vlmfa67ddc2004-06-03 03:38:44 +000021662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 eval "$as_ac_var=yes"
21668else
21669 echo "$as_me: failed program was:" >&5
21670sed 's/^/| /' conftest.$ac_ext >&5
21671
21672eval "$as_ac_var=no"
21673fi
vlm8f3eb992004-06-17 23:42:48 +000021674rm -f conftest.err conftest.$ac_objext \
21675 conftest$ac_exeext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021676fi
21677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21679if test `eval echo '${'$as_ac_var'}'` = yes; then
21680 cat >>confdefs.h <<_ACEOF
21681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21682_ACEOF
21683
21684fi
21685done
21686
21687
vlmb1d783b2004-06-28 21:22:35 +000021688for ac_func in mergesort
21689do
21690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21691echo "$as_me:$LINENO: checking for $ac_func" >&5
21692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21693if eval "test \"\${$as_ac_var+set}\" = set"; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21695else
21696 cat >conftest.$ac_ext <<_ACEOF
21697/* confdefs.h. */
21698_ACEOF
21699cat confdefs.h >>conftest.$ac_ext
21700cat >>conftest.$ac_ext <<_ACEOF
21701/* end confdefs.h. */
21702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21704#define $ac_func innocuous_$ac_func
21705
21706/* System header to define __stub macros and hopefully few prototypes,
21707 which can conflict with char $ac_func (); below.
21708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21709 <limits.h> exists even on freestanding compilers. */
21710
21711#ifdef __STDC__
21712# include <limits.h>
21713#else
21714# include <assert.h>
21715#endif
21716
21717#undef $ac_func
21718
21719/* Override any gcc2 internal prototype to avoid an error. */
21720#ifdef __cplusplus
21721extern "C"
21722{
21723#endif
21724/* We use char because int might match the return type of a gcc2
21725 builtin and then its argument prototype would still apply. */
21726char $ac_func ();
21727/* The GNU C library defines this for functions which it implements
21728 to always fail with ENOSYS. Some functions are actually named
21729 something starting with __ and the normal name is an alias. */
21730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21731choke me
21732#else
21733char (*f) () = $ac_func;
21734#endif
21735#ifdef __cplusplus
21736}
21737#endif
21738
21739int
21740main ()
21741{
21742return f != $ac_func;
21743 ;
21744 return 0;
21745}
21746_ACEOF
21747rm -f conftest.$ac_objext conftest$ac_exeext
21748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21749 (eval $ac_link) 2>conftest.er1
21750 ac_status=$?
21751 grep -v '^ *+' conftest.er1 >conftest.err
21752 rm -f conftest.er1
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } &&
21756 { ac_try='test -z "$ac_c_werror_flag"
21757 || test ! -s conftest.err'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; } &&
21763 { ac_try='test -s conftest$ac_exeext'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21769 eval "$as_ac_var=yes"
21770else
21771 echo "$as_me: failed program was:" >&5
21772sed 's/^/| /' conftest.$ac_ext >&5
21773
21774eval "$as_ac_var=no"
21775fi
21776rm -f conftest.err conftest.$ac_objext \
21777 conftest$ac_exeext conftest.$ac_ext
21778fi
21779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21780echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21781if test `eval echo '${'$as_ac_var'}'` = yes; then
21782 cat >>confdefs.h <<_ACEOF
21783#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21784_ACEOF
21785
21786fi
21787done
21788
21789
vlm8f3eb992004-06-17 23:42:48 +000021790 ac_config_headers="$ac_config_headers config.h"
vlmfa67ddc2004-06-03 03:38:44 +000021791
21792
vlm04bddd42006-03-06 11:33:39 +000021793 ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/webcgi/Makefile asn1c/tests/Makefile libasn1fix/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
vlmfa67ddc2004-06-03 03:38:44 +000021794cat >confcache <<\_ACEOF
21795# This file is a shell script that caches the results of configure
21796# tests run on this system so they can be shared between configure
21797# scripts and configure runs, see configure's option --config-cache.
21798# It is not useful on other systems. If it contains results you don't
21799# want to keep, you may remove or edit it.
21800#
21801# config.status only pays attention to the cache file if you give it
21802# the --recheck option to rerun configure.
21803#
21804# `ac_cv_env_foo' variables (set or unset) will be overridden when
21805# loading this file, other *unset* `ac_cv_foo' will be assigned the
21806# following values.
21807
21808_ACEOF
21809
21810# The following way of writing the cache mishandles newlines in values,
21811# but we know of no workaround that is simple, portable, and efficient.
21812# So, don't put newlines in cache variables' values.
21813# Ultrix sh set writes to stderr and can't be redirected directly,
21814# and sets the high bit in the cache file unless we assign to the vars.
21815{
21816 (set) 2>&1 |
21817 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21818 *ac_space=\ *)
21819 # `set' does not quote correctly, so add quotes (double-quote
21820 # substitution turns \\\\ into \\, and sed turns \\ into \).
21821 sed -n \
vlm8f3eb992004-06-17 23:42:48 +000021822 "s/'/'\\\\''/g;
21823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
vlmfa67ddc2004-06-03 03:38:44 +000021824 ;;
21825 *)
21826 # `set' quotes correctly as required by POSIX, so do not add quotes.
21827 sed -n \
vlm8f3eb992004-06-17 23:42:48 +000021828 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
vlmfa67ddc2004-06-03 03:38:44 +000021829 ;;
21830 esac;
21831} |
21832 sed '
21833 t clear
21834 : clear
21835 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21836 t end
21837 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21838 : end' >>confcache
21839if diff $cache_file confcache >/dev/null 2>&1; then :; else
21840 if test -w $cache_file; then
21841 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21842 cat confcache >$cache_file
21843 else
21844 echo "not updating unwritable cache $cache_file"
21845 fi
21846fi
21847rm -f confcache
21848
21849test "x$prefix" = xNONE && prefix=$ac_default_prefix
21850# Let make expand exec_prefix.
21851test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21852
21853# VPATH may cause trouble with some makes, so we remove $(srcdir),
21854# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21855# trailing colons and then remove the whole line if VPATH becomes empty
21856# (actually we leave an empty line to preserve line numbers).
21857if test "x$srcdir" = x.; then
vlm8f3eb992004-06-17 23:42:48 +000021858 ac_vpsub='/^[ ]*VPATH[ ]*=/{
vlmfa67ddc2004-06-03 03:38:44 +000021859s/:*\$(srcdir):*/:/;
21860s/:*\${srcdir}:*/:/;
21861s/:*@srcdir@:*/:/;
vlm8f3eb992004-06-17 23:42:48 +000021862s/^\([^=]*=[ ]*\):*/\1/;
vlmfa67ddc2004-06-03 03:38:44 +000021863s/:*$//;
vlm8f3eb992004-06-17 23:42:48 +000021864s/^[^=]*=[ ]*$//;
vlmfa67ddc2004-06-03 03:38:44 +000021865}'
21866fi
21867
21868DEFS=-DHAVE_CONFIG_H
21869
21870ac_libobjs=
21871ac_ltlibobjs=
21872for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21873 # 1. Remove the extension, and $U if already installed.
21874 ac_i=`echo "$ac_i" |
vlm8f3eb992004-06-17 23:42:48 +000021875 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
vlmfa67ddc2004-06-03 03:38:44 +000021876 # 2. Add them.
21877 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21878 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21879done
21880LIBOBJS=$ac_libobjs
21881
21882LTLIBOBJS=$ac_ltlibobjs
21883
21884
vlm8f3eb992004-06-17 23:42:48 +000021885if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21886 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21887Usually this means the macro was only invoked conditionally." >&5
21888echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21889Usually this means the macro was only invoked conditionally." >&2;}
21890 { (exit 1); exit 1; }; }
21891fi
21892if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21893 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21894Usually this means the macro was only invoked conditionally." >&5
21895echo "$as_me: error: conditional \"AMDEP\" was never defined.
21896Usually this means the macro was only invoked conditionally." >&2;}
21897 { (exit 1); exit 1; }; }
21898fi
21899if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21900 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21901Usually this means the macro was only invoked conditionally." >&5
21902echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21903Usually this means the macro was only invoked conditionally." >&2;}
21904 { (exit 1); exit 1; }; }
21905fi
21906if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21907 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21908Usually this means the macro was only invoked conditionally." >&5
21909echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21910Usually this means the macro was only invoked conditionally." >&2;}
21911 { (exit 1); exit 1; }; }
21912fi
21913if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21914 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21915Usually this means the macro was only invoked conditionally." >&5
21916echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21917Usually this means the macro was only invoked conditionally." >&2;}
21918 { (exit 1); exit 1; }; }
21919fi
vlmfa67ddc2004-06-03 03:38:44 +000021920
21921: ${CONFIG_STATUS=./config.status}
21922ac_clean_files_save=$ac_clean_files
21923ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21924{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21925echo "$as_me: creating $CONFIG_STATUS" >&6;}
21926cat >$CONFIG_STATUS <<_ACEOF
21927#! $SHELL
21928# Generated by $as_me.
21929# Run this file to recreate the current configuration.
21930# Compiler output produced by configure, useful for debugging
21931# configure, is in config.log if it exists.
21932
21933debug=false
21934ac_cs_recheck=false
21935ac_cs_silent=false
21936SHELL=\${CONFIG_SHELL-$SHELL}
21937_ACEOF
21938
21939cat >>$CONFIG_STATUS <<\_ACEOF
21940## --------------------- ##
21941## M4sh Initialization. ##
21942## --------------------- ##
21943
21944# Be Bourne compatible
21945if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21946 emulate sh
21947 NULLCMD=:
21948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21949 # is contrary to our usage. Disable this feature.
21950 alias -g '${1+"$@"}'='"$@"'
21951elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21952 set -o posix
21953fi
vlm8f3eb992004-06-17 23:42:48 +000021954DUALCASE=1; export DUALCASE # for MKS sh
vlmfa67ddc2004-06-03 03:38:44 +000021955
21956# Support unset when possible.
vlm8f3eb992004-06-17 23:42:48 +000021957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
vlmfa67ddc2004-06-03 03:38:44 +000021958 as_unset=unset
21959else
21960 as_unset=false
21961fi
21962
21963
21964# Work around bugs in pre-3.0 UWIN ksh.
21965$as_unset ENV MAIL MAILPATH
21966PS1='$ '
21967PS2='> '
21968PS4='+ '
21969
21970# NLS nuisances.
21971for as_var in \
21972 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21973 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21974 LC_TELEPHONE LC_TIME
21975do
vlm8f3eb992004-06-17 23:42:48 +000021976 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
vlmfa67ddc2004-06-03 03:38:44 +000021977 eval $as_var=C; export $as_var
21978 else
21979 $as_unset $as_var
21980 fi
21981done
21982
21983# Required to use basename.
21984if expr a : '\(a\)' >/dev/null 2>&1; then
21985 as_expr=expr
21986else
21987 as_expr=false
21988fi
21989
21990if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21991 as_basename=basename
21992else
21993 as_basename=false
21994fi
21995
21996
21997# Name of the executable.
21998as_me=`$as_basename "$0" ||
21999$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22000 X"$0" : 'X\(//\)$' \| \
22001 X"$0" : 'X\(/\)$' \| \
22002 . : '\(.\)' 2>/dev/null ||
22003echo X/"$0" |
22004 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22005 /^X\/\(\/\/\)$/{ s//\1/; q; }
22006 /^X\/\(\/\).*/{ s//\1/; q; }
22007 s/.*/./; q'`
22008
22009
22010# PATH needs CR, and LINENO needs CR and PATH.
22011# Avoid depending upon Character Ranges.
22012as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22013as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22014as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22015as_cr_digits='0123456789'
22016as_cr_alnum=$as_cr_Letters$as_cr_digits
22017
22018# The user is always right.
22019if test "${PATH_SEPARATOR+set}" != set; then
22020 echo "#! /bin/sh" >conf$$.sh
22021 echo "exit 0" >>conf$$.sh
22022 chmod +x conf$$.sh
22023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22024 PATH_SEPARATOR=';'
22025 else
22026 PATH_SEPARATOR=:
22027 fi
22028 rm -f conf$$.sh
22029fi
22030
22031
22032 as_lineno_1=$LINENO
22033 as_lineno_2=$LINENO
22034 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22035 test "x$as_lineno_1" != "x$as_lineno_2" &&
22036 test "x$as_lineno_3" = "x$as_lineno_2" || {
22037 # Find who we are. Look in the path if we contain no path at all
22038 # relative or not.
22039 case $0 in
22040 *[\\/]* ) as_myself=$0 ;;
22041 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22042for as_dir in $PATH
22043do
22044 IFS=$as_save_IFS
22045 test -z "$as_dir" && as_dir=.
22046 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22047done
22048
22049 ;;
22050 esac
22051 # We did not find ourselves, most probably we were run as `sh COMMAND'
22052 # in which case we are not to be found in the path.
22053 if test "x$as_myself" = x; then
22054 as_myself=$0
22055 fi
22056 if test ! -f "$as_myself"; then
22057 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22058echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22059 { (exit 1); exit 1; }; }
22060 fi
22061 case $CONFIG_SHELL in
22062 '')
22063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22064for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22065do
22066 IFS=$as_save_IFS
22067 test -z "$as_dir" && as_dir=.
22068 for as_base in sh bash ksh sh5; do
22069 case $as_dir in
22070 /*)
22071 if ("$as_dir/$as_base" -c '
22072 as_lineno_1=$LINENO
22073 as_lineno_2=$LINENO
22074 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22075 test "x$as_lineno_1" != "x$as_lineno_2" &&
22076 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22077 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22078 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22079 CONFIG_SHELL=$as_dir/$as_base
22080 export CONFIG_SHELL
22081 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22082 fi;;
22083 esac
22084 done
22085done
22086;;
22087 esac
22088
22089 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22090 # uniformly replaced by the line number. The first 'sed' inserts a
22091 # line-number line before each line; the second 'sed' does the real
22092 # work. The second script uses 'N' to pair each line-number line
22093 # with the numbered line, and appends trailing '-' during
22094 # substitution so that $LINENO is not a special case at line end.
22095 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22096 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22097 sed '=' <$as_myself |
22098 sed '
22099 N
22100 s,$,-,
22101 : loop
22102 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22103 t loop
22104 s,-$,,
22105 s,^['$as_cr_digits']*\n,,
22106 ' >$as_me.lineno &&
22107 chmod +x $as_me.lineno ||
22108 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22109echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22110 { (exit 1); exit 1; }; }
22111
22112 # Don't try to exec as it changes $[0], causing all sort of problems
22113 # (the dirname of $[0] is not the place where we might find the
22114 # original and so on. Autoconf is especially sensible to this).
22115 . ./$as_me.lineno
22116 # Exit status is that of the last command.
22117 exit
22118}
22119
22120
22121case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22122 *c*,-n*) ECHO_N= ECHO_C='
22123' ECHO_T=' ' ;;
22124 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22125 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22126esac
22127
22128if expr a : '\(a\)' >/dev/null 2>&1; then
22129 as_expr=expr
22130else
22131 as_expr=false
22132fi
22133
22134rm -f conf$$ conf$$.exe conf$$.file
22135echo >conf$$.file
22136if ln -s conf$$.file conf$$ 2>/dev/null; then
22137 # We could just check for DJGPP; but this test a) works b) is more generic
22138 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22139 if test -f conf$$.exe; then
22140 # Don't use ln at all; we don't have any links
22141 as_ln_s='cp -p'
22142 else
22143 as_ln_s='ln -s'
22144 fi
22145elif ln conf$$.file conf$$ 2>/dev/null; then
22146 as_ln_s=ln
22147else
22148 as_ln_s='cp -p'
22149fi
22150rm -f conf$$ conf$$.exe conf$$.file
22151
22152if mkdir -p . 2>/dev/null; then
22153 as_mkdir_p=:
22154else
vlm8f3eb992004-06-17 23:42:48 +000022155 test -d ./-p && rmdir ./-p
vlmfa67ddc2004-06-03 03:38:44 +000022156 as_mkdir_p=false
22157fi
22158
22159as_executable_p="test -f"
22160
22161# Sed expression to map a string onto a valid CPP name.
vlm8f3eb992004-06-17 23:42:48 +000022162as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
vlmfa67ddc2004-06-03 03:38:44 +000022163
22164# Sed expression to map a string onto a valid variable name.
vlm8f3eb992004-06-17 23:42:48 +000022165as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
vlmfa67ddc2004-06-03 03:38:44 +000022166
22167
22168# IFS
22169# We need space, tab and new line, in precisely that order.
22170as_nl='
22171'
22172IFS=" $as_nl"
22173
22174# CDPATH.
22175$as_unset CDPATH
22176
22177exec 6>&1
22178
22179# Open the log real soon, to keep \$[0] and so on meaningful, and to
22180# report actual input values of CONFIG_FILES etc. instead of their
22181# values after options handling. Logging --version etc. is OK.
22182exec 5>>config.log
22183{
22184 echo
22185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22186## Running $as_me. ##
22187_ASBOX
22188} >&5
22189cat >&5 <<_CSEOF
22190
22191This file was extended by $as_me, which was
vlm8f3eb992004-06-17 23:42:48 +000022192generated by GNU Autoconf 2.59. Invocation command line was
vlmfa67ddc2004-06-03 03:38:44 +000022193
22194 CONFIG_FILES = $CONFIG_FILES
22195 CONFIG_HEADERS = $CONFIG_HEADERS
22196 CONFIG_LINKS = $CONFIG_LINKS
22197 CONFIG_COMMANDS = $CONFIG_COMMANDS
22198 $ $0 $@
22199
22200_CSEOF
22201echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22202echo >&5
22203_ACEOF
22204
22205# Files that config.status was made for.
22206if test -n "$ac_config_files"; then
22207 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22208fi
22209
22210if test -n "$ac_config_headers"; then
22211 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22212fi
22213
22214if test -n "$ac_config_links"; then
22215 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22216fi
22217
22218if test -n "$ac_config_commands"; then
22219 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22220fi
22221
22222cat >>$CONFIG_STATUS <<\_ACEOF
22223
22224ac_cs_usage="\
22225\`$as_me' instantiates files from templates according to the
22226current configuration.
22227
22228Usage: $0 [OPTIONS] [FILE]...
22229
22230 -h, --help print this help, then exit
22231 -V, --version print version number, then exit
22232 -q, --quiet do not print progress messages
22233 -d, --debug don't remove temporary files
22234 --recheck update $as_me by reconfiguring in the same conditions
22235 --file=FILE[:TEMPLATE]
vlm8f3eb992004-06-17 23:42:48 +000022236 instantiate the configuration file FILE
vlmfa67ddc2004-06-03 03:38:44 +000022237 --header=FILE[:TEMPLATE]
vlm8f3eb992004-06-17 23:42:48 +000022238 instantiate the configuration header FILE
vlmfa67ddc2004-06-03 03:38:44 +000022239
22240Configuration files:
22241$config_files
22242
22243Configuration headers:
22244$config_headers
22245
22246Configuration commands:
22247$config_commands
22248
22249Report bugs to <bug-autoconf@gnu.org>."
22250_ACEOF
22251
22252cat >>$CONFIG_STATUS <<_ACEOF
22253ac_cs_version="\\
22254config.status
vlm8f3eb992004-06-17 23:42:48 +000022255configured by $0, generated by GNU Autoconf 2.59,
vlmfa67ddc2004-06-03 03:38:44 +000022256 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22257
vlm8f3eb992004-06-17 23:42:48 +000022258Copyright (C) 2003 Free Software Foundation, Inc.
vlmfa67ddc2004-06-03 03:38:44 +000022259This config.status script is free software; the Free Software Foundation
22260gives unlimited permission to copy, distribute and modify it."
22261srcdir=$srcdir
22262INSTALL="$INSTALL"
22263_ACEOF
22264
22265cat >>$CONFIG_STATUS <<\_ACEOF
22266# If no file are specified by the user, then we need to provide default
22267# value. By we need to know if files were specified by the user.
22268ac_need_defaults=:
22269while test $# != 0
22270do
22271 case $1 in
22272 --*=*)
22273 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22274 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22275 ac_shift=:
22276 ;;
22277 -*)
22278 ac_option=$1
22279 ac_optarg=$2
22280 ac_shift=shift
22281 ;;
22282 *) # This is not an option, so the user has probably given explicit
22283 # arguments.
22284 ac_option=$1
22285 ac_need_defaults=false;;
22286 esac
22287
22288 case $ac_option in
22289 # Handling of the options.
22290_ACEOF
22291cat >>$CONFIG_STATUS <<\_ACEOF
22292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22293 ac_cs_recheck=: ;;
22294 --version | --vers* | -V )
22295 echo "$ac_cs_version"; exit 0 ;;
22296 --he | --h)
22297 # Conflict between --help and --header
22298 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22299Try \`$0 --help' for more information." >&5
22300echo "$as_me: error: ambiguous option: $1
22301Try \`$0 --help' for more information." >&2;}
22302 { (exit 1); exit 1; }; };;
22303 --help | --hel | -h )
22304 echo "$ac_cs_usage"; exit 0 ;;
22305 --debug | --d* | -d )
22306 debug=: ;;
22307 --file | --fil | --fi | --f )
22308 $ac_shift
22309 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22310 ac_need_defaults=false;;
22311 --header | --heade | --head | --hea )
22312 $ac_shift
22313 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22314 ac_need_defaults=false;;
22315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22316 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22317 ac_cs_silent=: ;;
22318
22319 # This is an error.
22320 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22321Try \`$0 --help' for more information." >&5
22322echo "$as_me: error: unrecognized option: $1
22323Try \`$0 --help' for more information." >&2;}
22324 { (exit 1); exit 1; }; } ;;
22325
22326 *) ac_config_targets="$ac_config_targets $1" ;;
22327
22328 esac
22329 shift
22330done
22331
22332ac_configure_extra_args=
22333
22334if $ac_cs_silent; then
22335 exec 6>/dev/null
22336 ac_configure_extra_args="$ac_configure_extra_args --silent"
22337fi
22338
22339_ACEOF
22340cat >>$CONFIG_STATUS <<_ACEOF
22341if \$ac_cs_recheck; then
22342 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22343 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22344fi
22345
22346_ACEOF
22347
22348cat >>$CONFIG_STATUS <<_ACEOF
22349#
22350# INIT-COMMANDS section.
22351#
22352
vlm8f3eb992004-06-17 23:42:48 +000022353AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
vlmfa67ddc2004-06-03 03:38:44 +000022354
22355_ACEOF
22356
22357
22358
22359cat >>$CONFIG_STATUS <<\_ACEOF
22360for ac_config_target in $ac_config_targets
22361do
22362 case "$ac_config_target" in
22363 # Handling of arguments.
vlm04bddd42006-03-06 11:33:39 +000022364 "skeletons/standard-modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
vlmfa67ddc2004-06-03 03:38:44 +000022365 "skeletons/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
vlm769bab92004-09-07 06:31:41 +000022366 "libasn1compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
vlmfa67ddc2004-06-03 03:38:44 +000022367 "libasn1parser/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
22368 "libasn1print/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
vlme43659a2004-09-19 19:40:52 +000022369 "asn1c/webcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;;
vlmfa67ddc2004-06-03 03:38:44 +000022370 "asn1c/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
22371 "libasn1fix/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
22372 "skeletons/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
22373 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22374 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22375 "asn1c/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
22376 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
vlme43659a2004-09-19 19:40:52 +000022377 "asn1c.spec" ) CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
vlmfa67ddc2004-06-03 03:38:44 +000022378 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
vlm8f3eb992004-06-17 23:42:48 +000022379 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
vlmfa67ddc2004-06-03 03:38:44 +000022380 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22381 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22382echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22383 { (exit 1); exit 1; }; };;
22384 esac
22385done
22386
22387# If the user did not use the arguments to specify the items to instantiate,
22388# then the envvar interface is used. Set only those that are not.
22389# We use the long form for the default assignment because of an extremely
22390# bizarre bug on SunOS 4.1.3.
22391if $ac_need_defaults; then
22392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22395fi
22396
22397# Have a temporary directory for convenience. Make it in the build tree
22398# simply because there is no reason to put it here, and in addition,
22399# creating and moving files from /tmp can sometimes cause problems.
22400# Create a temporary directory, and hook for its removal unless debugging.
22401$debug ||
22402{
22403 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22404 trap '{ (exit 1); exit 1; }' 1 2 13 15
22405}
22406
22407# Create a (secure) tmp directory for tmp files.
22408
22409{
22410 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22411 test -n "$tmp" && test -d "$tmp"
22412} ||
22413{
22414 tmp=./confstat$$-$RANDOM
22415 (umask 077 && mkdir $tmp)
22416} ||
22417{
22418 echo "$me: cannot create a temporary directory in ." >&2
22419 { (exit 1); exit 1; }
22420}
22421
22422_ACEOF
22423
22424cat >>$CONFIG_STATUS <<_ACEOF
22425
22426#
22427# CONFIG_FILES section.
22428#
22429
22430# No need to generate the scripts if there are no CONFIG_FILES.
22431# This happens for instance when ./config.status config.h
22432if test -n "\$CONFIG_FILES"; then
22433 # Protect against being on the right side of a sed subst in config.status.
22434 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22435 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22436s,@SHELL@,$SHELL,;t t
22437s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22438s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22439s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22440s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22441s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22442s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22443s,@exec_prefix@,$exec_prefix,;t t
22444s,@prefix@,$prefix,;t t
22445s,@program_transform_name@,$program_transform_name,;t t
22446s,@bindir@,$bindir,;t t
22447s,@sbindir@,$sbindir,;t t
22448s,@libexecdir@,$libexecdir,;t t
22449s,@datadir@,$datadir,;t t
22450s,@sysconfdir@,$sysconfdir,;t t
22451s,@sharedstatedir@,$sharedstatedir,;t t
22452s,@localstatedir@,$localstatedir,;t t
22453s,@libdir@,$libdir,;t t
22454s,@includedir@,$includedir,;t t
22455s,@oldincludedir@,$oldincludedir,;t t
22456s,@infodir@,$infodir,;t t
22457s,@mandir@,$mandir,;t t
22458s,@build_alias@,$build_alias,;t t
22459s,@host_alias@,$host_alias,;t t
22460s,@target_alias@,$target_alias,;t t
22461s,@DEFS@,$DEFS,;t t
22462s,@ECHO_C@,$ECHO_C,;t t
22463s,@ECHO_N@,$ECHO_N,;t t
22464s,@ECHO_T@,$ECHO_T,;t t
22465s,@LIBS@,$LIBS,;t t
22466s,@build@,$build,;t t
22467s,@build_cpu@,$build_cpu,;t t
22468s,@build_vendor@,$build_vendor,;t t
22469s,@build_os@,$build_os,;t t
22470s,@host@,$host,;t t
22471s,@host_cpu@,$host_cpu,;t t
22472s,@host_vendor@,$host_vendor,;t t
22473s,@host_os@,$host_os,;t t
22474s,@target@,$target,;t t
22475s,@target_cpu@,$target_cpu,;t t
22476s,@target_vendor@,$target_vendor,;t t
22477s,@target_os@,$target_os,;t t
22478s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22479s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22480s,@INSTALL_DATA@,$INSTALL_DATA,;t t
vlm8f3eb992004-06-17 23:42:48 +000022481s,@CYGPATH_W@,$CYGPATH_W,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022482s,@PACKAGE@,$PACKAGE,;t t
22483s,@VERSION@,$VERSION,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022484s,@ACLOCAL@,$ACLOCAL,;t t
22485s,@AUTOCONF@,$AUTOCONF,;t t
22486s,@AUTOMAKE@,$AUTOMAKE,;t t
22487s,@AUTOHEADER@,$AUTOHEADER,;t t
22488s,@MAKEINFO@,$MAKEINFO,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022489s,@install_sh@,$install_sh,;t t
vlm8f3eb992004-06-17 23:42:48 +000022490s,@STRIP@,$STRIP,;t t
22491s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022492s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
vlm8f3eb992004-06-17 23:42:48 +000022493s,@mkdir_p@,$mkdir_p,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022494s,@AWK@,$AWK,;t t
22495s,@SET_MAKE@,$SET_MAKE,;t t
vlm8f3eb992004-06-17 23:42:48 +000022496s,@am__leading_dot@,$am__leading_dot,;t t
vlm1fcf7592006-08-18 02:27:55 +000022497s,@AMTAR@,$AMTAR,;t t
22498s,@am__tar@,$am__tar,;t t
22499s,@am__untar@,$am__untar,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022500s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22501s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22502s,@MAINT@,$MAINT,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022503s,@CC@,$CC,;t t
22504s,@CFLAGS@,$CFLAGS,;t t
22505s,@LDFLAGS@,$LDFLAGS,;t t
22506s,@CPPFLAGS@,$CPPFLAGS,;t t
22507s,@ac_ct_CC@,$ac_ct_CC,;t t
vlm8f3eb992004-06-17 23:42:48 +000022508s,@EXEEXT@,$EXEEXT,;t t
22509s,@OBJEXT@,$OBJEXT,;t t
22510s,@DEPDIR@,$DEPDIR,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022511s,@am__include@,$am__include,;t t
22512s,@am__quote@,$am__quote,;t t
vlm8f3eb992004-06-17 23:42:48 +000022513s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22514s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22515s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022516s,@CCDEPMODE@,$CCDEPMODE,;t t
vlm8f3eb992004-06-17 23:42:48 +000022517s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22518s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22519s,@EGREP@,$EGREP,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022520s,@LN_S@,$LN_S,;t t
vlm8f3eb992004-06-17 23:42:48 +000022521s,@ECHO@,$ECHO,;t t
22522s,@AR@,$AR,;t t
22523s,@ac_ct_AR@,$ac_ct_AR,;t t
22524s,@RANLIB@,$RANLIB,;t t
22525s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22526s,@CPP@,$CPP,;t t
22527s,@CXX@,$CXX,;t t
22528s,@CXXFLAGS@,$CXXFLAGS,;t t
22529s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22530s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22531s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22532s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22533s,@CXXCPP@,$CXXCPP,;t t
22534s,@F77@,$F77,;t t
22535s,@FFLAGS@,$FFLAGS,;t t
22536s,@ac_ct_F77@,$ac_ct_F77,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022537s,@LIBTOOL@,$LIBTOOL,;t t
22538s,@CONFIGURE_DEPENDS@,$CONFIGURE_DEPENDS,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022539s,@YACC@,$YACC,;t t
22540s,@LEX@,$LEX,;t t
22541s,@LEXLIB@,$LEXLIB,;t t
22542s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022543s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
vlmfa67ddc2004-06-03 03:38:44 +000022544s,@LIBOBJS@,$LIBOBJS,;t t
22545s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22546CEOF
22547
22548_ACEOF
22549
22550 cat >>$CONFIG_STATUS <<\_ACEOF
22551 # Split the substitutions into bite-sized pieces for seds with
22552 # small command number limits, like on Digital OSF/1 and HP-UX.
22553 ac_max_sed_lines=48
22554 ac_sed_frag=1 # Number of current file.
22555 ac_beg=1 # First line for current file.
22556 ac_end=$ac_max_sed_lines # Line after last line for current file.
22557 ac_more_lines=:
22558 ac_sed_cmds=
22559 while $ac_more_lines; do
22560 if test $ac_beg -gt 1; then
22561 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22562 else
22563 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22564 fi
22565 if test ! -s $tmp/subs.frag; then
22566 ac_more_lines=false
22567 else
22568 # The purpose of the label and of the branching condition is to
22569 # speed up the sed processing (if there are no `@' at all, there
22570 # is no need to browse any of the substitutions).
22571 # These are the two extra sed commands mentioned above.
22572 (echo ':t
22573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22574 if test -z "$ac_sed_cmds"; then
vlm8f3eb992004-06-17 23:42:48 +000022575 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
vlmfa67ddc2004-06-03 03:38:44 +000022576 else
vlm8f3eb992004-06-17 23:42:48 +000022577 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
vlmfa67ddc2004-06-03 03:38:44 +000022578 fi
22579 ac_sed_frag=`expr $ac_sed_frag + 1`
22580 ac_beg=$ac_end
22581 ac_end=`expr $ac_end + $ac_max_sed_lines`
22582 fi
22583 done
22584 if test -z "$ac_sed_cmds"; then
22585 ac_sed_cmds=cat
22586 fi
22587fi # test -n "$CONFIG_FILES"
22588
22589_ACEOF
22590cat >>$CONFIG_STATUS <<\_ACEOF
22591for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22593 case $ac_file in
22594 - | *:- | *:-:* ) # input from stdin
vlm8f3eb992004-06-17 23:42:48 +000022595 cat >$tmp/stdin
22596 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22597 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
vlmfa67ddc2004-06-03 03:38:44 +000022598 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
vlm8f3eb992004-06-17 23:42:48 +000022599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
vlmfa67ddc2004-06-03 03:38:44 +000022600 * ) ac_file_in=$ac_file.in ;;
22601 esac
22602
22603 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22604 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22605$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +000022606 X"$ac_file" : 'X\(//\)[^/]' \| \
22607 X"$ac_file" : 'X\(//\)$' \| \
22608 X"$ac_file" : 'X\(/\)' \| \
22609 . : '\(.\)' 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +000022610echo X"$ac_file" |
22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613 /^X\(\/\/\)$/{ s//\1/; q; }
22614 /^X\(\/\).*/{ s//\1/; q; }
22615 s/.*/./; q'`
22616 { if $as_mkdir_p; then
22617 mkdir -p "$ac_dir"
22618 else
22619 as_dir="$ac_dir"
22620 as_dirs=
22621 while test ! -d "$as_dir"; do
22622 as_dirs="$as_dir $as_dirs"
22623 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22624$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +000022625 X"$as_dir" : 'X\(//\)[^/]' \| \
22626 X"$as_dir" : 'X\(//\)$' \| \
22627 X"$as_dir" : 'X\(/\)' \| \
22628 . : '\(.\)' 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +000022629echo X"$as_dir" |
22630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22632 /^X\(\/\/\)$/{ s//\1/; q; }
22633 /^X\(\/\).*/{ s//\1/; q; }
22634 s/.*/./; q'`
22635 done
22636 test ! -n "$as_dirs" || mkdir $as_dirs
22637 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22638echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22639 { (exit 1); exit 1; }; }; }
22640
22641 ac_builddir=.
22642
22643if test "$ac_dir" != .; then
22644 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22645 # A "../" for each directory in $ac_dir_suffix.
22646 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22647else
22648 ac_dir_suffix= ac_top_builddir=
22649fi
22650
22651case $srcdir in
22652 .) # No --srcdir option. We are building in place.
22653 ac_srcdir=.
22654 if test -z "$ac_top_builddir"; then
22655 ac_top_srcdir=.
22656 else
22657 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22658 fi ;;
22659 [\\/]* | ?:[\\/]* ) # Absolute path.
22660 ac_srcdir=$srcdir$ac_dir_suffix;
22661 ac_top_srcdir=$srcdir ;;
22662 *) # Relative path.
22663 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22664 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22665esac
vlm8f3eb992004-06-17 23:42:48 +000022666
22667# Do not use `cd foo && pwd` to compute absolute paths, because
22668# the directories may not exist.
22669case `pwd` in
22670.) ac_abs_builddir="$ac_dir";;
22671*)
22672 case "$ac_dir" in
22673 .) ac_abs_builddir=`pwd`;;
22674 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22675 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22676 esac;;
22677esac
22678case $ac_abs_builddir in
22679.) ac_abs_top_builddir=${ac_top_builddir}.;;
22680*)
22681 case ${ac_top_builddir}. in
22682 .) ac_abs_top_builddir=$ac_abs_builddir;;
22683 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22684 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22685 esac;;
22686esac
22687case $ac_abs_builddir in
22688.) ac_abs_srcdir=$ac_srcdir;;
22689*)
22690 case $ac_srcdir in
22691 .) ac_abs_srcdir=$ac_abs_builddir;;
22692 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22693 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22694 esac;;
22695esac
22696case $ac_abs_builddir in
22697.) ac_abs_top_srcdir=$ac_top_srcdir;;
22698*)
22699 case $ac_top_srcdir in
22700 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22701 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22702 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22703 esac;;
22704esac
vlmfa67ddc2004-06-03 03:38:44 +000022705
22706
22707 case $INSTALL in
22708 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22709 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22710 esac
22711
22712 if test x"$ac_file" != x-; then
22713 { echo "$as_me:$LINENO: creating $ac_file" >&5
22714echo "$as_me: creating $ac_file" >&6;}
22715 rm -f "$ac_file"
22716 fi
22717 # Let's still pretend it is `configure' which instantiates (i.e., don't
22718 # use $as_me), people would be surprised to read:
22719 # /* config.h. Generated by config.status. */
22720 if test x"$ac_file" = x-; then
22721 configure_input=
22722 else
22723 configure_input="$ac_file. "
22724 fi
22725 configure_input=$configure_input"Generated from `echo $ac_file_in |
vlm8f3eb992004-06-17 23:42:48 +000022726 sed 's,.*/,,'` by configure."
vlmfa67ddc2004-06-03 03:38:44 +000022727
22728 # First look for the input files in the build tree, otherwise in the
22729 # src tree.
22730 ac_file_inputs=`IFS=:
22731 for f in $ac_file_in; do
22732 case $f in
22733 -) echo $tmp/stdin ;;
22734 [\\/$]*)
vlm8f3eb992004-06-17 23:42:48 +000022735 # Absolute (can't be DOS-style, as IFS=:)
22736 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
vlmfa67ddc2004-06-03 03:38:44 +000022737echo "$as_me: error: cannot find input file: $f" >&2;}
22738 { (exit 1); exit 1; }; }
vlm8f3eb992004-06-17 23:42:48 +000022739 echo "$f";;
vlmfa67ddc2004-06-03 03:38:44 +000022740 *) # Relative
vlm8f3eb992004-06-17 23:42:48 +000022741 if test -f "$f"; then
22742 # Build tree
22743 echo "$f"
22744 elif test -f "$srcdir/$f"; then
22745 # Source tree
22746 echo "$srcdir/$f"
22747 else
22748 # /dev/null tree
22749 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
vlmfa67ddc2004-06-03 03:38:44 +000022750echo "$as_me: error: cannot find input file: $f" >&2;}
22751 { (exit 1); exit 1; }; }
vlm8f3eb992004-06-17 23:42:48 +000022752 fi;;
vlmfa67ddc2004-06-03 03:38:44 +000022753 esac
22754 done` || { (exit 1); exit 1; }
22755_ACEOF
22756cat >>$CONFIG_STATUS <<_ACEOF
22757 sed "$ac_vpsub
22758$extrasub
22759_ACEOF
22760cat >>$CONFIG_STATUS <<\_ACEOF
22761:t
22762/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22763s,@configure_input@,$configure_input,;t t
22764s,@srcdir@,$ac_srcdir,;t t
22765s,@abs_srcdir@,$ac_abs_srcdir,;t t
22766s,@top_srcdir@,$ac_top_srcdir,;t t
22767s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22768s,@builddir@,$ac_builddir,;t t
22769s,@abs_builddir@,$ac_abs_builddir,;t t
22770s,@top_builddir@,$ac_top_builddir,;t t
22771s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22772s,@INSTALL@,$ac_INSTALL,;t t
22773" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22774 rm -f $tmp/stdin
22775 if test x"$ac_file" != x-; then
22776 mv $tmp/out $ac_file
22777 else
22778 cat $tmp/out
22779 rm -f $tmp/out
22780 fi
22781
22782done
22783_ACEOF
22784cat >>$CONFIG_STATUS <<\_ACEOF
22785
22786#
22787# CONFIG_HEADER section.
22788#
22789
22790# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22791# NAME is the cpp macro being defined and VALUE is the value it is being given.
22792#
22793# ac_d sets the value in "#define NAME VALUE" lines.
vlm8f3eb992004-06-17 23:42:48 +000022794ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22795ac_dB='[ ].*$,\1#\2'
vlmfa67ddc2004-06-03 03:38:44 +000022796ac_dC=' '
22797ac_dD=',;t'
22798# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
vlm8f3eb992004-06-17 23:42:48 +000022799ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
vlmfa67ddc2004-06-03 03:38:44 +000022800ac_uB='$,\1#\2define\3'
22801ac_uC=' '
22802ac_uD=',;t'
22803
22804for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22806 case $ac_file in
22807 - | *:- | *:-:* ) # input from stdin
vlm8f3eb992004-06-17 23:42:48 +000022808 cat >$tmp/stdin
22809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
vlmfa67ddc2004-06-03 03:38:44 +000022811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
vlm8f3eb992004-06-17 23:42:48 +000022812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
vlmfa67ddc2004-06-03 03:38:44 +000022813 * ) ac_file_in=$ac_file.in ;;
22814 esac
22815
22816 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22817echo "$as_me: creating $ac_file" >&6;}
22818
22819 # First look for the input files in the build tree, otherwise in the
22820 # src tree.
22821 ac_file_inputs=`IFS=:
22822 for f in $ac_file_in; do
22823 case $f in
22824 -) echo $tmp/stdin ;;
22825 [\\/$]*)
vlm8f3eb992004-06-17 23:42:48 +000022826 # Absolute (can't be DOS-style, as IFS=:)
22827 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
vlmfa67ddc2004-06-03 03:38:44 +000022828echo "$as_me: error: cannot find input file: $f" >&2;}
22829 { (exit 1); exit 1; }; }
vlm8f3eb992004-06-17 23:42:48 +000022830 # Do quote $f, to prevent DOS paths from being IFS'd.
22831 echo "$f";;
vlmfa67ddc2004-06-03 03:38:44 +000022832 *) # Relative
vlm8f3eb992004-06-17 23:42:48 +000022833 if test -f "$f"; then
22834 # Build tree
22835 echo "$f"
22836 elif test -f "$srcdir/$f"; then
22837 # Source tree
22838 echo "$srcdir/$f"
22839 else
22840 # /dev/null tree
22841 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
vlmfa67ddc2004-06-03 03:38:44 +000022842echo "$as_me: error: cannot find input file: $f" >&2;}
22843 { (exit 1); exit 1; }; }
vlm8f3eb992004-06-17 23:42:48 +000022844 fi;;
vlmfa67ddc2004-06-03 03:38:44 +000022845 esac
22846 done` || { (exit 1); exit 1; }
22847 # Remove the trailing spaces.
vlm8f3eb992004-06-17 23:42:48 +000022848 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
vlmfa67ddc2004-06-03 03:38:44 +000022849
22850_ACEOF
22851
22852# Transform confdefs.h into two sed scripts, `conftest.defines' and
22853# `conftest.undefs', that substitutes the proper values into
22854# config.h.in to produce config.h. The first handles `#define'
22855# templates, and the second `#undef' templates.
22856# And first: Protect against being on the right side of a sed subst in
22857# config.status. Protect against being in an unquoted here document
22858# in config.status.
22859rm -f conftest.defines conftest.undefs
22860# Using a here document instead of a string reduces the quoting nightmare.
22861# Putting comments in sed scripts is not portable.
22862#
22863# `end' is used to avoid that the second main sed command (meant for
22864# 0-ary CPP macros) applies to n-ary macro definitions.
22865# See the Autoconf documentation for `clear'.
22866cat >confdef2sed.sed <<\_ACEOF
22867s/[\\&,]/\\&/g
22868s,[\\$`],\\&,g
22869t clear
22870: clear
vlm8f3eb992004-06-17 23:42:48 +000022871s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
vlmfa67ddc2004-06-03 03:38:44 +000022872t end
vlm8f3eb992004-06-17 23:42:48 +000022873s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
vlmfa67ddc2004-06-03 03:38:44 +000022874: end
22875_ACEOF
22876# If some macros were called several times there might be several times
22877# the same #defines, which is useless. Nevertheless, we may not want to
22878# sort them, since we want the *last* AC-DEFINE to be honored.
22879uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22880sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22881rm -f confdef2sed.sed
22882
22883# This sed command replaces #undef with comments. This is necessary, for
22884# example, in the case of _POSIX_SOURCE, which is predefined and required
22885# on some systems where configure will not decide to define it.
22886cat >>conftest.undefs <<\_ACEOF
vlm8f3eb992004-06-17 23:42:48 +000022887s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
vlmfa67ddc2004-06-03 03:38:44 +000022888_ACEOF
22889
22890# Break up conftest.defines because some shells have a limit on the size
22891# of here documents, and old seds have small limits too (100 cmds).
22892echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
vlm8f3eb992004-06-17 23:42:48 +000022893echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
vlmfa67ddc2004-06-03 03:38:44 +000022894echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22895echo ' :' >>$CONFIG_STATUS
22896rm -f conftest.tail
22897while grep . conftest.defines >/dev/null
22898do
22899 # Write a limited-size here document to $tmp/defines.sed.
22900 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22901 # Speed up: don't consider the non `#define' lines.
vlm8f3eb992004-06-17 23:42:48 +000022902 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
vlmfa67ddc2004-06-03 03:38:44 +000022903 # Work around the forget-to-reset-the-flag bug.
22904 echo 't clr' >>$CONFIG_STATUS
22905 echo ': clr' >>$CONFIG_STATUS
22906 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22907 echo 'CEOF
22908 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22909 rm -f $tmp/in
22910 mv $tmp/out $tmp/in
22911' >>$CONFIG_STATUS
22912 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22913 rm -f conftest.defines
22914 mv conftest.tail conftest.defines
22915done
22916rm -f conftest.defines
22917echo ' fi # grep' >>$CONFIG_STATUS
22918echo >>$CONFIG_STATUS
22919
22920# Break up conftest.undefs because some shells have a limit on the size
22921# of here documents, and old seds have small limits too (100 cmds).
22922echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22923rm -f conftest.tail
22924while grep . conftest.undefs >/dev/null
22925do
22926 # Write a limited-size here document to $tmp/undefs.sed.
22927 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22928 # Speed up: don't consider the non `#undef'
vlm8f3eb992004-06-17 23:42:48 +000022929 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
vlmfa67ddc2004-06-03 03:38:44 +000022930 # Work around the forget-to-reset-the-flag bug.
22931 echo 't clr' >>$CONFIG_STATUS
22932 echo ': clr' >>$CONFIG_STATUS
22933 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22934 echo 'CEOF
22935 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22936 rm -f $tmp/in
22937 mv $tmp/out $tmp/in
22938' >>$CONFIG_STATUS
22939 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22940 rm -f conftest.undefs
22941 mv conftest.tail conftest.undefs
22942done
22943rm -f conftest.undefs
22944
22945cat >>$CONFIG_STATUS <<\_ACEOF
22946 # Let's still pretend it is `configure' which instantiates (i.e., don't
22947 # use $as_me), people would be surprised to read:
22948 # /* config.h. Generated by config.status. */
22949 if test x"$ac_file" = x-; then
22950 echo "/* Generated by configure. */" >$tmp/config.h
22951 else
22952 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22953 fi
22954 cat $tmp/in >>$tmp/config.h
22955 rm -f $tmp/in
22956 if test x"$ac_file" != x-; then
22957 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22958 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22959echo "$as_me: $ac_file is unchanged" >&6;}
22960 else
22961 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22962$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +000022963 X"$ac_file" : 'X\(//\)[^/]' \| \
22964 X"$ac_file" : 'X\(//\)$' \| \
22965 X"$ac_file" : 'X\(/\)' \| \
22966 . : '\(.\)' 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +000022967echo X"$ac_file" |
22968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22970 /^X\(\/\/\)$/{ s//\1/; q; }
22971 /^X\(\/\).*/{ s//\1/; q; }
22972 s/.*/./; q'`
22973 { if $as_mkdir_p; then
22974 mkdir -p "$ac_dir"
22975 else
22976 as_dir="$ac_dir"
22977 as_dirs=
22978 while test ! -d "$as_dir"; do
22979 as_dirs="$as_dir $as_dirs"
22980 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22981$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +000022982 X"$as_dir" : 'X\(//\)[^/]' \| \
22983 X"$as_dir" : 'X\(//\)$' \| \
22984 X"$as_dir" : 'X\(/\)' \| \
22985 . : '\(.\)' 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +000022986echo X"$as_dir" |
22987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22989 /^X\(\/\/\)$/{ s//\1/; q; }
22990 /^X\(\/\).*/{ s//\1/; q; }
22991 s/.*/./; q'`
22992 done
22993 test ! -n "$as_dirs" || mkdir $as_dirs
22994 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22995echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22996 { (exit 1); exit 1; }; }; }
22997
22998 rm -f $ac_file
22999 mv $tmp/config.h $ac_file
23000 fi
23001 else
23002 cat $tmp/config.h
23003 rm -f $tmp/config.h
23004 fi
vlm8f3eb992004-06-17 23:42:48 +000023005# Compute $ac_file's index in $config_headers.
23006_am_stamp_count=1
23007for _am_header in $config_headers :; do
23008 case $_am_header in
23009 $ac_file | $ac_file:* )
23010 break ;;
23011 * )
23012 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
vlmfa67ddc2004-06-03 03:38:44 +000023013 esac
23014done
vlm8f3eb992004-06-17 23:42:48 +000023015echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23016$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23017 X$ac_file : 'X\(//\)[^/]' \| \
23018 X$ac_file : 'X\(//\)$' \| \
23019 X$ac_file : 'X\(/\)' \| \
23020 . : '\(.\)' 2>/dev/null ||
23021echo X$ac_file |
23022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23024 /^X\(\/\/\)$/{ s//\1/; q; }
23025 /^X\(\/\).*/{ s//\1/; q; }
23026 s/.*/./; q'`/stamp-h$_am_stamp_count
23027done
vlmfa67ddc2004-06-03 03:38:44 +000023028_ACEOF
23029cat >>$CONFIG_STATUS <<\_ACEOF
23030
23031#
23032# CONFIG_COMMANDS section.
23033#
23034for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23035 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23036 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23037 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23038$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +000023039 X"$ac_dest" : 'X\(//\)[^/]' \| \
23040 X"$ac_dest" : 'X\(//\)$' \| \
23041 X"$ac_dest" : 'X\(/\)' \| \
23042 . : '\(.\)' 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +000023043echo X"$ac_dest" |
23044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23046 /^X\(\/\/\)$/{ s//\1/; q; }
23047 /^X\(\/\).*/{ s//\1/; q; }
23048 s/.*/./; q'`
vlm8f3eb992004-06-17 23:42:48 +000023049 { if $as_mkdir_p; then
23050 mkdir -p "$ac_dir"
23051 else
23052 as_dir="$ac_dir"
23053 as_dirs=
23054 while test ! -d "$as_dir"; do
23055 as_dirs="$as_dir $as_dirs"
23056 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058 X"$as_dir" : 'X\(//\)[^/]' \| \
23059 X"$as_dir" : 'X\(//\)$' \| \
23060 X"$as_dir" : 'X\(/\)' \| \
23061 . : '\(.\)' 2>/dev/null ||
23062echo X"$as_dir" |
23063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23065 /^X\(\/\/\)$/{ s//\1/; q; }
23066 /^X\(\/\).*/{ s//\1/; q; }
23067 s/.*/./; q'`
23068 done
23069 test ! -n "$as_dirs" || mkdir $as_dirs
23070 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23071echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23072 { (exit 1); exit 1; }; }; }
23073
vlmfa67ddc2004-06-03 03:38:44 +000023074 ac_builddir=.
23075
23076if test "$ac_dir" != .; then
23077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23078 # A "../" for each directory in $ac_dir_suffix.
23079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23080else
23081 ac_dir_suffix= ac_top_builddir=
23082fi
23083
23084case $srcdir in
23085 .) # No --srcdir option. We are building in place.
23086 ac_srcdir=.
23087 if test -z "$ac_top_builddir"; then
23088 ac_top_srcdir=.
23089 else
23090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23091 fi ;;
23092 [\\/]* | ?:[\\/]* ) # Absolute path.
23093 ac_srcdir=$srcdir$ac_dir_suffix;
23094 ac_top_srcdir=$srcdir ;;
23095 *) # Relative path.
23096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23098esac
vlm8f3eb992004-06-17 23:42:48 +000023099
23100# Do not use `cd foo && pwd` to compute absolute paths, because
23101# the directories may not exist.
23102case `pwd` in
23103.) ac_abs_builddir="$ac_dir";;
23104*)
23105 case "$ac_dir" in
23106 .) ac_abs_builddir=`pwd`;;
23107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23109 esac;;
23110esac
23111case $ac_abs_builddir in
23112.) ac_abs_top_builddir=${ac_top_builddir}.;;
23113*)
23114 case ${ac_top_builddir}. in
23115 .) ac_abs_top_builddir=$ac_abs_builddir;;
23116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23118 esac;;
23119esac
23120case $ac_abs_builddir in
23121.) ac_abs_srcdir=$ac_srcdir;;
23122*)
23123 case $ac_srcdir in
23124 .) ac_abs_srcdir=$ac_abs_builddir;;
23125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23127 esac;;
23128esac
23129case $ac_abs_builddir in
23130.) ac_abs_top_srcdir=$ac_top_srcdir;;
23131*)
23132 case $ac_top_srcdir in
23133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23136 esac;;
23137esac
vlmfa67ddc2004-06-03 03:38:44 +000023138
23139
23140 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23141echo "$as_me: executing $ac_dest commands" >&6;}
23142 case $ac_dest in
vlm8f3eb992004-06-17 23:42:48 +000023143 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23144 # Strip MF so we end up with the name of the file.
23145 mf=`echo "$mf" | sed -e 's/:.*$//'`
23146 # Check whether this is an Automake generated Makefile or not.
23147 # We used to match only the files named `Makefile.in', but
23148 # some people rename them; so instead we look at the file content.
23149 # Grep'ing the first line is not enough: some people post-process
23150 # each Makefile.in and add a new line on top of each file to say so.
23151 # So let's grep whole file.
23152 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23153 dirpart=`(dirname "$mf") 2>/dev/null ||
23154$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23155 X"$mf" : 'X\(//\)[^/]' \| \
23156 X"$mf" : 'X\(//\)$' \| \
23157 X"$mf" : 'X\(/\)' \| \
23158 . : '\(.\)' 2>/dev/null ||
23159echo X"$mf" |
23160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23162 /^X\(\/\/\)$/{ s//\1/; q; }
23163 /^X\(\/\).*/{ s//\1/; q; }
23164 s/.*/./; q'`
23165 else
23166 continue
23167 fi
vlm1fcf7592006-08-18 02:27:55 +000023168 # Extract the definition of DEPDIR, am__include, and am__quote
23169 # from the Makefile without running `make'.
vlm8f3eb992004-06-17 23:42:48 +000023170 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
vlmfa67ddc2004-06-03 03:38:44 +000023171 test -z "$DEPDIR" && continue
vlm1fcf7592006-08-18 02:27:55 +000023172 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23173 test -z "am__include" && continue
23174 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
vlmfa67ddc2004-06-03 03:38:44 +000023175 # When using ansi2knr, U may be empty or an underscore; expand it
vlm8f3eb992004-06-17 23:42:48 +000023176 U=`sed -n 's/^U = //p' < "$mf"`
vlm1fcf7592006-08-18 02:27:55 +000023177 # Find all dependency output files, they are included files with
23178 # $(DEPDIR) in their names. We invoke sed twice because it is the
23179 # simplest approach to changing $(DEPDIR) to its actual value in the
23180 # expansion.
23181 for file in `sed -n "
23182 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
vlmfa67ddc2004-06-03 03:38:44 +000023183 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23184 # Make sure the directory exists.
23185 test -f "$dirpart/$file" && continue
vlm8f3eb992004-06-17 23:42:48 +000023186 fdir=`(dirname "$file") 2>/dev/null ||
23187$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23188 X"$file" : 'X\(//\)[^/]' \| \
23189 X"$file" : 'X\(//\)$' \| \
23190 X"$file" : 'X\(/\)' \| \
23191 . : '\(.\)' 2>/dev/null ||
23192echo X"$file" |
23193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23195 /^X\(\/\/\)$/{ s//\1/; q; }
23196 /^X\(\/\).*/{ s//\1/; q; }
23197 s/.*/./; q'`
23198 { if $as_mkdir_p; then
23199 mkdir -p $dirpart/$fdir
23200 else
23201 as_dir=$dirpart/$fdir
23202 as_dirs=
23203 while test ! -d "$as_dir"; do
23204 as_dirs="$as_dir $as_dirs"
23205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23207 X"$as_dir" : 'X\(//\)[^/]' \| \
23208 X"$as_dir" : 'X\(//\)$' \| \
23209 X"$as_dir" : 'X\(/\)' \| \
23210 . : '\(.\)' 2>/dev/null ||
23211echo X"$as_dir" |
23212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23214 /^X\(\/\/\)$/{ s//\1/; q; }
23215 /^X\(\/\).*/{ s//\1/; q; }
23216 s/.*/./; q'`
23217 done
23218 test ! -n "$as_dirs" || mkdir $as_dirs
23219 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23220echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23221 { (exit 1); exit 1; }; }; }
23222
vlmfa67ddc2004-06-03 03:38:44 +000023223 # echo "creating $dirpart/$file"
23224 echo '# dummy' > "$dirpart/$file"
23225 done
23226done
23227 ;;
23228 esac
23229done
23230_ACEOF
23231
23232cat >>$CONFIG_STATUS <<\_ACEOF
23233
23234{ (exit 0); exit 0; }
23235_ACEOF
23236chmod +x $CONFIG_STATUS
23237ac_clean_files=$ac_clean_files_save
23238
23239
23240# configure is writing to config.log, and then calls config.status.
23241# config.status does its own redirection, appending to config.log.
23242# Unfortunately, on DOS this fails, as config.log is still kept open
23243# by configure, so config.status won't be able to write to it; its
23244# output is simply discarded. So we exec the FD to /dev/null,
23245# effectively closing config.log, so it can be properly (re)opened and
23246# appended to by config.status. When coming back to configure, we
23247# need to make the FD available again.
23248if test "$no_create" != yes; then
23249 ac_cs_success=:
23250 ac_config_status_args=
23251 test "$silent" = yes &&
23252 ac_config_status_args="$ac_config_status_args --quiet"
23253 exec 5>/dev/null
23254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23255 exec 5>>config.log
23256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23257 # would make configure fail if this is the last instruction.
23258 $ac_cs_success || { (exit 1); exit 1; }
23259fi
23260
23261