Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / gdbmobj / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for gdbmobj 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276$*
277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='gdbmobj'
425PACKAGE_TARNAME='gdbmobj'
426PACKAGE_VERSION='0.10'
427PACKAGE_STRING='gdbmobj 0.10'
428PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
429
430ac_unique_file="gdbmobj.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 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 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 CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBGDBM FOUND_GDBM_TRUE FOUND_GDBM_FALSE LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957\`configure' configures gdbmobj 0.10 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of gdbmobj 0.10:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048
1049Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CPP C preprocessor
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066Report bugs to <courier-users@lists.sourceforge.net>.
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
1100
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
1139
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 ||
1149 test -f $ac_srcdir/configure.in; then
1150 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
1162gdbmobj configure 0.10
1163generated by GNU Autoconf 2.59
1164
1165Copyright (C) 2003 Free Software Foundation, Inc.
1166This configure script is free software; the Free Software Foundation
1167gives unlimited permission to copy, distribute and modify it.
1168_ACEOF
1169 exit 0
1170fi
1171exec 5>config.log
1172cat >&5 <<_ACEOF
1173This file contains any messages produced by compilers while
1174running configure, to aid debugging if configure makes a mistake.
1175
1176It was created by gdbmobj $as_me 0.10, which was
1177generated by GNU Autoconf 2.59. Invocation command line was
1178
1179 $ $0 $@
1180
1181_ACEOF
1182{
1183cat <<_ASUNAME
1184## --------- ##
1185## Platform. ##
1186## --------- ##
1187
1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196
1197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204
1205_ASUNAME
1206
1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208for as_dir in $PATH
1209do
1210 IFS=$as_save_IFS
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1213done
1214
1215} >&5
1216
1217cat >&5 <<_ACEOF
1218
1219
1220## ----------- ##
1221## Core tests. ##
1222## ----------- ##
1223
1224_ACEOF
1225
1226
1227# Keep a trace of the command line.
1228# Strip out --no-create and --no-recursion so they do not pile up.
1229# Strip out --silent because we don't want to record it for future runs.
1230# Also quote any args containing shell meta-characters.
1231# Make two passes to allow for proper duplicate-argument suppression.
1232ac_configure_args=
1233ac_configure_args0=
1234ac_configure_args1=
1235ac_sep=
1236ac_must_keep_next=false
1237for ac_pass in 1 2
1238do
1239 for ac_arg
1240 do
1241 case $ac_arg in
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 continue ;;
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 esac
1249 case $ac_pass in
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251 2)
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1255 else
1256 case $ac_arg in
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263 esac
1264 ;;
1265 -* ) ac_must_keep_next=true ;;
1266 esac
1267 fi
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1270 ac_sep=" "
1271 ;;
1272 esac
1273 done
1274done
1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278# When interrupted or exit'd, cleanup temporary files, and complete
1279# config.log. We remove comments because anyway the quotes in there
1280# would cause problems or look ugly.
1281# WARNING: Be sure not to use single quotes in there, as some shells,
1282# such as our DU 5.0 friend, will then `close' the trap.
1283trap 'exit_status=$?
1284 # Save into config.log some information that might help in debugging.
1285 {
1286 echo
1287
1288 cat <<\_ASBOX
1289## ---------------- ##
1290## Cache variables. ##
1291## ---------------- ##
1292_ASBOX
1293 echo
1294 # The following way of writing the cache mishandles newlines in values,
1295{
1296 (set) 2>&1 |
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298 *ac_space=\ *)
1299 sed -n \
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 ;;
1303 *)
1304 sed -n \
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ;;
1307 esac;
1308}
1309 echo
1310
1311 cat <<\_ASBOX
1312## ----------------- ##
1313## Output variables. ##
1314## ----------------- ##
1315_ASBOX
1316 echo
1317 for ac_var in $ac_subst_vars
1318 do
1319 eval ac_val=$`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1321 done | sort
1322 echo
1323
1324 if test -n "$ac_subst_files"; then
1325 cat <<\_ASBOX
1326## ------------- ##
1327## Output files. ##
1328## ------------- ##
1329_ASBOX
1330 echo
1331 for ac_var in $ac_subst_files
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337 fi
1338
1339 if test -s confdefs.h; then
1340 cat <<\_ASBOX
1341## ----------- ##
1342## confdefs.h. ##
1343## ----------- ##
1344_ASBOX
1345 echo
1346 sed "/^$/d" confdefs.h | sort
1347 echo
1348 fi
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1352 } >&5
1353 rm -f core *.core &&
1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355 exit $exit_status
1356 ' 0
1357for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359done
1360ac_signal=0
1361
1362# confdefs.h avoids OS command line length limits that DEFS can exceed.
1363rm -rf conftest* confdefs.h
1364# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365echo >confdefs.h
1366
1367# Predefined preprocessor variables.
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_NAME "$PACKAGE_NAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_VERSION "$PACKAGE_VERSION"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_STRING "$PACKAGE_STRING"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391_ACEOF
1392
1393
1394# Let the site file select an alternate cache file if it wants to.
1395# Prefer explicitly selected file to automatically selected ones.
1396if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399 else
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401 fi
1402fi
1403for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's/^/| /' "$ac_site_file" >&5
1408 . "$ac_site_file"
1409 fi
1410done
1411
1412if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417echo "$as_me: loading cache $cache_file" >&6;}
1418 case $cache_file in
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1421 esac
1422 fi
1423else
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425echo "$as_me: creating cache $cache_file" >&6;}
1426 >$cache_file
1427fi
1428
1429# Check that the precious variables saved in the cache have kept the same
1430# value.
1431ac_cache_corrupted=false
1432for ac_var in `(set) 2>&1 |
1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1439 set,)
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1443 ,set)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,);;
1448 *)
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1457 fi;;
1458 esac
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1461 case $ac_new_val in
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1465 esac
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 esac
1470 fi
1471done
1472if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1478fi
1479
1480ac_ext=c
1481ac_cpp='$CPP $CPPFLAGS'
1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513>confdefs.h # Kill PACKAGE_ macros
1514
1515
1516am__api_version="1.9"
1517ac_aux_dir=
1518for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1519 if test -f $ac_dir/install-sh; then
1520 ac_aux_dir=$ac_dir
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1522 break
1523 elif test -f $ac_dir/install.sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1526 break
1527 elif test -f $ac_dir/shtool; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1530 break
1531 fi
1532done
1533if test -z "$ac_aux_dir"; then
1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1535echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1536 { (exit 1); exit 1; }; }
1537fi
1538ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542# Find a good install program. We prefer a C program (faster),
1543# so one script is as good as another. But avoid the broken or
1544# incompatible versions:
1545# SysV /etc/install, /usr/sbin/install
1546# SunOS /usr/etc/install
1547# IRIX /sbin/install
1548# AIX /bin/install
1549# AmigaOS /C/install, which installs bootblocks on floppy discs
1550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1551# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553# OS/2's system install, which has a completely different semantic
1554# ./install, which can be erroneously created by make from ./install.sh.
1555echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557if test -z "$INSTALL"; then
1558if test "${ac_cv_path_install+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562for as_dir in $PATH
1563do
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 # Account for people who put trailing slashes in PATH elements.
1567case $as_dir/ in
1568 ./ | .// | /cC/* | \
1569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1571 /usr/ucb/* ) ;;
1572 *)
1573 # OSF1 and SCO ODT 3.0 have their own names for install.
1574 # Don't use installbsd from OSF since it installs stuff as root
1575 # by default.
1576 for ac_prog in ginstall scoinst install; do
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579 if test $ac_prog = install &&
1580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581 # AIX install. It has an incompatible calling convention.
1582 :
1583 elif test $ac_prog = install &&
1584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # program-specific install script used by HP pwplus--don't use.
1586 :
1587 else
1588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1589 break 3
1590 fi
1591 fi
1592 done
1593 done
1594 ;;
1595esac
1596done
1597
1598
1599fi
1600 if test "${ac_cv_path_install+set}" = set; then
1601 INSTALL=$ac_cv_path_install
1602 else
1603 # As a last resort, use the slow shell script. We don't cache a
1604 # path for INSTALL within a source directory, because that will
1605 # break other packages using the cache if that directory is
1606 # removed, or if the path is relative.
1607 INSTALL=$ac_install_sh
1608 fi
1609fi
1610echo "$as_me:$LINENO: result: $INSTALL" >&5
1611echo "${ECHO_T}$INSTALL" >&6
1612
1613# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614# It thinks the first close brace ends the variable substitution.
1615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616
1617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618
1619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620
1621echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1623# Just in case
1624sleep 1
1625echo timestamp > conftest.file
1626# Do `set' in a subshell so we don't clobber the current shell's
1627# arguments. Must try -L first in case configure is actually a
1628# symlink; some systems play weird games with the mod time of symlinks
1629# (eg FreeBSD returns the mod time of the symlink's containing
1630# directory).
1631if (
1632 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633 if test "$*" = "X"; then
1634 # -L didn't work.
1635 set X `ls -t $srcdir/configure conftest.file`
1636 fi
1637 rm -f conftest.file
1638 if test "$*" != "X $srcdir/configure conftest.file" \
1639 && test "$*" != "X conftest.file $srcdir/configure"; then
1640
1641 # If neither matched, then we have a broken ls. This can happen
1642 # if, for instance, CONFIG_SHELL is bash and it inherits a
1643 # broken ls alias from the environment. This has actually
1644 # happened. Such a system could not be considered "sane".
1645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1646alias in your environment" >&5
1647echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1648alias in your environment" >&2;}
1649 { (exit 1); exit 1; }; }
1650 fi
1651
1652 test "$2" = conftest.file
1653 )
1654then
1655 # Ok.
1656 :
1657else
1658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659Check your system clock" >&5
1660echo "$as_me: error: newly created file is older than distributed files!
1661Check your system clock" >&2;}
1662 { (exit 1); exit 1; }; }
1663fi
1664echo "$as_me:$LINENO: result: yes" >&5
1665echo "${ECHO_T}yes" >&6
1666test "$program_prefix" != NONE &&
1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668# Use a double $ so make ignores it.
1669test "$program_suffix" != NONE &&
1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671# Double any \ or $. echo might interpret backslashes.
1672# By default was `s,x,x', remove it if useless.
1673cat <<\_ACEOF >conftest.sed
1674s/[\\$]/&&/g;s/;s,x,x,$//
1675_ACEOF
1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677rm conftest.sed
1678
1679# expand $ac_aux_dir to an absolute path
1680am_aux_dir=`cd $ac_aux_dir && pwd`
1681
1682test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683# Use eval to expand $SHELL
1684if eval "$MISSING --run true"; then
1685 am_missing_run="$MISSING --run "
1686else
1687 am_missing_run=
1688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1690fi
1691
1692if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1693 # We used to keeping the `.' as first argument, in order to
1694 # allow $(mkdir_p) to be used without argument. As in
1695 # $(mkdir_p) $(somedir)
1696 # where $(somedir) is conditionally defined. However this is wrong
1697 # for two reasons:
1698 # 1. if the package is installed by a user who cannot write `.'
1699 # make install will fail,
1700 # 2. the above comment should most certainly read
1701 # $(mkdir_p) $(DESTDIR)$(somedir)
1702 # so it does not work when $(somedir) is undefined and
1703 # $(DESTDIR) is not.
1704 # To support the latter case, we have to write
1705 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1706 # so the `.' trick is pointless.
1707 mkdir_p='mkdir -p --'
1708else
1709 # On NextStep and OpenStep, the `mkdir' command does not
1710 # recognize any option. It will interpret all options as
1711 # directories to create, and then abort because `.' already
1712 # exists.
1713 for d in ./-p ./--version;
1714 do
1715 test -d $d && rmdir $d
1716 done
1717 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1718 if test -f "$ac_aux_dir/mkinstalldirs"; then
1719 mkdir_p='$(mkinstalldirs)'
1720 else
1721 mkdir_p='$(install_sh) -d'
1722 fi
1723fi
1724
1725for ac_prog in gawk mawk nawk awk
1726do
1727 # Extract the first word of "$ac_prog", so it can be a program name with args.
1728set dummy $ac_prog; ac_word=$2
1729echo "$as_me:$LINENO: checking for $ac_word" >&5
1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731if test "${ac_cv_prog_AWK+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733else
1734 if test -n "$AWK"; then
1735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1736else
1737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738for as_dir in $PATH
1739do
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_AWK="$ac_prog"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 break 2
1747 fi
1748done
1749done
1750
1751fi
1752fi
1753AWK=$ac_cv_prog_AWK
1754if test -n "$AWK"; then
1755 echo "$as_me:$LINENO: result: $AWK" >&5
1756echo "${ECHO_T}$AWK" >&6
1757else
1758 echo "$as_me:$LINENO: result: no" >&5
1759echo "${ECHO_T}no" >&6
1760fi
1761
1762 test -n "$AWK" && break
1763done
1764
1765echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1766echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1767set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1768if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771 cat >conftest.make <<\_ACEOF
1772all:
1773 @echo 'ac_maketemp="$(MAKE)"'
1774_ACEOF
1775# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1776eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1777if test -n "$ac_maketemp"; then
1778 eval ac_cv_prog_make_${ac_make}_set=yes
1779else
1780 eval ac_cv_prog_make_${ac_make}_set=no
1781fi
1782rm -f conftest.make
1783fi
1784if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1785 echo "$as_me:$LINENO: result: yes" >&5
1786echo "${ECHO_T}yes" >&6
1787 SET_MAKE=
1788else
1789 echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
1791 SET_MAKE="MAKE=${MAKE-make}"
1792fi
1793
1794rm -rf .tst 2>/dev/null
1795mkdir .tst 2>/dev/null
1796if test -d .tst; then
1797 am__leading_dot=.
1798else
1799 am__leading_dot=_
1800fi
1801rmdir .tst 2>/dev/null
1802
1803# test to see if srcdir already configured
1804if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805 test -f $srcdir/config.status; then
1806 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808 { (exit 1); exit 1; }; }
1809fi
1810
1811# test whether we have cygpath
1812if test -z "$CYGPATH_W"; then
1813 if (cygpath --version) >/dev/null 2>/dev/null; then
1814 CYGPATH_W='cygpath -w'
1815 else
1816 CYGPATH_W=echo
1817 fi
1818fi
1819
1820
1821# Define the identity of the package.
1822 PACKAGE='gdbmobj'
1823 VERSION='0.10'
1824
1825
1826# Some tools Automake needs.
1827
1828ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1829
1830
1831AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1832
1833
1834AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1835
1836
1837AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1838
1839
1840MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1841
1842install_sh=${install_sh-"$am_aux_dir/install-sh"}
1843
1844# Installed binaries are usually stripped using `strip' when the user
1845# run `make install-strip'. However `strip' might not be the right
1846# tool to use in cross-compilation environments, therefore Automake
1847# will honor the `STRIP' environment variable to overrule this program.
1848if test "$cross_compiling" != no; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1851set dummy ${ac_tool_prefix}strip; ac_word=$2
1852echo "$as_me:$LINENO: checking for $ac_word" >&5
1853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854if test "${ac_cv_prog_STRIP+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857 if test -n "$STRIP"; then
1858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1859else
1860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861for as_dir in $PATH
1862do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871done
1872done
1873
1874fi
1875fi
1876STRIP=$ac_cv_prog_STRIP
1877if test -n "$STRIP"; then
1878 echo "$as_me:$LINENO: result: $STRIP" >&5
1879echo "${ECHO_T}$STRIP" >&6
1880else
1881 echo "$as_me:$LINENO: result: no" >&5
1882echo "${ECHO_T}no" >&6
1883fi
1884
1885fi
1886if test -z "$ac_cv_prog_STRIP"; then
1887 ac_ct_STRIP=$STRIP
1888 # Extract the first word of "strip", so it can be a program name with args.
1889set dummy strip; ac_word=$2
1890echo "$as_me:$LINENO: checking for $ac_word" >&5
1891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894else
1895 if test -n "$ac_ct_STRIP"; then
1896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1897else
1898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899for as_dir in $PATH
1900do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_STRIP="strip"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909done
1910done
1911
1912 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1913fi
1914fi
1915ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1916if test -n "$ac_ct_STRIP"; then
1917 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1918echo "${ECHO_T}$ac_ct_STRIP" >&6
1919else
1920 echo "$as_me:$LINENO: result: no" >&5
1921echo "${ECHO_T}no" >&6
1922fi
1923
1924 STRIP=$ac_ct_STRIP
1925else
1926 STRIP="$ac_cv_prog_STRIP"
1927fi
1928
1929fi
1930INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1931
1932# We need awk for the "check" target. The system "awk" is bad on
1933# some platforms.
1934# Always define AMTAR for backward compatibility.
1935
1936AMTAR=${AMTAR-"${am_missing_run}tar"}
1937
1938am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1939
1940
1941
1942
1943
1944 ac_config_headers="$ac_config_headers config.h"
1945
1946
1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1954set dummy ${ac_tool_prefix}gcc; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1962else
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974done
1975done
1976
1977fi
1978fi
1979CC=$ac_cv_prog_CC
1980if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982echo "${ECHO_T}$CC" >&6
1983else
1984 echo "$as_me:$LINENO: result: no" >&5
1985echo "${ECHO_T}no" >&6
1986fi
1987
1988fi
1989if test -z "$ac_cv_prog_CC"; then
1990 ac_ct_CC=$CC
1991 # Extract the first word of "gcc", so it can be a program name with args.
1992set dummy gcc; ac_word=$2
1993echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000else
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_CC="gcc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2
2011 fi
2012done
2013done
2014
2015fi
2016fi
2017ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018if test -n "$ac_ct_CC"; then
2019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020echo "${ECHO_T}$ac_ct_CC" >&6
2021else
2022 echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026 CC=$ac_ct_CC
2027else
2028 CC="$ac_cv_prog_CC"
2029fi
2030
2031if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2034set dummy ${ac_tool_prefix}cc; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC="${ac_tool_prefix}cc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054done
2055done
2056
2057fi
2058fi
2059CC=$ac_cv_prog_CC
2060if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6
2063else
2064 echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
2068fi
2069if test -z "$ac_cv_prog_CC"; then
2070 ac_ct_CC=$CC
2071 # Extract the first word of "cc", so it can be a program name with args.
2072set dummy cc; ac_word=$2
2073echo "$as_me:$LINENO: checking for $ac_word" >&5
2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080else
2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082for as_dir in $PATH
2083do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC="cc"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2091 fi
2092done
2093done
2094
2095fi
2096fi
2097ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100echo "${ECHO_T}$ac_ct_CC" >&6
2101else
2102 echo "$as_me:$LINENO: result: no" >&5
2103echo "${ECHO_T}no" >&6
2104fi
2105
2106 CC=$ac_ct_CC
2107else
2108 CC="$ac_cv_prog_CC"
2109fi
2110
2111fi
2112if test -z "$CC"; then
2113 # Extract the first word of "cc", so it can be a program name with args.
2114set dummy cc; ac_word=$2
2115echo "$as_me:$LINENO: checking for $ac_word" >&5
2116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117if test "${ac_cv_prog_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2122else
2123 ac_prog_rejected=no
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2132 ac_prog_rejected=yes
2133 continue
2134 fi
2135 ac_cv_prog_CC="cc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
2138 fi
2139done
2140done
2141
2142if test $ac_prog_rejected = yes; then
2143 # We found a bogon in the path, so make sure we never use it.
2144 set dummy $ac_cv_prog_CC
2145 shift
2146 if test $# != 0; then
2147 # We chose a different compiler from the bogus one.
2148 # However, it has the same basename, so the bogon will be chosen
2149 # first if we set CC to just the basename; use the full file name.
2150 shift
2151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152 fi
2153fi
2154fi
2155fi
2156CC=$ac_cv_prog_CC
2157if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159echo "${ECHO_T}$CC" >&6
2160else
2161 echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6
2163fi
2164
2165fi
2166if test -z "$CC"; then
2167 if test -n "$ac_tool_prefix"; then
2168 for ac_prog in cl
2169 do
2170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2172echo "$as_me:$LINENO: checking for $ac_word" >&5
2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2179else
2180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 break 2
2190 fi
2191done
2192done
2193
2194fi
2195fi
2196CC=$ac_cv_prog_CC
2197if test -n "$CC"; then
2198 echo "$as_me:$LINENO: result: $CC" >&5
2199echo "${ECHO_T}$CC" >&6
2200else
2201 echo "$as_me:$LINENO: result: no" >&5
2202echo "${ECHO_T}no" >&6
2203fi
2204
2205 test -n "$CC" && break
2206 done
2207fi
2208if test -z "$CC"; then
2209 ac_ct_CC=$CC
2210 for ac_prog in cl
2211do
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213set dummy $ac_prog; ac_word=$2
2214echo "$as_me:$LINENO: checking for $ac_word" >&5
2215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219 if test -n "$ac_ct_CC"; then
2220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221else
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_ac_ct_CC="$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2232 fi
2233done
2234done
2235
2236fi
2237fi
2238ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239if test -n "$ac_ct_CC"; then
2240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241echo "${ECHO_T}$ac_ct_CC" >&6
2242else
2243 echo "$as_me:$LINENO: result: no" >&5
2244echo "${ECHO_T}no" >&6
2245fi
2246
2247 test -n "$ac_ct_CC" && break
2248done
2249
2250 CC=$ac_ct_CC
2251fi
2252
2253fi
2254
2255
2256test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257See \`config.log' for more details." >&5
2258echo "$as_me: error: no acceptable C compiler found in \$PATH
2259See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2261
2262# Provide some information about the compiler.
2263echo "$as_me:$LINENO:" \
2264 "checking for C compiler version" >&5
2265ac_compiler=`set X $ac_compile; echo $2`
2266{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2267 (eval $ac_compiler --version </dev/null >&5) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2272 (eval $ac_compiler -v </dev/null >&5) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2277 (eval $ac_compiler -V </dev/null >&5) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2281
2282cat >conftest.$ac_ext <<_ACEOF
2283/* confdefs.h. */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h. */
2288
2289int
2290main ()
2291{
2292
2293 ;
2294 return 0;
2295}
2296_ACEOF
2297ac_clean_files_save=$ac_clean_files
2298ac_clean_files="$ac_clean_files a.out a.exe b.out"
2299# Try to create an executable without -o first, disregard a.out.
2300# It will help us diagnose broken compilers, and finding out an intuition
2301# of exeext.
2302echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2303echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2304ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2305if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2306 (eval $ac_link_default) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # Find the output, starting from the most likely. This scheme is
2311# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2312# resort.
2313
2314# Be careful to initialize this variable, since it used to be cached.
2315# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2316ac_cv_exeext=
2317# b.out is created by i960 compilers.
2318for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2319do
2320 test -f "$ac_file" || continue
2321 case $ac_file in
2322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2323 ;;
2324 conftest.$ac_ext )
2325 # This is the source file.
2326 ;;
2327 [ab].out )
2328 # We found the default executable, but exeext='' is most
2329 # certainly right.
2330 break;;
2331 *.* )
2332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333 # FIXME: I believe we export ac_cv_exeext for Libtool,
2334 # but it would be cool to find out if it's true. Does anybody
2335 # maintain Libtool? --akim.
2336 export ac_cv_exeext
2337 break;;
2338 * )
2339 break;;
2340 esac
2341done
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: C compiler cannot create executables
2349See \`config.log' for more details." >&2;}
2350 { (exit 77); exit 77; }; }
2351fi
2352
2353ac_exeext=$ac_cv_exeext
2354echo "$as_me:$LINENO: result: $ac_file" >&5
2355echo "${ECHO_T}$ac_file" >&6
2356
2357# Check the compiler produces executables we can run. If not, either
2358# the compiler is broken, or we cross compile.
2359echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2361# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362# If not cross compiling, check that we can run a simple program.
2363if test "$cross_compiling" != yes; then
2364 if { ac_try='./$ac_file'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 cross_compiling=no
2371 else
2372 if test "$cross_compiling" = maybe; then
2373 cross_compiling=yes
2374 else
2375 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2376If you meant to cross compile, use \`--host'.
2377See \`config.log' for more details." >&5
2378echo "$as_me: error: cannot run C compiled programs.
2379If you meant to cross compile, use \`--host'.
2380See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2382 fi
2383 fi
2384fi
2385echo "$as_me:$LINENO: result: yes" >&5
2386echo "${ECHO_T}yes" >&6
2387
2388rm -f a.out a.exe conftest$ac_cv_exeext b.out
2389ac_clean_files=$ac_clean_files_save
2390# Check the compiler produces executables we can run. If not, either
2391# the compiler is broken, or we cross compile.
2392echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2393echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2394echo "$as_me:$LINENO: result: $cross_compiling" >&5
2395echo "${ECHO_T}$cross_compiling" >&6
2396
2397echo "$as_me:$LINENO: checking for suffix of executables" >&5
2398echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2400 (eval $ac_link) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; then
2404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2405# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2406# work properly (i.e., refer to `conftest.exe'), while it won't with
2407# `rm'.
2408for ac_file in conftest.exe conftest conftest.*; do
2409 test -f "$ac_file" || continue
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413 export ac_cv_exeext
2414 break;;
2415 * ) break;;
2416 esac
2417done
2418else
2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420See \`config.log' for more details." >&5
2421echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2424fi
2425
2426rm -f conftest$ac_cv_exeext
2427echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428echo "${ECHO_T}$ac_cv_exeext" >&6
2429
2430rm -f conftest.$ac_ext
2431EXEEXT=$ac_cv_exeext
2432ac_exeext=$EXEEXT
2433echo "$as_me:$LINENO: checking for suffix of object files" >&5
2434echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2435if test "${ac_cv_objext+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444
2445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.o conftest.obj
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2463 break;;
2464 esac
2465done
2466else
2467 echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2471See \`config.log' for more details." >&5
2472echo "$as_me: error: cannot compute suffix of object files: cannot compile
2473See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }
2475fi
2476
2477rm -f conftest.$ac_cv_objext conftest.$ac_ext
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480echo "${ECHO_T}$ac_cv_objext" >&6
2481OBJEXT=$ac_cv_objext
2482ac_objext=$OBJEXT
2483echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2484echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2485if test "${ac_cv_c_compiler_gnu+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494
2495int
2496main ()
2497{
2498#ifndef __GNUC__
2499 choke me
2500#endif
2501
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506rm -f conftest.$ac_objext
2507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_compiler_gnu=yes
2529else
2530 echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533ac_compiler_gnu=no
2534fi
2535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536ac_cv_c_compiler_gnu=$ac_compiler_gnu
2537
2538fi
2539echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2540echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2541GCC=`test $ac_compiler_gnu = yes && echo yes`
2542ac_test_CFLAGS=${CFLAGS+set}
2543ac_save_CFLAGS=$CFLAGS
2544CFLAGS="-g"
2545echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2546echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2547if test "${ac_cv_prog_cc_g+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549else
2550 cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557int
2558main ()
2559{
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_prog_cc_g=yes
2588else
2589 echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592ac_cv_prog_cc_g=no
2593fi
2594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595fi
2596echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2597echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2598if test "$ac_test_CFLAGS" = set; then
2599 CFLAGS=$ac_save_CFLAGS
2600elif test $ac_cv_prog_cc_g = yes; then
2601 if test "$GCC" = yes; then
2602 CFLAGS="-g -O2"
2603 else
2604 CFLAGS="-g"
2605 fi
2606else
2607 if test "$GCC" = yes; then
2608 CFLAGS="-O2"
2609 else
2610 CFLAGS=
2611 fi
2612fi
2613echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2614echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2615if test "${ac_cv_prog_cc_stdc+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 ac_cv_prog_cc_stdc=no
2619ac_save_CC=$CC
2620cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
2626#include <stdarg.h>
2627#include <stdio.h>
2628#include <sys/types.h>
2629#include <sys/stat.h>
2630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2631struct buf { int x; };
2632FILE * (*rcsopen) (struct buf *, struct stat *, int);
2633static char *e (p, i)
2634 char **p;
2635 int i;
2636{
2637 return p[i];
2638}
2639static char *f (char * (*g) (char **, int), char **p, ...)
2640{
2641 char *s;
2642 va_list v;
2643 va_start (v,p);
2644 s = g (p, va_arg (v,int));
2645 va_end (v);
2646 return s;
2647}
2648
2649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2650 function prototypes and stuff, but not '\xHH' hex character constants.
2651 These don't provoke an error unfortunately, instead are silently treated
2652 as 'x'. The following induces an error, until -std1 is added to get
2653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2654 array size at least. It's necessary to write '\x00'==0 to get something
2655 that's true only with -std1. */
2656int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2657
2658int test (int i, double x);
2659struct s1 {int (*f) (int a);};
2660struct s2 {int (*f) (double a);};
2661int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2662int argc;
2663char **argv;
2664int
2665main ()
2666{
2667return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672# Don't try gcc -ansi; that turns off useful extensions and
2673# breaks some systems' header files.
2674# AIX -qlanglvl=ansi
2675# Ultrix and OSF/1 -std1
2676# HP-UX 10.20 and later -Ae
2677# HP-UX older versions -Aa -D_HPUX_SOURCE
2678# SVR4 -Xc -D__EXTENSIONS__
2679for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2680do
2681 CC="$ac_save_CC $ac_arg"
2682 rm -f conftest.$ac_objext
2683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684 (eval $ac_compile) 2>conftest.er1
2685 ac_status=$?
2686 grep -v '^ *+' conftest.er1 >conftest.err
2687 rm -f conftest.er1
2688 cat conftest.err >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -z "$ac_c_werror_flag"
2692 || test ! -s conftest.err'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 ac_cv_prog_cc_stdc=$ac_arg
2705break
2706else
2707 echo "$as_me: failed program was:" >&5
2708sed 's/^/| /' conftest.$ac_ext >&5
2709
2710fi
2711rm -f conftest.err conftest.$ac_objext
2712done
2713rm -f conftest.$ac_ext conftest.$ac_objext
2714CC=$ac_save_CC
2715
2716fi
2717
2718case "x$ac_cv_prog_cc_stdc" in
2719 x|xno)
2720 echo "$as_me:$LINENO: result: none needed" >&5
2721echo "${ECHO_T}none needed" >&6 ;;
2722 *)
2723 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2724echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2725 CC="$CC $ac_cv_prog_cc_stdc" ;;
2726esac
2727
2728# Some people use a C++ compiler to compile C. Since we use `exit',
2729# in C++ we need to declare it. In case someone uses the same compiler
2730# for both compiling C and C++ we need to have the C++ compiler decide
2731# the declaration of exit, since it's the most demanding environment.
2732cat >conftest.$ac_ext <<_ACEOF
2733#ifndef __cplusplus
2734 choke me
2735#endif
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 for ac_declaration in \
2760 '' \
2761 'extern "C" void std::exit (int) throw (); using std::exit;' \
2762 'extern "C" void std::exit (int); using std::exit;' \
2763 'extern "C" void exit (int) throw ();' \
2764 'extern "C" void exit (int);' \
2765 'void exit (int);'
2766do
2767 cat >conftest.$ac_ext <<_ACEOF
2768/* confdefs.h. */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h. */
2773$ac_declaration
2774#include <stdlib.h>
2775int
2776main ()
2777{
2778exit (42);
2779 ;
2780 return 0;
2781}
2782_ACEOF
2783rm -f conftest.$ac_objext
2784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 :
2806else
2807 echo "$as_me: failed program was:" >&5
2808sed 's/^/| /' conftest.$ac_ext >&5
2809
2810continue
2811fi
2812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
2819$ac_declaration
2820int
2821main ()
2822{
2823exit (42);
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 break
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855fi
2856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857done
2858rm -f conftest*
2859if test -n "$ac_declaration"; then
2860 echo '#ifdef __cplusplus' >>confdefs.h
2861 echo $ac_declaration >>confdefs.h
2862 echo '#endif' >>confdefs.h
2863fi
2864
2865else
2866 echo "$as_me: failed program was:" >&5
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869fi
2870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871ac_ext=c
2872ac_cpp='$CPP $CPPFLAGS'
2873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876DEPDIR="${am__leading_dot}deps"
2877
2878 ac_config_commands="$ac_config_commands depfiles"
2879
2880
2881am_make=${MAKE-make}
2882cat > confinc << 'END'
2883am__doit:
2884 @echo done
2885.PHONY: am__doit
2886END
2887# If we don't find an include directive, just comment out the code.
2888echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2889echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2890am__include="#"
2891am__quote=
2892_am_result=none
2893# First try GNU make style include.
2894echo "include confinc" > confmf
2895# We grep out `Entering directory' and `Leaving directory'
2896# messages which can occur if `w' ends up in MAKEFLAGS.
2897# In particular we don't look at `^make:' because GNU make might
2898# be invoked under some other name (usually "gmake"), in which
2899# case it prints its new name instead of `make'.
2900if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2901 am__include=include
2902 am__quote=
2903 _am_result=GNU
2904fi
2905# Now try BSD make style include.
2906if test "$am__include" = "#"; then
2907 echo '.include "confinc"' > confmf
2908 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2909 am__include=.include
2910 am__quote="\""
2911 _am_result=BSD
2912 fi
2913fi
2914
2915
2916echo "$as_me:$LINENO: result: $_am_result" >&5
2917echo "${ECHO_T}$_am_result" >&6
2918rm -f confinc confmf
2919
2920# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2921if test "${enable_dependency_tracking+set}" = set; then
2922 enableval="$enable_dependency_tracking"
2923
2924fi;
2925if test "x$enable_dependency_tracking" != xno; then
2926 am_depcomp="$ac_aux_dir/depcomp"
2927 AMDEPBACKSLASH='\'
2928fi
2929
2930
2931if test "x$enable_dependency_tracking" != xno; then
2932 AMDEP_TRUE=
2933 AMDEP_FALSE='#'
2934else
2935 AMDEP_TRUE='#'
2936 AMDEP_FALSE=
2937fi
2938
2939
2940
2941
2942depcc="$CC" am_compiler_list=
2943
2944echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2945echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2946if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948else
2949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2950 # We make a subdir and do the tests there. Otherwise we can end up
2951 # making bogus files that we don't know about and never remove. For
2952 # instance it was reported that on HP-UX the gcc test will end up
2953 # making a dummy file named `D' -- because `-MD' means `put the output
2954 # in D'.
2955 mkdir conftest.dir
2956 # Copy depcomp to subdir because otherwise we won't find it if we're
2957 # using a relative directory.
2958 cp "$am_depcomp" conftest.dir
2959 cd conftest.dir
2960 # We will build objects and dependencies in a subdirectory because
2961 # it helps to detect inapplicable dependency modes. For instance
2962 # both Tru64's cc and ICC support -MD to output dependencies as a
2963 # side effect of compilation, but ICC will put the dependencies in
2964 # the current directory while Tru64 will put them in the object
2965 # directory.
2966 mkdir sub
2967
2968 am_cv_CC_dependencies_compiler_type=none
2969 if test "$am_compiler_list" = ""; then
2970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2971 fi
2972 for depmode in $am_compiler_list; do
2973 # Setup a source with many dependencies, because some compilers
2974 # like to wrap large dependency lists on column 80 (with \), and
2975 # we should not choose a depcomp mode which is confused by this.
2976 #
2977 # We need to recreate these files for each test, as the compiler may
2978 # overwrite some of them when testing with obscure command lines.
2979 # This happens at least with the AIX C compiler.
2980 : > sub/conftest.c
2981 for i in 1 2 3 4 5 6; do
2982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2984 # Solaris 8's {/usr,}/bin/sh.
2985 touch sub/conftst$i.h
2986 done
2987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2988
2989 case $depmode in
2990 nosideeffect)
2991 # after this tag, mechanisms are not by side-effect, so they'll
2992 # only be used when explicitly requested
2993 if test "x$enable_dependency_tracking" = xyes; then
2994 continue
2995 else
2996 break
2997 fi
2998 ;;
2999 none) break ;;
3000 esac
3001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3002 # mode. It turns out that the SunPro C++ compiler does not properly
3003 # handle `-M -o', and we need to detect this.
3004 if depmode=$depmode \
3005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3008 >/dev/null 2>conftest.err &&
3009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3010 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3012 # icc doesn't choke on unknown options, it will just issue warnings
3013 # or remarks (even with -Werror). So we grep stderr for any message
3014 # that says an option was ignored or not supported.
3015 # When given -MP, icc 7.0 and 7.1 complain thusly:
3016 # icc: Command line warning: ignoring option '-M'; no argument required
3017 # The diagnosis changed in icc 8.0:
3018 # icc: Command line remark: option '-MP' not supported
3019 if (grep 'ignoring option' conftest.err ||
3020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3021 am_cv_CC_dependencies_compiler_type=$depmode
3022 break
3023 fi
3024 fi
3025 done
3026
3027 cd ..
3028 rm -rf conftest.dir
3029else
3030 am_cv_CC_dependencies_compiler_type=none
3031fi
3032
3033fi
3034echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3035echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3036CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3037
3038
3039
3040if
3041 test "x$enable_dependency_tracking" != xno \
3042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3043 am__fastdepCC_TRUE=
3044 am__fastdepCC_FALSE='#'
3045else
3046 am__fastdepCC_TRUE='#'
3047 am__fastdepCC_FALSE=
3048fi
3049
3050
3051
3052ac_ext=c
3053ac_cpp='$CPP $CPPFLAGS'
3054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3058echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3059# On Suns, sometimes $CPP names a directory.
3060if test -n "$CPP" && test -d "$CPP"; then
3061 CPP=
3062fi
3063if test -z "$CPP"; then
3064 if test "${ac_cv_prog_CPP+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067 # Double quotes because CPP needs to be expanded
3068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3069 do
3070 ac_preproc_ok=false
3071for ac_c_preproc_warn_flag in '' yes
3072do
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085#ifdef __STDC__
3086# include <limits.h>
3087#else
3088# include <assert.h>
3089#endif
3090 Syntax error
3091_ACEOF
3092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103 else
3104 ac_cpp_err=
3105 fi
3106else
3107 ac_cpp_err=yes
3108fi
3109if test -z "$ac_cpp_err"; then
3110 :
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 # Broken: fails on valid input.
3116continue
3117fi
3118rm -f conftest.err conftest.$ac_ext
3119
3120 # OK, works on sane cases. Now check whether non-existent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#include <ac_nonexistent.h>
3129_ACEOF
3130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } >/dev/null; then
3138 if test -s conftest.err; then
3139 ac_cpp_err=$ac_c_preproc_warn_flag
3140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3141 else
3142 ac_cpp_err=
3143 fi
3144else
3145 ac_cpp_err=yes
3146fi
3147if test -z "$ac_cpp_err"; then
3148 # Broken: success on invalid input.
3149continue
3150else
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 # Passes both tests.
3155ac_preproc_ok=:
3156break
3157fi
3158rm -f conftest.err conftest.$ac_ext
3159
3160done
3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162rm -f conftest.err conftest.$ac_ext
3163if $ac_preproc_ok; then
3164 break
3165fi
3166
3167 done
3168 ac_cv_prog_CPP=$CPP
3169
3170fi
3171 CPP=$ac_cv_prog_CPP
3172else
3173 ac_cv_prog_CPP=$CPP
3174fi
3175echo "$as_me:$LINENO: result: $CPP" >&5
3176echo "${ECHO_T}$CPP" >&6
3177ac_preproc_ok=false
3178for ac_c_preproc_warn_flag in '' yes
3179do
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192#ifdef __STDC__
3193# include <limits.h>
3194#else
3195# include <assert.h>
3196#endif
3197 Syntax error
3198_ACEOF
3199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } >/dev/null; then
3207 if test -s conftest.err; then
3208 ac_cpp_err=$ac_c_preproc_warn_flag
3209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210 else
3211 ac_cpp_err=
3212 fi
3213else
3214 ac_cpp_err=yes
3215fi
3216if test -z "$ac_cpp_err"; then
3217 :
3218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 # Broken: fails on valid input.
3223continue
3224fi
3225rm -f conftest.err conftest.$ac_ext
3226
3227 # OK, works on sane cases. Now check whether non-existent headers
3228 # can be detected and how.
3229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235#include <ac_nonexistent.h>
3236_ACEOF
3237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } >/dev/null; then
3245 if test -s conftest.err; then
3246 ac_cpp_err=$ac_c_preproc_warn_flag
3247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3248 else
3249 ac_cpp_err=
3250 fi
3251else
3252 ac_cpp_err=yes
3253fi
3254if test -z "$ac_cpp_err"; then
3255 # Broken: success on invalid input.
3256continue
3257else
3258 echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 # Passes both tests.
3262ac_preproc_ok=:
3263break
3264fi
3265rm -f conftest.err conftest.$ac_ext
3266
3267done
3268# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3269rm -f conftest.err conftest.$ac_ext
3270if $ac_preproc_ok; then
3271 :
3272else
3273 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3274See \`config.log' for more details." >&5
3275echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3276See \`config.log' for more details." >&2;}
3277 { (exit 1); exit 1; }; }
3278fi
3279
3280ac_ext=c
3281ac_cpp='$CPP $CPPFLAGS'
3282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285
3286
3287echo "$as_me:$LINENO: checking for egrep" >&5
3288echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3289if test "${ac_cv_prog_egrep+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3293 then ac_cv_prog_egrep='grep -E'
3294 else ac_cv_prog_egrep='egrep'
3295 fi
3296fi
3297echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3298echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3299 EGREP=$ac_cv_prog_egrep
3300
3301
3302
3303echo "$as_me:$LINENO: checking for AIX" >&5
3304echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3305cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311#ifdef _AIX
3312 yes
3313#endif
3314
3315_ACEOF
3316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3317 $EGREP "yes" >/dev/null 2>&1; then
3318 echo "$as_me:$LINENO: result: yes" >&5
3319echo "${ECHO_T}yes" >&6
3320cat >>confdefs.h <<\_ACEOF
3321#define _ALL_SOURCE 1
3322_ACEOF
3323
3324else
3325 echo "$as_me:$LINENO: result: no" >&5
3326echo "${ECHO_T}no" >&6
3327fi
3328rm -f conftest*
3329
3330
3331echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3332echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3333if test "${ac_cv_header_stdc+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
3342#include <stdlib.h>
3343#include <stdarg.h>
3344#include <string.h>
3345#include <float.h>
3346
3347int
3348main ()
3349{
3350
3351 ;
3352 return 0;
3353}
3354_ACEOF
3355rm -f conftest.$ac_objext
3356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_header_stdc=yes
3378else
3379 echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382ac_cv_header_stdc=no
3383fi
3384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385
3386if test $ac_cv_header_stdc = yes; then
3387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3388 cat >conftest.$ac_ext <<_ACEOF
3389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394#include <string.h>
3395
3396_ACEOF
3397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "memchr" >/dev/null 2>&1; then
3399 :
3400else
3401 ac_cv_header_stdc=no
3402fi
3403rm -f conftest*
3404
3405fi
3406
3407if test $ac_cv_header_stdc = yes; then
3408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3409 cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415#include <stdlib.h>
3416
3417_ACEOF
3418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "free" >/dev/null 2>&1; then
3420 :
3421else
3422 ac_cv_header_stdc=no
3423fi
3424rm -f conftest*
3425
3426fi
3427
3428if test $ac_cv_header_stdc = yes; then
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430 if test "$cross_compiling" = yes; then
3431 :
3432else
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#include <ctype.h>
3440#if ((' ' & 0x0FF) == 0x020)
3441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3443#else
3444# define ISLOWER(c) \
3445 (('a' <= (c) && (c) <= 'i') \
3446 || ('j' <= (c) && (c) <= 'r') \
3447 || ('s' <= (c) && (c) <= 'z'))
3448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3449#endif
3450
3451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3452int
3453main ()
3454{
3455 int i;
3456 for (i = 0; i < 256; i++)
3457 if (XOR (islower (i), ISLOWER (i))
3458 || toupper (i) != TOUPPER (i))
3459 exit(2);
3460 exit (0);
3461}
3462_ACEOF
3463rm -f conftest$ac_exeext
3464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465 (eval $ac_link) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 :
3475else
3476 echo "$as_me: program exited with status $ac_status" >&5
3477echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480( exit $ac_status )
3481ac_cv_header_stdc=no
3482fi
3483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3484fi
3485fi
3486fi
3487echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489if test $ac_cv_header_stdc = yes; then
3490
3491cat >>confdefs.h <<\_ACEOF
3492#define STDC_HEADERS 1
3493_ACEOF
3494
3495fi
3496
3497# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3508 inttypes.h stdint.h unistd.h
3509do
3510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511echo "$as_me:$LINENO: checking for $ac_header" >&5
3512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515else
3516 cat >conftest.$ac_ext <<_ACEOF
3517/* confdefs.h. */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h. */
3522$ac_includes_default
3523
3524#include <$ac_header>
3525_ACEOF
3526rm -f conftest.$ac_objext
3527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 eval "$as_ac_Header=yes"
3549else
3550 echo "$as_me: failed program was:" >&5
3551sed 's/^/| /' conftest.$ac_ext >&5
3552
3553eval "$as_ac_Header=no"
3554fi
3555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556fi
3557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559if test `eval echo '${'$as_ac_Header'}'` = yes; then
3560 cat >>confdefs.h <<_ACEOF
3561#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3562_ACEOF
3563
3564fi
3565
3566done
3567
3568
3569if test "${ac_cv_header_minix_config_h+set}" = set; then
3570 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3571echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3572if test "${ac_cv_header_minix_config_h+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574fi
3575echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3576echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3577else
3578 # Is the header compilable?
3579echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3580echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3581cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h. */
3587$ac_includes_default
3588#include <minix/config.h>
3589_ACEOF
3590rm -f conftest.$ac_objext
3591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_header_compiler=yes
3613else
3614 echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617ac_header_compiler=no
3618fi
3619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3621echo "${ECHO_T}$ac_header_compiler" >&6
3622
3623# Is the header present?
3624echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3625echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3626cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632#include <minix/config.h>
3633_ACEOF
3634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } >/dev/null; then
3642 if test -s conftest.err; then
3643 ac_cpp_err=$ac_c_preproc_warn_flag
3644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3645 else
3646 ac_cpp_err=
3647 fi
3648else
3649 ac_cpp_err=yes
3650fi
3651if test -z "$ac_cpp_err"; then
3652 ac_header_preproc=yes
3653else
3654 echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
3656
3657 ac_header_preproc=no
3658fi
3659rm -f conftest.err conftest.$ac_ext
3660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3661echo "${ECHO_T}$ac_header_preproc" >&6
3662
3663# So? What about this header?
3664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3665 yes:no: )
3666 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3667echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3668 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3669echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3670 ac_header_preproc=yes
3671 ;;
3672 no:yes:* )
3673 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3674echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3675 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3676echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3677 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3678echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3679 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3680echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3681 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3682echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3683 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3684echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3685 (
3686 cat <<\_ASBOX
3687## -------------------------------------------------- ##
3688## Report this to courier-users@lists.sourceforge.net ##
3689## -------------------------------------------------- ##
3690_ASBOX
3691 ) |
3692 sed "s/^/$as_me: WARNING: /" >&2
3693 ;;
3694esac
3695echo "$as_me:$LINENO: checking for minix/config.h" >&5
3696echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3697if test "${ac_cv_header_minix_config_h+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700 ac_cv_header_minix_config_h=$ac_header_preproc
3701fi
3702echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3703echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3704
3705fi
3706if test $ac_cv_header_minix_config_h = yes; then
3707 MINIX=yes
3708else
3709 MINIX=
3710fi
3711
3712
3713if test "$MINIX" = yes; then
3714
3715cat >>confdefs.h <<\_ACEOF
3716#define _POSIX_SOURCE 1
3717_ACEOF
3718
3719
3720cat >>confdefs.h <<\_ACEOF
3721#define _POSIX_1_SOURCE 2
3722_ACEOF
3723
3724
3725cat >>confdefs.h <<\_ACEOF
3726#define _MINIX 1
3727_ACEOF
3728
3729fi
3730
3731
3732 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3733echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3734if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737 ac_check_lib_save_LIBS=$LIBS
3738LIBS="-lcposix $LIBS"
3739cat >conftest.$ac_ext <<_ACEOF
3740/* confdefs.h. */
3741_ACEOF
3742cat confdefs.h >>conftest.$ac_ext
3743cat >>conftest.$ac_ext <<_ACEOF
3744/* end confdefs.h. */
3745
3746/* Override any gcc2 internal prototype to avoid an error. */
3747#ifdef __cplusplus
3748extern "C"
3749#endif
3750/* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3752char strerror ();
3753int
3754main ()
3755{
3756strerror ();
3757 ;
3758 return 0;
3759}
3760_ACEOF
3761rm -f conftest.$ac_objext conftest$ac_exeext
3762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3763 (eval $ac_link) 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest$ac_exeext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 ac_cv_lib_cposix_strerror=yes
3784else
3785 echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788ac_cv_lib_cposix_strerror=no
3789fi
3790rm -f conftest.err conftest.$ac_objext \
3791 conftest$ac_exeext conftest.$ac_ext
3792LIBS=$ac_check_lib_save_LIBS
3793fi
3794echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3795echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3796if test $ac_cv_lib_cposix_strerror = yes; then
3797 LIBS="$LIBS -lcposix"
3798fi
3799
3800
3801
3802for ac_prog in gawk mawk nawk awk
3803do
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805set dummy $ac_prog; ac_word=$2
3806echo "$as_me:$LINENO: checking for $ac_word" >&5
3807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808if test "${ac_cv_prog_AWK+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 if test -n "$AWK"; then
3812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_AWK="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825done
3826done
3827
3828fi
3829fi
3830AWK=$ac_cv_prog_AWK
3831if test -n "$AWK"; then
3832 echo "$as_me:$LINENO: result: $AWK" >&5
3833echo "${ECHO_T}$AWK" >&6
3834else
3835 echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6
3837fi
3838
3839 test -n "$AWK" && break
3840done
3841
3842ac_ext=cc
3843ac_cpp='$CXXCPP $CPPFLAGS'
3844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3847if test -n "$ac_tool_prefix"; then
3848 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3849 do
3850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3851set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3852echo "$as_me:$LINENO: checking for $ac_word" >&5
3853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854if test "${ac_cv_prog_CXX+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857 if test -n "$CXX"; then
3858 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3870 fi
3871done
3872done
3873
3874fi
3875fi
3876CXX=$ac_cv_prog_CXX
3877if test -n "$CXX"; then
3878 echo "$as_me:$LINENO: result: $CXX" >&5
3879echo "${ECHO_T}$CXX" >&6
3880else
3881 echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6
3883fi
3884
3885 test -n "$CXX" && break
3886 done
3887fi
3888if test -z "$CXX"; then
3889 ac_ct_CXX=$CXX
3890 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3891do
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893set dummy $ac_prog; ac_word=$2
3894echo "$as_me:$LINENO: checking for $ac_word" >&5
3895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 if test -n "$ac_ct_CXX"; then
3900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3901else
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_CXX="$ac_prog"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913done
3914done
3915
3916fi
3917fi
3918ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3919if test -n "$ac_ct_CXX"; then
3920 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3921echo "${ECHO_T}$ac_ct_CXX" >&6
3922else
3923 echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6
3925fi
3926
3927 test -n "$ac_ct_CXX" && break
3928done
3929test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3930
3931 CXX=$ac_ct_CXX
3932fi
3933
3934
3935# Provide some information about the compiler.
3936echo "$as_me:$LINENO:" \
3937 "checking for C++ compiler version" >&5
3938ac_compiler=`set X $ac_compile; echo $2`
3939{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3940 (eval $ac_compiler --version </dev/null >&5) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }
3944{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3945 (eval $ac_compiler -v </dev/null >&5) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }
3949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3950 (eval $ac_compiler -V </dev/null >&5) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }
3954
3955echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3956echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3957if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960 cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h. */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h. */
3966
3967int
3968main ()
3969{
3970#ifndef __GNUC__
3971 choke me
3972#endif
3973
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978rm -f conftest.$ac_objext
3979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_cxx_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_compiler_gnu=yes
4001else
4002 echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005ac_compiler_gnu=no
4006fi
4007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4012echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4013GXX=`test $ac_compiler_gnu = yes && echo yes`
4014ac_test_CXXFLAGS=${CXXFLAGS+set}
4015ac_save_CXXFLAGS=$CXXFLAGS
4016CXXFLAGS="-g"
4017echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4018echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4019if test "${ac_cv_prog_cxx_g+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 cat >conftest.$ac_ext <<_ACEOF
4023/* confdefs.h. */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037rm -f conftest.$ac_objext
4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>conftest.er1
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try='test -z "$ac_cxx_werror_flag"
4047 || test ! -s conftest.err'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 ac_cv_prog_cxx_g=yes
4060else
4061 echo "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064ac_cv_prog_cxx_g=no
4065fi
4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4067fi
4068echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4069echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4070if test "$ac_test_CXXFLAGS" = set; then
4071 CXXFLAGS=$ac_save_CXXFLAGS
4072elif test $ac_cv_prog_cxx_g = yes; then
4073 if test "$GXX" = yes; then
4074 CXXFLAGS="-g -O2"
4075 else
4076 CXXFLAGS="-g"
4077 fi
4078else
4079 if test "$GXX" = yes; then
4080 CXXFLAGS="-O2"
4081 else
4082 CXXFLAGS=
4083 fi
4084fi
4085for ac_declaration in \
4086 '' \
4087 'extern "C" void std::exit (int) throw (); using std::exit;' \
4088 'extern "C" void std::exit (int); using std::exit;' \
4089 'extern "C" void exit (int) throw ();' \
4090 'extern "C" void exit (int);' \
4091 'void exit (int);'
4092do
4093 cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h. */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h. */
4099$ac_declaration
4100#include <stdlib.h>
4101int
4102main ()
4103{
4104exit (42);
4105 ;
4106 return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_cxx_werror_flag"
4119 || test ! -s conftest.err'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 :
4132else
4133 echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136continue
4137fi
4138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
4144/* end confdefs.h. */
4145$ac_declaration
4146int
4147main ()
4148{
4149exit (42);
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_cxx_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 break
4177else
4178 echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
4181fi
4182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183done
4184rm -f conftest*
4185if test -n "$ac_declaration"; then
4186 echo '#ifdef __cplusplus' >>confdefs.h
4187 echo $ac_declaration >>confdefs.h
4188 echo '#endif' >>confdefs.h
4189fi
4190
4191ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197depcc="$CXX" am_compiler_list=
4198
4199echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4200echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4201if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4205 # We make a subdir and do the tests there. Otherwise we can end up
4206 # making bogus files that we don't know about and never remove. For
4207 # instance it was reported that on HP-UX the gcc test will end up
4208 # making a dummy file named `D' -- because `-MD' means `put the output
4209 # in D'.
4210 mkdir conftest.dir
4211 # Copy depcomp to subdir because otherwise we won't find it if we're
4212 # using a relative directory.
4213 cp "$am_depcomp" conftest.dir
4214 cd conftest.dir
4215 # We will build objects and dependencies in a subdirectory because
4216 # it helps to detect inapplicable dependency modes. For instance
4217 # both Tru64's cc and ICC support -MD to output dependencies as a
4218 # side effect of compilation, but ICC will put the dependencies in
4219 # the current directory while Tru64 will put them in the object
4220 # directory.
4221 mkdir sub
4222
4223 am_cv_CXX_dependencies_compiler_type=none
4224 if test "$am_compiler_list" = ""; then
4225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4226 fi
4227 for depmode in $am_compiler_list; do
4228 # Setup a source with many dependencies, because some compilers
4229 # like to wrap large dependency lists on column 80 (with \), and
4230 # we should not choose a depcomp mode which is confused by this.
4231 #
4232 # We need to recreate these files for each test, as the compiler may
4233 # overwrite some of them when testing with obscure command lines.
4234 # This happens at least with the AIX C compiler.
4235 : > sub/conftest.c
4236 for i in 1 2 3 4 5 6; do
4237 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4239 # Solaris 8's {/usr,}/bin/sh.
4240 touch sub/conftst$i.h
4241 done
4242 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4243
4244 case $depmode in
4245 nosideeffect)
4246 # after this tag, mechanisms are not by side-effect, so they'll
4247 # only be used when explicitly requested
4248 if test "x$enable_dependency_tracking" = xyes; then
4249 continue
4250 else
4251 break
4252 fi
4253 ;;
4254 none) break ;;
4255 esac
4256 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4257 # mode. It turns out that the SunPro C++ compiler does not properly
4258 # handle `-M -o', and we need to detect this.
4259 if depmode=$depmode \
4260 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4262 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4263 >/dev/null 2>conftest.err &&
4264 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4265 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4266 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4267 # icc doesn't choke on unknown options, it will just issue warnings
4268 # or remarks (even with -Werror). So we grep stderr for any message
4269 # that says an option was ignored or not supported.
4270 # When given -MP, icc 7.0 and 7.1 complain thusly:
4271 # icc: Command line warning: ignoring option '-M'; no argument required
4272 # The diagnosis changed in icc 8.0:
4273 # icc: Command line remark: option '-MP' not supported
4274 if (grep 'ignoring option' conftest.err ||
4275 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4276 am_cv_CXX_dependencies_compiler_type=$depmode
4277 break
4278 fi
4279 fi
4280 done
4281
4282 cd ..
4283 rm -rf conftest.dir
4284else
4285 am_cv_CXX_dependencies_compiler_type=none
4286fi
4287
4288fi
4289echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4290echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4291CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4292
4293
4294
4295if
4296 test "x$enable_dependency_tracking" != xno \
4297 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4298 am__fastdepCXX_TRUE=
4299 am__fastdepCXX_FALSE='#'
4300else
4301 am__fastdepCXX_TRUE='#'
4302 am__fastdepCXX_FALSE=
4303fi
4304
4305
4306# Check whether --enable-shared or --disable-shared was given.
4307if test "${enable_shared+set}" = set; then
4308 enableval="$enable_shared"
4309 p=${PACKAGE-default}
4310 case $enableval in
4311 yes) enable_shared=yes ;;
4312 no) enable_shared=no ;;
4313 *)
4314 enable_shared=no
4315 # Look at the argument we got. We use all the common list separators.
4316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317 for pkg in $enableval; do
4318 IFS="$lt_save_ifs"
4319 if test "X$pkg" = "X$p"; then
4320 enable_shared=yes
4321 fi
4322 done
4323 IFS="$lt_save_ifs"
4324 ;;
4325 esac
4326else
4327 enable_shared=yes
4328fi;
4329
4330# Check whether --enable-static or --disable-static was given.
4331if test "${enable_static+set}" = set; then
4332 enableval="$enable_static"
4333 p=${PACKAGE-default}
4334 case $enableval in
4335 yes) enable_static=yes ;;
4336 no) enable_static=no ;;
4337 *)
4338 enable_static=no
4339 # Look at the argument we got. We use all the common list separators.
4340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4341 for pkg in $enableval; do
4342 IFS="$lt_save_ifs"
4343 if test "X$pkg" = "X$p"; then
4344 enable_static=yes
4345 fi
4346 done
4347 IFS="$lt_save_ifs"
4348 ;;
4349 esac
4350else
4351 enable_static=yes
4352fi;
4353
4354# Check whether --enable-fast-install or --disable-fast-install was given.
4355if test "${enable_fast_install+set}" = set; then
4356 enableval="$enable_fast_install"
4357 p=${PACKAGE-default}
4358 case $enableval in
4359 yes) enable_fast_install=yes ;;
4360 no) enable_fast_install=no ;;
4361 *)
4362 enable_fast_install=no
4363 # Look at the argument we got. We use all the common list separators.
4364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4365 for pkg in $enableval; do
4366 IFS="$lt_save_ifs"
4367 if test "X$pkg" = "X$p"; then
4368 enable_fast_install=yes
4369 fi
4370 done
4371 IFS="$lt_save_ifs"
4372 ;;
4373 esac
4374else
4375 enable_fast_install=yes
4376fi;
4377
4378# Make sure we can run config.sub.
4379$ac_config_sub sun4 >/dev/null 2>&1 ||
4380 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4381echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4382 { (exit 1); exit 1; }; }
4383
4384echo "$as_me:$LINENO: checking build system type" >&5
4385echo $ECHO_N "checking build system type... $ECHO_C" >&6
4386if test "${ac_cv_build+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389 ac_cv_build_alias=$build_alias
4390test -z "$ac_cv_build_alias" &&
4391 ac_cv_build_alias=`$ac_config_guess`
4392test -z "$ac_cv_build_alias" &&
4393 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4394echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4395 { (exit 1); exit 1; }; }
4396ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4398echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4399 { (exit 1); exit 1; }; }
4400
4401fi
4402echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4403echo "${ECHO_T}$ac_cv_build" >&6
4404build=$ac_cv_build
4405build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4406build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4407build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4408
4409
4410echo "$as_me:$LINENO: checking host system type" >&5
4411echo $ECHO_N "checking host system type... $ECHO_C" >&6
4412if test "${ac_cv_host+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 ac_cv_host_alias=$host_alias
4416test -z "$ac_cv_host_alias" &&
4417 ac_cv_host_alias=$ac_cv_build_alias
4418ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4420echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4421 { (exit 1); exit 1; }; }
4422
4423fi
4424echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4425echo "${ECHO_T}$ac_cv_host" >&6
4426host=$ac_cv_host
4427host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4428host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4429host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4430
4431
4432echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4433echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4434if test "${lt_cv_path_SED+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437 # Loop through the user's path and test for sed and gsed.
4438# Then use that list of sed's as ones to test for truncation.
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for lt_ac_prog in sed gsed; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4447 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4448 fi
4449 done
4450 done
4451done
4452IFS=$as_save_IFS
4453lt_ac_max=0
4454lt_ac_count=0
4455# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4456# along with /bin/sed that truncates output.
4457for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4458 test ! -f $lt_ac_sed && continue
4459 cat /dev/null > conftest.in
4460 lt_ac_count=0
4461 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4462 # Check for GNU sed and select it if it is found.
4463 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4464 lt_cv_path_SED=$lt_ac_sed
4465 break
4466 fi
4467 while true; do
4468 cat conftest.in conftest.in >conftest.tmp
4469 mv conftest.tmp conftest.in
4470 cp conftest.in conftest.nl
4471 echo >>conftest.nl
4472 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4473 cmp -s conftest.out conftest.nl || break
4474 # 10000 chars as input seems more than enough
4475 test $lt_ac_count -gt 10 && break
4476 lt_ac_count=`expr $lt_ac_count + 1`
4477 if test $lt_ac_count -gt $lt_ac_max; then
4478 lt_ac_max=$lt_ac_count
4479 lt_cv_path_SED=$lt_ac_sed
4480 fi
4481 done
4482done
4483
4484fi
4485
4486SED=$lt_cv_path_SED
4487
4488echo "$as_me:$LINENO: result: $SED" >&5
4489echo "${ECHO_T}$SED" >&6
4490
4491
4492# Check whether --with-gnu-ld or --without-gnu-ld was given.
4493if test "${with_gnu_ld+set}" = set; then
4494 withval="$with_gnu_ld"
4495 test "$withval" = no || with_gnu_ld=yes
4496else
4497 with_gnu_ld=no
4498fi;
4499ac_prog=ld
4500if test "$GCC" = yes; then
4501 # Check if gcc -print-prog-name=ld gives a path.
4502 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4503echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4504 case $host in
4505 *-*-mingw*)
4506 # gcc leaves a trailing carriage return which upsets mingw
4507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4508 *)
4509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4510 esac
4511 case $ac_prog in
4512 # Accept absolute paths.
4513 [\\/]* | ?:[\\/]*)
4514 re_direlt='/[^/][^/]*/\.\./'
4515 # Canonicalize the pathname of ld
4516 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4517 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4518 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4519 done
4520 test -z "$LD" && LD="$ac_prog"
4521 ;;
4522 "")
4523 # If it fails, then pretend we aren't using GCC.
4524 ac_prog=ld
4525 ;;
4526 *)
4527 # If it is relative, then search for the first ld in PATH.
4528 with_gnu_ld=unknown
4529 ;;
4530 esac
4531elif test "$with_gnu_ld" = yes; then
4532 echo "$as_me:$LINENO: checking for GNU ld" >&5
4533echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4534else
4535 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4536echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4537fi
4538if test "${lt_cv_path_LD+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 if test -z "$LD"; then
4542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4543 for ac_dir in $PATH; do
4544 IFS="$lt_save_ifs"
4545 test -z "$ac_dir" && ac_dir=.
4546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4547 lt_cv_path_LD="$ac_dir/$ac_prog"
4548 # Check to see if the program is GNU ld. I'd rather use --version,
4549 # but apparently some variants of GNU ld only accept -v.
4550 # Break only if it was the GNU/non-GNU ld that we prefer.
4551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4552 *GNU* | *'with BFD'*)
4553 test "$with_gnu_ld" != no && break
4554 ;;
4555 *)
4556 test "$with_gnu_ld" != yes && break
4557 ;;
4558 esac
4559 fi
4560 done
4561 IFS="$lt_save_ifs"
4562else
4563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4564fi
4565fi
4566
4567LD="$lt_cv_path_LD"
4568if test -n "$LD"; then
4569 echo "$as_me:$LINENO: result: $LD" >&5
4570echo "${ECHO_T}$LD" >&6
4571else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574fi
4575test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4576echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4577 { (exit 1); exit 1; }; }
4578echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4579echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4580if test "${lt_cv_prog_gnu_ld+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4584case `$LD -v 2>&1 </dev/null` in
4585*GNU* | *'with BFD'*)
4586 lt_cv_prog_gnu_ld=yes
4587 ;;
4588*)
4589 lt_cv_prog_gnu_ld=no
4590 ;;
4591esac
4592fi
4593echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4594echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4595with_gnu_ld=$lt_cv_prog_gnu_ld
4596
4597
4598echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4599echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4600if test "${lt_cv_ld_reload_flag+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603 lt_cv_ld_reload_flag='-r'
4604fi
4605echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4606echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4607reload_flag=$lt_cv_ld_reload_flag
4608case $reload_flag in
4609"" | " "*) ;;
4610*) reload_flag=" $reload_flag" ;;
4611esac
4612reload_cmds='$LD$reload_flag -o $output$reload_objs'
4613case $host_os in
4614 darwin*)
4615 if test "$GCC" = yes; then
4616 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4617 else
4618 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4619 fi
4620 ;;
4621esac
4622
4623echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4624echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4625if test "${lt_cv_path_NM+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 if test -n "$NM"; then
4629 # Let the user override the test.
4630 lt_cv_path_NM="$NM"
4631else
4632 lt_nm_to_check="${ac_tool_prefix}nm"
4633 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4634 lt_nm_to_check="$lt_nm_to_check nm"
4635 fi
4636 for lt_tmp_nm in $lt_nm_to_check; do
4637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4638 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4639 IFS="$lt_save_ifs"
4640 test -z "$ac_dir" && ac_dir=.
4641 tmp_nm="$ac_dir/$lt_tmp_nm"
4642 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4643 # Check to see if the nm accepts a BSD-compat flag.
4644 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4645 # nm: unknown option "B" ignored
4646 # Tru64's nm complains that /dev/null is an invalid object file
4647 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4648 */dev/null* | *'Invalid file or object type'*)
4649 lt_cv_path_NM="$tmp_nm -B"
4650 break
4651 ;;
4652 *)
4653 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4654 */dev/null*)
4655 lt_cv_path_NM="$tmp_nm -p"
4656 break
4657 ;;
4658 *)
4659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4660 continue # so that we can try to find one that supports BSD flags
4661 ;;
4662 esac
4663 ;;
4664 esac
4665 fi
4666 done
4667 IFS="$lt_save_ifs"
4668 done
4669 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4670fi
4671fi
4672echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4673echo "${ECHO_T}$lt_cv_path_NM" >&6
4674NM="$lt_cv_path_NM"
4675
4676echo "$as_me:$LINENO: checking whether ln -s works" >&5
4677echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4678LN_S=$as_ln_s
4679if test "$LN_S" = "ln -s"; then
4680 echo "$as_me:$LINENO: result: yes" >&5
4681echo "${ECHO_T}yes" >&6
4682else
4683 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4684echo "${ECHO_T}no, using $LN_S" >&6
4685fi
4686
4687echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4688echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4689if test "${lt_cv_deplibs_check_method+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692 lt_cv_file_magic_cmd='$MAGIC_CMD'
4693lt_cv_file_magic_test_file=
4694lt_cv_deplibs_check_method='unknown'
4695# Need to set the preceding variable on all platforms that support
4696# interlibrary dependencies.
4697# 'none' -- dependencies not supported.
4698# `unknown' -- same as none, but documents that we really don't know.
4699# 'pass_all' -- all dependencies passed with no checks.
4700# 'test_compile' -- check by making test program.
4701# 'file_magic [[regex]]' -- check by looking for files in library path
4702# which responds to the $file_magic_cmd with a given extended regex.
4703# If you have `file' or equivalent on your system and you're not sure
4704# whether `pass_all' will *always* work, you probably want this one.
4705
4706case $host_os in
4707aix4* | aix5*)
4708 lt_cv_deplibs_check_method=pass_all
4709 ;;
4710
4711beos*)
4712 lt_cv_deplibs_check_method=pass_all
4713 ;;
4714
4715bsdi[45]*)
4716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4717 lt_cv_file_magic_cmd='/usr/bin/file -L'
4718 lt_cv_file_magic_test_file=/shlib/libc.so
4719 ;;
4720
4721cygwin*)
4722 # func_win32_libid is a shell function defined in ltmain.sh
4723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4724 lt_cv_file_magic_cmd='func_win32_libid'
4725 ;;
4726
4727mingw* | pw32*)
4728 # Base MSYS/MinGW do not provide the 'file' command needed by
4729 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4730 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4731 lt_cv_file_magic_cmd='$OBJDUMP -f'
4732 ;;
4733
4734darwin* | rhapsody*)
4735 lt_cv_deplibs_check_method=pass_all
4736 ;;
4737
4738freebsd* | kfreebsd*-gnu | dragonfly*)
4739 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4740 case $host_cpu in
4741 i*86 )
4742 # Not sure whether the presence of OpenBSD here was a mistake.
4743 # Let's accept both of them until this is cleared up.
4744 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4745 lt_cv_file_magic_cmd=/usr/bin/file
4746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4747 ;;
4748 esac
4749 else
4750 lt_cv_deplibs_check_method=pass_all
4751 fi
4752 ;;
4753
4754gnu*)
4755 lt_cv_deplibs_check_method=pass_all
4756 ;;
4757
4758hpux10.20* | hpux11*)
4759 lt_cv_file_magic_cmd=/usr/bin/file
4760 case $host_cpu in
4761 ia64*)
4762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4763 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4764 ;;
4765 hppa*64*)
4766 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]'
4767 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4768 ;;
4769 *)
4770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4771 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4772 ;;
4773 esac
4774 ;;
4775
4776interix3*)
4777 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4779 ;;
4780
4781irix5* | irix6* | nonstopux*)
4782 case $LD in
4783 *-32|*"-32 ") libmagic=32-bit;;
4784 *-n32|*"-n32 ") libmagic=N32;;
4785 *-64|*"-64 ") libmagic=64-bit;;
4786 *) libmagic=never-match;;
4787 esac
4788 lt_cv_deplibs_check_method=pass_all
4789 ;;
4790
4791# This must be Linux ELF.
4792linux*)
4793 lt_cv_deplibs_check_method=pass_all
4794 ;;
4795
4796netbsd*)
4797 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4799 else
4800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4801 fi
4802 ;;
4803
4804newos6*)
4805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4806 lt_cv_file_magic_cmd=/usr/bin/file
4807 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4808 ;;
4809
4810nto-qnx*)
4811 lt_cv_deplibs_check_method=unknown
4812 ;;
4813
4814openbsd*)
4815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4817 else
4818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4819 fi
4820 ;;
4821
4822osf3* | osf4* | osf5*)
4823 lt_cv_deplibs_check_method=pass_all
4824 ;;
4825
4826solaris*)
4827 lt_cv_deplibs_check_method=pass_all
4828 ;;
4829
4830sysv4 | sysv4.3*)
4831 case $host_vendor in
4832 motorola)
4833 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]'
4834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4835 ;;
4836 ncr)
4837 lt_cv_deplibs_check_method=pass_all
4838 ;;
4839 sequent)
4840 lt_cv_file_magic_cmd='/bin/file'
4841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4842 ;;
4843 sni)
4844 lt_cv_file_magic_cmd='/bin/file'
4845 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4846 lt_cv_file_magic_test_file=/lib/libc.so
4847 ;;
4848 siemens)
4849 lt_cv_deplibs_check_method=pass_all
4850 ;;
4851 pc)
4852 lt_cv_deplibs_check_method=pass_all
4853 ;;
4854 esac
4855 ;;
4856
4857sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4858 lt_cv_deplibs_check_method=pass_all
4859 ;;
4860esac
4861
4862fi
4863echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4864echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4865file_magic_cmd=$lt_cv_file_magic_cmd
4866deplibs_check_method=$lt_cv_deplibs_check_method
4867test -z "$deplibs_check_method" && deplibs_check_method=unknown
4868
4869
4870
4871
4872# If no C compiler was specified, use CC.
4873LTCC=${LTCC-"$CC"}
4874
4875# If no C compiler flags were specified, use CFLAGS.
4876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4877
4878# Allow CC to be a program name with arguments.
4879compiler=$CC
4880
4881# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4882if test "${enable_libtool_lock+set}" = set; then
4883 enableval="$enable_libtool_lock"
4884
4885fi;
4886test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4887
4888# Some flags need to be propagated to the compiler or linker for good
4889# libtool support.
4890case $host in
4891ia64-*-hpux*)
4892 # Find out which ABI we are using.
4893 echo 'int i;' > conftest.$ac_ext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 case `/usr/bin/file conftest.$ac_objext` in
4900 *ELF-32*)
4901 HPUX_IA64_MODE="32"
4902 ;;
4903 *ELF-64*)
4904 HPUX_IA64_MODE="64"
4905 ;;
4906 esac
4907 fi
4908 rm -rf conftest*
4909 ;;
4910*-*-irix6*)
4911 # Find out which ABI we are using.
4912 echo '#line 4912 "configure"' > conftest.$ac_ext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; then
4918 if test "$lt_cv_prog_gnu_ld" = yes; then
4919 case `/usr/bin/file conftest.$ac_objext` in
4920 *32-bit*)
4921 LD="${LD-ld} -melf32bsmip"
4922 ;;
4923 *N32*)
4924 LD="${LD-ld} -melf32bmipn32"
4925 ;;
4926 *64-bit*)
4927 LD="${LD-ld} -melf64bmip"
4928 ;;
4929 esac
4930 else
4931 case `/usr/bin/file conftest.$ac_objext` in
4932 *32-bit*)
4933 LD="${LD-ld} -32"
4934 ;;
4935 *N32*)
4936 LD="${LD-ld} -n32"
4937 ;;
4938 *64-bit*)
4939 LD="${LD-ld} -64"
4940 ;;
4941 esac
4942 fi
4943 fi
4944 rm -rf conftest*
4945 ;;
4946
4947x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4948 # Find out which ABI we are using.
4949 echo 'int i;' > conftest.$ac_ext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; then
4955 case `/usr/bin/file conftest.o` in
4956 *32-bit*)
4957 case $host in
4958 x86_64-*linux*)
4959 LD="${LD-ld} -m elf_i386"
4960 ;;
4961 ppc64-*linux*|powerpc64-*linux*)
4962 LD="${LD-ld} -m elf32ppclinux"
4963 ;;
4964 s390x-*linux*)
4965 LD="${LD-ld} -m elf_s390"
4966 ;;
4967 sparc64-*linux*)
4968 LD="${LD-ld} -m elf32_sparc"
4969 ;;
4970 esac
4971 ;;
4972 *64-bit*)
4973 case $host in
4974 x86_64-*linux*)
4975 LD="${LD-ld} -m elf_x86_64"
4976 ;;
4977 ppc*-*linux*|powerpc*-*linux*)
4978 LD="${LD-ld} -m elf64ppc"
4979 ;;
4980 s390*-*linux*)
4981 LD="${LD-ld} -m elf64_s390"
4982 ;;
4983 sparc*-*linux*)
4984 LD="${LD-ld} -m elf64_sparc"
4985 ;;
4986 esac
4987 ;;
4988 esac
4989 fi
4990 rm -rf conftest*
4991 ;;
4992
4993*-*-sco3.2v5*)
4994 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4995 SAVE_CFLAGS="$CFLAGS"
4996 CFLAGS="$CFLAGS -belf"
4997 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4998echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4999if test "${lt_cv_cc_needs_belf+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5001else
5002 ac_ext=c
5003ac_cpp='$CPP $CPPFLAGS'
5004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008 cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h. */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h. */
5014
5015int
5016main ()
5017{
5018
5019 ;
5020 return 0;
5021}
5022_ACEOF
5023rm -f conftest.$ac_objext conftest$ac_exeext
5024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5025 (eval $ac_link) 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 lt_cv_cc_needs_belf=yes
5046else
5047 echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050lt_cv_cc_needs_belf=no
5051fi
5052rm -f conftest.err conftest.$ac_objext \
5053 conftest$ac_exeext conftest.$ac_ext
5054 ac_ext=c
5055ac_cpp='$CPP $CPPFLAGS'
5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060fi
5061echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5062echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5063 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5064 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5065 CFLAGS="$SAVE_CFLAGS"
5066 fi
5067 ;;
5068sparc*-*solaris*)
5069 # Find out which ABI we are using.
5070 echo 'int i;' > conftest.$ac_ext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; then
5076 case `/usr/bin/file conftest.o` in
5077 *64-bit*)
5078 case $lt_cv_prog_gnu_ld in
5079 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5080 *) LD="${LD-ld} -64" ;;
5081 esac
5082 ;;
5083 esac
5084 fi
5085 rm -rf conftest*
5086 ;;
5087
5088
5089esac
5090
5091need_locks="$enable_libtool_lock"
5092
5093
5094
5095for ac_header in dlfcn.h
5096do
5097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5098if eval "test \"\${$as_ac_Header+set}\" = set"; then
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103fi
5104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5106else
5107 # Is the header compilable?
5108echo "$as_me:$LINENO: checking $ac_header usability" >&5
5109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5110cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h. */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h. */
5116$ac_includes_default
5117#include <$ac_header>
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_header_compiler=yes
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146ac_header_compiler=no
5147fi
5148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5150echo "${ECHO_T}$ac_header_compiler" >&6
5151
5152# Is the header present?
5153echo "$as_me:$LINENO: checking $ac_header presence" >&5
5154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5155cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h. */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h. */
5161#include <$ac_header>
5162_ACEOF
5163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null; then
5171 if test -s conftest.err; then
5172 ac_cpp_err=$ac_c_preproc_warn_flag
5173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5174 else
5175 ac_cpp_err=
5176 fi
5177else
5178 ac_cpp_err=yes
5179fi
5180if test -z "$ac_cpp_err"; then
5181 ac_header_preproc=yes
5182else
5183 echo "$as_me: failed program was:" >&5
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_header_preproc=no
5187fi
5188rm -f conftest.err conftest.$ac_ext
5189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190echo "${ECHO_T}$ac_header_preproc" >&6
5191
5192# So? What about this header?
5193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5194 yes:no: )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc=yes
5200 ;;
5201 no:yes:* )
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5214 (
5215 cat <<\_ASBOX
5216## -------------------------------------------------- ##
5217## Report this to courier-users@lists.sourceforge.net ##
5218## -------------------------------------------------- ##
5219_ASBOX
5220 ) |
5221 sed "s/^/$as_me: WARNING: /" >&2
5222 ;;
5223esac
5224echo "$as_me:$LINENO: checking for $ac_header" >&5
5225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5226if eval "test \"\${$as_ac_Header+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229 eval "$as_ac_Header=\$ac_header_preproc"
5230fi
5231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5233
5234fi
5235if test `eval echo '${'$as_ac_Header'}'` = yes; then
5236 cat >>confdefs.h <<_ACEOF
5237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238_ACEOF
5239
5240fi
5241
5242done
5243
5244
5245
5246if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5247 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5248 (test "X$CXX" != "Xg++"))) ; then
5249 ac_ext=cc
5250ac_cpp='$CXXCPP $CPPFLAGS'
5251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5254echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5255echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5256if test -z "$CXXCPP"; then
5257 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260 # Double quotes because CXXCPP needs to be expanded
5261 for CXXCPP in "$CXX -E" "/lib/cpp"
5262 do
5263 ac_preproc_ok=false
5264for ac_cxx_preproc_warn_flag in '' yes
5265do
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
5278#ifdef __STDC__
5279# include <limits.h>
5280#else
5281# include <assert.h>
5282#endif
5283 Syntax error
5284_ACEOF
5285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev/null; then
5293 if test -s conftest.err; then
5294 ac_cpp_err=$ac_cxx_preproc_warn_flag
5295 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5296 else
5297 ac_cpp_err=
5298 fi
5299else
5300 ac_cpp_err=yes
5301fi
5302if test -z "$ac_cpp_err"; then
5303 :
5304else
5305 echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 # Broken: fails on valid input.
5309continue
5310fi
5311rm -f conftest.err conftest.$ac_ext
5312
5313 # OK, works on sane cases. Now check whether non-existent headers
5314 # can be detected and how.
5315 cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h. */
5317_ACEOF
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h. */
5321#include <ac_nonexistent.h>
5322_ACEOF
5323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } >/dev/null; then
5331 if test -s conftest.err; then
5332 ac_cpp_err=$ac_cxx_preproc_warn_flag
5333 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5334 else
5335 ac_cpp_err=
5336 fi
5337else
5338 ac_cpp_err=yes
5339fi
5340if test -z "$ac_cpp_err"; then
5341 # Broken: success on invalid input.
5342continue
5343else
5344 echo "$as_me: failed program was:" >&5
5345sed 's/^/| /' conftest.$ac_ext >&5
5346
5347 # Passes both tests.
5348ac_preproc_ok=:
5349break
5350fi
5351rm -f conftest.err conftest.$ac_ext
5352
5353done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then
5357 break
5358fi
5359
5360 done
5361 ac_cv_prog_CXXCPP=$CXXCPP
5362
5363fi
5364 CXXCPP=$ac_cv_prog_CXXCPP
5365else
5366 ac_cv_prog_CXXCPP=$CXXCPP
5367fi
5368echo "$as_me:$LINENO: result: $CXXCPP" >&5
5369echo "${ECHO_T}$CXXCPP" >&6
5370ac_preproc_ok=false
5371for ac_cxx_preproc_warn_flag in '' yes
5372do
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
5385#ifdef __STDC__
5386# include <limits.h>
5387#else
5388# include <assert.h>
5389#endif
5390 Syntax error
5391_ACEOF
5392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_cxx_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5403 else
5404 ac_cpp_err=
5405 fi
5406else
5407 ac_cpp_err=yes
5408fi
5409if test -z "$ac_cpp_err"; then
5410 :
5411else
5412 echo "$as_me: failed program was:" >&5
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 # Broken: fails on valid input.
5416continue
5417fi
5418rm -f conftest.err conftest.$ac_ext
5419
5420 # OK, works on sane cases. Now check whether non-existent headers
5421 # can be detected and how.
5422 cat >conftest.$ac_ext <<_ACEOF
5423/* confdefs.h. */
5424_ACEOF
5425cat confdefs.h >>conftest.$ac_ext
5426cat >>conftest.$ac_ext <<_ACEOF
5427/* end confdefs.h. */
5428#include <ac_nonexistent.h>
5429_ACEOF
5430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null; then
5438 if test -s conftest.err; then
5439 ac_cpp_err=$ac_cxx_preproc_warn_flag
5440 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5441 else
5442 ac_cpp_err=
5443 fi
5444else
5445 ac_cpp_err=yes
5446fi
5447if test -z "$ac_cpp_err"; then
5448 # Broken: success on invalid input.
5449continue
5450else
5451 echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 # Passes both tests.
5455ac_preproc_ok=:
5456break
5457fi
5458rm -f conftest.err conftest.$ac_ext
5459
5460done
5461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462rm -f conftest.err conftest.$ac_ext
5463if $ac_preproc_ok; then
5464 :
5465else
5466 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5467See \`config.log' for more details." >&5
5468echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5469See \`config.log' for more details." >&2;}
5470 { (exit 1); exit 1; }; }
5471fi
5472
5473ac_ext=cc
5474ac_cpp='$CXXCPP $CPPFLAGS'
5475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5478
5479fi
5480
5481
5482ac_ext=f
5483ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5484ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5486if test -n "$ac_tool_prefix"; then
5487 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5488 do
5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5491echo "$as_me:$LINENO: checking for $ac_word" >&5
5492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5493if test "${ac_cv_prog_F77+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 if test -n "$F77"; then
5497 ac_cv_prog_F77="$F77" # Let the user override the test.
5498else
5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500for as_dir in $PATH
5501do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510done
5511done
5512
5513fi
5514fi
5515F77=$ac_cv_prog_F77
5516if test -n "$F77"; then
5517 echo "$as_me:$LINENO: result: $F77" >&5
5518echo "${ECHO_T}$F77" >&6
5519else
5520 echo "$as_me:$LINENO: result: no" >&5
5521echo "${ECHO_T}no" >&6
5522fi
5523
5524 test -n "$F77" && break
5525 done
5526fi
5527if test -z "$F77"; then
5528 ac_ct_F77=$F77
5529 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5530do
5531 # Extract the first word of "$ac_prog", so it can be a program name with args.
5532set dummy $ac_prog; ac_word=$2
5533echo "$as_me:$LINENO: checking for $ac_word" >&5
5534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538 if test -n "$ac_ct_F77"; then
5539 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_F77="$ac_prog"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552done
5553done
5554
5555fi
5556fi
5557ac_ct_F77=$ac_cv_prog_ac_ct_F77
5558if test -n "$ac_ct_F77"; then
5559 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5560echo "${ECHO_T}$ac_ct_F77" >&6
5561else
5562 echo "$as_me:$LINENO: result: no" >&5
5563echo "${ECHO_T}no" >&6
5564fi
5565
5566 test -n "$ac_ct_F77" && break
5567done
5568
5569 F77=$ac_ct_F77
5570fi
5571
5572
5573# Provide some information about the compiler.
5574echo "$as_me:5574:" \
5575 "checking for Fortran 77 compiler version" >&5
5576ac_compiler=`set X $ac_compile; echo $2`
5577{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5578 (eval $ac_compiler --version </dev/null >&5) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }
5582{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5583 (eval $ac_compiler -v </dev/null >&5) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }
5587{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5588 (eval $ac_compiler -V </dev/null >&5) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }
5592rm -f a.out
5593
5594# If we don't use `.F' as extension, the preprocessor is not run on the
5595# input file. (Note that this only needs to work for GNU compilers.)
5596ac_save_ext=$ac_ext
5597ac_ext=F
5598echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5599echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5600if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602else
5603 cat >conftest.$ac_ext <<_ACEOF
5604 program main
5605#ifndef __GNUC__
5606 choke me
5607#endif
5608
5609 end
5610_ACEOF
5611rm -f conftest.$ac_objext
5612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_f77_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 (eval $ac_try) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_compiler_gnu=yes
5634else
5635 echo "$as_me: failed program was:" >&5
5636sed 's/^/| /' conftest.$ac_ext >&5
5637
5638ac_compiler_gnu=no
5639fi
5640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5642
5643fi
5644echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5645echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5646ac_ext=$ac_save_ext
5647ac_test_FFLAGS=${FFLAGS+set}
5648ac_save_FFLAGS=$FFLAGS
5649FFLAGS=
5650echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5651echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5652if test "${ac_cv_prog_f77_g+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655 FFLAGS=-g
5656cat >conftest.$ac_ext <<_ACEOF
5657 program main
5658
5659 end
5660_ACEOF
5661rm -f conftest.$ac_objext
5662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_f77_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_prog_f77_g=yes
5684else
5685 echo "$as_me: failed program was:" >&5
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
5688ac_cv_prog_f77_g=no
5689fi
5690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691
5692fi
5693echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5694echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5695if test "$ac_test_FFLAGS" = set; then
5696 FFLAGS=$ac_save_FFLAGS
5697elif test $ac_cv_prog_f77_g = yes; then
5698 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5699 FFLAGS="-g -O2"
5700 else
5701 FFLAGS="-g"
5702 fi
5703else
5704 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5705 FFLAGS="-O2"
5706 else
5707 FFLAGS=
5708 fi
5709fi
5710
5711G77=`test $ac_compiler_gnu = yes && echo yes`
5712ac_ext=c
5713ac_cpp='$CPP $CPPFLAGS'
5714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717
5718
5719
5720# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5721
5722# find the maximum length of command line arguments
5723echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5724echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5725if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728 i=0
5729 teststring="ABCD"
5730
5731 case $build_os in
5732 msdosdjgpp*)
5733 # On DJGPP, this test can blow up pretty badly due to problems in libc
5734 # (any single argument exceeding 2000 bytes causes a buffer overrun
5735 # during glob expansion). Even if it were fixed, the result of this
5736 # check would be larger than it should be.
5737 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5738 ;;
5739
5740 gnu*)
5741 # Under GNU Hurd, this test is not required because there is
5742 # no limit to the length of command line arguments.
5743 # Libtool will interpret -1 as no limit whatsoever
5744 lt_cv_sys_max_cmd_len=-1;
5745 ;;
5746
5747 cygwin* | mingw*)
5748 # On Win9x/ME, this test blows up -- it succeeds, but takes
5749 # about 5 minutes as the teststring grows exponentially.
5750 # Worse, since 9x/ME are not pre-emptively multitasking,
5751 # you end up with a "frozen" computer, even though with patience
5752 # the test eventually succeeds (with a max line length of 256k).
5753 # Instead, let's just punt: use the minimum linelength reported by
5754 # all of the supported platforms: 8192 (on NT/2K/XP).
5755 lt_cv_sys_max_cmd_len=8192;
5756 ;;
5757
5758 amigaos*)
5759 # On AmigaOS with pdksh, this test takes hours, literally.
5760 # So we just punt and use a minimum line length of 8192.
5761 lt_cv_sys_max_cmd_len=8192;
5762 ;;
5763
5764 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5765 # This has been around since 386BSD, at least. Likely further.
5766 if test -x /sbin/sysctl; then
5767 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5768 elif test -x /usr/sbin/sysctl; then
5769 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5770 else
5771 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5772 fi
5773 # And add a safety zone
5774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5776 ;;
5777
5778 interix*)
5779 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5780 lt_cv_sys_max_cmd_len=196608
5781 ;;
5782
5783 osf*)
5784 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5785 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5786 # nice to cause kernel panics so lets avoid the loop below.
5787 # First set a reasonable default.
5788 lt_cv_sys_max_cmd_len=16384
5789 #
5790 if test -x /sbin/sysconfig; then
5791 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5792 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5793 esac
5794 fi
5795 ;;
5796 sco3.2v5*)
5797 lt_cv_sys_max_cmd_len=102400
5798 ;;
5799 sysv5* | sco5v6* | sysv4.2uw2*)
5800 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5801 if test -n "$kargmax"; then
5802 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5803 else
5804 lt_cv_sys_max_cmd_len=32768
5805 fi
5806 ;;
5807 *)
5808 # If test is not a shell built-in, we'll probably end up computing a
5809 # maximum length that is only half of the actual maximum length, but
5810 # we can't tell.
5811 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5812 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5813 = "XX$teststring") >/dev/null 2>&1 &&
5814 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5815 lt_cv_sys_max_cmd_len=$new_result &&
5816 test $i != 17 # 1/2 MB should be enough
5817 do
5818 i=`expr $i + 1`
5819 teststring=$teststring$teststring
5820 done
5821 teststring=
5822 # Add a significant safety factor because C++ compilers can tack on massive
5823 # amounts of additional arguments before passing them to the linker.
5824 # It appears as though 1/2 is a usable value.
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5826 ;;
5827 esac
5828
5829fi
5830
5831if test -n $lt_cv_sys_max_cmd_len ; then
5832 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5833echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5834else
5835 echo "$as_me:$LINENO: result: none" >&5
5836echo "${ECHO_T}none" >&6
5837fi
5838
5839
5840
5841
5842# Check for command to grab the raw symbol name followed by C symbol from nm.
5843echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5844echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5845if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848
5849# These are sane defaults that work on at least a few old systems.
5850# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5851
5852# Character class describing NM global symbol codes.
5853symcode='[BCDEGRST]'
5854
5855# Regexp to match symbols that can be accessed directly from C.
5856sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5857
5858# Transform an extracted symbol line into a proper C declaration
5859lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5860
5861# Transform an extracted symbol line into symbol name and symbol address
5862lt_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'"
5863
5864# Define system-specific variables.
5865case $host_os in
5866aix*)
5867 symcode='[BCDT]'
5868 ;;
5869cygwin* | mingw* | pw32*)
5870 symcode='[ABCDGISTW]'
5871 ;;
5872hpux*) # Its linker distinguishes data from code symbols
5873 if test "$host_cpu" = ia64; then
5874 symcode='[ABCDEGRST]'
5875 fi
5876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5877 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'"
5878 ;;
5879linux*)
5880 if test "$host_cpu" = ia64; then
5881 symcode='[ABCDGIRSTW]'
5882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5883 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'"
5884 fi
5885 ;;
5886irix* | nonstopux*)
5887 symcode='[BCDEGRST]'
5888 ;;
5889osf*)
5890 symcode='[BCDEGQRST]'
5891 ;;
5892solaris*)
5893 symcode='[BDRT]'
5894 ;;
5895sco3.2v5*)
5896 symcode='[DT]'
5897 ;;
5898sysv4.2uw2*)
5899 symcode='[DT]'
5900 ;;
5901sysv5* | sco5v6* | unixware* | OpenUNIX*)
5902 symcode='[ABDT]'
5903 ;;
5904sysv4)
5905 symcode='[DFNSTU]'
5906 ;;
5907esac
5908
5909# Handle CRLF in mingw tool chain
5910opt_cr=
5911case $build_os in
5912mingw*)
5913 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5914 ;;
5915esac
5916
5917# If we're using GNU nm, then use its standard symbol codes.
5918case `$NM -V 2>&1` in
5919*GNU* | *'with BFD'*)
5920 symcode='[ABCDGIRSTW]' ;;
5921esac
5922
5923# Try without a prefix undercore, then with it.
5924for ac_symprfx in "" "_"; do
5925
5926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5927 symxfrm="\\1 $ac_symprfx\\2 \\2"
5928
5929 # Write the raw and C identifiers.
5930 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5931
5932 # Check to see that the pipe works correctly.
5933 pipe_works=no
5934
5935 rm -f conftest*
5936 cat > conftest.$ac_ext <<EOF
5937#ifdef __cplusplus
5938extern "C" {
5939#endif
5940char nm_test_var;
5941void nm_test_func(){}
5942#ifdef __cplusplus
5943}
5944#endif
5945int main(){nm_test_var='a';nm_test_func();return(0);}
5946EOF
5947
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; then
5953 # Now try to grab the symbols.
5954 nlist=conftest.nm
5955 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && test -s "$nlist"; then
5960 # Try sorting and uniquifying the output.
5961 if sort "$nlist" | uniq > "$nlist"T; then
5962 mv -f "$nlist"T "$nlist"
5963 else
5964 rm -f "$nlist"T
5965 fi
5966
5967 # Make sure that we snagged all the symbols we need.
5968 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5969 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5970 cat <<EOF > conftest.$ac_ext
5971#ifdef __cplusplus
5972extern "C" {
5973#endif
5974
5975EOF
5976 # Now generate the symbol file.
5977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5978
5979 cat <<EOF >> conftest.$ac_ext
5980#if defined (__STDC__) && __STDC__
5981# define lt_ptr_t void *
5982#else
5983# define lt_ptr_t char *
5984# define const
5985#endif
5986
5987/* The mapping between symbol names and symbols. */
5988const struct {
5989 const char *name;
5990 lt_ptr_t address;
5991}
5992lt_preloaded_symbols[] =
5993{
5994EOF
5995 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5996 cat <<\EOF >> conftest.$ac_ext
5997 {0, (lt_ptr_t) 0}
5998};
5999
6000#ifdef __cplusplus
6001}
6002#endif
6003EOF
6004 # Now try linking the two files.
6005 mv conftest.$ac_objext conftstm.$ac_objext
6006 lt_save_LIBS="$LIBS"
6007 lt_save_CFLAGS="$CFLAGS"
6008 LIBS="conftstm.$ac_objext"
6009 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011 (eval $ac_link) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6015 pipe_works=yes
6016 fi
6017 LIBS="$lt_save_LIBS"
6018 CFLAGS="$lt_save_CFLAGS"
6019 else
6020 echo "cannot find nm_test_func in $nlist" >&5
6021 fi
6022 else
6023 echo "cannot find nm_test_var in $nlist" >&5
6024 fi
6025 else
6026 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6027 fi
6028 else
6029 echo "$progname: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 fi
6032 rm -f conftest* conftst*
6033
6034 # Do not use the global_symbol_pipe unless it works.
6035 if test "$pipe_works" = yes; then
6036 break
6037 else
6038 lt_cv_sys_global_symbol_pipe=
6039 fi
6040done
6041
6042fi
6043
6044if test -z "$lt_cv_sys_global_symbol_pipe"; then
6045 lt_cv_sys_global_symbol_to_cdecl=
6046fi
6047if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6048 echo "$as_me:$LINENO: result: failed" >&5
6049echo "${ECHO_T}failed" >&6
6050else
6051 echo "$as_me:$LINENO: result: ok" >&5
6052echo "${ECHO_T}ok" >&6
6053fi
6054
6055echo "$as_me:$LINENO: checking for objdir" >&5
6056echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6057if test "${lt_cv_objdir+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 rm -f .libs 2>/dev/null
6061mkdir .libs 2>/dev/null
6062if test -d .libs; then
6063 lt_cv_objdir=.libs
6064else
6065 # MS-DOS does not allow filenames that begin with a dot.
6066 lt_cv_objdir=_libs
6067fi
6068rmdir .libs 2>/dev/null
6069fi
6070echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6071echo "${ECHO_T}$lt_cv_objdir" >&6
6072objdir=$lt_cv_objdir
6073
6074
6075
6076
6077
6078case $host_os in
6079aix3*)
6080 # AIX sometimes has problems with the GCC collect2 program. For some
6081 # reason, if we set the COLLECT_NAMES environment variable, the problems
6082 # vanish in a puff of smoke.
6083 if test "X${COLLECT_NAMES+set}" != Xset; then
6084 COLLECT_NAMES=
6085 export COLLECT_NAMES
6086 fi
6087 ;;
6088esac
6089
6090# Sed substitution that helps us do robust quoting. It backslashifies
6091# metacharacters that are still active within double-quoted strings.
6092Xsed='sed -e 1s/^X//'
6093sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6094
6095# Same as above, but do not quote variable references.
6096double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6097
6098# Sed substitution to delay expansion of an escaped shell variable in a
6099# double_quote_subst'ed string.
6100delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6101
6102# Sed substitution to avoid accidental globbing in evaled expressions
6103no_glob_subst='s/\*/\\\*/g'
6104
6105# Constants:
6106rm="rm -f"
6107
6108# Global variables:
6109default_ofile=libtool
6110can_build_shared=yes
6111
6112# All known linkers require a `.a' archive for static linking (except MSVC,
6113# which needs '.lib').
6114libext=a
6115ltmain="$ac_aux_dir/ltmain.sh"
6116ofile="$default_ofile"
6117with_gnu_ld="$lt_cv_prog_gnu_ld"
6118
6119if test -n "$ac_tool_prefix"; then
6120 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6121set dummy ${ac_tool_prefix}ar; ac_word=$2
6122echo "$as_me:$LINENO: checking for $ac_word" >&5
6123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6124if test "${ac_cv_prog_AR+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
6127 if test -n "$AR"; then
6128 ac_cv_prog_AR="$AR" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_AR="${ac_tool_prefix}ar"
6138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141done
6142done
6143
6144fi
6145fi
6146AR=$ac_cv_prog_AR
6147if test -n "$AR"; then
6148 echo "$as_me:$LINENO: result: $AR" >&5
6149echo "${ECHO_T}$AR" >&6
6150else
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
6153fi
6154
6155fi
6156if test -z "$ac_cv_prog_AR"; then
6157 ac_ct_AR=$AR
6158 # Extract the first word of "ar", so it can be a program name with args.
6159set dummy ar; ac_word=$2
6160echo "$as_me:$LINENO: checking for $ac_word" >&5
6161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 if test -n "$ac_ct_AR"; then
6166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_AR="ar"
6176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179done
6180done
6181
6182 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6183fi
6184fi
6185ac_ct_AR=$ac_cv_prog_ac_ct_AR
6186if test -n "$ac_ct_AR"; then
6187 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6188echo "${ECHO_T}$ac_ct_AR" >&6
6189else
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
6192fi
6193
6194 AR=$ac_ct_AR
6195else
6196 AR="$ac_cv_prog_AR"
6197fi
6198
6199if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6201set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6202echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6204if test "${ac_cv_prog_RANLIB+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
6207 if test -n "$RANLIB"; then
6208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6209else
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221done
6222done
6223
6224fi
6225fi
6226RANLIB=$ac_cv_prog_RANLIB
6227if test -n "$RANLIB"; then
6228 echo "$as_me:$LINENO: result: $RANLIB" >&5
6229echo "${ECHO_T}$RANLIB" >&6
6230else
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
6233fi
6234
6235fi
6236if test -z "$ac_cv_prog_RANLIB"; then
6237 ac_ct_RANLIB=$RANLIB
6238 # Extract the first word of "ranlib", so it can be a program name with args.
6239set dummy ranlib; ac_word=$2
6240echo "$as_me:$LINENO: checking for $ac_word" >&5
6241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6242if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245 if test -n "$ac_ct_RANLIB"; then
6246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6247else
6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_ac_ct_RANLIB="ranlib"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259done
6260done
6261
6262 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6263fi
6264fi
6265ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6266if test -n "$ac_ct_RANLIB"; then
6267 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6268echo "${ECHO_T}$ac_ct_RANLIB" >&6
6269else
6270 echo "$as_me:$LINENO: result: no" >&5
6271echo "${ECHO_T}no" >&6
6272fi
6273
6274 RANLIB=$ac_ct_RANLIB
6275else
6276 RANLIB="$ac_cv_prog_RANLIB"
6277fi
6278
6279if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}strip; ac_word=$2
6282echo "$as_me:$LINENO: checking for $ac_word" >&5
6283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6284if test "${ac_cv_prog_STRIP+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 if test -n "$STRIP"; then
6288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301done
6302done
6303
6304fi
6305fi
6306STRIP=$ac_cv_prog_STRIP
6307if test -n "$STRIP"; then
6308 echo "$as_me:$LINENO: result: $STRIP" >&5
6309echo "${ECHO_T}$STRIP" >&6
6310else
6311 echo "$as_me:$LINENO: result: no" >&5
6312echo "${ECHO_T}no" >&6
6313fi
6314
6315fi
6316if test -z "$ac_cv_prog_STRIP"; then
6317 ac_ct_STRIP=$STRIP
6318 # Extract the first word of "strip", so it can be a program name with args.
6319set dummy strip; ac_word=$2
6320echo "$as_me:$LINENO: checking for $ac_word" >&5
6321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324else
6325 if test -n "$ac_ct_STRIP"; then
6326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_STRIP="strip"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339done
6340done
6341
6342 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6343fi
6344fi
6345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6346if test -n "$ac_ct_STRIP"; then
6347 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6348echo "${ECHO_T}$ac_ct_STRIP" >&6
6349else
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
6352fi
6353
6354 STRIP=$ac_ct_STRIP
6355else
6356 STRIP="$ac_cv_prog_STRIP"
6357fi
6358
6359
6360old_CC="$CC"
6361old_CFLAGS="$CFLAGS"
6362
6363# Set sane defaults for various variables
6364test -z "$AR" && AR=ar
6365test -z "$AR_FLAGS" && AR_FLAGS=cru
6366test -z "$AS" && AS=as
6367test -z "$CC" && CC=cc
6368test -z "$LTCC" && LTCC=$CC
6369test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6370test -z "$DLLTOOL" && DLLTOOL=dlltool
6371test -z "$LD" && LD=ld
6372test -z "$LN_S" && LN_S="ln -s"
6373test -z "$MAGIC_CMD" && MAGIC_CMD=file
6374test -z "$NM" && NM=nm
6375test -z "$SED" && SED=sed
6376test -z "$OBJDUMP" && OBJDUMP=objdump
6377test -z "$RANLIB" && RANLIB=:
6378test -z "$STRIP" && STRIP=:
6379test -z "$ac_objext" && ac_objext=o
6380
6381# Determine commands to create old-style static archives.
6382old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6383old_postinstall_cmds='chmod 644 $oldlib'
6384old_postuninstall_cmds=
6385
6386if test -n "$RANLIB"; then
6387 case $host_os in
6388 openbsd*)
6389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6390 ;;
6391 *)
6392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6393 ;;
6394 esac
6395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6396fi
6397
6398for cc_temp in $compiler""; do
6399 case $cc_temp in
6400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6402 \-*) ;;
6403 *) break;;
6404 esac
6405done
6406cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6407
6408
6409# Only perform the check for file, if the check method requires it
6410case $deplibs_check_method in
6411file_magic*)
6412 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6413 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6414echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6415if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418 case $MAGIC_CMD in
6419[\\/*] | ?:[\\/]*)
6420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6421 ;;
6422*)
6423 lt_save_MAGIC_CMD="$MAGIC_CMD"
6424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6426 for ac_dir in $ac_dummy; do
6427 IFS="$lt_save_ifs"
6428 test -z "$ac_dir" && ac_dir=.
6429 if test -f $ac_dir/${ac_tool_prefix}file; then
6430 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6431 if test -n "$file_magic_test_file"; then
6432 case $deplibs_check_method in
6433 "file_magic "*)
6434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6437 $EGREP "$file_magic_regex" > /dev/null; then
6438 :
6439 else
6440 cat <<EOF 1>&2
6441
6442*** Warning: the command libtool uses to detect shared libraries,
6443*** $file_magic_cmd, produces output that libtool cannot recognize.
6444*** The result is that libtool may fail to recognize shared libraries
6445*** as such. This will affect the creation of libtool libraries that
6446*** depend on shared libraries, but programs linked with such libtool
6447*** libraries will work regardless of this problem. Nevertheless, you
6448*** may want to report the problem to your system manager and/or to
6449*** bug-libtool@gnu.org
6450
6451EOF
6452 fi ;;
6453 esac
6454 fi
6455 break
6456 fi
6457 done
6458 IFS="$lt_save_ifs"
6459 MAGIC_CMD="$lt_save_MAGIC_CMD"
6460 ;;
6461esac
6462fi
6463
6464MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6465if test -n "$MAGIC_CMD"; then
6466 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6467echo "${ECHO_T}$MAGIC_CMD" >&6
6468else
6469 echo "$as_me:$LINENO: result: no" >&5
6470echo "${ECHO_T}no" >&6
6471fi
6472
6473if test -z "$lt_cv_path_MAGIC_CMD"; then
6474 if test -n "$ac_tool_prefix"; then
6475 echo "$as_me:$LINENO: checking for file" >&5
6476echo $ECHO_N "checking for file... $ECHO_C" >&6
6477if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 case $MAGIC_CMD in
6481[\\/*] | ?:[\\/]*)
6482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6483 ;;
6484*)
6485 lt_save_MAGIC_CMD="$MAGIC_CMD"
6486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6488 for ac_dir in $ac_dummy; do
6489 IFS="$lt_save_ifs"
6490 test -z "$ac_dir" && ac_dir=.
6491 if test -f $ac_dir/file; then
6492 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6493 if test -n "$file_magic_test_file"; then
6494 case $deplibs_check_method in
6495 "file_magic "*)
6496 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6499 $EGREP "$file_magic_regex" > /dev/null; then
6500 :
6501 else
6502 cat <<EOF 1>&2
6503
6504*** Warning: the command libtool uses to detect shared libraries,
6505*** $file_magic_cmd, produces output that libtool cannot recognize.
6506*** The result is that libtool may fail to recognize shared libraries
6507*** as such. This will affect the creation of libtool libraries that
6508*** depend on shared libraries, but programs linked with such libtool
6509*** libraries will work regardless of this problem. Nevertheless, you
6510*** may want to report the problem to your system manager and/or to
6511*** bug-libtool@gnu.org
6512
6513EOF
6514 fi ;;
6515 esac
6516 fi
6517 break
6518 fi
6519 done
6520 IFS="$lt_save_ifs"
6521 MAGIC_CMD="$lt_save_MAGIC_CMD"
6522 ;;
6523esac
6524fi
6525
6526MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6527if test -n "$MAGIC_CMD"; then
6528 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6529echo "${ECHO_T}$MAGIC_CMD" >&6
6530else
6531 echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6
6533fi
6534
6535 else
6536 MAGIC_CMD=:
6537 fi
6538fi
6539
6540 fi
6541 ;;
6542esac
6543
6544enable_dlopen=no
6545enable_win32_dll=no
6546
6547# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6548if test "${enable_libtool_lock+set}" = set; then
6549 enableval="$enable_libtool_lock"
6550
6551fi;
6552test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6553
6554
6555# Check whether --with-pic or --without-pic was given.
6556if test "${with_pic+set}" = set; then
6557 withval="$with_pic"
6558 pic_mode="$withval"
6559else
6560 pic_mode=default
6561fi;
6562test -z "$pic_mode" && pic_mode=default
6563
6564# Use C for the default configuration in the libtool script
6565tagname=
6566lt_save_CC="$CC"
6567ac_ext=c
6568ac_cpp='$CPP $CPPFLAGS'
6569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572
6573
6574# Source file extension for C test sources.
6575ac_ext=c
6576
6577# Object file extension for compiled C test sources.
6578objext=o
6579objext=$objext
6580
6581# Code to be used in simple compile tests
6582lt_simple_compile_test_code="int some_variable = 0;\n"
6583
6584# Code to be used in simple link tests
6585lt_simple_link_test_code='int main(){return(0);}\n'
6586
6587
6588# If no C compiler was specified, use CC.
6589LTCC=${LTCC-"$CC"}
6590
6591# If no C compiler flags were specified, use CFLAGS.
6592LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6593
6594# Allow CC to be a program name with arguments.
6595compiler=$CC
6596
6597
6598# save warnings/boilerplate of simple test code
6599ac_outfile=conftest.$ac_objext
6600printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6602_lt_compiler_boilerplate=`cat conftest.err`
6603$rm conftest*
6604
6605ac_outfile=conftest.$ac_objext
6606printf "$lt_simple_link_test_code" >conftest.$ac_ext
6607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6608_lt_linker_boilerplate=`cat conftest.err`
6609$rm conftest*
6610
6611
6612
6613lt_prog_compiler_no_builtin_flag=
6614
6615if test "$GCC" = yes; then
6616 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6617
6618
6619echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6620echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6621if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624 lt_cv_prog_compiler_rtti_exceptions=no
6625 ac_outfile=conftest.$ac_objext
6626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6627 lt_compiler_flag="-fno-rtti -fno-exceptions"
6628 # Insert the option either (1) after the last *FLAGS variable, or
6629 # (2) before a word containing "conftest.", or (3) at the end.
6630 # Note that $ac_compile itself does not contain backslashes and begins
6631 # with a dollar sign (not a hyphen), so the echo should work correctly.
6632 # The option is referenced via a variable to avoid confusing sed.
6633 lt_compile=`echo "$ac_compile" | $SED \
6634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6636 -e 's:$: $lt_compiler_flag:'`
6637 (eval echo "\"\$as_me:6637: $lt_compile\"" >&5)
6638 (eval "$lt_compile" 2>conftest.err)
6639 ac_status=$?
6640 cat conftest.err >&5
6641 echo "$as_me:6641: \$? = $ac_status" >&5
6642 if (exit $ac_status) && test -s "$ac_outfile"; then
6643 # The compiler can only warn and ignore the option if not recognized
6644 # So say no if there are warnings other than the usual output.
6645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6648 lt_cv_prog_compiler_rtti_exceptions=yes
6649 fi
6650 fi
6651 $rm conftest*
6652
6653fi
6654echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6655echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6656
6657if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6658 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6659else
6660 :
6661fi
6662
6663fi
6664
6665lt_prog_compiler_wl=
6666lt_prog_compiler_pic=
6667lt_prog_compiler_static=
6668
6669echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6670echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6671
6672 if test "$GCC" = yes; then
6673 lt_prog_compiler_wl='-Wl,'
6674 lt_prog_compiler_static='-static'
6675
6676 case $host_os in
6677 aix*)
6678 # All AIX code is PIC.
6679 if test "$host_cpu" = ia64; then
6680 # AIX 5 now supports IA64 processor
6681 lt_prog_compiler_static='-Bstatic'
6682 fi
6683 ;;
6684
6685 amigaos*)
6686 # FIXME: we need at least 68020 code to build shared libraries, but
6687 # adding the `-m68020' flag to GCC prevents building anything better,
6688 # like `-m68040'.
6689 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6690 ;;
6691
6692 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6693 # PIC is the default for these OSes.
6694 ;;
6695
6696 mingw* | pw32* | os2*)
6697 # This hack is so that the source file can tell whether it is being
6698 # built for inclusion in a dll (and should export symbols for example).
6699 lt_prog_compiler_pic='-DDLL_EXPORT'
6700 ;;
6701
6702 darwin* | rhapsody*)
6703 # PIC is the default on this platform
6704 # Common symbols not allowed in MH_DYLIB files
6705 lt_prog_compiler_pic='-fno-common'
6706 ;;
6707
6708 interix3*)
6709 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6710 # Instead, we relocate shared libraries at runtime.
6711 ;;
6712
6713 msdosdjgpp*)
6714 # Just because we use GCC doesn't mean we suddenly get shared libraries
6715 # on systems that don't support them.
6716 lt_prog_compiler_can_build_shared=no
6717 enable_shared=no
6718 ;;
6719
6720 sysv4*MP*)
6721 if test -d /usr/nec; then
6722 lt_prog_compiler_pic=-Kconform_pic
6723 fi
6724 ;;
6725
6726 hpux*)
6727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6728 # not for PA HP-UX.
6729 case $host_cpu in
6730 hppa*64*|ia64*)
6731 # +Z the default
6732 ;;
6733 *)
6734 lt_prog_compiler_pic='-fPIC'
6735 ;;
6736 esac
6737 ;;
6738
6739 *)
6740 lt_prog_compiler_pic='-fPIC'
6741 ;;
6742 esac
6743 else
6744 # PORTME Check for flag to pass linker flags through the system compiler.
6745 case $host_os in
6746 aix*)
6747 lt_prog_compiler_wl='-Wl,'
6748 if test "$host_cpu" = ia64; then
6749 # AIX 5 now supports IA64 processor
6750 lt_prog_compiler_static='-Bstatic'
6751 else
6752 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6753 fi
6754 ;;
6755 darwin*)
6756 # PIC is the default on this platform
6757 # Common symbols not allowed in MH_DYLIB files
6758 case $cc_basename in
6759 xlc*)
6760 lt_prog_compiler_pic='-qnocommon'
6761 lt_prog_compiler_wl='-Wl,'
6762 ;;
6763 esac
6764 ;;
6765
6766 mingw* | pw32* | os2*)
6767 # This hack is so that the source file can tell whether it is being
6768 # built for inclusion in a dll (and should export symbols for example).
6769 lt_prog_compiler_pic='-DDLL_EXPORT'
6770 ;;
6771
6772 hpux9* | hpux10* | hpux11*)
6773 lt_prog_compiler_wl='-Wl,'
6774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6775 # not for PA HP-UX.
6776 case $host_cpu in
6777 hppa*64*|ia64*)
6778 # +Z the default
6779 ;;
6780 *)
6781 lt_prog_compiler_pic='+Z'
6782 ;;
6783 esac
6784 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6785 lt_prog_compiler_static='${wl}-a ${wl}archive'
6786 ;;
6787
6788 irix5* | irix6* | nonstopux*)
6789 lt_prog_compiler_wl='-Wl,'
6790 # PIC (with -KPIC) is the default.
6791 lt_prog_compiler_static='-non_shared'
6792 ;;
6793
6794 newsos6)
6795 lt_prog_compiler_pic='-KPIC'
6796 lt_prog_compiler_static='-Bstatic'
6797 ;;
6798
6799 linux*)
6800 case $cc_basename in
6801 icc* | ecc*)
6802 lt_prog_compiler_wl='-Wl,'
6803 lt_prog_compiler_pic='-KPIC'
6804 lt_prog_compiler_static='-static'
6805 ;;
6806 pgcc* | pgf77* | pgf90* | pgf95*)
6807 # Portland Group compilers (*not* the Pentium gcc compiler,
6808 # which looks to be a dead project)
6809 lt_prog_compiler_wl='-Wl,'
6810 lt_prog_compiler_pic='-fpic'
6811 lt_prog_compiler_static='-Bstatic'
6812 ;;
6813 ccc*)
6814 lt_prog_compiler_wl='-Wl,'
6815 # All Alpha code is PIC.
6816 lt_prog_compiler_static='-non_shared'
6817 ;;
6818 esac
6819 ;;
6820
6821 osf3* | osf4* | osf5*)
6822 lt_prog_compiler_wl='-Wl,'
6823 # All OSF/1 code is PIC.
6824 lt_prog_compiler_static='-non_shared'
6825 ;;
6826
6827 solaris*)
6828 lt_prog_compiler_pic='-KPIC'
6829 lt_prog_compiler_static='-Bstatic'
6830 case $cc_basename in
6831 f77* | f90* | f95*)
6832 lt_prog_compiler_wl='-Qoption ld ';;
6833 *)
6834 lt_prog_compiler_wl='-Wl,';;
6835 esac
6836 ;;
6837
6838 sunos4*)
6839 lt_prog_compiler_wl='-Qoption ld '
6840 lt_prog_compiler_pic='-PIC'
6841 lt_prog_compiler_static='-Bstatic'
6842 ;;
6843
6844 sysv4 | sysv4.2uw2* | sysv4.3*)
6845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='-KPIC'
6847 lt_prog_compiler_static='-Bstatic'
6848 ;;
6849
6850 sysv4*MP*)
6851 if test -d /usr/nec ;then
6852 lt_prog_compiler_pic='-Kconform_pic'
6853 lt_prog_compiler_static='-Bstatic'
6854 fi
6855 ;;
6856
6857 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-KPIC'
6860 lt_prog_compiler_static='-Bstatic'
6861 ;;
6862
6863 unicos*)
6864 lt_prog_compiler_wl='-Wl,'
6865 lt_prog_compiler_can_build_shared=no
6866 ;;
6867
6868 uts4*)
6869 lt_prog_compiler_pic='-pic'
6870 lt_prog_compiler_static='-Bstatic'
6871 ;;
6872
6873 *)
6874 lt_prog_compiler_can_build_shared=no
6875 ;;
6876 esac
6877 fi
6878
6879echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6880echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6881
6882#
6883# Check to make sure the PIC flag actually works.
6884#
6885if test -n "$lt_prog_compiler_pic"; then
6886
6887echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6888echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6889if test "${lt_prog_compiler_pic_works+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892 lt_prog_compiler_pic_works=no
6893 ac_outfile=conftest.$ac_objext
6894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6895 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6896 # Insert the option either (1) after the last *FLAGS variable, or
6897 # (2) before a word containing "conftest.", or (3) at the end.
6898 # Note that $ac_compile itself does not contain backslashes and begins
6899 # with a dollar sign (not a hyphen), so the echo should work correctly.
6900 # The option is referenced via a variable to avoid confusing sed.
6901 lt_compile=`echo "$ac_compile" | $SED \
6902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6904 -e 's:$: $lt_compiler_flag:'`
6905 (eval echo "\"\$as_me:6905: $lt_compile\"" >&5)
6906 (eval "$lt_compile" 2>conftest.err)
6907 ac_status=$?
6908 cat conftest.err >&5
6909 echo "$as_me:6909: \$? = $ac_status" >&5
6910 if (exit $ac_status) && test -s "$ac_outfile"; then
6911 # The compiler can only warn and ignore the option if not recognized
6912 # So say no if there are warnings other than the usual output.
6913 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6916 lt_prog_compiler_pic_works=yes
6917 fi
6918 fi
6919 $rm conftest*
6920
6921fi
6922echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6923echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6924
6925if test x"$lt_prog_compiler_pic_works" = xyes; then
6926 case $lt_prog_compiler_pic in
6927 "" | " "*) ;;
6928 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6929 esac
6930else
6931 lt_prog_compiler_pic=
6932 lt_prog_compiler_can_build_shared=no
6933fi
6934
6935fi
6936case $host_os in
6937 # For platforms which do not support PIC, -DPIC is meaningless:
6938 *djgpp*)
6939 lt_prog_compiler_pic=
6940 ;;
6941 *)
6942 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6943 ;;
6944esac
6945
6946#
6947# Check to make sure the static flag actually works.
6948#
6949wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6950echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6951echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6952if test "${lt_prog_compiler_static_works+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 lt_prog_compiler_static_works=no
6956 save_LDFLAGS="$LDFLAGS"
6957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6958 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6960 # The linker can only warn and ignore the option if not recognized
6961 # So say no if there are warnings
6962 if test -s conftest.err; then
6963 # Append any errors to the config.log.
6964 cat conftest.err 1>&5
6965 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6967 if diff conftest.exp conftest.er2 >/dev/null; then
6968 lt_prog_compiler_static_works=yes
6969 fi
6970 else
6971 lt_prog_compiler_static_works=yes
6972 fi
6973 fi
6974 $rm conftest*
6975 LDFLAGS="$save_LDFLAGS"
6976
6977fi
6978echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6979echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6980
6981if test x"$lt_prog_compiler_static_works" = xyes; then
6982 :
6983else
6984 lt_prog_compiler_static=
6985fi
6986
6987
6988echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6989echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6990if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 lt_cv_prog_compiler_c_o=no
6994 $rm -r conftest 2>/dev/null
6995 mkdir conftest
6996 cd conftest
6997 mkdir out
6998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6999
7000 lt_compiler_flag="-o out/conftest2.$ac_objext"
7001 # Insert the option either (1) after the last *FLAGS variable, or
7002 # (2) before a word containing "conftest.", or (3) at the end.
7003 # Note that $ac_compile itself does not contain backslashes and begins
7004 # with a dollar sign (not a hyphen), so the echo should work correctly.
7005 lt_compile=`echo "$ac_compile" | $SED \
7006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7008 -e 's:$: $lt_compiler_flag:'`
7009 (eval echo "\"\$as_me:7009: $lt_compile\"" >&5)
7010 (eval "$lt_compile" 2>out/conftest.err)
7011 ac_status=$?
7012 cat out/conftest.err >&5
7013 echo "$as_me:7013: \$? = $ac_status" >&5
7014 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7015 then
7016 # The compiler can only warn and ignore the option if not recognized
7017 # So say no if there are warnings
7018 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7021 lt_cv_prog_compiler_c_o=yes
7022 fi
7023 fi
7024 chmod u+w . 2>&5
7025 $rm conftest*
7026 # SGI C++ compiler will create directory out/ii_files/ for
7027 # template instantiation
7028 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7029 $rm out/* && rmdir out
7030 cd ..
7031 rmdir conftest
7032 $rm conftest*
7033
7034fi
7035echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7036echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7037
7038
7039hard_links="nottested"
7040if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7041 # do not overwrite the value of need_locks provided by the user
7042 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7043echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7044 hard_links=yes
7045 $rm conftest*
7046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7047 touch conftest.a
7048 ln conftest.a conftest.b 2>&5 || hard_links=no
7049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7050 echo "$as_me:$LINENO: result: $hard_links" >&5
7051echo "${ECHO_T}$hard_links" >&6
7052 if test "$hard_links" = no; then
7053 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7054echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7055 need_locks=warn
7056 fi
7057else
7058 need_locks=no
7059fi
7060
7061echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7062echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7063
7064 runpath_var=
7065 allow_undefined_flag=
7066 enable_shared_with_static_runtimes=no
7067 archive_cmds=
7068 archive_expsym_cmds=
7069 old_archive_From_new_cmds=
7070 old_archive_from_expsyms_cmds=
7071 export_dynamic_flag_spec=
7072 whole_archive_flag_spec=
7073 thread_safe_flag_spec=
7074 hardcode_libdir_flag_spec=
7075 hardcode_libdir_flag_spec_ld=
7076 hardcode_libdir_separator=
7077 hardcode_direct=no
7078 hardcode_minus_L=no
7079 hardcode_shlibpath_var=unsupported
7080 link_all_deplibs=unknown
7081 hardcode_automatic=no
7082 module_cmds=
7083 module_expsym_cmds=
7084 always_export_symbols=no
7085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7086 # include_expsyms should be a list of space-separated symbols to be *always*
7087 # included in the symbol list
7088 include_expsyms=
7089 # exclude_expsyms can be an extended regexp of symbols to exclude
7090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7092 # as well as any symbol that contains `d'.
7093 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7095 # platforms (ab)use it in PIC code, but their linkers get confused if
7096 # the symbol is explicitly referenced. Since portable code cannot
7097 # rely on this symbol name, it's probably fine to never include it in
7098 # preloaded symbol tables.
7099 extract_expsyms_cmds=
7100 # Just being paranoid about ensuring that cc_basename is set.
7101 for cc_temp in $compiler""; do
7102 case $cc_temp in
7103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7105 \-*) ;;
7106 *) break;;
7107 esac
7108done
7109cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7110
7111 case $host_os in
7112 cygwin* | mingw* | pw32*)
7113 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7114 # When not using gcc, we currently assume that we are using
7115 # Microsoft Visual C++.
7116 if test "$GCC" != yes; then
7117 with_gnu_ld=no
7118 fi
7119 ;;
7120 interix*)
7121 # we just hope/assume this is gcc and not c89 (= MSVC++)
7122 with_gnu_ld=yes
7123 ;;
7124 openbsd*)
7125 with_gnu_ld=no
7126 ;;
7127 esac
7128
7129 ld_shlibs=yes
7130 if test "$with_gnu_ld" = yes; then
7131 # If archive_cmds runs LD, not CC, wlarc should be empty
7132 wlarc='${wl}'
7133
7134 # Set some defaults for GNU ld with shared library support. These
7135 # are reset later if shared libraries are not supported. Putting them
7136 # here allows them to be overridden if necessary.
7137 runpath_var=LD_RUN_PATH
7138 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7139 export_dynamic_flag_spec='${wl}--export-dynamic'
7140 # ancient GNU ld didn't support --whole-archive et. al.
7141 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7142 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7143 else
7144 whole_archive_flag_spec=
7145 fi
7146 supports_anon_versioning=no
7147 case `$LD -v 2>/dev/null` in
7148 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7149 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7150 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7151 *\ 2.11.*) ;; # other 2.11 versions
7152 *) supports_anon_versioning=yes ;;
7153 esac
7154
7155 # See if GNU ld supports shared libraries.
7156 case $host_os in
7157 aix3* | aix4* | aix5*)
7158 # On AIX/PPC, the GNU linker is very broken
7159 if test "$host_cpu" != ia64; then
7160 ld_shlibs=no
7161 cat <<EOF 1>&2
7162
7163*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7164*** to be unable to reliably create shared libraries on AIX.
7165*** Therefore, libtool is disabling shared libraries support. If you
7166*** really care for shared libraries, you may want to modify your PATH
7167*** so that a non-GNU linker is found, and then restart.
7168
7169EOF
7170 fi
7171 ;;
7172
7173 amigaos*)
7174 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)'
7175 hardcode_libdir_flag_spec='-L$libdir'
7176 hardcode_minus_L=yes
7177
7178 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7179 # that the semantics of dynamic libraries on AmigaOS, at least up
7180 # to version 4, is to share data among multiple programs linked
7181 # with the same dynamic library. Since this doesn't match the
7182 # behavior of shared libraries on other platforms, we can't use
7183 # them.
7184 ld_shlibs=no
7185 ;;
7186
7187 beos*)
7188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7189 allow_undefined_flag=unsupported
7190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7191 # support --undefined. This deserves some investigation. FIXME
7192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7193 else
7194 ld_shlibs=no
7195 fi
7196 ;;
7197
7198 cygwin* | mingw* | pw32*)
7199 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7200 # as there is no search path for DLLs.
7201 hardcode_libdir_flag_spec='-L$libdir'
7202 allow_undefined_flag=unsupported
7203 always_export_symbols=no
7204 enable_shared_with_static_runtimes=yes
7205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7206
7207 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7209 # If the export-symbols file already is a .def file (1st line
7210 # is EXPORTS), use it as is; otherwise, prepend...
7211 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7212 cp $export_symbols $output_objdir/$soname.def;
7213 else
7214 echo EXPORTS > $output_objdir/$soname.def;
7215 cat $export_symbols >> $output_objdir/$soname.def;
7216 fi~
7217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7218 else
7219 ld_shlibs=no
7220 fi
7221 ;;
7222
7223 interix3*)
7224 hardcode_direct=no
7225 hardcode_shlibpath_var=no
7226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7227 export_dynamic_flag_spec='${wl}-E'
7228 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7229 # Instead, shared libraries are loaded at an image base (0x10000000 by
7230 # default) and relocated if they conflict, which is a slow very memory
7231 # consuming and fragmenting process. To avoid this, we pick a random,
7232 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7233 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7235 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7236 ;;
7237
7238 linux*)
7239 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7240 tmp_addflag=
7241 case $cc_basename,$host_cpu in
7242 pgcc*) # Portland Group C compiler
7243 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7244 tmp_addflag=' $pic_flag'
7245 ;;
7246 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7247 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7248 tmp_addflag=' $pic_flag -Mnomain' ;;
7249 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7250 tmp_addflag=' -i_dynamic' ;;
7251 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7252 tmp_addflag=' -i_dynamic -nofor_main' ;;
7253 ifc* | ifort*) # Intel Fortran compiler
7254 tmp_addflag=' -nofor_main' ;;
7255 esac
7256 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7257
7258 if test $supports_anon_versioning = yes; then
7259 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7261 $echo "local: *; };" >> $output_objdir/$libname.ver~
7262 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7263 fi
7264 else
7265 ld_shlibs=no
7266 fi
7267 ;;
7268
7269 netbsd*)
7270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7271 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7272 wlarc=
7273 else
7274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7276 fi
7277 ;;
7278
7279 solaris*)
7280 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7281 ld_shlibs=no
7282 cat <<EOF 1>&2
7283
7284*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7285*** create shared libraries on Solaris systems. Therefore, libtool
7286*** is disabling shared libraries support. We urge you to upgrade GNU
7287*** binutils to release 2.9.1 or newer. Another option is to modify
7288*** your PATH or compiler configuration so that the native linker is
7289*** used, and then restart.
7290
7291EOF
7292 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7295 else
7296 ld_shlibs=no
7297 fi
7298 ;;
7299
7300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7301 case `$LD -v 2>&1` in
7302 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7303 ld_shlibs=no
7304 cat <<_LT_EOF 1>&2
7305
7306*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7307*** reliably create shared libraries on SCO systems. Therefore, libtool
7308*** is disabling shared libraries support. We urge you to upgrade GNU
7309*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7310*** your PATH or compiler configuration so that the native linker is
7311*** used, and then restart.
7312
7313_LT_EOF
7314 ;;
7315 *)
7316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7317 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7320 else
7321 ld_shlibs=no
7322 fi
7323 ;;
7324 esac
7325 ;;
7326
7327 sunos4*)
7328 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7329 wlarc=
7330 hardcode_direct=yes
7331 hardcode_shlibpath_var=no
7332 ;;
7333
7334 *)
7335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7338 else
7339 ld_shlibs=no
7340 fi
7341 ;;
7342 esac
7343
7344 if test "$ld_shlibs" = no; then
7345 runpath_var=
7346 hardcode_libdir_flag_spec=
7347 export_dynamic_flag_spec=
7348 whole_archive_flag_spec=
7349 fi
7350 else
7351 # PORTME fill in a description of your system's linker (not GNU ld)
7352 case $host_os in
7353 aix3*)
7354 allow_undefined_flag=unsupported
7355 always_export_symbols=yes
7356 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'
7357 # Note: this linker hardcodes the directories in LIBPATH if there
7358 # are no directories specified by -L.
7359 hardcode_minus_L=yes
7360 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7361 # Neither direct hardcoding nor static linking is supported with a
7362 # broken collect2.
7363 hardcode_direct=unsupported
7364 fi
7365 ;;
7366
7367 aix4* | aix5*)
7368 if test "$host_cpu" = ia64; then
7369 # On IA64, the linker does run time linking by default, so we don't
7370 # have to do anything special.
7371 aix_use_runtimelinking=no
7372 exp_sym_flag='-Bexport'
7373 no_entry_flag=""
7374 else
7375 # If we're using GNU nm, then we don't want the "-C" option.
7376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7377 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7378 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'
7379 else
7380 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'
7381 fi
7382 aix_use_runtimelinking=no
7383
7384 # Test if we are trying to use run time linking or normal
7385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7386 # need to do runtime linking.
7387 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7388 for ld_flag in $LDFLAGS; do
7389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7390 aix_use_runtimelinking=yes
7391 break
7392 fi
7393 done
7394 ;;
7395 esac
7396
7397 exp_sym_flag='-bexport'
7398 no_entry_flag='-bnoentry'
7399 fi
7400
7401 # When large executables or shared objects are built, AIX ld can
7402 # have problems creating the table of contents. If linking a library
7403 # or program results in "error TOC overflow" add -mminimal-toc to
7404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7406
7407 archive_cmds=''
7408 hardcode_direct=yes
7409 hardcode_libdir_separator=':'
7410 link_all_deplibs=yes
7411
7412 if test "$GCC" = yes; then
7413 case $host_os in aix4.[012]|aix4.[012].*)
7414 # We only want to do this on AIX 4.2 and lower, the check
7415 # below for broken collect2 doesn't work under 4.3+
7416 collect2name=`${CC} -print-prog-name=collect2`
7417 if test -f "$collect2name" && \
7418 strings "$collect2name" | grep resolve_lib_name >/dev/null
7419 then
7420 # We have reworked collect2
7421 hardcode_direct=yes
7422 else
7423 # We have old collect2
7424 hardcode_direct=unsupported
7425 # It fails to find uninstalled libraries when the uninstalled
7426 # path is not listed in the libpath. Setting hardcode_minus_L
7427 # to unsupported forces relinking
7428 hardcode_minus_L=yes
7429 hardcode_libdir_flag_spec='-L$libdir'
7430 hardcode_libdir_separator=
7431 fi
7432 ;;
7433 esac
7434 shared_flag='-shared'
7435 if test "$aix_use_runtimelinking" = yes; then
7436 shared_flag="$shared_flag "'${wl}-G'
7437 fi
7438 else
7439 # not using gcc
7440 if test "$host_cpu" = ia64; then
7441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7442 # chokes on -Wl,-G. The following line is correct:
7443 shared_flag='-G'
7444 else
7445 if test "$aix_use_runtimelinking" = yes; then
7446 shared_flag='${wl}-G'
7447 else
7448 shared_flag='${wl}-bM:SRE'
7449 fi
7450 fi
7451 fi
7452
7453 # It seems that -bexpall does not export symbols beginning with
7454 # underscore (_), so it is better to generate a list of symbols to export.
7455 always_export_symbols=yes
7456 if test "$aix_use_runtimelinking" = yes; then
7457 # Warning - without using the other runtime loading flags (-brtl),
7458 # -berok will link without error, but may produce a broken library.
7459 allow_undefined_flag='-berok'
7460 # Determine the default libpath from the value encoded in an empty executable.
7461 cat >conftest.$ac_ext <<_ACEOF
7462/* confdefs.h. */
7463_ACEOF
7464cat confdefs.h >>conftest.$ac_ext
7465cat >>conftest.$ac_ext <<_ACEOF
7466/* end confdefs.h. */
7467
7468int
7469main ()
7470{
7471
7472 ;
7473 return 0;
7474}
7475_ACEOF
7476rm -f conftest.$ac_objext conftest$ac_exeext
7477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -z "$ac_c_werror_flag"
7486 || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest$ac_exeext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498
7499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7500}'`
7501# Check for a 64-bit object if we didn't find anything.
7502if 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; }
7503}'`; fi
7504else
7505 echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
7508fi
7509rm -f conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7512
7513 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7514 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7515 else
7516 if test "$host_cpu" = ia64; then
7517 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7518 allow_undefined_flag="-z nodefs"
7519 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7520 else
7521 # Determine the default libpath from the value encoded in an empty executable.
7522 cat >conftest.$ac_ext <<_ACEOF
7523/* confdefs.h. */
7524_ACEOF
7525cat confdefs.h >>conftest.$ac_ext
7526cat >>conftest.$ac_ext <<_ACEOF
7527/* end confdefs.h. */
7528
7529int
7530main ()
7531{
7532
7533 ;
7534 return 0;
7535}
7536_ACEOF
7537rm -f conftest.$ac_objext conftest$ac_exeext
7538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559
7560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7561}'`
7562# Check for a 64-bit object if we didn't find anything.
7563if 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; }
7564}'`; fi
7565else
7566 echo "$as_me: failed program was:" >&5
7567sed 's/^/| /' conftest.$ac_ext >&5
7568
7569fi
7570rm -f conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7573
7574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7575 # Warning - without using the other run time loading flags,
7576 # -berok will link without error, but may produce a broken library.
7577 no_undefined_flag=' ${wl}-bernotok'
7578 allow_undefined_flag=' ${wl}-berok'
7579 # Exported symbols can be pulled into shared objects from archives
7580 whole_archive_flag_spec='$convenience'
7581 archive_cmds_need_lc=yes
7582 # This is similar to how AIX traditionally builds its shared libraries.
7583 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7584 fi
7585 fi
7586 ;;
7587
7588 amigaos*)
7589 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)'
7590 hardcode_libdir_flag_spec='-L$libdir'
7591 hardcode_minus_L=yes
7592 # see comment about different semantics on the GNU ld section
7593 ld_shlibs=no
7594 ;;
7595
7596 bsdi[45]*)
7597 export_dynamic_flag_spec=-rdynamic
7598 ;;
7599
7600 cygwin* | mingw* | pw32*)
7601 # When not using gcc, we currently assume that we are using
7602 # Microsoft Visual C++.
7603 # hardcode_libdir_flag_spec is actually meaningless, as there is
7604 # no search path for DLLs.
7605 hardcode_libdir_flag_spec=' '
7606 allow_undefined_flag=unsupported
7607 # Tell ltmain to make .lib files, not .a files.
7608 libext=lib
7609 # Tell ltmain to make .dll files, not .so files.
7610 shrext_cmds=".dll"
7611 # FIXME: Setting linknames here is a bad hack.
7612 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7613 # The linker will automatically build a .lib file if we build a DLL.
7614 old_archive_From_new_cmds='true'
7615 # FIXME: Should let the user specify the lib program.
7616 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7617 fix_srcfile_path='`cygpath -w "$srcfile"`'
7618 enable_shared_with_static_runtimes=yes
7619 ;;
7620
7621 darwin* | rhapsody*)
7622 case $host_os in
7623 rhapsody* | darwin1.[012])
7624 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7625 ;;
7626 *) # Darwin 1.3 on
7627 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7628 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7629 else
7630 case ${MACOSX_DEPLOYMENT_TARGET} in
7631 10.[012])
7632 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7633 ;;
7634 10.*)
7635 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7636 ;;
7637 esac
7638 fi
7639 ;;
7640 esac
7641 archive_cmds_need_lc=no
7642 hardcode_direct=no
7643 hardcode_automatic=yes
7644 hardcode_shlibpath_var=unsupported
7645 whole_archive_flag_spec=''
7646 link_all_deplibs=yes
7647 if test "$GCC" = yes ; then
7648 output_verbose_link_cmd='echo'
7649 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7650 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7652 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}'
7653 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}'
7654 else
7655 case $cc_basename in
7656 xlc*)
7657 output_verbose_link_cmd='echo'
7658 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7659 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7661 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7662 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}'
7663 ;;
7664 *)
7665 ld_shlibs=no
7666 ;;
7667 esac
7668 fi
7669 ;;
7670
7671 dgux*)
7672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7673 hardcode_libdir_flag_spec='-L$libdir'
7674 hardcode_shlibpath_var=no
7675 ;;
7676
7677 freebsd1*)
7678 ld_shlibs=no
7679 ;;
7680
7681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7682 # support. Future versions do this automatically, but an explicit c++rt0.o
7683 # does not break anything, and helps significantly (at the cost of a little
7684 # extra space).
7685 freebsd2.2*)
7686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7687 hardcode_libdir_flag_spec='-R$libdir'
7688 hardcode_direct=yes
7689 hardcode_shlibpath_var=no
7690 ;;
7691
7692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7693 freebsd2*)
7694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7695 hardcode_direct=yes
7696 hardcode_minus_L=yes
7697 hardcode_shlibpath_var=no
7698 ;;
7699
7700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7701 freebsd* | kfreebsd*-gnu | dragonfly*)
7702 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7703 hardcode_libdir_flag_spec='-R$libdir'
7704 hardcode_direct=yes
7705 hardcode_shlibpath_var=no
7706 ;;
7707
7708 hpux9*)
7709 if test "$GCC" = yes; then
7710 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'
7711 else
7712 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'
7713 fi
7714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7715 hardcode_libdir_separator=:
7716 hardcode_direct=yes
7717
7718 # hardcode_minus_L: Not really in the search PATH,
7719 # but as the default location of the library.
7720 hardcode_minus_L=yes
7721 export_dynamic_flag_spec='${wl}-E'
7722 ;;
7723
7724 hpux10*)
7725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7726 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7727 else
7728 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7729 fi
7730 if test "$with_gnu_ld" = no; then
7731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7732 hardcode_libdir_separator=:
7733
7734 hardcode_direct=yes
7735 export_dynamic_flag_spec='${wl}-E'
7736
7737 # hardcode_minus_L: Not really in the search PATH,
7738 # but as the default location of the library.
7739 hardcode_minus_L=yes
7740 fi
7741 ;;
7742
7743 hpux11*)
7744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7745 case $host_cpu in
7746 hppa*64*)
7747 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7748 ;;
7749 ia64*)
7750 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7751 ;;
7752 *)
7753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7754 ;;
7755 esac
7756 else
7757 case $host_cpu in
7758 hppa*64*)
7759 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7760 ;;
7761 ia64*)
7762 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7763 ;;
7764 *)
7765 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7766 ;;
7767 esac
7768 fi
7769 if test "$with_gnu_ld" = no; then
7770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7771 hardcode_libdir_separator=:
7772
7773 case $host_cpu in
7774 hppa*64*|ia64*)
7775 hardcode_libdir_flag_spec_ld='+b $libdir'
7776 hardcode_direct=no
7777 hardcode_shlibpath_var=no
7778 ;;
7779 *)
7780 hardcode_direct=yes
7781 export_dynamic_flag_spec='${wl}-E'
7782
7783 # hardcode_minus_L: Not really in the search PATH,
7784 # but as the default location of the library.
7785 hardcode_minus_L=yes
7786 ;;
7787 esac
7788 fi
7789 ;;
7790
7791 irix5* | irix6* | nonstopux*)
7792 if test "$GCC" = yes; then
7793 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'
7794 else
7795 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'
7796 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7797 fi
7798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7799 hardcode_libdir_separator=:
7800 link_all_deplibs=yes
7801 ;;
7802
7803 netbsd*)
7804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7806 else
7807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7808 fi
7809 hardcode_libdir_flag_spec='-R$libdir'
7810 hardcode_direct=yes
7811 hardcode_shlibpath_var=no
7812 ;;
7813
7814 newsos6)
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_direct=yes
7817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7818 hardcode_libdir_separator=:
7819 hardcode_shlibpath_var=no
7820 ;;
7821
7822 openbsd*)
7823 hardcode_direct=yes
7824 hardcode_shlibpath_var=no
7825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7829 export_dynamic_flag_spec='${wl}-E'
7830 else
7831 case $host_os in
7832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_libdir_flag_spec='-R$libdir'
7835 ;;
7836 *)
7837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7839 ;;
7840 esac
7841 fi
7842 ;;
7843
7844 os2*)
7845 hardcode_libdir_flag_spec='-L$libdir'
7846 hardcode_minus_L=yes
7847 allow_undefined_flag=unsupported
7848 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'
7849 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7850 ;;
7851
7852 osf3*)
7853 if test "$GCC" = yes; then
7854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855 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'
7856 else
7857 allow_undefined_flag=' -expect_unresolved \*'
7858 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'
7859 fi
7860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7861 hardcode_libdir_separator=:
7862 ;;
7863
7864 osf4* | osf5*) # as osf3* with the addition of -msym flag
7865 if test "$GCC" = yes; then
7866 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7867 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'
7868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7869 else
7870 allow_undefined_flag=' -expect_unresolved \*'
7871 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'
7872 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7873 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7874
7875 # Both c and cxx compiler support -rpath directly
7876 hardcode_libdir_flag_spec='-rpath $libdir'
7877 fi
7878 hardcode_libdir_separator=:
7879 ;;
7880
7881 solaris*)
7882 no_undefined_flag=' -z text'
7883 if test "$GCC" = yes; then
7884 wlarc='${wl}'
7885 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7886 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7888 else
7889 wlarc=''
7890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7893 fi
7894 hardcode_libdir_flag_spec='-R$libdir'
7895 hardcode_shlibpath_var=no
7896 case $host_os in
7897 solaris2.[0-5] | solaris2.[0-5].*) ;;
7898 *)
7899 # The compiler driver will combine linker options so we
7900 # cannot just pass the convience library names through
7901 # without $wl, iff we do not link with $LD.
7902 # Luckily, gcc supports the same syntax we need for Sun Studio.
7903 # Supported since Solaris 2.6 (maybe 2.5.1?)
7904 case $wlarc in
7905 '')
7906 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7907 *)
7908 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7909 esac ;;
7910 esac
7911 link_all_deplibs=yes
7912 ;;
7913
7914 sunos4*)
7915 if test "x$host_vendor" = xsequent; then
7916 # Use $CC to link under sequent, because it throws in some extra .o
7917 # files that make .init and .fini sections work.
7918 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7919 else
7920 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7921 fi
7922 hardcode_libdir_flag_spec='-L$libdir'
7923 hardcode_direct=yes
7924 hardcode_minus_L=yes
7925 hardcode_shlibpath_var=no
7926 ;;
7927
7928 sysv4)
7929 case $host_vendor in
7930 sni)
7931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7932 hardcode_direct=yes # is this really true???
7933 ;;
7934 siemens)
7935 ## LD is ld it makes a PLAMLIB
7936 ## CC just makes a GrossModule.
7937 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7938 reload_cmds='$CC -r -o $output$reload_objs'
7939 hardcode_direct=no
7940 ;;
7941 motorola)
7942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7944 ;;
7945 esac
7946 runpath_var='LD_RUN_PATH'
7947 hardcode_shlibpath_var=no
7948 ;;
7949
7950 sysv4.3*)
7951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7952 hardcode_shlibpath_var=no
7953 export_dynamic_flag_spec='-Bexport'
7954 ;;
7955
7956 sysv4*MP*)
7957 if test -d /usr/nec; then
7958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_shlibpath_var=no
7960 runpath_var=LD_RUN_PATH
7961 hardcode_runpath_var=yes
7962 ld_shlibs=yes
7963 fi
7964 ;;
7965
7966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7967 no_undefined_flag='${wl}-z,text'
7968 archive_cmds_need_lc=no
7969 hardcode_shlibpath_var=no
7970 runpath_var='LD_RUN_PATH'
7971
7972 if test "$GCC" = yes; then
7973 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7974 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7975 else
7976 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7978 fi
7979 ;;
7980
7981 sysv5* | sco3.2v5* | sco5v6*)
7982 # Note: We can NOT use -z defs as we might desire, because we do not
7983 # link with -lc, and that would cause any symbols used from libc to
7984 # always be unresolved, which means just about no library would
7985 # ever link correctly. If we're not using GNU ld we use -z text
7986 # though, which does catch some bad symbols but isn't as heavy-handed
7987 # as -z defs.
7988 no_undefined_flag='${wl}-z,text'
7989 allow_undefined_flag='${wl}-z,nodefs'
7990 archive_cmds_need_lc=no
7991 hardcode_shlibpath_var=no
7992 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7993 hardcode_libdir_separator=':'
7994 link_all_deplibs=yes
7995 export_dynamic_flag_spec='${wl}-Bexport'
7996 runpath_var='LD_RUN_PATH'
7997
7998 if test "$GCC" = yes; then
7999 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8000 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8001 else
8002 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8004 fi
8005 ;;
8006
8007 uts4*)
8008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8009 hardcode_libdir_flag_spec='-L$libdir'
8010 hardcode_shlibpath_var=no
8011 ;;
8012
8013 *)
8014 ld_shlibs=no
8015 ;;
8016 esac
8017 fi
8018
8019echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8020echo "${ECHO_T}$ld_shlibs" >&6
8021test "$ld_shlibs" = no && can_build_shared=no
8022
8023#
8024# Do we need to explicitly link libc?
8025#
8026case "x$archive_cmds_need_lc" in
8027x|xyes)
8028 # Assume -lc should be added
8029 archive_cmds_need_lc=yes
8030
8031 if test "$enable_shared" = yes && test "$GCC" = yes; then
8032 case $archive_cmds in
8033 *'~'*)
8034 # FIXME: we may have to deal with multi-command sequences.
8035 ;;
8036 '$CC '*)
8037 # Test whether the compiler implicitly links with -lc since on some
8038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8039 # to ld, don't add -lc before -lgcc.
8040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8041echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8042 $rm conftest*
8043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046 (eval $ac_compile) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } 2>conftest.err; then
8050 soname=conftest
8051 lib=conftest
8052 libobjs=conftest.$ac_objext
8053 deplibs=
8054 wl=$lt_prog_compiler_wl
8055 pic_flag=$lt_prog_compiler_pic
8056 compiler_flags=-v
8057 linker_flags=-v
8058 verstring=
8059 output_objdir=.
8060 libname=conftest
8061 lt_save_allow_undefined_flag=$allow_undefined_flag
8062 allow_undefined_flag=
8063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8064 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }
8068 then
8069 archive_cmds_need_lc=no
8070 else
8071 archive_cmds_need_lc=yes
8072 fi
8073 allow_undefined_flag=$lt_save_allow_undefined_flag
8074 else
8075 cat conftest.err 1>&5
8076 fi
8077 $rm conftest*
8078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8079echo "${ECHO_T}$archive_cmds_need_lc" >&6
8080 ;;
8081 esac
8082 fi
8083 ;;
8084esac
8085
8086echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8087echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8088library_names_spec=
8089libname_spec='lib$name'
8090soname_spec=
8091shrext_cmds=".so"
8092postinstall_cmds=
8093postuninstall_cmds=
8094finish_cmds=
8095finish_eval=
8096shlibpath_var=
8097shlibpath_overrides_runpath=unknown
8098version_type=none
8099dynamic_linker="$host_os ld.so"
8100sys_lib_dlsearch_path_spec="/lib /usr/lib"
8101if test "$GCC" = yes; then
8102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8103 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8104 # if the path contains ";" then we assume it to be the separator
8105 # otherwise default to the standard path separator (i.e. ":") - it is
8106 # assumed that no part of a normal pathname contains ";" but that should
8107 # okay in the real world where ";" in dirpaths is itself problematic.
8108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8109 else
8110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8111 fi
8112else
8113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8114fi
8115need_lib_prefix=unknown
8116hardcode_into_libs=no
8117
8118# when you set need_version to no, make sure it does not cause -set_version
8119# flags to be left without arguments
8120need_version=unknown
8121
8122case $host_os in
8123aix3*)
8124 version_type=linux
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8126 shlibpath_var=LIBPATH
8127
8128 # AIX 3 has no versioning support, so we append a major version to the name.
8129 soname_spec='${libname}${release}${shared_ext}$major'
8130 ;;
8131
8132aix4* | aix5*)
8133 version_type=linux
8134 need_lib_prefix=no
8135 need_version=no
8136 hardcode_into_libs=yes
8137 if test "$host_cpu" = ia64; then
8138 # AIX 5 supports IA64
8139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8140 shlibpath_var=LD_LIBRARY_PATH
8141 else
8142 # With GCC up to 2.95.x, collect2 would create an import file
8143 # for dependence libraries. The import file would start with
8144 # the line `#! .'. This would cause the generated library to
8145 # depend on `.', always an invalid library. This was fixed in
8146 # development snapshots of GCC prior to 3.0.
8147 case $host_os in
8148 aix4 | aix4.[01] | aix4.[01].*)
8149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8150 echo ' yes '
8151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8152 :
8153 else
8154 can_build_shared=no
8155 fi
8156 ;;
8157 esac
8158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8159 # soname into executable. Probably we can add versioning support to
8160 # collect2, so additional links can be useful in future.
8161 if test "$aix_use_runtimelinking" = yes; then
8162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8163 # instead of lib<name>.a to let people know that these are not
8164 # typical AIX shared libraries.
8165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8166 else
8167 # We preserve .a as extension for shared libraries through AIX4.2
8168 # and later when we are not doing run time linking.
8169 library_names_spec='${libname}${release}.a $libname.a'
8170 soname_spec='${libname}${release}${shared_ext}$major'
8171 fi
8172 shlibpath_var=LIBPATH
8173 fi
8174 ;;
8175
8176amigaos*)
8177 library_names_spec='$libname.ixlibrary $libname.a'
8178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8179 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'
8180 ;;
8181
8182beos*)
8183 library_names_spec='${libname}${shared_ext}'
8184 dynamic_linker="$host_os ld.so"
8185 shlibpath_var=LIBRARY_PATH
8186 ;;
8187
8188bsdi[45]*)
8189 version_type=linux
8190 need_version=no
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192 soname_spec='${libname}${release}${shared_ext}$major'
8193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8194 shlibpath_var=LD_LIBRARY_PATH
8195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8197 # the default ld.so.conf also contains /usr/contrib/lib and
8198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8199 # libtool to hard-code these into programs
8200 ;;
8201
8202cygwin* | mingw* | pw32*)
8203 version_type=windows
8204 shrext_cmds=".dll"
8205 need_version=no
8206 need_lib_prefix=no
8207
8208 case $GCC,$host_os in
8209 yes,cygwin* | yes,mingw* | yes,pw32*)
8210 library_names_spec='$libname.dll.a'
8211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8212 postinstall_cmds='base_file=`basename \${file}`~
8213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8214 dldir=$destdir/`dirname \$dlpath`~
8215 test -d \$dldir || mkdir -p \$dldir~
8216 $install_prog $dir/$dlname \$dldir/$dlname~
8217 chmod a+x \$dldir/$dlname'
8218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8219 dlpath=$dir/\$dldll~
8220 $rm \$dlpath'
8221 shlibpath_overrides_runpath=yes
8222
8223 case $host_os in
8224 cygwin*)
8225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8228 ;;
8229 mingw*)
8230 # MinGW DLLs use traditional 'lib' prefix
8231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8234 # It is most probably a Windows format PATH printed by
8235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8236 # path with ; separators, and with drive letters. We can handle the
8237 # drive letters (cygwin fileutils understands them), so leave them,
8238 # especially as we might pass files found there to a mingw objdump,
8239 # which wouldn't understand a cygwinified path. Ahh.
8240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8241 else
8242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8243 fi
8244 ;;
8245 pw32*)
8246 # pw32 DLLs use 'pw' prefix rather than 'lib'
8247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8248 ;;
8249 esac
8250 ;;
8251
8252 *)
8253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8254 ;;
8255 esac
8256 dynamic_linker='Win32 ld.exe'
8257 # FIXME: first we should search . and the directory the executable is in
8258 shlibpath_var=PATH
8259 ;;
8260
8261darwin* | rhapsody*)
8262 dynamic_linker="$host_os dyld"
8263 version_type=darwin
8264 need_lib_prefix=no
8265 need_version=no
8266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8267 soname_spec='${libname}${release}${major}$shared_ext'
8268 shlibpath_overrides_runpath=yes
8269 shlibpath_var=DYLD_LIBRARY_PATH
8270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8272 if test "$GCC" = yes; then
8273 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"`
8274 else
8275 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8276 fi
8277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8278 ;;
8279
8280dgux*)
8281 version_type=linux
8282 need_lib_prefix=no
8283 need_version=no
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 shlibpath_var=LD_LIBRARY_PATH
8287 ;;
8288
8289freebsd1*)
8290 dynamic_linker=no
8291 ;;
8292
8293kfreebsd*-gnu)
8294 version_type=linux
8295 need_lib_prefix=no
8296 need_version=no
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=no
8301 hardcode_into_libs=yes
8302 dynamic_linker='GNU ld.so'
8303 ;;
8304
8305freebsd* | dragonfly*)
8306 # DragonFly does not have aout. When/if they implement a new
8307 # versioning mechanism, adjust this.
8308 if test -x /usr/bin/objformat; then
8309 objformat=`/usr/bin/objformat`
8310 else
8311 case $host_os in
8312 freebsd[123]*) objformat=aout ;;
8313 *) objformat=elf ;;
8314 esac
8315 fi
8316 version_type=freebsd-$objformat
8317 case $version_type in
8318 freebsd-elf*)
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8320 need_version=no
8321 need_lib_prefix=no
8322 ;;
8323 freebsd-*)
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8325 need_version=yes
8326 ;;
8327 esac
8328 shlibpath_var=LD_LIBRARY_PATH
8329 case $host_os in
8330 freebsd2*)
8331 shlibpath_overrides_runpath=yes
8332 ;;
8333 freebsd3.[01]* | freebsdelf3.[01]*)
8334 shlibpath_overrides_runpath=yes
8335 hardcode_into_libs=yes
8336 ;;
8337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8339 shlibpath_overrides_runpath=no
8340 hardcode_into_libs=yes
8341 ;;
8342 freebsd*) # from 4.6 on
8343 shlibpath_overrides_runpath=yes
8344 hardcode_into_libs=yes
8345 ;;
8346 esac
8347 ;;
8348
8349gnu*)
8350 version_type=linux
8351 need_lib_prefix=no
8352 need_version=no
8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8354 soname_spec='${libname}${release}${shared_ext}$major'
8355 shlibpath_var=LD_LIBRARY_PATH
8356 hardcode_into_libs=yes
8357 ;;
8358
8359hpux9* | hpux10* | hpux11*)
8360 # Give a soname corresponding to the major version so that dld.sl refuses to
8361 # link against other versions.
8362 version_type=sunos
8363 need_lib_prefix=no
8364 need_version=no
8365 case $host_cpu in
8366 ia64*)
8367 shrext_cmds='.so'
8368 hardcode_into_libs=yes
8369 dynamic_linker="$host_os dld.so"
8370 shlibpath_var=LD_LIBRARY_PATH
8371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373 soname_spec='${libname}${release}${shared_ext}$major'
8374 if test "X$HPUX_IA64_MODE" = X32; then
8375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8376 else
8377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8378 fi
8379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8380 ;;
8381 hppa*64*)
8382 shrext_cmds='.sl'
8383 hardcode_into_libs=yes
8384 dynamic_linker="$host_os dld.sl"
8385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8391 ;;
8392 *)
8393 shrext_cmds='.sl'
8394 dynamic_linker="$host_os dld.sl"
8395 shlibpath_var=SHLIB_PATH
8396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398 soname_spec='${libname}${release}${shared_ext}$major'
8399 ;;
8400 esac
8401 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8402 postinstall_cmds='chmod 555 $lib'
8403 ;;
8404
8405interix3*)
8406 version_type=linux
8407 need_lib_prefix=no
8408 need_version=no
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8410 soname_spec='${libname}${release}${shared_ext}$major'
8411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath=no
8414 hardcode_into_libs=yes
8415 ;;
8416
8417irix5* | irix6* | nonstopux*)
8418 case $host_os in
8419 nonstopux*) version_type=nonstopux ;;
8420 *)
8421 if test "$lt_cv_prog_gnu_ld" = yes; then
8422 version_type=linux
8423 else
8424 version_type=irix
8425 fi ;;
8426 esac
8427 need_lib_prefix=no
8428 need_version=no
8429 soname_spec='${libname}${release}${shared_ext}$major'
8430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8431 case $host_os in
8432 irix5* | nonstopux*)
8433 libsuff= shlibsuff=
8434 ;;
8435 *)
8436 case $LD in # libtool.m4 will add one of these switches to LD
8437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8438 libsuff= shlibsuff= libmagic=32-bit;;
8439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8440 libsuff=32 shlibsuff=N32 libmagic=N32;;
8441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8443 *) libsuff= shlibsuff= libmagic=never-match;;
8444 esac
8445 ;;
8446 esac
8447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8448 shlibpath_overrides_runpath=no
8449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8451 hardcode_into_libs=yes
8452 ;;
8453
8454# No shared lib support for Linux oldld, aout, or coff.
8455linux*oldld* | linux*aout* | linux*coff*)
8456 dynamic_linker=no
8457 ;;
8458
8459# This must be Linux ELF.
8460linux*)
8461 version_type=linux
8462 need_lib_prefix=no
8463 need_version=no
8464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465 soname_spec='${libname}${release}${shared_ext}$major'
8466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath=no
8469 # This implies no fast_install, which is unacceptable.
8470 # Some rework will be needed to allow for fast_install
8471 # before this can be enabled.
8472 hardcode_into_libs=yes
8473
8474 # find out which ABI we are using
8475 libsuff=
8476 case "$host_cpu" in
8477 x86_64*|s390x*|powerpc64*)
8478 echo '#line 8478 "configure"' > conftest.$ac_ext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; then
8484 case `/usr/bin/file conftest.$ac_objext` in
8485 *64-bit*)
8486 libsuff=64
8487 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8488 ;;
8489 esac
8490 fi
8491 rm -rf conftest*
8492 ;;
8493 esac
8494
8495 # Append ld.so.conf contents to the search path
8496 if test -f /etc/ld.so.conf; then
8497 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8498 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8499 fi
8500
8501 # We used to test for /lib/ld.so.1 and disable shared libraries on
8502 # powerpc, because MkLinux only supported shared libraries with the
8503 # GNU dynamic linker. Since this was broken with cross compilers,
8504 # most powerpc-linux boxes support dynamic linking these days and
8505 # people can always --disable-shared, the test was removed, and we
8506 # assume the GNU/Linux dynamic linker is in use.
8507 dynamic_linker='GNU/Linux ld.so'
8508 ;;
8509
8510knetbsd*-gnu)
8511 version_type=linux
8512 need_lib_prefix=no
8513 need_version=no
8514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8515 soname_spec='${libname}${release}${shared_ext}$major'
8516 shlibpath_var=LD_LIBRARY_PATH
8517 shlibpath_overrides_runpath=no
8518 hardcode_into_libs=yes
8519 dynamic_linker='GNU ld.so'
8520 ;;
8521
8522netbsd*)
8523 version_type=sunos
8524 need_lib_prefix=no
8525 need_version=no
8526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8529 dynamic_linker='NetBSD (a.out) ld.so'
8530 else
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8532 soname_spec='${libname}${release}${shared_ext}$major'
8533 dynamic_linker='NetBSD ld.elf_so'
8534 fi
8535 shlibpath_var=LD_LIBRARY_PATH
8536 shlibpath_overrides_runpath=yes
8537 hardcode_into_libs=yes
8538 ;;
8539
8540newsos6)
8541 version_type=linux
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543 shlibpath_var=LD_LIBRARY_PATH
8544 shlibpath_overrides_runpath=yes
8545 ;;
8546
8547nto-qnx*)
8548 version_type=linux
8549 need_lib_prefix=no
8550 need_version=no
8551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552 soname_spec='${libname}${release}${shared_ext}$major'
8553 shlibpath_var=LD_LIBRARY_PATH
8554 shlibpath_overrides_runpath=yes
8555 ;;
8556
8557openbsd*)
8558 version_type=sunos
8559 sys_lib_dlsearch_path_spec="/usr/lib"
8560 need_lib_prefix=no
8561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8562 case $host_os in
8563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8564 *) need_version=no ;;
8565 esac
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8570 case $host_os in
8571 openbsd2.[89] | openbsd2.[89].*)
8572 shlibpath_overrides_runpath=no
8573 ;;
8574 *)
8575 shlibpath_overrides_runpath=yes
8576 ;;
8577 esac
8578 else
8579 shlibpath_overrides_runpath=yes
8580 fi
8581 ;;
8582
8583os2*)
8584 libname_spec='$name'
8585 shrext_cmds=".dll"
8586 need_lib_prefix=no
8587 library_names_spec='$libname${shared_ext} $libname.a'
8588 dynamic_linker='OS/2 ld.exe'
8589 shlibpath_var=LIBPATH
8590 ;;
8591
8592osf3* | osf4* | osf5*)
8593 version_type=osf
8594 need_lib_prefix=no
8595 need_version=no
8596 soname_spec='${libname}${release}${shared_ext}$major'
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8598 shlibpath_var=LD_LIBRARY_PATH
8599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8601 ;;
8602
8603solaris*)
8604 version_type=linux
8605 need_lib_prefix=no
8606 need_version=no
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 shlibpath_var=LD_LIBRARY_PATH
8610 shlibpath_overrides_runpath=yes
8611 hardcode_into_libs=yes
8612 # ldd complains unless libraries are executable
8613 postinstall_cmds='chmod +x $lib'
8614 ;;
8615
8616sunos4*)
8617 version_type=sunos
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8620 shlibpath_var=LD_LIBRARY_PATH
8621 shlibpath_overrides_runpath=yes
8622 if test "$with_gnu_ld" = yes; then
8623 need_lib_prefix=no
8624 fi
8625 need_version=yes
8626 ;;
8627
8628sysv4 | sysv4.3*)
8629 version_type=linux
8630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8631 soname_spec='${libname}${release}${shared_ext}$major'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 case $host_vendor in
8634 sni)
8635 shlibpath_overrides_runpath=no
8636 need_lib_prefix=no
8637 export_dynamic_flag_spec='${wl}-Blargedynsym'
8638 runpath_var=LD_RUN_PATH
8639 ;;
8640 siemens)
8641 need_lib_prefix=no
8642 ;;
8643 motorola)
8644 need_lib_prefix=no
8645 need_version=no
8646 shlibpath_overrides_runpath=no
8647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8648 ;;
8649 esac
8650 ;;
8651
8652sysv4*MP*)
8653 if test -d /usr/nec ;then
8654 version_type=linux
8655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8656 soname_spec='$libname${shared_ext}.$major'
8657 shlibpath_var=LD_LIBRARY_PATH
8658 fi
8659 ;;
8660
8661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8662 version_type=freebsd-elf
8663 need_lib_prefix=no
8664 need_version=no
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 shlibpath_var=LD_LIBRARY_PATH
8668 hardcode_into_libs=yes
8669 if test "$with_gnu_ld" = yes; then
8670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8671 shlibpath_overrides_runpath=no
8672 else
8673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8674 shlibpath_overrides_runpath=yes
8675 case $host_os in
8676 sco3.2v5*)
8677 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8678 ;;
8679 esac
8680 fi
8681 sys_lib_dlsearch_path_spec='/usr/lib'
8682 ;;
8683
8684uts4*)
8685 version_type=linux
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 shlibpath_var=LD_LIBRARY_PATH
8689 ;;
8690
8691*)
8692 dynamic_linker=no
8693 ;;
8694esac
8695echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8696echo "${ECHO_T}$dynamic_linker" >&6
8697test "$dynamic_linker" = no && can_build_shared=no
8698
8699variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8700if test "$GCC" = yes; then
8701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8702fi
8703
8704echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8705echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8706hardcode_action=
8707if test -n "$hardcode_libdir_flag_spec" || \
8708 test -n "$runpath_var" || \
8709 test "X$hardcode_automatic" = "Xyes" ; then
8710
8711 # We can hardcode non-existant directories.
8712 if test "$hardcode_direct" != no &&
8713 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8714 # have to relink, otherwise we might link with an installed library
8715 # when we should be linking with a yet-to-be-installed one
8716 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8717 test "$hardcode_minus_L" != no; then
8718 # Linking always hardcodes the temporary library directory.
8719 hardcode_action=relink
8720 else
8721 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8722 hardcode_action=immediate
8723 fi
8724else
8725 # We cannot hardcode anything, or else we can only hardcode existing
8726 # directories.
8727 hardcode_action=unsupported
8728fi
8729echo "$as_me:$LINENO: result: $hardcode_action" >&5
8730echo "${ECHO_T}$hardcode_action" >&6
8731
8732if test "$hardcode_action" = relink; then
8733 # Fast installation is not supported
8734 enable_fast_install=no
8735elif test "$shlibpath_overrides_runpath" = yes ||
8736 test "$enable_shared" = no; then
8737 # Fast installation is not necessary
8738 enable_fast_install=needless
8739fi
8740
8741striplib=
8742old_striplib=
8743echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8744echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8745if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8746 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8747 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8748 echo "$as_me:$LINENO: result: yes" >&5
8749echo "${ECHO_T}yes" >&6
8750else
8751# FIXME - insert some real tests, host_os isn't really good enough
8752 case $host_os in
8753 darwin*)
8754 if test -n "$STRIP" ; then
8755 striplib="$STRIP -x"
8756 echo "$as_me:$LINENO: result: yes" >&5
8757echo "${ECHO_T}yes" >&6
8758 else
8759 echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6
8761fi
8762 ;;
8763 *)
8764 echo "$as_me:$LINENO: result: no" >&5
8765echo "${ECHO_T}no" >&6
8766 ;;
8767 esac
8768fi
8769
8770if test "x$enable_dlopen" != xyes; then
8771 enable_dlopen=unknown
8772 enable_dlopen_self=unknown
8773 enable_dlopen_self_static=unknown
8774else
8775 lt_cv_dlopen=no
8776 lt_cv_dlopen_libs=
8777
8778 case $host_os in
8779 beos*)
8780 lt_cv_dlopen="load_add_on"
8781 lt_cv_dlopen_libs=
8782 lt_cv_dlopen_self=yes
8783 ;;
8784
8785 mingw* | pw32*)
8786 lt_cv_dlopen="LoadLibrary"
8787 lt_cv_dlopen_libs=
8788 ;;
8789
8790 cygwin*)
8791 lt_cv_dlopen="dlopen"
8792 lt_cv_dlopen_libs=
8793 ;;
8794
8795 darwin*)
8796 # if libdl is installed we need to link against it
8797 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8798echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8799if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801else
8802 ac_check_lib_save_LIBS=$LIBS
8803LIBS="-ldl $LIBS"
8804cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h. */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h. */
8810
8811/* Override any gcc2 internal prototype to avoid an error. */
8812#ifdef __cplusplus
8813extern "C"
8814#endif
8815/* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8817char dlopen ();
8818int
8819main ()
8820{
8821dlopen ();
8822 ;
8823 return 0;
8824}
8825_ACEOF
8826rm -f conftest.$ac_objext conftest$ac_exeext
8827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828 (eval $ac_link) 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try='test -s conftest$ac_exeext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_cv_lib_dl_dlopen=yes
8849else
8850 echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853ac_cv_lib_dl_dlopen=no
8854fi
8855rm -f conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857LIBS=$ac_check_lib_save_LIBS
8858fi
8859echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8860echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8861if test $ac_cv_lib_dl_dlopen = yes; then
8862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8863else
8864
8865 lt_cv_dlopen="dyld"
8866 lt_cv_dlopen_libs=
8867 lt_cv_dlopen_self=yes
8868
8869fi
8870
8871 ;;
8872
8873 *)
8874 echo "$as_me:$LINENO: checking for shl_load" >&5
8875echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8876if test "${ac_cv_func_shl_load+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8878else
8879 cat >conftest.$ac_ext <<_ACEOF
8880/* confdefs.h. */
8881_ACEOF
8882cat confdefs.h >>conftest.$ac_ext
8883cat >>conftest.$ac_ext <<_ACEOF
8884/* end confdefs.h. */
8885/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8887#define shl_load innocuous_shl_load
8888
8889/* System header to define __stub macros and hopefully few prototypes,
8890 which can conflict with char shl_load (); below.
8891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892 <limits.h> exists even on freestanding compilers. */
8893
8894#ifdef __STDC__
8895# include <limits.h>
8896#else
8897# include <assert.h>
8898#endif
8899
8900#undef shl_load
8901
8902/* Override any gcc2 internal prototype to avoid an error. */
8903#ifdef __cplusplus
8904extern "C"
8905{
8906#endif
8907/* We use char because int might match the return type of a gcc2
8908 builtin and then its argument prototype would still apply. */
8909char shl_load ();
8910/* The GNU C library defines this for functions which it implements
8911 to always fail with ENOSYS. Some functions are actually named
8912 something starting with __ and the normal name is an alias. */
8913#if defined (__stub_shl_load) || defined (__stub___shl_load)
8914choke me
8915#else
8916char (*f) () = shl_load;
8917#endif
8918#ifdef __cplusplus
8919}
8920#endif
8921
8922int
8923main ()
8924{
8925return f != shl_load;
8926 ;
8927 return 0;
8928}
8929_ACEOF
8930rm -f conftest.$ac_objext conftest$ac_exeext
8931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932 (eval $ac_link) 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -z "$ac_c_werror_flag"
8940 || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_func_shl_load=yes
8953else
8954 echo "$as_me: failed program was:" >&5
8955sed 's/^/| /' conftest.$ac_ext >&5
8956
8957ac_cv_func_shl_load=no
8958fi
8959rm -f conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961fi
8962echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8963echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8964if test $ac_cv_func_shl_load = yes; then
8965 lt_cv_dlopen="shl_load"
8966else
8967 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8968echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8969if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8971else
8972 ac_check_lib_save_LIBS=$LIBS
8973LIBS="-ldld $LIBS"
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980
8981/* Override any gcc2 internal prototype to avoid an error. */
8982#ifdef __cplusplus
8983extern "C"
8984#endif
8985/* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8987char shl_load ();
8988int
8989main ()
8990{
8991shl_load ();
8992 ;
8993 return 0;
8994}
8995_ACEOF
8996rm -f conftest.$ac_objext conftest$ac_exeext
8997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 ac_cv_lib_dld_shl_load=yes
9019else
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023ac_cv_lib_dld_shl_load=no
9024fi
9025rm -f conftest.err conftest.$ac_objext \
9026 conftest$ac_exeext conftest.$ac_ext
9027LIBS=$ac_check_lib_save_LIBS
9028fi
9029echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9030echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9031if test $ac_cv_lib_dld_shl_load = yes; then
9032 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9033else
9034 echo "$as_me:$LINENO: checking for dlopen" >&5
9035echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9036if test "${ac_cv_func_dlopen+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038else
9039 cat >conftest.$ac_ext <<_ACEOF
9040/* confdefs.h. */
9041_ACEOF
9042cat confdefs.h >>conftest.$ac_ext
9043cat >>conftest.$ac_ext <<_ACEOF
9044/* end confdefs.h. */
9045/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9047#define dlopen innocuous_dlopen
9048
9049/* System header to define __stub macros and hopefully few prototypes,
9050 which can conflict with char dlopen (); below.
9051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9052 <limits.h> exists even on freestanding compilers. */
9053
9054#ifdef __STDC__
9055# include <limits.h>
9056#else
9057# include <assert.h>
9058#endif
9059
9060#undef dlopen
9061
9062/* Override any gcc2 internal prototype to avoid an error. */
9063#ifdef __cplusplus
9064extern "C"
9065{
9066#endif
9067/* We use char because int might match the return type of a gcc2
9068 builtin and then its argument prototype would still apply. */
9069char dlopen ();
9070/* The GNU C library defines this for functions which it implements
9071 to always fail with ENOSYS. Some functions are actually named
9072 something starting with __ and the normal name is an alias. */
9073#if defined (__stub_dlopen) || defined (__stub___dlopen)
9074choke me
9075#else
9076char (*f) () = dlopen;
9077#endif
9078#ifdef __cplusplus
9079}
9080#endif
9081
9082int
9083main ()
9084{
9085return f != dlopen;
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090rm -f conftest.$ac_objext conftest$ac_exeext
9091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag"
9100 || test ! -s conftest.err'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 (eval $ac_try) 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest$ac_exeext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_cv_func_dlopen=yes
9113else
9114 echo "$as_me: failed program was:" >&5
9115sed 's/^/| /' conftest.$ac_ext >&5
9116
9117ac_cv_func_dlopen=no
9118fi
9119rm -f conftest.err conftest.$ac_objext \
9120 conftest$ac_exeext conftest.$ac_ext
9121fi
9122echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9123echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9124if test $ac_cv_func_dlopen = yes; then
9125 lt_cv_dlopen="dlopen"
9126else
9127 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9128echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9129if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131else
9132 ac_check_lib_save_LIBS=$LIBS
9133LIBS="-ldl $LIBS"
9134cat >conftest.$ac_ext <<_ACEOF
9135/* confdefs.h. */
9136_ACEOF
9137cat confdefs.h >>conftest.$ac_ext
9138cat >>conftest.$ac_ext <<_ACEOF
9139/* end confdefs.h. */
9140
9141/* Override any gcc2 internal prototype to avoid an error. */
9142#ifdef __cplusplus
9143extern "C"
9144#endif
9145/* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9147char dlopen ();
9148int
9149main ()
9150{
9151dlopen ();
9152 ;
9153 return 0;
9154}
9155_ACEOF
9156rm -f conftest.$ac_objext conftest$ac_exeext
9157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_lib_dl_dlopen=yes
9179else
9180 echo "$as_me: failed program was:" >&5
9181sed 's/^/| /' conftest.$ac_ext >&5
9182
9183ac_cv_lib_dl_dlopen=no
9184fi
9185rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187LIBS=$ac_check_lib_save_LIBS
9188fi
9189echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9190echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9191if test $ac_cv_lib_dl_dlopen = yes; then
9192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9193else
9194 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9195echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9196if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198else
9199 ac_check_lib_save_LIBS=$LIBS
9200LIBS="-lsvld $LIBS"
9201cat >conftest.$ac_ext <<_ACEOF
9202/* confdefs.h. */
9203_ACEOF
9204cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */
9207
9208/* Override any gcc2 internal prototype to avoid an error. */
9209#ifdef __cplusplus
9210extern "C"
9211#endif
9212/* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9214char dlopen ();
9215int
9216main ()
9217{
9218dlopen ();
9219 ;
9220 return 0;
9221}
9222_ACEOF
9223rm -f conftest.$ac_objext conftest$ac_exeext
9224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_lib_svld_dlopen=yes
9246else
9247 echo "$as_me: failed program was:" >&5
9248sed 's/^/| /' conftest.$ac_ext >&5
9249
9250ac_cv_lib_svld_dlopen=no
9251fi
9252rm -f conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254LIBS=$ac_check_lib_save_LIBS
9255fi
9256echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9257echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9258if test $ac_cv_lib_svld_dlopen = yes; then
9259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9260else
9261 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9262echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9263if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265else
9266 ac_check_lib_save_LIBS=$LIBS
9267LIBS="-ldld $LIBS"
9268cat >conftest.$ac_ext <<_ACEOF
9269/* confdefs.h. */
9270_ACEOF
9271cat confdefs.h >>conftest.$ac_ext
9272cat >>conftest.$ac_ext <<_ACEOF
9273/* end confdefs.h. */
9274
9275/* Override any gcc2 internal prototype to avoid an error. */
9276#ifdef __cplusplus
9277extern "C"
9278#endif
9279/* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9281char dld_link ();
9282int
9283main ()
9284{
9285dld_link ();
9286 ;
9287 return 0;
9288}
9289_ACEOF
9290rm -f conftest.$ac_objext conftest$ac_exeext
9291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -z "$ac_c_werror_flag"
9300 || test ! -s conftest.err'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; } &&
9306 { ac_try='test -s conftest$ac_exeext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_lib_dld_dld_link=yes
9313else
9314 echo "$as_me: failed program was:" >&5
9315sed 's/^/| /' conftest.$ac_ext >&5
9316
9317ac_cv_lib_dld_dld_link=no
9318fi
9319rm -f conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321LIBS=$ac_check_lib_save_LIBS
9322fi
9323echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9324echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9325if test $ac_cv_lib_dld_dld_link = yes; then
9326 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9327fi
9328
9329
9330fi
9331
9332
9333fi
9334
9335
9336fi
9337
9338
9339fi
9340
9341
9342fi
9343
9344 ;;
9345 esac
9346
9347 if test "x$lt_cv_dlopen" != xno; then
9348 enable_dlopen=yes
9349 else
9350 enable_dlopen=no
9351 fi
9352
9353 case $lt_cv_dlopen in
9354 dlopen)
9355 save_CPPFLAGS="$CPPFLAGS"
9356 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9357
9358 save_LDFLAGS="$LDFLAGS"
9359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9360
9361 save_LIBS="$LIBS"
9362 LIBS="$lt_cv_dlopen_libs $LIBS"
9363
9364 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9365echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9366if test "${lt_cv_dlopen_self+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368else
9369 if test "$cross_compiling" = yes; then :
9370 lt_cv_dlopen_self=cross
9371else
9372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9373 lt_status=$lt_dlunknown
9374 cat > conftest.$ac_ext <<EOF
9375#line 9375 "configure"
9376#include "confdefs.h"
9377
9378#if HAVE_DLFCN_H
9379#include <dlfcn.h>
9380#endif
9381
9382#include <stdio.h>
9383
9384#ifdef RTLD_GLOBAL
9385# define LT_DLGLOBAL RTLD_GLOBAL
9386#else
9387# ifdef DL_GLOBAL
9388# define LT_DLGLOBAL DL_GLOBAL
9389# else
9390# define LT_DLGLOBAL 0
9391# endif
9392#endif
9393
9394/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9395 find out it does not work in some platform. */
9396#ifndef LT_DLLAZY_OR_NOW
9397# ifdef RTLD_LAZY
9398# define LT_DLLAZY_OR_NOW RTLD_LAZY
9399# else
9400# ifdef DL_LAZY
9401# define LT_DLLAZY_OR_NOW DL_LAZY
9402# else
9403# ifdef RTLD_NOW
9404# define LT_DLLAZY_OR_NOW RTLD_NOW
9405# else
9406# ifdef DL_NOW
9407# define LT_DLLAZY_OR_NOW DL_NOW
9408# else
9409# define LT_DLLAZY_OR_NOW 0
9410# endif
9411# endif
9412# endif
9413# endif
9414#endif
9415
9416#ifdef __cplusplus
9417extern "C" void exit (int);
9418#endif
9419
9420void fnord() { int i=42;}
9421int main ()
9422{
9423 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9424 int status = $lt_dlunknown;
9425
9426 if (self)
9427 {
9428 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9429 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9430 /* dlclose (self); */
9431 }
9432 else
9433 puts (dlerror ());
9434
9435 exit (status);
9436}
9437EOF
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9443 (./conftest; exit; ) >&5 2>/dev/null
9444 lt_status=$?
9445 case x$lt_status in
9446 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9447 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9448 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9449 esac
9450 else :
9451 # compilation failed
9452 lt_cv_dlopen_self=no
9453 fi
9454fi
9455rm -fr conftest*
9456
9457
9458fi
9459echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9460echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9461
9462 if test "x$lt_cv_dlopen_self" = xyes; then
9463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9464 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9465echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9466if test "${lt_cv_dlopen_self_static+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468else
9469 if test "$cross_compiling" = yes; then :
9470 lt_cv_dlopen_self_static=cross
9471else
9472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9473 lt_status=$lt_dlunknown
9474 cat > conftest.$ac_ext <<EOF
9475#line 9475 "configure"
9476#include "confdefs.h"
9477
9478#if HAVE_DLFCN_H
9479#include <dlfcn.h>
9480#endif
9481
9482#include <stdio.h>
9483
9484#ifdef RTLD_GLOBAL
9485# define LT_DLGLOBAL RTLD_GLOBAL
9486#else
9487# ifdef DL_GLOBAL
9488# define LT_DLGLOBAL DL_GLOBAL
9489# else
9490# define LT_DLGLOBAL 0
9491# endif
9492#endif
9493
9494/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9495 find out it does not work in some platform. */
9496#ifndef LT_DLLAZY_OR_NOW
9497# ifdef RTLD_LAZY
9498# define LT_DLLAZY_OR_NOW RTLD_LAZY
9499# else
9500# ifdef DL_LAZY
9501# define LT_DLLAZY_OR_NOW DL_LAZY
9502# else
9503# ifdef RTLD_NOW
9504# define LT_DLLAZY_OR_NOW RTLD_NOW
9505# else
9506# ifdef DL_NOW
9507# define LT_DLLAZY_OR_NOW DL_NOW
9508# else
9509# define LT_DLLAZY_OR_NOW 0
9510# endif
9511# endif
9512# endif
9513# endif
9514#endif
9515
9516#ifdef __cplusplus
9517extern "C" void exit (int);
9518#endif
9519
9520void fnord() { int i=42;}
9521int main ()
9522{
9523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9524 int status = $lt_dlunknown;
9525
9526 if (self)
9527 {
9528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9530 /* dlclose (self); */
9531 }
9532 else
9533 puts (dlerror ());
9534
9535 exit (status);
9536}
9537EOF
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9543 (./conftest; exit; ) >&5 2>/dev/null
9544 lt_status=$?
9545 case x$lt_status in
9546 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9547 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9548 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9549 esac
9550 else :
9551 # compilation failed
9552 lt_cv_dlopen_self_static=no
9553 fi
9554fi
9555rm -fr conftest*
9556
9557
9558fi
9559echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9560echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9561 fi
9562
9563 CPPFLAGS="$save_CPPFLAGS"
9564 LDFLAGS="$save_LDFLAGS"
9565 LIBS="$save_LIBS"
9566 ;;
9567 esac
9568
9569 case $lt_cv_dlopen_self in
9570 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9571 *) enable_dlopen_self=unknown ;;
9572 esac
9573
9574 case $lt_cv_dlopen_self_static in
9575 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9576 *) enable_dlopen_self_static=unknown ;;
9577 esac
9578fi
9579
9580
9581# Report which library types will actually be built
9582echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9583echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9584echo "$as_me:$LINENO: result: $can_build_shared" >&5
9585echo "${ECHO_T}$can_build_shared" >&6
9586
9587echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9588echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9589test "$can_build_shared" = "no" && enable_shared=no
9590
9591# On AIX, shared libraries and static libraries use the same namespace, and
9592# are all built from PIC.
9593case $host_os in
9594aix3*)
9595 test "$enable_shared" = yes && enable_static=no
9596 if test -n "$RANLIB"; then
9597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9598 postinstall_cmds='$RANLIB $lib'
9599 fi
9600 ;;
9601
9602aix4* | aix5*)
9603 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9604 test "$enable_shared" = yes && enable_static=no
9605 fi
9606 ;;
9607esac
9608echo "$as_me:$LINENO: result: $enable_shared" >&5
9609echo "${ECHO_T}$enable_shared" >&6
9610
9611echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9612echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9613# Make sure either enable_shared or enable_static is yes.
9614test "$enable_shared" = yes || enable_static=yes
9615echo "$as_me:$LINENO: result: $enable_static" >&5
9616echo "${ECHO_T}$enable_static" >&6
9617
9618# The else clause should only fire when bootstrapping the
9619# libtool distribution, otherwise you forgot to ship ltmain.sh
9620# with your package, and you will get complaints that there are
9621# no rules to generate ltmain.sh.
9622if test -f "$ltmain"; then
9623 # See if we are running on zsh, and set the options which allow our commands through
9624 # without removal of \ escapes.
9625 if test -n "${ZSH_VERSION+set}" ; then
9626 setopt NO_GLOB_SUBST
9627 fi
9628 # Now quote all the things that may contain metacharacters while being
9629 # careful not to overquote the AC_SUBSTed values. We take copies of the
9630 # variables and quote the copies for generation of the libtool script.
9631 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9632 SED SHELL STRIP \
9633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9635 deplibs_check_method reload_flag reload_cmds need_locks \
9636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9637 lt_cv_sys_global_symbol_to_c_name_address \
9638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9639 old_postinstall_cmds old_postuninstall_cmds \
9640 compiler \
9641 CC \
9642 LD \
9643 lt_prog_compiler_wl \
9644 lt_prog_compiler_pic \
9645 lt_prog_compiler_static \
9646 lt_prog_compiler_no_builtin_flag \
9647 export_dynamic_flag_spec \
9648 thread_safe_flag_spec \
9649 whole_archive_flag_spec \
9650 enable_shared_with_static_runtimes \
9651 old_archive_cmds \
9652 old_archive_from_new_cmds \
9653 predep_objects \
9654 postdep_objects \
9655 predeps \
9656 postdeps \
9657 compiler_lib_search_path \
9658 archive_cmds \
9659 archive_expsym_cmds \
9660 postinstall_cmds \
9661 postuninstall_cmds \
9662 old_archive_from_expsyms_cmds \
9663 allow_undefined_flag \
9664 no_undefined_flag \
9665 export_symbols_cmds \
9666 hardcode_libdir_flag_spec \
9667 hardcode_libdir_flag_spec_ld \
9668 hardcode_libdir_separator \
9669 hardcode_automatic \
9670 module_cmds \
9671 module_expsym_cmds \
9672 lt_cv_prog_compiler_c_o \
9673 exclude_expsyms \
9674 include_expsyms; do
9675
9676 case $var in
9677 old_archive_cmds | \
9678 old_archive_from_new_cmds | \
9679 archive_cmds | \
9680 archive_expsym_cmds | \
9681 module_cmds | \
9682 module_expsym_cmds | \
9683 old_archive_from_expsyms_cmds | \
9684 export_symbols_cmds | \
9685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9686 postinstall_cmds | postuninstall_cmds | \
9687 old_postinstall_cmds | old_postuninstall_cmds | \
9688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9689 # Double-quote double-evaled strings.
9690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9691 ;;
9692 *)
9693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9694 ;;
9695 esac
9696 done
9697
9698 case $lt_echo in
9699 *'\$0 --fallback-echo"')
9700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9701 ;;
9702 esac
9703
9704cfgfile="${ofile}T"
9705 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9706 $rm -f "$cfgfile"
9707 { echo "$as_me:$LINENO: creating $ofile" >&5
9708echo "$as_me: creating $ofile" >&6;}
9709
9710 cat <<__EOF__ >> "$cfgfile"
9711#! $SHELL
9712
9713# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9714# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9715# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9716#
9717# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9718# Free Software Foundation, Inc.
9719#
9720# This file is part of GNU Libtool:
9721# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9722#
9723# This program is free software; you can redistribute it and/or modify
9724# it under the terms of the GNU General Public License as published by
9725# the Free Software Foundation; either version 2 of the License, or
9726# (at your option) any later version.
9727#
9728# This program is distributed in the hope that it will be useful, but
9729# WITHOUT ANY WARRANTY; without even the implied warranty of
9730# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9731# General Public License for more details.
9732#
9733# You should have received a copy of the GNU General Public License
9734# along with this program; if not, write to the Free Software
9735# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9736#
9737# As a special exception to the GNU General Public License, if you
9738# distribute this file as part of a program that contains a
9739# configuration script generated by Autoconf, you may include it under
9740# the same distribution terms that you use for the rest of that program.
9741
9742# A sed program that does not truncate output.
9743SED=$lt_SED
9744
9745# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9746Xsed="$SED -e 1s/^X//"
9747
9748# The HP-UX ksh and POSIX shell print the target directory to stdout
9749# if CDPATH is set.
9750(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9751
9752# The names of the tagged configurations supported by this script.
9753available_tags=
9754
9755# ### BEGIN LIBTOOL CONFIG
9756
9757# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9758
9759# Shell to use when invoking shell scripts.
9760SHELL=$lt_SHELL
9761
9762# Whether or not to build shared libraries.
9763build_libtool_libs=$enable_shared
9764
9765# Whether or not to build static libraries.
9766build_old_libs=$enable_static
9767
9768# Whether or not to add -lc for building shared libraries.
9769build_libtool_need_lc=$archive_cmds_need_lc
9770
9771# Whether or not to disallow shared libs when runtime libs are static
9772allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9773
9774# Whether or not to optimize for fast installation.
9775fast_install=$enable_fast_install
9776
9777# The host system.
9778host_alias=$host_alias
9779host=$host
9780host_os=$host_os
9781
9782# The build system.
9783build_alias=$build_alias
9784build=$build
9785build_os=$build_os
9786
9787# An echo program that does not interpret backslashes.
9788echo=$lt_echo
9789
9790# The archiver.
9791AR=$lt_AR
9792AR_FLAGS=$lt_AR_FLAGS
9793
9794# A C compiler.
9795LTCC=$lt_LTCC
9796
9797# LTCC compiler flags.
9798LTCFLAGS=$lt_LTCFLAGS
9799
9800# A language-specific compiler.
9801CC=$lt_compiler
9802
9803# Is the compiler the GNU C compiler?
9804with_gcc=$GCC
9805
9806gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9807gcc_ver=\`gcc -dumpversion\`
9808
9809# An ERE matcher.
9810EGREP=$lt_EGREP
9811
9812# The linker used to build libraries.
9813LD=$lt_LD
9814
9815# Whether we need hard or soft links.
9816LN_S=$lt_LN_S
9817
9818# A BSD-compatible nm program.
9819NM=$lt_NM
9820
9821# A symbol stripping program
9822STRIP=$lt_STRIP
9823
9824# Used to examine libraries when file_magic_cmd begins "file"
9825MAGIC_CMD=$MAGIC_CMD
9826
9827# Used on cygwin: DLL creation program.
9828DLLTOOL="$DLLTOOL"
9829
9830# Used on cygwin: object dumper.
9831OBJDUMP="$OBJDUMP"
9832
9833# Used on cygwin: assembler.
9834AS="$AS"
9835
9836# The name of the directory that contains temporary libtool files.
9837objdir=$objdir
9838
9839# How to create reloadable object files.
9840reload_flag=$lt_reload_flag
9841reload_cmds=$lt_reload_cmds
9842
9843# How to pass a linker flag through the compiler.
9844wl=$lt_lt_prog_compiler_wl
9845
9846# Object file suffix (normally "o").
9847objext="$ac_objext"
9848
9849# Old archive suffix (normally "a").
9850libext="$libext"
9851
9852# Shared library suffix (normally ".so").
9853shrext_cmds='$shrext_cmds'
9854
9855# Executable file suffix (normally "").
9856exeext="$exeext"
9857
9858# Additional compiler flags for building library objects.
9859pic_flag=$lt_lt_prog_compiler_pic
9860pic_mode=$pic_mode
9861
9862# What is the maximum length of a command?
9863max_cmd_len=$lt_cv_sys_max_cmd_len
9864
9865# Does compiler simultaneously support -c and -o options?
9866compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9867
9868# Must we lock files when doing compilation?
9869need_locks=$lt_need_locks
9870
9871# Do we need the lib prefix for modules?
9872need_lib_prefix=$need_lib_prefix
9873
9874# Do we need a version for libraries?
9875need_version=$need_version
9876
9877# Whether dlopen is supported.
9878dlopen_support=$enable_dlopen
9879
9880# Whether dlopen of programs is supported.
9881dlopen_self=$enable_dlopen_self
9882
9883# Whether dlopen of statically linked programs is supported.
9884dlopen_self_static=$enable_dlopen_self_static
9885
9886# Compiler flag to prevent dynamic linking.
9887link_static_flag=$lt_lt_prog_compiler_static
9888
9889# Compiler flag to turn off builtin functions.
9890no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9891
9892# Compiler flag to allow reflexive dlopens.
9893export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9894
9895# Compiler flag to generate shared objects directly from archives.
9896whole_archive_flag_spec=$lt_whole_archive_flag_spec
9897
9898# Compiler flag to generate thread-safe objects.
9899thread_safe_flag_spec=$lt_thread_safe_flag_spec
9900
9901# Library versioning type.
9902version_type=$version_type
9903
9904# Format of library name prefix.
9905libname_spec=$lt_libname_spec
9906
9907# List of archive names. First name is the real one, the rest are links.
9908# The last name is the one that the linker finds with -lNAME.
9909library_names_spec=$lt_library_names_spec
9910
9911# The coded name of the library, if different from the real name.
9912soname_spec=$lt_soname_spec
9913
9914# Commands used to build and install an old-style archive.
9915RANLIB=$lt_RANLIB
9916old_archive_cmds=$lt_old_archive_cmds
9917old_postinstall_cmds=$lt_old_postinstall_cmds
9918old_postuninstall_cmds=$lt_old_postuninstall_cmds
9919
9920# Create an old-style archive from a shared archive.
9921old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9922
9923# Create a temporary old-style archive to link instead of a shared archive.
9924old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9925
9926# Commands used to build and install a shared archive.
9927archive_cmds=$lt_archive_cmds
9928archive_expsym_cmds=$lt_archive_expsym_cmds
9929postinstall_cmds=$lt_postinstall_cmds
9930postuninstall_cmds=$lt_postuninstall_cmds
9931
9932# Commands used to build a loadable module (assumed same as above if empty)
9933module_cmds=$lt_module_cmds
9934module_expsym_cmds=$lt_module_expsym_cmds
9935
9936# Commands to strip libraries.
9937old_striplib=$lt_old_striplib
9938striplib=$lt_striplib
9939
9940# Dependencies to place before the objects being linked to create a
9941# shared library.
9942predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9943
9944# Dependencies to place after the objects being linked to create a
9945# shared library.
9946postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9947
9948# Dependencies to place before the objects being linked to create a
9949# shared library.
9950predeps=$lt_predeps
9951
9952# Dependencies to place after the objects being linked to create a
9953# shared library.
9954postdeps=$lt_postdeps
9955
9956# The library search path used internally by the compiler when linking
9957# a shared library.
9958compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9959
9960# Method to check whether dependent libraries are shared objects.
9961deplibs_check_method=$lt_deplibs_check_method
9962
9963# Command to use when deplibs_check_method == file_magic.
9964file_magic_cmd=$lt_file_magic_cmd
9965
9966# Flag that allows shared libraries with undefined symbols to be built.
9967allow_undefined_flag=$lt_allow_undefined_flag
9968
9969# Flag that forces no undefined symbols.
9970no_undefined_flag=$lt_no_undefined_flag
9971
9972# Commands used to finish a libtool library installation in a directory.
9973finish_cmds=$lt_finish_cmds
9974
9975# Same as above, but a single script fragment to be evaled but not shown.
9976finish_eval=$lt_finish_eval
9977
9978# Take the output of nm and produce a listing of raw symbols and C names.
9979global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9980
9981# Transform the output of nm in a proper C declaration
9982global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9983
9984# Transform the output of nm in a C name address pair
9985global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9986
9987# This is the shared library runtime path variable.
9988runpath_var=$runpath_var
9989
9990# This is the shared library path variable.
9991shlibpath_var=$shlibpath_var
9992
9993# Is shlibpath searched before the hard-coded library search path?
9994shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9995
9996# How to hardcode a shared library path into an executable.
9997hardcode_action=$hardcode_action
9998
9999# Whether we should hardcode library paths into libraries.
10000hardcode_into_libs=$hardcode_into_libs
10001
10002# Flag to hardcode \$libdir into a binary during linking.
10003# This must work even if \$libdir does not exist.
10004hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10005
10006# If ld is used when linking, flag to hardcode \$libdir into
10007# a binary during linking. This must work even if \$libdir does
10008# not exist.
10009hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10010
10011# Whether we need a single -rpath flag with a separated argument.
10012hardcode_libdir_separator=$lt_hardcode_libdir_separator
10013
10014# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10015# resulting binary.
10016hardcode_direct=$hardcode_direct
10017
10018# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10019# resulting binary.
10020hardcode_minus_L=$hardcode_minus_L
10021
10022# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10023# the resulting binary.
10024hardcode_shlibpath_var=$hardcode_shlibpath_var
10025
10026# Set to yes if building a shared library automatically hardcodes DIR into the library
10027# and all subsequent libraries and executables linked against it.
10028hardcode_automatic=$hardcode_automatic
10029
10030# Variables whose values should be saved in libtool wrapper scripts and
10031# restored at relink time.
10032variables_saved_for_relink="$variables_saved_for_relink"
10033
10034# Whether libtool must link a program against all its dependency libraries.
10035link_all_deplibs=$link_all_deplibs
10036
10037# Compile-time system search path for libraries
10038sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10039
10040# Run-time system search path for libraries
10041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10042
10043# Fix the shell variable \$srcfile for the compiler.
10044fix_srcfile_path="$fix_srcfile_path"
10045
10046# Set to yes if exported symbols are required.
10047always_export_symbols=$always_export_symbols
10048
10049# The commands to list exported symbols.
10050export_symbols_cmds=$lt_export_symbols_cmds
10051
10052# The commands to extract the exported symbol list from a shared archive.
10053extract_expsyms_cmds=$lt_extract_expsyms_cmds
10054
10055# Symbols that should not be listed in the preloaded symbols.
10056exclude_expsyms=$lt_exclude_expsyms
10057
10058# Symbols that must always be exported.
10059include_expsyms=$lt_include_expsyms
10060
10061# ### END LIBTOOL CONFIG
10062
10063__EOF__
10064
10065
10066 case $host_os in
10067 aix3*)
10068 cat <<\EOF >> "$cfgfile"
10069
10070# AIX sometimes has problems with the GCC collect2 program. For some
10071# reason, if we set the COLLECT_NAMES environment variable, the problems
10072# vanish in a puff of smoke.
10073if test "X${COLLECT_NAMES+set}" != Xset; then
10074 COLLECT_NAMES=
10075 export COLLECT_NAMES
10076fi
10077EOF
10078 ;;
10079 esac
10080
10081 # We use sed instead of cat because bash on DJGPP gets confused if
10082 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10083 # text mode, it properly converts lines to CR/LF. This bash problem
10084 # is reportedly fixed, but why not run on old versions too?
10085 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10086
10087 mv -f "$cfgfile" "$ofile" || \
10088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10089 chmod +x "$ofile"
10090
10091else
10092 # If there is no Makefile yet, we rely on a make rule to execute
10093 # `config.status --recheck' to rerun these tests and create the
10094 # libtool script then.
10095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10096 if test -f "$ltmain_in"; then
10097 test -f Makefile && make "$ltmain"
10098 fi
10099fi
10100
10101
10102ac_ext=c
10103ac_cpp='$CPP $CPPFLAGS'
10104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10106ac_compiler_gnu=$ac_cv_c_compiler_gnu
10107
10108CC="$lt_save_CC"
10109
10110
10111# Check whether --with-tags or --without-tags was given.
10112if test "${with_tags+set}" = set; then
10113 withval="$with_tags"
10114 tagnames="$withval"
10115fi;
10116
10117if test -f "$ltmain" && test -n "$tagnames"; then
10118 if test ! -f "${ofile}"; then
10119 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10120echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10121 fi
10122
10123 if test -z "$LTCC"; then
10124 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10125 if test -z "$LTCC"; then
10126 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10127echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10128 else
10129 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10130echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10131 fi
10132 fi
10133 if test -z "$LTCFLAGS"; then
10134 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10135 fi
10136
10137 # Extract list of available tagged configurations in $ofile.
10138 # Note that this assumes the entire list is on one line.
10139 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10140
10141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10142 for tagname in $tagnames; do
10143 IFS="$lt_save_ifs"
10144 # Check whether tagname contains only valid characters
10145 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10146 "") ;;
10147 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10148echo "$as_me: error: invalid tag name: $tagname" >&2;}
10149 { (exit 1); exit 1; }; }
10150 ;;
10151 esac
10152
10153 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10154 then
10155 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10156echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10157 { (exit 1); exit 1; }; }
10158 fi
10159
10160 # Update the list of available tags.
10161 if test -n "$tagname"; then
10162 echo appending configuration tag \"$tagname\" to $ofile
10163
10164 case $tagname in
10165 CXX)
10166 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10167 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10168 (test "X$CXX" != "Xg++"))) ; then
10169 ac_ext=cc
10170ac_cpp='$CXXCPP $CPPFLAGS'
10171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10174
10175
10176
10177
10178archive_cmds_need_lc_CXX=no
10179allow_undefined_flag_CXX=
10180always_export_symbols_CXX=no
10181archive_expsym_cmds_CXX=
10182export_dynamic_flag_spec_CXX=
10183hardcode_direct_CXX=no
10184hardcode_libdir_flag_spec_CXX=
10185hardcode_libdir_flag_spec_ld_CXX=
10186hardcode_libdir_separator_CXX=
10187hardcode_minus_L_CXX=no
10188hardcode_shlibpath_var_CXX=unsupported
10189hardcode_automatic_CXX=no
10190module_cmds_CXX=
10191module_expsym_cmds_CXX=
10192link_all_deplibs_CXX=unknown
10193old_archive_cmds_CXX=$old_archive_cmds
10194no_undefined_flag_CXX=
10195whole_archive_flag_spec_CXX=
10196enable_shared_with_static_runtimes_CXX=no
10197
10198# Dependencies to place before and after the object being linked:
10199predep_objects_CXX=
10200postdep_objects_CXX=
10201predeps_CXX=
10202postdeps_CXX=
10203compiler_lib_search_path_CXX=
10204
10205# Source file extension for C++ test sources.
10206ac_ext=cpp
10207
10208# Object file extension for compiled C++ test sources.
10209objext=o
10210objext_CXX=$objext
10211
10212# Code to be used in simple compile tests
10213lt_simple_compile_test_code="int some_variable = 0;\n"
10214
10215# Code to be used in simple link tests
10216lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10217
10218# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10219
10220# If no C compiler was specified, use CC.
10221LTCC=${LTCC-"$CC"}
10222
10223# If no C compiler flags were specified, use CFLAGS.
10224LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10225
10226# Allow CC to be a program name with arguments.
10227compiler=$CC
10228
10229
10230# save warnings/boilerplate of simple test code
10231ac_outfile=conftest.$ac_objext
10232printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10234_lt_compiler_boilerplate=`cat conftest.err`
10235$rm conftest*
10236
10237ac_outfile=conftest.$ac_objext
10238printf "$lt_simple_link_test_code" >conftest.$ac_ext
10239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10240_lt_linker_boilerplate=`cat conftest.err`
10241$rm conftest*
10242
10243
10244# Allow CC to be a program name with arguments.
10245lt_save_CC=$CC
10246lt_save_LD=$LD
10247lt_save_GCC=$GCC
10248GCC=$GXX
10249lt_save_with_gnu_ld=$with_gnu_ld
10250lt_save_path_LD=$lt_cv_path_LD
10251if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10252 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10253else
10254 $as_unset lt_cv_prog_gnu_ld
10255fi
10256if test -n "${lt_cv_path_LDCXX+set}"; then
10257 lt_cv_path_LD=$lt_cv_path_LDCXX
10258else
10259 $as_unset lt_cv_path_LD
10260fi
10261test -z "${LDCXX+set}" || LD=$LDCXX
10262CC=${CXX-"c++"}
10263compiler=$CC
10264compiler_CXX=$CC
10265for cc_temp in $compiler""; do
10266 case $cc_temp in
10267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10269 \-*) ;;
10270 *) break;;
10271 esac
10272done
10273cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10274
10275
10276# We don't want -fno-exception wen compiling C++ code, so set the
10277# no_builtin_flag separately
10278if test "$GXX" = yes; then
10279 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10280else
10281 lt_prog_compiler_no_builtin_flag_CXX=
10282fi
10283
10284if test "$GXX" = yes; then
10285 # Set up default GNU C++ configuration
10286
10287
10288# Check whether --with-gnu-ld or --without-gnu-ld was given.
10289if test "${with_gnu_ld+set}" = set; then
10290 withval="$with_gnu_ld"
10291 test "$withval" = no || with_gnu_ld=yes
10292else
10293 with_gnu_ld=no
10294fi;
10295ac_prog=ld
10296if test "$GCC" = yes; then
10297 # Check if gcc -print-prog-name=ld gives a path.
10298 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10299echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10300 case $host in
10301 *-*-mingw*)
10302 # gcc leaves a trailing carriage return which upsets mingw
10303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10304 *)
10305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10306 esac
10307 case $ac_prog in
10308 # Accept absolute paths.
10309 [\\/]* | ?:[\\/]*)
10310 re_direlt='/[^/][^/]*/\.\./'
10311 # Canonicalize the pathname of ld
10312 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10313 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10314 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10315 done
10316 test -z "$LD" && LD="$ac_prog"
10317 ;;
10318 "")
10319 # If it fails, then pretend we aren't using GCC.
10320 ac_prog=ld
10321 ;;
10322 *)
10323 # If it is relative, then search for the first ld in PATH.
10324 with_gnu_ld=unknown
10325 ;;
10326 esac
10327elif test "$with_gnu_ld" = yes; then
10328 echo "$as_me:$LINENO: checking for GNU ld" >&5
10329echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10330else
10331 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10332echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10333fi
10334if test "${lt_cv_path_LD+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337 if test -z "$LD"; then
10338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10339 for ac_dir in $PATH; do
10340 IFS="$lt_save_ifs"
10341 test -z "$ac_dir" && ac_dir=.
10342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10343 lt_cv_path_LD="$ac_dir/$ac_prog"
10344 # Check to see if the program is GNU ld. I'd rather use --version,
10345 # but apparently some variants of GNU ld only accept -v.
10346 # Break only if it was the GNU/non-GNU ld that we prefer.
10347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10348 *GNU* | *'with BFD'*)
10349 test "$with_gnu_ld" != no && break
10350 ;;
10351 *)
10352 test "$with_gnu_ld" != yes && break
10353 ;;
10354 esac
10355 fi
10356 done
10357 IFS="$lt_save_ifs"
10358else
10359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10360fi
10361fi
10362
10363LD="$lt_cv_path_LD"
10364if test -n "$LD"; then
10365 echo "$as_me:$LINENO: result: $LD" >&5
10366echo "${ECHO_T}$LD" >&6
10367else
10368 echo "$as_me:$LINENO: result: no" >&5
10369echo "${ECHO_T}no" >&6
10370fi
10371test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10372echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10373 { (exit 1); exit 1; }; }
10374echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10375echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10376if test "${lt_cv_prog_gnu_ld+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378else
10379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10380case `$LD -v 2>&1 </dev/null` in
10381*GNU* | *'with BFD'*)
10382 lt_cv_prog_gnu_ld=yes
10383 ;;
10384*)
10385 lt_cv_prog_gnu_ld=no
10386 ;;
10387esac
10388fi
10389echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10390echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10391with_gnu_ld=$lt_cv_prog_gnu_ld
10392
10393
10394
10395 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10396 # archiving commands below assume that GNU ld is being used.
10397 if test "$with_gnu_ld" = yes; then
10398 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399 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'
10400
10401 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10403
10404 # If archive_cmds runs LD, not CC, wlarc should be empty
10405 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10406 # investigate it a little bit more. (MM)
10407 wlarc='${wl}'
10408
10409 # ancient GNU ld didn't support --whole-archive et. al.
10410 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10411 grep 'no-whole-archive' > /dev/null; then
10412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10413 else
10414 whole_archive_flag_spec_CXX=
10415 fi
10416 else
10417 with_gnu_ld=no
10418 wlarc=
10419
10420 # A generic and very simple default shared library creation
10421 # command for GNU C++ for the case where it uses the native
10422 # linker, instead of GNU ld. If possible, this setting should
10423 # overridden to take advantage of the native linker features on
10424 # the platform it is being used on.
10425 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10426 fi
10427
10428 # Commands to make compiler produce verbose output that lists
10429 # what "hidden" libraries, object files and flags are used when
10430 # linking a shared library.
10431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10432
10433else
10434 GXX=no
10435 with_gnu_ld=no
10436 wlarc=
10437fi
10438
10439# PORTME: fill in a description of your system's C++ link characteristics
10440echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10441echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10442ld_shlibs_CXX=yes
10443case $host_os in
10444 aix3*)
10445 # FIXME: insert proper C++ library support
10446 ld_shlibs_CXX=no
10447 ;;
10448 aix4* | aix5*)
10449 if test "$host_cpu" = ia64; then
10450 # On IA64, the linker does run time linking by default, so we don't
10451 # have to do anything special.
10452 aix_use_runtimelinking=no
10453 exp_sym_flag='-Bexport'
10454 no_entry_flag=""
10455 else
10456 aix_use_runtimelinking=no
10457
10458 # Test if we are trying to use run time linking or normal
10459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10460 # need to do runtime linking.
10461 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10462 for ld_flag in $LDFLAGS; do
10463 case $ld_flag in
10464 *-brtl*)
10465 aix_use_runtimelinking=yes
10466 break
10467 ;;
10468 esac
10469 done
10470 ;;
10471 esac
10472
10473 exp_sym_flag='-bexport'
10474 no_entry_flag='-bnoentry'
10475 fi
10476
10477 # When large executables or shared objects are built, AIX ld can
10478 # have problems creating the table of contents. If linking a library
10479 # or program results in "error TOC overflow" add -mminimal-toc to
10480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10482
10483 archive_cmds_CXX=''
10484 hardcode_direct_CXX=yes
10485 hardcode_libdir_separator_CXX=':'
10486 link_all_deplibs_CXX=yes
10487
10488 if test "$GXX" = yes; then
10489 case $host_os in aix4.[012]|aix4.[012].*)
10490 # We only want to do this on AIX 4.2 and lower, the check
10491 # below for broken collect2 doesn't work under 4.3+
10492 collect2name=`${CC} -print-prog-name=collect2`
10493 if test -f "$collect2name" && \
10494 strings "$collect2name" | grep resolve_lib_name >/dev/null
10495 then
10496 # We have reworked collect2
10497 hardcode_direct_CXX=yes
10498 else
10499 # We have old collect2
10500 hardcode_direct_CXX=unsupported
10501 # It fails to find uninstalled libraries when the uninstalled
10502 # path is not listed in the libpath. Setting hardcode_minus_L
10503 # to unsupported forces relinking
10504 hardcode_minus_L_CXX=yes
10505 hardcode_libdir_flag_spec_CXX='-L$libdir'
10506 hardcode_libdir_separator_CXX=
10507 fi
10508 ;;
10509 esac
10510 shared_flag='-shared'
10511 if test "$aix_use_runtimelinking" = yes; then
10512 shared_flag="$shared_flag "'${wl}-G'
10513 fi
10514 else
10515 # not using gcc
10516 if test "$host_cpu" = ia64; then
10517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10518 # chokes on -Wl,-G. The following line is correct:
10519 shared_flag='-G'
10520 else
10521 if test "$aix_use_runtimelinking" = yes; then
10522 shared_flag='${wl}-G'
10523 else
10524 shared_flag='${wl}-bM:SRE'
10525 fi
10526 fi
10527 fi
10528
10529 # It seems that -bexpall does not export symbols beginning with
10530 # underscore (_), so it is better to generate a list of symbols to export.
10531 always_export_symbols_CXX=yes
10532 if test "$aix_use_runtimelinking" = yes; then
10533 # Warning - without using the other runtime loading flags (-brtl),
10534 # -berok will link without error, but may produce a broken library.
10535 allow_undefined_flag_CXX='-berok'
10536 # Determine the default libpath from the value encoded in an empty executable.
10537 cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
10542/* end confdefs.h. */
10543
10544int
10545main ()
10546{
10547
10548 ;
10549 return 0;
10550}
10551_ACEOF
10552rm -f conftest.$ac_objext conftest$ac_exeext
10553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554 (eval $ac_link) 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -z "$ac_cxx_werror_flag"
10562 || test ! -s conftest.err'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; } &&
10568 { ac_try='test -s conftest$ac_exeext'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
10574
10575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10576}'`
10577# Check for a 64-bit object if we didn't find anything.
10578if 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; }
10579}'`; fi
10580else
10581 echo "$as_me: failed program was:" >&5
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
10584fi
10585rm -f conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10588
10589 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10590
10591 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10592 else
10593 if test "$host_cpu" = ia64; then
10594 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10595 allow_undefined_flag_CXX="-z nodefs"
10596 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10597 else
10598 # Determine the default libpath from the value encoded in an empty executable.
10599 cat >conftest.$ac_ext <<_ACEOF
10600/* confdefs.h. */
10601_ACEOF
10602cat confdefs.h >>conftest.$ac_ext
10603cat >>conftest.$ac_ext <<_ACEOF
10604/* end confdefs.h. */
10605
10606int
10607main ()
10608{
10609
10610 ;
10611 return 0;
10612}
10613_ACEOF
10614rm -f conftest.$ac_objext conftest$ac_exeext
10615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -z "$ac_cxx_werror_flag"
10624 || test ! -s conftest.err'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636
10637aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10638}'`
10639# Check for a 64-bit object if we didn't find anything.
10640if 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; }
10641}'`; fi
10642else
10643 echo "$as_me: failed program was:" >&5
10644sed 's/^/| /' conftest.$ac_ext >&5
10645
10646fi
10647rm -f conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10650
10651 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10652 # Warning - without using the other run time loading flags,
10653 # -berok will link without error, but may produce a broken library.
10654 no_undefined_flag_CXX=' ${wl}-bernotok'
10655 allow_undefined_flag_CXX=' ${wl}-berok'
10656 # Exported symbols can be pulled into shared objects from archives
10657 whole_archive_flag_spec_CXX='$convenience'
10658 archive_cmds_need_lc_CXX=yes
10659 # This is similar to how AIX traditionally builds its shared libraries.
10660 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10661 fi
10662 fi
10663 ;;
10664
10665 beos*)
10666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10667 allow_undefined_flag_CXX=unsupported
10668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10669 # support --undefined. This deserves some investigation. FIXME
10670 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10671 else
10672 ld_shlibs_CXX=no
10673 fi
10674 ;;
10675
10676 chorus*)
10677 case $cc_basename in
10678 *)
10679 # FIXME: insert proper C++ library support
10680 ld_shlibs_CXX=no
10681 ;;
10682 esac
10683 ;;
10684
10685 cygwin* | mingw* | pw32*)
10686 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10687 # as there is no search path for DLLs.
10688 hardcode_libdir_flag_spec_CXX='-L$libdir'
10689 allow_undefined_flag_CXX=unsupported
10690 always_export_symbols_CXX=no
10691 enable_shared_with_static_runtimes_CXX=yes
10692
10693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10694 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10695 # If the export-symbols file already is a .def file (1st line
10696 # is EXPORTS), use it as is; otherwise, prepend...
10697 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10698 cp $export_symbols $output_objdir/$soname.def;
10699 else
10700 echo EXPORTS > $output_objdir/$soname.def;
10701 cat $export_symbols >> $output_objdir/$soname.def;
10702 fi~
10703 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10704 else
10705 ld_shlibs_CXX=no
10706 fi
10707 ;;
10708 darwin* | rhapsody*)
10709 case $host_os in
10710 rhapsody* | darwin1.[012])
10711 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10712 ;;
10713 *) # Darwin 1.3 on
10714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10715 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10716 else
10717 case ${MACOSX_DEPLOYMENT_TARGET} in
10718 10.[012])
10719 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10720 ;;
10721 10.*)
10722 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10723 ;;
10724 esac
10725 fi
10726 ;;
10727 esac
10728 archive_cmds_need_lc_CXX=no
10729 hardcode_direct_CXX=no
10730 hardcode_automatic_CXX=yes
10731 hardcode_shlibpath_var_CXX=unsupported
10732 whole_archive_flag_spec_CXX=''
10733 link_all_deplibs_CXX=yes
10734
10735 if test "$GXX" = yes ; then
10736 lt_int_apple_cc_single_mod=no
10737 output_verbose_link_cmd='echo'
10738 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10739 lt_int_apple_cc_single_mod=yes
10740 fi
10741 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10742 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10743 else
10744 archive_cmds_CXX='$CC -r -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'
10745 fi
10746 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10748 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10749 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}'
10750 else
10751 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10752 fi
10753 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}'
10754 else
10755 case $cc_basename in
10756 xlc*)
10757 output_verbose_link_cmd='echo'
10758 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10759 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10761 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10762 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}'
10763 ;;
10764 *)
10765 ld_shlibs_CXX=no
10766 ;;
10767 esac
10768 fi
10769 ;;
10770
10771 dgux*)
10772 case $cc_basename in
10773 ec++*)
10774 # FIXME: insert proper C++ library support
10775 ld_shlibs_CXX=no
10776 ;;
10777 ghcx*)
10778 # Green Hills C++ Compiler
10779 # FIXME: insert proper C++ library support
10780 ld_shlibs_CXX=no
10781 ;;
10782 *)
10783 # FIXME: insert proper C++ library support
10784 ld_shlibs_CXX=no
10785 ;;
10786 esac
10787 ;;
10788 freebsd[12]*)
10789 # C++ shared libraries reported to be fairly broken before switch to ELF
10790 ld_shlibs_CXX=no
10791 ;;
10792 freebsd-elf*)
10793 archive_cmds_need_lc_CXX=no
10794 ;;
10795 freebsd* | kfreebsd*-gnu | dragonfly*)
10796 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10797 # conventions
10798 ld_shlibs_CXX=yes
10799 ;;
10800 gnu*)
10801 ;;
10802 hpux9*)
10803 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10804 hardcode_libdir_separator_CXX=:
10805 export_dynamic_flag_spec_CXX='${wl}-E'
10806 hardcode_direct_CXX=yes
10807 hardcode_minus_L_CXX=yes # Not in the search PATH,
10808 # but as the default
10809 # location of the library.
10810
10811 case $cc_basename in
10812 CC*)
10813 # FIXME: insert proper C++ library support
10814 ld_shlibs_CXX=no
10815 ;;
10816 aCC*)
10817 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'
10818 # Commands to make compiler produce verbose output that lists
10819 # what "hidden" libraries, object files and flags are used when
10820 # linking a shared library.
10821 #
10822 # There doesn't appear to be a way to prevent this compiler from
10823 # explicitly linking system object files so we need to strip them
10824 # from the output so that they don't get included in the library
10825 # dependencies.
10826 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'
10827 ;;
10828 *)
10829 if test "$GXX" = yes; then
10830 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'
10831 else
10832 # FIXME: insert proper C++ library support
10833 ld_shlibs_CXX=no
10834 fi
10835 ;;
10836 esac
10837 ;;
10838 hpux10*|hpux11*)
10839 if test $with_gnu_ld = no; then
10840 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10841 hardcode_libdir_separator_CXX=:
10842
10843 case $host_cpu in
10844 hppa*64*|ia64*)
10845 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10846 ;;
10847 *)
10848 export_dynamic_flag_spec_CXX='${wl}-E'
10849 ;;
10850 esac
10851 fi
10852 case $host_cpu in
10853 hppa*64*|ia64*)
10854 hardcode_direct_CXX=no
10855 hardcode_shlibpath_var_CXX=no
10856 ;;
10857 *)
10858 hardcode_direct_CXX=yes
10859 hardcode_minus_L_CXX=yes # Not in the search PATH,
10860 # but as the default
10861 # location of the library.
10862 ;;
10863 esac
10864
10865 case $cc_basename in
10866 CC*)
10867 # FIXME: insert proper C++ library support
10868 ld_shlibs_CXX=no
10869 ;;
10870 aCC*)
10871 case $host_cpu in
10872 hppa*64*)
10873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10874 ;;
10875 ia64*)
10876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10877 ;;
10878 *)
10879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10880 ;;
10881 esac
10882 # Commands to make compiler produce verbose output that lists
10883 # what "hidden" libraries, object files and flags are used when
10884 # linking a shared library.
10885 #
10886 # There doesn't appear to be a way to prevent this compiler from
10887 # explicitly linking system object files so we need to strip them
10888 # from the output so that they don't get included in the library
10889 # dependencies.
10890 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'
10891 ;;
10892 *)
10893 if test "$GXX" = yes; then
10894 if test $with_gnu_ld = no; then
10895 case $host_cpu in
10896 hppa*64*)
10897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10898 ;;
10899 ia64*)
10900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10901 ;;
10902 *)
10903 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'
10904 ;;
10905 esac
10906 fi
10907 else
10908 # FIXME: insert proper C++ library support
10909 ld_shlibs_CXX=no
10910 fi
10911 ;;
10912 esac
10913 ;;
10914 interix3*)
10915 hardcode_direct_CXX=no
10916 hardcode_shlibpath_var_CXX=no
10917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10918 export_dynamic_flag_spec_CXX='${wl}-E'
10919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10920 # Instead, shared libraries are loaded at an image base (0x10000000 by
10921 # default) and relocated if they conflict, which is a slow very memory
10922 # consuming and fragmenting process. To avoid this, we pick a random,
10923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10925 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10926 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10927 ;;
10928 irix5* | irix6*)
10929 case $cc_basename in
10930 CC*)
10931 # SGI C++
10932 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 ${output_objdir}/so_locations -o $lib'
10933
10934 # Archives containing C++ object files must be created using
10935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10936 # necessary to make sure instantiated templates are included
10937 # in the archive.
10938 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10939 ;;
10940 *)
10941 if test "$GXX" = yes; then
10942 if test "$with_gnu_ld" = no; then
10943 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}${output_objdir}/so_locations -o $lib'
10944 else
10945 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'
10946 fi
10947 fi
10948 link_all_deplibs_CXX=yes
10949 ;;
10950 esac
10951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10952 hardcode_libdir_separator_CXX=:
10953 ;;
10954 linux*)
10955 case $cc_basename in
10956 KCC*)
10957 # Kuck and Associates, Inc. (KAI) C++ Compiler
10958
10959 # KCC will only create a shared library if the output file
10960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10961 # to its proper name (with version) after linking.
10962 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'
10963 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'
10964 # Commands to make compiler produce verbose output that lists
10965 # what "hidden" libraries, object files and flags are used when
10966 # linking a shared library.
10967 #
10968 # There doesn't appear to be a way to prevent this compiler from
10969 # explicitly linking system object files so we need to strip them
10970 # from the output so that they don't get included in the library
10971 # dependencies.
10972 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'
10973
10974 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10976
10977 # Archives containing C++ object files must be created using
10978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10980 ;;
10981 icpc*)
10982 # Intel C++
10983 with_gnu_ld=yes
10984 # version 8.0 and above of icpc choke on multiply defined symbols
10985 # if we add $predep_objects and $postdep_objects, however 7.1 and
10986 # earlier do not add the objects themselves.
10987 case `$CC -V 2>&1` in
10988 *"Version 7."*)
10989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10990 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'
10991 ;;
10992 *) # Version 8.0 or newer
10993 tmp_idyn=
10994 case $host_cpu in
10995 ia64*) tmp_idyn=' -i_dynamic';;
10996 esac
10997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10999 ;;
11000 esac
11001 archive_cmds_need_lc_CXX=no
11002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11005 ;;
11006 pgCC*)
11007 # Portland Group C++ compiler
11008 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11009 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11010
11011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11013 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11014 ;;
11015 cxx*)
11016 # Compaq C++
11017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11018 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'
11019
11020 runpath_var=LD_RUN_PATH
11021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11022 hardcode_libdir_separator_CXX=:
11023
11024 # Commands to make compiler produce verbose output that lists
11025 # what "hidden" libraries, object files and flags are used when
11026 # linking a shared library.
11027 #
11028 # There doesn't appear to be a way to prevent this compiler from
11029 # explicitly linking system object files so we need to strip them
11030 # from the output so that they don't get included in the library
11031 # dependencies.
11032 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'
11033 ;;
11034 esac
11035 ;;
11036 lynxos*)
11037 # FIXME: insert proper C++ library support
11038 ld_shlibs_CXX=no
11039 ;;
11040 m88k*)
11041 # FIXME: insert proper C++ library support
11042 ld_shlibs_CXX=no
11043 ;;
11044 mvs*)
11045 case $cc_basename in
11046 cxx*)
11047 # FIXME: insert proper C++ library support
11048 ld_shlibs_CXX=no
11049 ;;
11050 *)
11051 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no
11053 ;;
11054 esac
11055 ;;
11056 netbsd*)
11057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11058 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11059 wlarc=
11060 hardcode_libdir_flag_spec_CXX='-R$libdir'
11061 hardcode_direct_CXX=yes
11062 hardcode_shlibpath_var_CXX=no
11063 fi
11064 # Workaround some broken pre-1.5 toolchains
11065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11066 ;;
11067 openbsd2*)
11068 # C++ shared libraries are fairly broken
11069 ld_shlibs_CXX=no
11070 ;;
11071 openbsd*)
11072 hardcode_direct_CXX=yes
11073 hardcode_shlibpath_var_CXX=no
11074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11078 export_dynamic_flag_spec_CXX='${wl}-E'
11079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11080 fi
11081 output_verbose_link_cmd='echo'
11082 ;;
11083 osf3*)
11084 case $cc_basename in
11085 KCC*)
11086 # Kuck and Associates, Inc. (KAI) C++ Compiler
11087
11088 # KCC will only create a shared library if the output file
11089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11090 # to its proper name (with version) after linking.
11091 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'
11092
11093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11094 hardcode_libdir_separator_CXX=:
11095
11096 # Archives containing C++ object files must be created using
11097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11098 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11099
11100 ;;
11101 RCC*)
11102 # Rational C++ 2.4.1
11103 # FIXME: insert proper C++ library support
11104 ld_shlibs_CXX=no
11105 ;;
11106 cxx*)
11107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11108 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 ${output_objdir}/so_locations -o $lib'
11109
11110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11111 hardcode_libdir_separator_CXX=:
11112
11113 # Commands to make compiler produce verbose output that lists
11114 # what "hidden" libraries, object files and flags are used when
11115 # linking a shared library.
11116 #
11117 # There doesn't appear to be a way to prevent this compiler from
11118 # explicitly linking system object files so we need to strip them
11119 # from the output so that they don't get included in the library
11120 # dependencies.
11121 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'
11122 ;;
11123 *)
11124 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11126 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}${output_objdir}/so_locations -o $lib'
11127
11128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11129 hardcode_libdir_separator_CXX=:
11130
11131 # Commands to make compiler produce verbose output that lists
11132 # what "hidden" libraries, object files and flags are used when
11133 # linking a shared library.
11134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11135
11136 else
11137 # FIXME: insert proper C++ library support
11138 ld_shlibs_CXX=no
11139 fi
11140 ;;
11141 esac
11142 ;;
11143 osf4* | osf5*)
11144 case $cc_basename in
11145 KCC*)
11146 # Kuck and Associates, Inc. (KAI) C++ Compiler
11147
11148 # KCC will only create a shared library if the output file
11149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11150 # to its proper name (with version) after linking.
11151 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'
11152
11153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11154 hardcode_libdir_separator_CXX=:
11155
11156 # Archives containing C++ object files must be created using
11157 # the KAI C++ compiler.
11158 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11159 ;;
11160 RCC*)
11161 # Rational C++ 2.4.1
11162 # FIXME: insert proper C++ library support
11163 ld_shlibs_CXX=no
11164 ;;
11165 cxx*)
11166 allow_undefined_flag_CXX=' -expect_unresolved \*'
11167 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 ${output_objdir}/so_locations -o $lib'
11168 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11169 echo "-hidden">> $lib.exp~
11170 $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 ${output_objdir}/so_locations -o $lib~
11171 $rm $lib.exp'
11172
11173 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11174 hardcode_libdir_separator_CXX=:
11175
11176 # Commands to make compiler produce verbose output that lists
11177 # what "hidden" libraries, object files and flags are used when
11178 # linking a shared library.
11179 #
11180 # There doesn't appear to be a way to prevent this compiler from
11181 # explicitly linking system object files so we need to strip them
11182 # from the output so that they don't get included in the library
11183 # dependencies.
11184 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'
11185 ;;
11186 *)
11187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11189 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}${output_objdir}/so_locations -o $lib'
11190
11191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11192 hardcode_libdir_separator_CXX=:
11193
11194 # Commands to make compiler produce verbose output that lists
11195 # what "hidden" libraries, object files and flags are used when
11196 # linking a shared library.
11197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11198
11199 else
11200 # FIXME: insert proper C++ library support
11201 ld_shlibs_CXX=no
11202 fi
11203 ;;
11204 esac
11205 ;;
11206 psos*)
11207 # FIXME: insert proper C++ library support
11208 ld_shlibs_CXX=no
11209 ;;
11210 sunos4*)
11211 case $cc_basename in
11212 CC*)
11213 # Sun C++ 4.x
11214 # FIXME: insert proper C++ library support
11215 ld_shlibs_CXX=no
11216 ;;
11217 lcc*)
11218 # Lucid
11219 # FIXME: insert proper C++ library support
11220 ld_shlibs_CXX=no
11221 ;;
11222 *)
11223 # FIXME: insert proper C++ library support
11224 ld_shlibs_CXX=no
11225 ;;
11226 esac
11227 ;;
11228 solaris*)
11229 case $cc_basename in
11230 CC*)
11231 # Sun C++ 4.2, 5.x and Centerline C++
11232 archive_cmds_need_lc_CXX=yes
11233 no_undefined_flag_CXX=' -zdefs'
11234 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11235 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11236 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11237
11238 hardcode_libdir_flag_spec_CXX='-R$libdir'
11239 hardcode_shlibpath_var_CXX=no
11240 case $host_os in
11241 solaris2.[0-5] | solaris2.[0-5].*) ;;
11242 *)
11243 # The C++ compiler is used as linker so we must use $wl
11244 # flag to pass the commands to the underlying system
11245 # linker. We must also pass each convience library through
11246 # to the system linker between allextract/defaultextract.
11247 # The C++ compiler will combine linker options so we
11248 # cannot just pass the convience library names through
11249 # without $wl.
11250 # Supported since Solaris 2.6 (maybe 2.5.1?)
11251 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11252 ;;
11253 esac
11254 link_all_deplibs_CXX=yes
11255
11256 output_verbose_link_cmd='echo'
11257
11258 # Archives containing C++ object files must be created using
11259 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11260 # necessary to make sure instantiated templates are included
11261 # in the archive.
11262 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11263 ;;
11264 gcx*)
11265 # Green Hills C++ Compiler
11266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11267
11268 # The C++ compiler must be used to create the archive.
11269 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11270 ;;
11271 *)
11272 # GNU C++ compiler with Solaris linker
11273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11274 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11275 if $CC --version | grep -v '^2\.7' > /dev/null; then
11276 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11277 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11278 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11279
11280 # Commands to make compiler produce verbose output that lists
11281 # what "hidden" libraries, object files and flags are used when
11282 # linking a shared library.
11283 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11284 else
11285 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11286 # platform.
11287 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11288 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11289 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11290
11291 # Commands to make compiler produce verbose output that lists
11292 # what "hidden" libraries, object files and flags are used when
11293 # linking a shared library.
11294 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11295 fi
11296
11297 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11298 fi
11299 ;;
11300 esac
11301 ;;
11302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11303 no_undefined_flag_CXX='${wl}-z,text'
11304 archive_cmds_need_lc_CXX=no
11305 hardcode_shlibpath_var_CXX=no
11306 runpath_var='LD_RUN_PATH'
11307
11308 case $cc_basename in
11309 CC*)
11310 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312 ;;
11313 *)
11314 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11316 ;;
11317 esac
11318 ;;
11319 sysv5* | sco3.2v5* | sco5v6*)
11320 # Note: We can NOT use -z defs as we might desire, because we do not
11321 # link with -lc, and that would cause any symbols used from libc to
11322 # always be unresolved, which means just about no library would
11323 # ever link correctly. If we're not using GNU ld we use -z text
11324 # though, which does catch some bad symbols but isn't as heavy-handed
11325 # as -z defs.
11326 # For security reasons, it is highly recommended that you always
11327 # use absolute paths for naming shared libraries, and exclude the
11328 # DT_RUNPATH tag from executables and libraries. But doing so
11329 # requires that you compile everything twice, which is a pain.
11330 # So that behaviour is only enabled if SCOABSPATH is set to a
11331 # non-empty value in the environment. Most likely only useful for
11332 # creating official distributions of packages.
11333 # This is a hack until libtool officially supports absolute path
11334 # names for shared libraries.
11335 no_undefined_flag_CXX='${wl}-z,text'
11336 allow_undefined_flag_CXX='${wl}-z,nodefs'
11337 archive_cmds_need_lc_CXX=no
11338 hardcode_shlibpath_var_CXX=no
11339 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11340 hardcode_libdir_separator_CXX=':'
11341 link_all_deplibs_CXX=yes
11342 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11343 runpath_var='LD_RUN_PATH'
11344
11345 case $cc_basename in
11346 CC*)
11347 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11348 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11349 ;;
11350 *)
11351 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11352 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11353 ;;
11354 esac
11355 ;;
11356 tandem*)
11357 case $cc_basename in
11358 NCC*)
11359 # NonStop-UX NCC 3.20
11360 # FIXME: insert proper C++ library support
11361 ld_shlibs_CXX=no
11362 ;;
11363 *)
11364 # FIXME: insert proper C++ library support
11365 ld_shlibs_CXX=no
11366 ;;
11367 esac
11368 ;;
11369 vxworks*)
11370 # FIXME: insert proper C++ library support
11371 ld_shlibs_CXX=no
11372 ;;
11373 *)
11374 # FIXME: insert proper C++ library support
11375 ld_shlibs_CXX=no
11376 ;;
11377esac
11378echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11379echo "${ECHO_T}$ld_shlibs_CXX" >&6
11380test "$ld_shlibs_CXX" = no && can_build_shared=no
11381
11382GCC_CXX="$GXX"
11383LD_CXX="$LD"
11384
11385
11386cat > conftest.$ac_ext <<EOF
11387class Foo
11388{
11389public:
11390 Foo (void) { a = 0; }
11391private:
11392 int a;
11393};
11394EOF
11395
11396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11397 (eval $ac_compile) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; then
11401 # Parse the compiler output and extract the necessary
11402 # objects, libraries and library flags.
11403
11404 # Sentinel used to keep track of whether or not we are before
11405 # the conftest object file.
11406 pre_test_object_deps_done=no
11407
11408 # The `*' in the case matches for architectures that use `case' in
11409 # $output_verbose_cmd can trigger glob expansion during the loop
11410 # eval without this substitution.
11411 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11412
11413 for p in `eval $output_verbose_link_cmd`; do
11414 case $p in
11415
11416 -L* | -R* | -l*)
11417 # Some compilers place space between "-{L,R}" and the path.
11418 # Remove the space.
11419 if test $p = "-L" \
11420 || test $p = "-R"; then
11421 prev=$p
11422 continue
11423 else
11424 prev=
11425 fi
11426
11427 if test "$pre_test_object_deps_done" = no; then
11428 case $p in
11429 -L* | -R*)
11430 # Internal compiler library paths should come after those
11431 # provided the user. The postdeps already come after the
11432 # user supplied libs so there is no need to process them.
11433 if test -z "$compiler_lib_search_path_CXX"; then
11434 compiler_lib_search_path_CXX="${prev}${p}"
11435 else
11436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11437 fi
11438 ;;
11439 # The "-l" case would never come before the object being
11440 # linked, so don't bother handling this case.
11441 esac
11442 else
11443 if test -z "$postdeps_CXX"; then
11444 postdeps_CXX="${prev}${p}"
11445 else
11446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11447 fi
11448 fi
11449 ;;
11450
11451 *.$objext)
11452 # This assumes that the test object file only shows up
11453 # once in the compiler output.
11454 if test "$p" = "conftest.$objext"; then
11455 pre_test_object_deps_done=yes
11456 continue
11457 fi
11458
11459 if test "$pre_test_object_deps_done" = no; then
11460 if test -z "$predep_objects_CXX"; then
11461 predep_objects_CXX="$p"
11462 else
11463 predep_objects_CXX="$predep_objects_CXX $p"
11464 fi
11465 else
11466 if test -z "$postdep_objects_CXX"; then
11467 postdep_objects_CXX="$p"
11468 else
11469 postdep_objects_CXX="$postdep_objects_CXX $p"
11470 fi
11471 fi
11472 ;;
11473
11474 *) ;; # Ignore the rest.
11475
11476 esac
11477 done
11478
11479 # Clean up.
11480 rm -f a.out a.exe
11481else
11482 echo "libtool.m4: error: problem compiling CXX test program"
11483fi
11484
11485$rm -f confest.$objext
11486
11487# PORTME: override above test on systems where it is broken
11488case $host_os in
11489interix3*)
11490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11491 # hack all around it, let's just trust "g++" to DTRT.
11492 predep_objects_CXX=
11493 postdep_objects_CXX=
11494 postdeps_CXX=
11495 ;;
11496
11497solaris*)
11498 case $cc_basename in
11499 CC*)
11500 # Adding this requires a known-good setup of shared libraries for
11501 # Sun compiler versions before 5.6, else PIC objects from an old
11502 # archive will be linked into the output, leading to subtle bugs.
11503 postdeps_CXX='-lCstd -lCrun'
11504 ;;
11505 esac
11506 ;;
11507esac
11508
11509
11510case " $postdeps_CXX " in
11511*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11512esac
11513
11514lt_prog_compiler_wl_CXX=
11515lt_prog_compiler_pic_CXX=
11516lt_prog_compiler_static_CXX=
11517
11518echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11519echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11520
11521 # C++ specific cases for pic, static, wl, etc.
11522 if test "$GXX" = yes; then
11523 lt_prog_compiler_wl_CXX='-Wl,'
11524 lt_prog_compiler_static_CXX='-static'
11525
11526 case $host_os in
11527 aix*)
11528 # All AIX code is PIC.
11529 if test "$host_cpu" = ia64; then
11530 # AIX 5 now supports IA64 processor
11531 lt_prog_compiler_static_CXX='-Bstatic'
11532 fi
11533 ;;
11534 amigaos*)
11535 # FIXME: we need at least 68020 code to build shared libraries, but
11536 # adding the `-m68020' flag to GCC prevents building anything better,
11537 # like `-m68040'.
11538 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11539 ;;
11540 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11541 # PIC is the default for these OSes.
11542 ;;
11543 mingw* | os2* | pw32*)
11544 # This hack is so that the source file can tell whether it is being
11545 # built for inclusion in a dll (and should export symbols for example).
11546 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11547 ;;
11548 darwin* | rhapsody*)
11549 # PIC is the default on this platform
11550 # Common symbols not allowed in MH_DYLIB files
11551 lt_prog_compiler_pic_CXX='-fno-common'
11552 ;;
11553 *djgpp*)
11554 # DJGPP does not support shared libraries at all
11555 lt_prog_compiler_pic_CXX=
11556 ;;
11557 interix3*)
11558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11559 # Instead, we relocate shared libraries at runtime.
11560 ;;
11561 sysv4*MP*)
11562 if test -d /usr/nec; then
11563 lt_prog_compiler_pic_CXX=-Kconform_pic
11564 fi
11565 ;;
11566 hpux*)
11567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11568 # not for PA HP-UX.
11569 case $host_cpu in
11570 hppa*64*|ia64*)
11571 ;;
11572 *)
11573 lt_prog_compiler_pic_CXX='-fPIC'
11574 ;;
11575 esac
11576 ;;
11577 *)
11578 lt_prog_compiler_pic_CXX='-fPIC'
11579 ;;
11580 esac
11581 else
11582 case $host_os in
11583 aix4* | aix5*)
11584 # All AIX code is PIC.
11585 if test "$host_cpu" = ia64; then
11586 # AIX 5 now supports IA64 processor
11587 lt_prog_compiler_static_CXX='-Bstatic'
11588 else
11589 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11590 fi
11591 ;;
11592 chorus*)
11593 case $cc_basename in
11594 cxch68*)
11595 # Green Hills C++ Compiler
11596 # _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"
11597 ;;
11598 esac
11599 ;;
11600 darwin*)
11601 # PIC is the default on this platform
11602 # Common symbols not allowed in MH_DYLIB files
11603 case $cc_basename in
11604 xlc*)
11605 lt_prog_compiler_pic_CXX='-qnocommon'
11606 lt_prog_compiler_wl_CXX='-Wl,'
11607 ;;
11608 esac
11609 ;;
11610 dgux*)
11611 case $cc_basename in
11612 ec++*)
11613 lt_prog_compiler_pic_CXX='-KPIC'
11614 ;;
11615 ghcx*)
11616 # Green Hills C++ Compiler
11617 lt_prog_compiler_pic_CXX='-pic'
11618 ;;
11619 *)
11620 ;;
11621 esac
11622 ;;
11623 freebsd* | kfreebsd*-gnu | dragonfly*)
11624 # FreeBSD uses GNU C++
11625 ;;
11626 hpux9* | hpux10* | hpux11*)
11627 case $cc_basename in
11628 CC*)
11629 lt_prog_compiler_wl_CXX='-Wl,'
11630 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11631 if test "$host_cpu" != ia64; then
11632 lt_prog_compiler_pic_CXX='+Z'
11633 fi
11634 ;;
11635 aCC*)
11636 lt_prog_compiler_wl_CXX='-Wl,'
11637 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11638 case $host_cpu in
11639 hppa*64*|ia64*)
11640 # +Z the default
11641 ;;
11642 *)
11643 lt_prog_compiler_pic_CXX='+Z'
11644 ;;
11645 esac
11646 ;;
11647 *)
11648 ;;
11649 esac
11650 ;;
11651 interix*)
11652 # This is c89, which is MS Visual C++ (no shared libs)
11653 # Anyone wants to do a port?
11654 ;;
11655 irix5* | irix6* | nonstopux*)
11656 case $cc_basename in
11657 CC*)
11658 lt_prog_compiler_wl_CXX='-Wl,'
11659 lt_prog_compiler_static_CXX='-non_shared'
11660 # CC pic flag -KPIC is the default.
11661 ;;
11662 *)
11663 ;;
11664 esac
11665 ;;
11666 linux*)
11667 case $cc_basename in
11668 KCC*)
11669 # KAI C++ Compiler
11670 lt_prog_compiler_wl_CXX='--backend -Wl,'
11671 lt_prog_compiler_pic_CXX='-fPIC'
11672 ;;
11673 icpc* | ecpc*)
11674 # Intel C++
11675 lt_prog_compiler_wl_CXX='-Wl,'
11676 lt_prog_compiler_pic_CXX='-KPIC'
11677 lt_prog_compiler_static_CXX='-static'
11678 ;;
11679 pgCC*)
11680 # Portland Group C++ compiler.
11681 lt_prog_compiler_wl_CXX='-Wl,'
11682 lt_prog_compiler_pic_CXX='-fpic'
11683 lt_prog_compiler_static_CXX='-Bstatic'
11684 ;;
11685 cxx*)
11686 # Compaq C++
11687 # Make sure the PIC flag is empty. It appears that all Alpha
11688 # Linux and Compaq Tru64 Unix objects are PIC.
11689 lt_prog_compiler_pic_CXX=
11690 lt_prog_compiler_static_CXX='-non_shared'
11691 ;;
11692 *)
11693 ;;
11694 esac
11695 ;;
11696 lynxos*)
11697 ;;
11698 m88k*)
11699 ;;
11700 mvs*)
11701 case $cc_basename in
11702 cxx*)
11703 lt_prog_compiler_pic_CXX='-W c,exportall'
11704 ;;
11705 *)
11706 ;;
11707 esac
11708 ;;
11709 netbsd*)
11710 ;;
11711 osf3* | osf4* | osf5*)
11712 case $cc_basename in
11713 KCC*)
11714 lt_prog_compiler_wl_CXX='--backend -Wl,'
11715 ;;
11716 RCC*)
11717 # Rational C++ 2.4.1
11718 lt_prog_compiler_pic_CXX='-pic'
11719 ;;
11720 cxx*)
11721 # Digital/Compaq C++
11722 lt_prog_compiler_wl_CXX='-Wl,'
11723 # Make sure the PIC flag is empty. It appears that all Alpha
11724 # Linux and Compaq Tru64 Unix objects are PIC.
11725 lt_prog_compiler_pic_CXX=
11726 lt_prog_compiler_static_CXX='-non_shared'
11727 ;;
11728 *)
11729 ;;
11730 esac
11731 ;;
11732 psos*)
11733 ;;
11734 solaris*)
11735 case $cc_basename in
11736 CC*)
11737 # Sun C++ 4.2, 5.x and Centerline C++
11738 lt_prog_compiler_pic_CXX='-KPIC'
11739 lt_prog_compiler_static_CXX='-Bstatic'
11740 lt_prog_compiler_wl_CXX='-Qoption ld '
11741 ;;
11742 gcx*)
11743 # Green Hills C++ Compiler
11744 lt_prog_compiler_pic_CXX='-PIC'
11745 ;;
11746 *)
11747 ;;
11748 esac
11749 ;;
11750 sunos4*)
11751 case $cc_basename in
11752 CC*)
11753 # Sun C++ 4.x
11754 lt_prog_compiler_pic_CXX='-pic'
11755 lt_prog_compiler_static_CXX='-Bstatic'
11756 ;;
11757 lcc*)
11758 # Lucid
11759 lt_prog_compiler_pic_CXX='-pic'
11760 ;;
11761 *)
11762 ;;
11763 esac
11764 ;;
11765 tandem*)
11766 case $cc_basename in
11767 NCC*)
11768 # NonStop-UX NCC 3.20
11769 lt_prog_compiler_pic_CXX='-KPIC'
11770 ;;
11771 *)
11772 ;;
11773 esac
11774 ;;
11775 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11776 case $cc_basename in
11777 CC*)
11778 lt_prog_compiler_wl_CXX='-Wl,'
11779 lt_prog_compiler_pic_CXX='-KPIC'
11780 lt_prog_compiler_static_CXX='-Bstatic'
11781 ;;
11782 esac
11783 ;;
11784 vxworks*)
11785 ;;
11786 *)
11787 lt_prog_compiler_can_build_shared_CXX=no
11788 ;;
11789 esac
11790 fi
11791
11792echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11793echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11794
11795#
11796# Check to make sure the PIC flag actually works.
11797#
11798if test -n "$lt_prog_compiler_pic_CXX"; then
11799
11800echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11802if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804else
11805 lt_prog_compiler_pic_works_CXX=no
11806 ac_outfile=conftest.$ac_objext
11807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11808 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11809 # Insert the option either (1) after the last *FLAGS variable, or
11810 # (2) before a word containing "conftest.", or (3) at the end.
11811 # Note that $ac_compile itself does not contain backslashes and begins
11812 # with a dollar sign (not a hyphen), so the echo should work correctly.
11813 # The option is referenced via a variable to avoid confusing sed.
11814 lt_compile=`echo "$ac_compile" | $SED \
11815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11817 -e 's:$: $lt_compiler_flag:'`
11818 (eval echo "\"\$as_me:11818: $lt_compile\"" >&5)
11819 (eval "$lt_compile" 2>conftest.err)
11820 ac_status=$?
11821 cat conftest.err >&5
11822 echo "$as_me:11822: \$? = $ac_status" >&5
11823 if (exit $ac_status) && test -s "$ac_outfile"; then
11824 # The compiler can only warn and ignore the option if not recognized
11825 # So say no if there are warnings other than the usual output.
11826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11829 lt_prog_compiler_pic_works_CXX=yes
11830 fi
11831 fi
11832 $rm conftest*
11833
11834fi
11835echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11836echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11837
11838if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11839 case $lt_prog_compiler_pic_CXX in
11840 "" | " "*) ;;
11841 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11842 esac
11843else
11844 lt_prog_compiler_pic_CXX=
11845 lt_prog_compiler_can_build_shared_CXX=no
11846fi
11847
11848fi
11849case $host_os in
11850 # For platforms which do not support PIC, -DPIC is meaningless:
11851 *djgpp*)
11852 lt_prog_compiler_pic_CXX=
11853 ;;
11854 *)
11855 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11856 ;;
11857esac
11858
11859#
11860# Check to make sure the static flag actually works.
11861#
11862wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11863echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11864echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11865if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867else
11868 lt_prog_compiler_static_works_CXX=no
11869 save_LDFLAGS="$LDFLAGS"
11870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11871 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11873 # The linker can only warn and ignore the option if not recognized
11874 # So say no if there are warnings
11875 if test -s conftest.err; then
11876 # Append any errors to the config.log.
11877 cat conftest.err 1>&5
11878 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11880 if diff conftest.exp conftest.er2 >/dev/null; then
11881 lt_prog_compiler_static_works_CXX=yes
11882 fi
11883 else
11884 lt_prog_compiler_static_works_CXX=yes
11885 fi
11886 fi
11887 $rm conftest*
11888 LDFLAGS="$save_LDFLAGS"
11889
11890fi
11891echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11892echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11893
11894if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11895 :
11896else
11897 lt_prog_compiler_static_CXX=
11898fi
11899
11900
11901echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11902echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11903if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906 lt_cv_prog_compiler_c_o_CXX=no
11907 $rm -r conftest 2>/dev/null
11908 mkdir conftest
11909 cd conftest
11910 mkdir out
11911 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11912
11913 lt_compiler_flag="-o out/conftest2.$ac_objext"
11914 # Insert the option either (1) after the last *FLAGS variable, or
11915 # (2) before a word containing "conftest.", or (3) at the end.
11916 # Note that $ac_compile itself does not contain backslashes and begins
11917 # with a dollar sign (not a hyphen), so the echo should work correctly.
11918 lt_compile=`echo "$ac_compile" | $SED \
11919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11921 -e 's:$: $lt_compiler_flag:'`
11922 (eval echo "\"\$as_me:11922: $lt_compile\"" >&5)
11923 (eval "$lt_compile" 2>out/conftest.err)
11924 ac_status=$?
11925 cat out/conftest.err >&5
11926 echo "$as_me:11926: \$? = $ac_status" >&5
11927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11928 then
11929 # The compiler can only warn and ignore the option if not recognized
11930 # So say no if there are warnings
11931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11934 lt_cv_prog_compiler_c_o_CXX=yes
11935 fi
11936 fi
11937 chmod u+w . 2>&5
11938 $rm conftest*
11939 # SGI C++ compiler will create directory out/ii_files/ for
11940 # template instantiation
11941 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11942 $rm out/* && rmdir out
11943 cd ..
11944 rmdir conftest
11945 $rm conftest*
11946
11947fi
11948echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11949echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11950
11951
11952hard_links="nottested"
11953if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11954 # do not overwrite the value of need_locks provided by the user
11955 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11956echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11957 hard_links=yes
11958 $rm conftest*
11959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11960 touch conftest.a
11961 ln conftest.a conftest.b 2>&5 || hard_links=no
11962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11963 echo "$as_me:$LINENO: result: $hard_links" >&5
11964echo "${ECHO_T}$hard_links" >&6
11965 if test "$hard_links" = no; then
11966 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11967echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11968 need_locks=warn
11969 fi
11970else
11971 need_locks=no
11972fi
11973
11974echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11975echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11976
11977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11978 case $host_os in
11979 aix4* | aix5*)
11980 # If we're using GNU nm, then we don't want the "-C" option.
11981 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11982 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11983 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'
11984 else
11985 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'
11986 fi
11987 ;;
11988 pw32*)
11989 export_symbols_cmds_CXX="$ltdll_cmds"
11990 ;;
11991 cygwin* | mingw*)
11992 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11993 ;;
11994 *)
11995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11996 ;;
11997 esac
11998
11999echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12000echo "${ECHO_T}$ld_shlibs_CXX" >&6
12001test "$ld_shlibs_CXX" = no && can_build_shared=no
12002
12003#
12004# Do we need to explicitly link libc?
12005#
12006case "x$archive_cmds_need_lc_CXX" in
12007x|xyes)
12008 # Assume -lc should be added
12009 archive_cmds_need_lc_CXX=yes
12010
12011 if test "$enable_shared" = yes && test "$GCC" = yes; then
12012 case $archive_cmds_CXX in
12013 *'~'*)
12014 # FIXME: we may have to deal with multi-command sequences.
12015 ;;
12016 '$CC '*)
12017 # Test whether the compiler implicitly links with -lc since on some
12018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12019 # to ld, don't add -lc before -lgcc.
12020 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12021echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12022 $rm conftest*
12023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12024
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } 2>conftest.err; then
12030 soname=conftest
12031 lib=conftest
12032 libobjs=conftest.$ac_objext
12033 deplibs=
12034 wl=$lt_prog_compiler_wl_CXX
12035 pic_flag=$lt_prog_compiler_pic_CXX
12036 compiler_flags=-v
12037 linker_flags=-v
12038 verstring=
12039 output_objdir=.
12040 libname=conftest
12041 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12042 allow_undefined_flag_CXX=
12043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12044 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }
12048 then
12049 archive_cmds_need_lc_CXX=no
12050 else
12051 archive_cmds_need_lc_CXX=yes
12052 fi
12053 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12054 else
12055 cat conftest.err 1>&5
12056 fi
12057 $rm conftest*
12058 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12059echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12060 ;;
12061 esac
12062 fi
12063 ;;
12064esac
12065
12066echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12067echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12068library_names_spec=
12069libname_spec='lib$name'
12070soname_spec=
12071shrext_cmds=".so"
12072postinstall_cmds=
12073postuninstall_cmds=
12074finish_cmds=
12075finish_eval=
12076shlibpath_var=
12077shlibpath_overrides_runpath=unknown
12078version_type=none
12079dynamic_linker="$host_os ld.so"
12080sys_lib_dlsearch_path_spec="/lib /usr/lib"
12081if test "$GCC" = yes; then
12082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12083 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12084 # if the path contains ";" then we assume it to be the separator
12085 # otherwise default to the standard path separator (i.e. ":") - it is
12086 # assumed that no part of a normal pathname contains ";" but that should
12087 # okay in the real world where ";" in dirpaths is itself problematic.
12088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12089 else
12090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12091 fi
12092else
12093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12094fi
12095need_lib_prefix=unknown
12096hardcode_into_libs=no
12097
12098# when you set need_version to no, make sure it does not cause -set_version
12099# flags to be left without arguments
12100need_version=unknown
12101
12102case $host_os in
12103aix3*)
12104 version_type=linux
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12106 shlibpath_var=LIBPATH
12107
12108 # AIX 3 has no versioning support, so we append a major version to the name.
12109 soname_spec='${libname}${release}${shared_ext}$major'
12110 ;;
12111
12112aix4* | aix5*)
12113 version_type=linux
12114 need_lib_prefix=no
12115 need_version=no
12116 hardcode_into_libs=yes
12117 if test "$host_cpu" = ia64; then
12118 # AIX 5 supports IA64
12119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 else
12122 # With GCC up to 2.95.x, collect2 would create an import file
12123 # for dependence libraries. The import file would start with
12124 # the line `#! .'. This would cause the generated library to
12125 # depend on `.', always an invalid library. This was fixed in
12126 # development snapshots of GCC prior to 3.0.
12127 case $host_os in
12128 aix4 | aix4.[01] | aix4.[01].*)
12129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12130 echo ' yes '
12131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12132 :
12133 else
12134 can_build_shared=no
12135 fi
12136 ;;
12137 esac
12138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12139 # soname into executable. Probably we can add versioning support to
12140 # collect2, so additional links can be useful in future.
12141 if test "$aix_use_runtimelinking" = yes; then
12142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12143 # instead of lib<name>.a to let people know that these are not
12144 # typical AIX shared libraries.
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12146 else
12147 # We preserve .a as extension for shared libraries through AIX4.2
12148 # and later when we are not doing run time linking.
12149 library_names_spec='${libname}${release}.a $libname.a'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 fi
12152 shlibpath_var=LIBPATH
12153 fi
12154 ;;
12155
12156amigaos*)
12157 library_names_spec='$libname.ixlibrary $libname.a'
12158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12159 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'
12160 ;;
12161
12162beos*)
12163 library_names_spec='${libname}${shared_ext}'
12164 dynamic_linker="$host_os ld.so"
12165 shlibpath_var=LIBRARY_PATH
12166 ;;
12167
12168bsdi[45]*)
12169 version_type=linux
12170 need_version=no
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172 soname_spec='${libname}${release}${shared_ext}$major'
12173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12177 # the default ld.so.conf also contains /usr/contrib/lib and
12178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12179 # libtool to hard-code these into programs
12180 ;;
12181
12182cygwin* | mingw* | pw32*)
12183 version_type=windows
12184 shrext_cmds=".dll"
12185 need_version=no
12186 need_lib_prefix=no
12187
12188 case $GCC,$host_os in
12189 yes,cygwin* | yes,mingw* | yes,pw32*)
12190 library_names_spec='$libname.dll.a'
12191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12192 postinstall_cmds='base_file=`basename \${file}`~
12193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12194 dldir=$destdir/`dirname \$dlpath`~
12195 test -d \$dldir || mkdir -p \$dldir~
12196 $install_prog $dir/$dlname \$dldir/$dlname~
12197 chmod a+x \$dldir/$dlname'
12198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12199 dlpath=$dir/\$dldll~
12200 $rm \$dlpath'
12201 shlibpath_overrides_runpath=yes
12202
12203 case $host_os in
12204 cygwin*)
12205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12206 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12207 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12208 ;;
12209 mingw*)
12210 # MinGW DLLs use traditional 'lib' prefix
12211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12213 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12214 # It is most probably a Windows format PATH printed by
12215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12216 # path with ; separators, and with drive letters. We can handle the
12217 # drive letters (cygwin fileutils understands them), so leave them,
12218 # especially as we might pass files found there to a mingw objdump,
12219 # which wouldn't understand a cygwinified path. Ahh.
12220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12221 else
12222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12223 fi
12224 ;;
12225 pw32*)
12226 # pw32 DLLs use 'pw' prefix rather than 'lib'
12227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12228 ;;
12229 esac
12230 ;;
12231
12232 *)
12233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12234 ;;
12235 esac
12236 dynamic_linker='Win32 ld.exe'
12237 # FIXME: first we should search . and the directory the executable is in
12238 shlibpath_var=PATH
12239 ;;
12240
12241darwin* | rhapsody*)
12242 dynamic_linker="$host_os dyld"
12243 version_type=darwin
12244 need_lib_prefix=no
12245 need_version=no
12246 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12247 soname_spec='${libname}${release}${major}$shared_ext'
12248 shlibpath_overrides_runpath=yes
12249 shlibpath_var=DYLD_LIBRARY_PATH
12250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12252 if test "$GCC" = yes; then
12253 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"`
12254 else
12255 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12256 fi
12257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12258 ;;
12259
12260dgux*)
12261 version_type=linux
12262 need_lib_prefix=no
12263 need_version=no
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 ;;
12268
12269freebsd1*)
12270 dynamic_linker=no
12271 ;;
12272
12273kfreebsd*-gnu)
12274 version_type=linux
12275 need_lib_prefix=no
12276 need_version=no
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=no
12281 hardcode_into_libs=yes
12282 dynamic_linker='GNU ld.so'
12283 ;;
12284
12285freebsd* | dragonfly*)
12286 # DragonFly does not have aout. When/if they implement a new
12287 # versioning mechanism, adjust this.
12288 if test -x /usr/bin/objformat; then
12289 objformat=`/usr/bin/objformat`
12290 else
12291 case $host_os in
12292 freebsd[123]*) objformat=aout ;;
12293 *) objformat=elf ;;
12294 esac
12295 fi
12296 version_type=freebsd-$objformat
12297 case $version_type in
12298 freebsd-elf*)
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12300 need_version=no
12301 need_lib_prefix=no
12302 ;;
12303 freebsd-*)
12304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12305 need_version=yes
12306 ;;
12307 esac
12308 shlibpath_var=LD_LIBRARY_PATH
12309 case $host_os in
12310 freebsd2*)
12311 shlibpath_overrides_runpath=yes
12312 ;;
12313 freebsd3.[01]* | freebsdelf3.[01]*)
12314 shlibpath_overrides_runpath=yes
12315 hardcode_into_libs=yes
12316 ;;
12317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12319 shlibpath_overrides_runpath=no
12320 hardcode_into_libs=yes
12321 ;;
12322 freebsd*) # from 4.6 on
12323 shlibpath_overrides_runpath=yes
12324 hardcode_into_libs=yes
12325 ;;
12326 esac
12327 ;;
12328
12329gnu*)
12330 version_type=linux
12331 need_lib_prefix=no
12332 need_version=no
12333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12334 soname_spec='${libname}${release}${shared_ext}$major'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 hardcode_into_libs=yes
12337 ;;
12338
12339hpux9* | hpux10* | hpux11*)
12340 # Give a soname corresponding to the major version so that dld.sl refuses to
12341 # link against other versions.
12342 version_type=sunos
12343 need_lib_prefix=no
12344 need_version=no
12345 case $host_cpu in
12346 ia64*)
12347 shrext_cmds='.so'
12348 hardcode_into_libs=yes
12349 dynamic_linker="$host_os dld.so"
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353 soname_spec='${libname}${release}${shared_ext}$major'
12354 if test "X$HPUX_IA64_MODE" = X32; then
12355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12356 else
12357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12358 fi
12359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12360 ;;
12361 hppa*64*)
12362 shrext_cmds='.sl'
12363 hardcode_into_libs=yes
12364 dynamic_linker="$host_os dld.sl"
12365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368 soname_spec='${libname}${release}${shared_ext}$major'
12369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12371 ;;
12372 *)
12373 shrext_cmds='.sl'
12374 dynamic_linker="$host_os dld.sl"
12375 shlibpath_var=SHLIB_PATH
12376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378 soname_spec='${libname}${release}${shared_ext}$major'
12379 ;;
12380 esac
12381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12382 postinstall_cmds='chmod 555 $lib'
12383 ;;
12384
12385interix3*)
12386 version_type=linux
12387 need_lib_prefix=no
12388 need_version=no
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12390 soname_spec='${libname}${release}${shared_ext}$major'
12391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 shlibpath_overrides_runpath=no
12394 hardcode_into_libs=yes
12395 ;;
12396
12397irix5* | irix6* | nonstopux*)
12398 case $host_os in
12399 nonstopux*) version_type=nonstopux ;;
12400 *)
12401 if test "$lt_cv_prog_gnu_ld" = yes; then
12402 version_type=linux
12403 else
12404 version_type=irix
12405 fi ;;
12406 esac
12407 need_lib_prefix=no
12408 need_version=no
12409 soname_spec='${libname}${release}${shared_ext}$major'
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12411 case $host_os in
12412 irix5* | nonstopux*)
12413 libsuff= shlibsuff=
12414 ;;
12415 *)
12416 case $LD in # libtool.m4 will add one of these switches to LD
12417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12418 libsuff= shlibsuff= libmagic=32-bit;;
12419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12420 libsuff=32 shlibsuff=N32 libmagic=N32;;
12421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12423 *) libsuff= shlibsuff= libmagic=never-match;;
12424 esac
12425 ;;
12426 esac
12427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12428 shlibpath_overrides_runpath=no
12429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12431 hardcode_into_libs=yes
12432 ;;
12433
12434# No shared lib support for Linux oldld, aout, or coff.
12435linux*oldld* | linux*aout* | linux*coff*)
12436 dynamic_linker=no
12437 ;;
12438
12439# This must be Linux ELF.
12440linux*)
12441 version_type=linux
12442 need_lib_prefix=no
12443 need_version=no
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445 soname_spec='${libname}${release}${shared_ext}$major'
12446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=no
12449 # This implies no fast_install, which is unacceptable.
12450 # Some rework will be needed to allow for fast_install
12451 # before this can be enabled.
12452 hardcode_into_libs=yes
12453
12454 # find out which ABI we are using
12455 libsuff=
12456 case "$host_cpu" in
12457 x86_64*|s390x*|powerpc64*)
12458 echo '#line 12458 "configure"' > conftest.$ac_ext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; then
12464 case `/usr/bin/file conftest.$ac_objext` in
12465 *64-bit*)
12466 libsuff=64
12467 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12468 ;;
12469 esac
12470 fi
12471 rm -rf conftest*
12472 ;;
12473 esac
12474
12475 # Append ld.so.conf contents to the search path
12476 if test -f /etc/ld.so.conf; then
12477 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12478 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12479 fi
12480
12481 # We used to test for /lib/ld.so.1 and disable shared libraries on
12482 # powerpc, because MkLinux only supported shared libraries with the
12483 # GNU dynamic linker. Since this was broken with cross compilers,
12484 # most powerpc-linux boxes support dynamic linking these days and
12485 # people can always --disable-shared, the test was removed, and we
12486 # assume the GNU/Linux dynamic linker is in use.
12487 dynamic_linker='GNU/Linux ld.so'
12488 ;;
12489
12490knetbsd*-gnu)
12491 version_type=linux
12492 need_lib_prefix=no
12493 need_version=no
12494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12495 soname_spec='${libname}${release}${shared_ext}$major'
12496 shlibpath_var=LD_LIBRARY_PATH
12497 shlibpath_overrides_runpath=no
12498 hardcode_into_libs=yes
12499 dynamic_linker='GNU ld.so'
12500 ;;
12501
12502netbsd*)
12503 version_type=sunos
12504 need_lib_prefix=no
12505 need_version=no
12506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12509 dynamic_linker='NetBSD (a.out) ld.so'
12510 else
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 dynamic_linker='NetBSD ld.elf_so'
12514 fi
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=yes
12517 hardcode_into_libs=yes
12518 ;;
12519
12520newsos6)
12521 version_type=linux
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=yes
12525 ;;
12526
12527nto-qnx*)
12528 version_type=linux
12529 need_lib_prefix=no
12530 need_version=no
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12532 soname_spec='${libname}${release}${shared_ext}$major'
12533 shlibpath_var=LD_LIBRARY_PATH
12534 shlibpath_overrides_runpath=yes
12535 ;;
12536
12537openbsd*)
12538 version_type=sunos
12539 sys_lib_dlsearch_path_spec="/usr/lib"
12540 need_lib_prefix=no
12541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12542 case $host_os in
12543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12544 *) need_version=no ;;
12545 esac
12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12548 shlibpath_var=LD_LIBRARY_PATH
12549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12550 case $host_os in
12551 openbsd2.[89] | openbsd2.[89].*)
12552 shlibpath_overrides_runpath=no
12553 ;;
12554 *)
12555 shlibpath_overrides_runpath=yes
12556 ;;
12557 esac
12558 else
12559 shlibpath_overrides_runpath=yes
12560 fi
12561 ;;
12562
12563os2*)
12564 libname_spec='$name'
12565 shrext_cmds=".dll"
12566 need_lib_prefix=no
12567 library_names_spec='$libname${shared_ext} $libname.a'
12568 dynamic_linker='OS/2 ld.exe'
12569 shlibpath_var=LIBPATH
12570 ;;
12571
12572osf3* | osf4* | osf5*)
12573 version_type=osf
12574 need_lib_prefix=no
12575 need_version=no
12576 soname_spec='${libname}${release}${shared_ext}$major'
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12578 shlibpath_var=LD_LIBRARY_PATH
12579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12581 ;;
12582
12583solaris*)
12584 version_type=linux
12585 need_lib_prefix=no
12586 need_version=no
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588 soname_spec='${libname}${release}${shared_ext}$major'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 shlibpath_overrides_runpath=yes
12591 hardcode_into_libs=yes
12592 # ldd complains unless libraries are executable
12593 postinstall_cmds='chmod +x $lib'
12594 ;;
12595
12596sunos4*)
12597 version_type=sunos
12598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=yes
12602 if test "$with_gnu_ld" = yes; then
12603 need_lib_prefix=no
12604 fi
12605 need_version=yes
12606 ;;
12607
12608sysv4 | sysv4.3*)
12609 version_type=linux
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 shlibpath_var=LD_LIBRARY_PATH
12613 case $host_vendor in
12614 sni)
12615 shlibpath_overrides_runpath=no
12616 need_lib_prefix=no
12617 export_dynamic_flag_spec='${wl}-Blargedynsym'
12618 runpath_var=LD_RUN_PATH
12619 ;;
12620 siemens)
12621 need_lib_prefix=no
12622 ;;
12623 motorola)
12624 need_lib_prefix=no
12625 need_version=no
12626 shlibpath_overrides_runpath=no
12627 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12628 ;;
12629 esac
12630 ;;
12631
12632sysv4*MP*)
12633 if test -d /usr/nec ;then
12634 version_type=linux
12635 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12636 soname_spec='$libname${shared_ext}.$major'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 fi
12639 ;;
12640
12641sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12642 version_type=freebsd-elf
12643 need_lib_prefix=no
12644 need_version=no
12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12646 soname_spec='${libname}${release}${shared_ext}$major'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 hardcode_into_libs=yes
12649 if test "$with_gnu_ld" = yes; then
12650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12651 shlibpath_overrides_runpath=no
12652 else
12653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12654 shlibpath_overrides_runpath=yes
12655 case $host_os in
12656 sco3.2v5*)
12657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12658 ;;
12659 esac
12660 fi
12661 sys_lib_dlsearch_path_spec='/usr/lib'
12662 ;;
12663
12664uts4*)
12665 version_type=linux
12666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667 soname_spec='${libname}${release}${shared_ext}$major'
12668 shlibpath_var=LD_LIBRARY_PATH
12669 ;;
12670
12671*)
12672 dynamic_linker=no
12673 ;;
12674esac
12675echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12676echo "${ECHO_T}$dynamic_linker" >&6
12677test "$dynamic_linker" = no && can_build_shared=no
12678
12679variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12680if test "$GCC" = yes; then
12681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12682fi
12683
12684echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12685echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12686hardcode_action_CXX=
12687if test -n "$hardcode_libdir_flag_spec_CXX" || \
12688 test -n "$runpath_var_CXX" || \
12689 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12690
12691 # We can hardcode non-existant directories.
12692 if test "$hardcode_direct_CXX" != no &&
12693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12694 # have to relink, otherwise we might link with an installed library
12695 # when we should be linking with a yet-to-be-installed one
12696 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12697 test "$hardcode_minus_L_CXX" != no; then
12698 # Linking always hardcodes the temporary library directory.
12699 hardcode_action_CXX=relink
12700 else
12701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12702 hardcode_action_CXX=immediate
12703 fi
12704else
12705 # We cannot hardcode anything, or else we can only hardcode existing
12706 # directories.
12707 hardcode_action_CXX=unsupported
12708fi
12709echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12710echo "${ECHO_T}$hardcode_action_CXX" >&6
12711
12712if test "$hardcode_action_CXX" = relink; then
12713 # Fast installation is not supported
12714 enable_fast_install=no
12715elif test "$shlibpath_overrides_runpath" = yes ||
12716 test "$enable_shared" = no; then
12717 # Fast installation is not necessary
12718 enable_fast_install=needless
12719fi
12720
12721
12722# The else clause should only fire when bootstrapping the
12723# libtool distribution, otherwise you forgot to ship ltmain.sh
12724# with your package, and you will get complaints that there are
12725# no rules to generate ltmain.sh.
12726if test -f "$ltmain"; then
12727 # See if we are running on zsh, and set the options which allow our commands through
12728 # without removal of \ escapes.
12729 if test -n "${ZSH_VERSION+set}" ; then
12730 setopt NO_GLOB_SUBST
12731 fi
12732 # Now quote all the things that may contain metacharacters while being
12733 # careful not to overquote the AC_SUBSTed values. We take copies of the
12734 # variables and quote the copies for generation of the libtool script.
12735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12736 SED SHELL STRIP \
12737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12739 deplibs_check_method reload_flag reload_cmds need_locks \
12740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12741 lt_cv_sys_global_symbol_to_c_name_address \
12742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12743 old_postinstall_cmds old_postuninstall_cmds \
12744 compiler_CXX \
12745 CC_CXX \
12746 LD_CXX \
12747 lt_prog_compiler_wl_CXX \
12748 lt_prog_compiler_pic_CXX \
12749 lt_prog_compiler_static_CXX \
12750 lt_prog_compiler_no_builtin_flag_CXX \
12751 export_dynamic_flag_spec_CXX \
12752 thread_safe_flag_spec_CXX \
12753 whole_archive_flag_spec_CXX \
12754 enable_shared_with_static_runtimes_CXX \
12755 old_archive_cmds_CXX \
12756 old_archive_from_new_cmds_CXX \
12757 predep_objects_CXX \
12758 postdep_objects_CXX \
12759 predeps_CXX \
12760 postdeps_CXX \
12761 compiler_lib_search_path_CXX \
12762 archive_cmds_CXX \
12763 archive_expsym_cmds_CXX \
12764 postinstall_cmds_CXX \
12765 postuninstall_cmds_CXX \
12766 old_archive_from_expsyms_cmds_CXX \
12767 allow_undefined_flag_CXX \
12768 no_undefined_flag_CXX \
12769 export_symbols_cmds_CXX \
12770 hardcode_libdir_flag_spec_CXX \
12771 hardcode_libdir_flag_spec_ld_CXX \
12772 hardcode_libdir_separator_CXX \
12773 hardcode_automatic_CXX \
12774 module_cmds_CXX \
12775 module_expsym_cmds_CXX \
12776 lt_cv_prog_compiler_c_o_CXX \
12777 exclude_expsyms_CXX \
12778 include_expsyms_CXX; do
12779
12780 case $var in
12781 old_archive_cmds_CXX | \
12782 old_archive_from_new_cmds_CXX | \
12783 archive_cmds_CXX | \
12784 archive_expsym_cmds_CXX | \
12785 module_cmds_CXX | \
12786 module_expsym_cmds_CXX | \
12787 old_archive_from_expsyms_cmds_CXX | \
12788 export_symbols_cmds_CXX | \
12789 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12790 postinstall_cmds | postuninstall_cmds | \
12791 old_postinstall_cmds | old_postuninstall_cmds | \
12792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12793 # Double-quote double-evaled strings.
12794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12795 ;;
12796 *)
12797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12798 ;;
12799 esac
12800 done
12801
12802 case $lt_echo in
12803 *'\$0 --fallback-echo"')
12804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12805 ;;
12806 esac
12807
12808cfgfile="$ofile"
12809
12810 cat <<__EOF__ >> "$cfgfile"
12811# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12812
12813# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12814
12815# Shell to use when invoking shell scripts.
12816SHELL=$lt_SHELL
12817
12818# Whether or not to build shared libraries.
12819build_libtool_libs=$enable_shared
12820
12821# Whether or not to build static libraries.
12822build_old_libs=$enable_static
12823
12824# Whether or not to add -lc for building shared libraries.
12825build_libtool_need_lc=$archive_cmds_need_lc_CXX
12826
12827# Whether or not to disallow shared libs when runtime libs are static
12828allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12829
12830# Whether or not to optimize for fast installation.
12831fast_install=$enable_fast_install
12832
12833# The host system.
12834host_alias=$host_alias
12835host=$host
12836host_os=$host_os
12837
12838# The build system.
12839build_alias=$build_alias
12840build=$build
12841build_os=$build_os
12842
12843# An echo program that does not interpret backslashes.
12844echo=$lt_echo
12845
12846# The archiver.
12847AR=$lt_AR
12848AR_FLAGS=$lt_AR_FLAGS
12849
12850# A C compiler.
12851LTCC=$lt_LTCC
12852
12853# LTCC compiler flags.
12854LTCFLAGS=$lt_LTCFLAGS
12855
12856# A language-specific compiler.
12857CC=$lt_compiler_CXX
12858
12859# Is the compiler the GNU C compiler?
12860with_gcc=$GCC_CXX
12861
12862gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12863gcc_ver=\`gcc -dumpversion\`
12864
12865# An ERE matcher.
12866EGREP=$lt_EGREP
12867
12868# The linker used to build libraries.
12869LD=$lt_LD_CXX
12870
12871# Whether we need hard or soft links.
12872LN_S=$lt_LN_S
12873
12874# A BSD-compatible nm program.
12875NM=$lt_NM
12876
12877# A symbol stripping program
12878STRIP=$lt_STRIP
12879
12880# Used to examine libraries when file_magic_cmd begins "file"
12881MAGIC_CMD=$MAGIC_CMD
12882
12883# Used on cygwin: DLL creation program.
12884DLLTOOL="$DLLTOOL"
12885
12886# Used on cygwin: object dumper.
12887OBJDUMP="$OBJDUMP"
12888
12889# Used on cygwin: assembler.
12890AS="$AS"
12891
12892# The name of the directory that contains temporary libtool files.
12893objdir=$objdir
12894
12895# How to create reloadable object files.
12896reload_flag=$lt_reload_flag
12897reload_cmds=$lt_reload_cmds
12898
12899# How to pass a linker flag through the compiler.
12900wl=$lt_lt_prog_compiler_wl_CXX
12901
12902# Object file suffix (normally "o").
12903objext="$ac_objext"
12904
12905# Old archive suffix (normally "a").
12906libext="$libext"
12907
12908# Shared library suffix (normally ".so").
12909shrext_cmds='$shrext_cmds'
12910
12911# Executable file suffix (normally "").
12912exeext="$exeext"
12913
12914# Additional compiler flags for building library objects.
12915pic_flag=$lt_lt_prog_compiler_pic_CXX
12916pic_mode=$pic_mode
12917
12918# What is the maximum length of a command?
12919max_cmd_len=$lt_cv_sys_max_cmd_len
12920
12921# Does compiler simultaneously support -c and -o options?
12922compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12923
12924# Must we lock files when doing compilation?
12925need_locks=$lt_need_locks
12926
12927# Do we need the lib prefix for modules?
12928need_lib_prefix=$need_lib_prefix
12929
12930# Do we need a version for libraries?
12931need_version=$need_version
12932
12933# Whether dlopen is supported.
12934dlopen_support=$enable_dlopen
12935
12936# Whether dlopen of programs is supported.
12937dlopen_self=$enable_dlopen_self
12938
12939# Whether dlopen of statically linked programs is supported.
12940dlopen_self_static=$enable_dlopen_self_static
12941
12942# Compiler flag to prevent dynamic linking.
12943link_static_flag=$lt_lt_prog_compiler_static_CXX
12944
12945# Compiler flag to turn off builtin functions.
12946no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12947
12948# Compiler flag to allow reflexive dlopens.
12949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12950
12951# Compiler flag to generate shared objects directly from archives.
12952whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12953
12954# Compiler flag to generate thread-safe objects.
12955thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12956
12957# Library versioning type.
12958version_type=$version_type
12959
12960# Format of library name prefix.
12961libname_spec=$lt_libname_spec
12962
12963# List of archive names. First name is the real one, the rest are links.
12964# The last name is the one that the linker finds with -lNAME.
12965library_names_spec=$lt_library_names_spec
12966
12967# The coded name of the library, if different from the real name.
12968soname_spec=$lt_soname_spec
12969
12970# Commands used to build and install an old-style archive.
12971RANLIB=$lt_RANLIB
12972old_archive_cmds=$lt_old_archive_cmds_CXX
12973old_postinstall_cmds=$lt_old_postinstall_cmds
12974old_postuninstall_cmds=$lt_old_postuninstall_cmds
12975
12976# Create an old-style archive from a shared archive.
12977old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12978
12979# Create a temporary old-style archive to link instead of a shared archive.
12980old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12981
12982# Commands used to build and install a shared archive.
12983archive_cmds=$lt_archive_cmds_CXX
12984archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12985postinstall_cmds=$lt_postinstall_cmds
12986postuninstall_cmds=$lt_postuninstall_cmds
12987
12988# Commands used to build a loadable module (assumed same as above if empty)
12989module_cmds=$lt_module_cmds_CXX
12990module_expsym_cmds=$lt_module_expsym_cmds_CXX
12991
12992# Commands to strip libraries.
12993old_striplib=$lt_old_striplib
12994striplib=$lt_striplib
12995
12996# Dependencies to place before the objects being linked to create a
12997# shared library.
12998predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12999
13000# Dependencies to place after the objects being linked to create a
13001# shared library.
13002postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13003
13004# Dependencies to place before the objects being linked to create a
13005# shared library.
13006predeps=$lt_predeps_CXX
13007
13008# Dependencies to place after the objects being linked to create a
13009# shared library.
13010postdeps=$lt_postdeps_CXX
13011
13012# The library search path used internally by the compiler when linking
13013# a shared library.
13014compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13015
13016# Method to check whether dependent libraries are shared objects.
13017deplibs_check_method=$lt_deplibs_check_method
13018
13019# Command to use when deplibs_check_method == file_magic.
13020file_magic_cmd=$lt_file_magic_cmd
13021
13022# Flag that allows shared libraries with undefined symbols to be built.
13023allow_undefined_flag=$lt_allow_undefined_flag_CXX
13024
13025# Flag that forces no undefined symbols.
13026no_undefined_flag=$lt_no_undefined_flag_CXX
13027
13028# Commands used to finish a libtool library installation in a directory.
13029finish_cmds=$lt_finish_cmds
13030
13031# Same as above, but a single script fragment to be evaled but not shown.
13032finish_eval=$lt_finish_eval
13033
13034# Take the output of nm and produce a listing of raw symbols and C names.
13035global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13036
13037# Transform the output of nm in a proper C declaration
13038global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13039
13040# Transform the output of nm in a C name address pair
13041global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13042
13043# This is the shared library runtime path variable.
13044runpath_var=$runpath_var
13045
13046# This is the shared library path variable.
13047shlibpath_var=$shlibpath_var
13048
13049# Is shlibpath searched before the hard-coded library search path?
13050shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13051
13052# How to hardcode a shared library path into an executable.
13053hardcode_action=$hardcode_action_CXX
13054
13055# Whether we should hardcode library paths into libraries.
13056hardcode_into_libs=$hardcode_into_libs
13057
13058# Flag to hardcode \$libdir into a binary during linking.
13059# This must work even if \$libdir does not exist.
13060hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13061
13062# If ld is used when linking, flag to hardcode \$libdir into
13063# a binary during linking. This must work even if \$libdir does
13064# not exist.
13065hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13066
13067# Whether we need a single -rpath flag with a separated argument.
13068hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13069
13070# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13071# resulting binary.
13072hardcode_direct=$hardcode_direct_CXX
13073
13074# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13075# resulting binary.
13076hardcode_minus_L=$hardcode_minus_L_CXX
13077
13078# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13079# the resulting binary.
13080hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13081
13082# Set to yes if building a shared library automatically hardcodes DIR into the library
13083# and all subsequent libraries and executables linked against it.
13084hardcode_automatic=$hardcode_automatic_CXX
13085
13086# Variables whose values should be saved in libtool wrapper scripts and
13087# restored at relink time.
13088variables_saved_for_relink="$variables_saved_for_relink"
13089
13090# Whether libtool must link a program against all its dependency libraries.
13091link_all_deplibs=$link_all_deplibs_CXX
13092
13093# Compile-time system search path for libraries
13094sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13095
13096# Run-time system search path for libraries
13097sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13098
13099# Fix the shell variable \$srcfile for the compiler.
13100fix_srcfile_path="$fix_srcfile_path_CXX"
13101
13102# Set to yes if exported symbols are required.
13103always_export_symbols=$always_export_symbols_CXX
13104
13105# The commands to list exported symbols.
13106export_symbols_cmds=$lt_export_symbols_cmds_CXX
13107
13108# The commands to extract the exported symbol list from a shared archive.
13109extract_expsyms_cmds=$lt_extract_expsyms_cmds
13110
13111# Symbols that should not be listed in the preloaded symbols.
13112exclude_expsyms=$lt_exclude_expsyms_CXX
13113
13114# Symbols that must always be exported.
13115include_expsyms=$lt_include_expsyms_CXX
13116
13117# ### END LIBTOOL TAG CONFIG: $tagname
13118
13119__EOF__
13120
13121
13122else
13123 # If there is no Makefile yet, we rely on a make rule to execute
13124 # `config.status --recheck' to rerun these tests and create the
13125 # libtool script then.
13126 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13127 if test -f "$ltmain_in"; then
13128 test -f Makefile && make "$ltmain"
13129 fi
13130fi
13131
13132
13133ac_ext=c
13134ac_cpp='$CPP $CPPFLAGS'
13135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13137ac_compiler_gnu=$ac_cv_c_compiler_gnu
13138
13139CC=$lt_save_CC
13140LDCXX=$LD
13141LD=$lt_save_LD
13142GCC=$lt_save_GCC
13143with_gnu_ldcxx=$with_gnu_ld
13144with_gnu_ld=$lt_save_with_gnu_ld
13145lt_cv_path_LDCXX=$lt_cv_path_LD
13146lt_cv_path_LD=$lt_save_path_LD
13147lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13148lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13149
13150 else
13151 tagname=""
13152 fi
13153 ;;
13154
13155 F77)
13156 if test -n "$F77" && test "X$F77" != "Xno"; then
13157
13158ac_ext=f
13159ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13160ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13161ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13162
13163
13164archive_cmds_need_lc_F77=no
13165allow_undefined_flag_F77=
13166always_export_symbols_F77=no
13167archive_expsym_cmds_F77=
13168export_dynamic_flag_spec_F77=
13169hardcode_direct_F77=no
13170hardcode_libdir_flag_spec_F77=
13171hardcode_libdir_flag_spec_ld_F77=
13172hardcode_libdir_separator_F77=
13173hardcode_minus_L_F77=no
13174hardcode_automatic_F77=no
13175module_cmds_F77=
13176module_expsym_cmds_F77=
13177link_all_deplibs_F77=unknown
13178old_archive_cmds_F77=$old_archive_cmds
13179no_undefined_flag_F77=
13180whole_archive_flag_spec_F77=
13181enable_shared_with_static_runtimes_F77=no
13182
13183# Source file extension for f77 test sources.
13184ac_ext=f
13185
13186# Object file extension for compiled f77 test sources.
13187objext=o
13188objext_F77=$objext
13189
13190# Code to be used in simple compile tests
13191lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13192
13193# Code to be used in simple link tests
13194lt_simple_link_test_code=" program t\n end\n"
13195
13196# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13197
13198# If no C compiler was specified, use CC.
13199LTCC=${LTCC-"$CC"}
13200
13201# If no C compiler flags were specified, use CFLAGS.
13202LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13203
13204# Allow CC to be a program name with arguments.
13205compiler=$CC
13206
13207
13208# save warnings/boilerplate of simple test code
13209ac_outfile=conftest.$ac_objext
13210printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13211eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13212_lt_compiler_boilerplate=`cat conftest.err`
13213$rm conftest*
13214
13215ac_outfile=conftest.$ac_objext
13216printf "$lt_simple_link_test_code" >conftest.$ac_ext
13217eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13218_lt_linker_boilerplate=`cat conftest.err`
13219$rm conftest*
13220
13221
13222# Allow CC to be a program name with arguments.
13223lt_save_CC="$CC"
13224CC=${F77-"f77"}
13225compiler=$CC
13226compiler_F77=$CC
13227for cc_temp in $compiler""; do
13228 case $cc_temp in
13229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13231 \-*) ;;
13232 *) break;;
13233 esac
13234done
13235cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13236
13237
13238echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13239echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13240echo "$as_me:$LINENO: result: $can_build_shared" >&5
13241echo "${ECHO_T}$can_build_shared" >&6
13242
13243echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13244echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13245test "$can_build_shared" = "no" && enable_shared=no
13246
13247# On AIX, shared libraries and static libraries use the same namespace, and
13248# are all built from PIC.
13249case $host_os in
13250aix3*)
13251 test "$enable_shared" = yes && enable_static=no
13252 if test -n "$RANLIB"; then
13253 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13254 postinstall_cmds='$RANLIB $lib'
13255 fi
13256 ;;
13257aix4* | aix5*)
13258 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13259 test "$enable_shared" = yes && enable_static=no
13260 fi
13261 ;;
13262esac
13263echo "$as_me:$LINENO: result: $enable_shared" >&5
13264echo "${ECHO_T}$enable_shared" >&6
13265
13266echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13267echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13268# Make sure either enable_shared or enable_static is yes.
13269test "$enable_shared" = yes || enable_static=yes
13270echo "$as_me:$LINENO: result: $enable_static" >&5
13271echo "${ECHO_T}$enable_static" >&6
13272
13273GCC_F77="$G77"
13274LD_F77="$LD"
13275
13276lt_prog_compiler_wl_F77=
13277lt_prog_compiler_pic_F77=
13278lt_prog_compiler_static_F77=
13279
13280echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13281echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13282
13283 if test "$GCC" = yes; then
13284 lt_prog_compiler_wl_F77='-Wl,'
13285 lt_prog_compiler_static_F77='-static'
13286
13287 case $host_os in
13288 aix*)
13289 # All AIX code is PIC.
13290 if test "$host_cpu" = ia64; then
13291 # AIX 5 now supports IA64 processor
13292 lt_prog_compiler_static_F77='-Bstatic'
13293 fi
13294 ;;
13295
13296 amigaos*)
13297 # FIXME: we need at least 68020 code to build shared libraries, but
13298 # adding the `-m68020' flag to GCC prevents building anything better,
13299 # like `-m68040'.
13300 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13301 ;;
13302
13303 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13304 # PIC is the default for these OSes.
13305 ;;
13306
13307 mingw* | pw32* | os2*)
13308 # This hack is so that the source file can tell whether it is being
13309 # built for inclusion in a dll (and should export symbols for example).
13310 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13311 ;;
13312
13313 darwin* | rhapsody*)
13314 # PIC is the default on this platform
13315 # Common symbols not allowed in MH_DYLIB files
13316 lt_prog_compiler_pic_F77='-fno-common'
13317 ;;
13318
13319 interix3*)
13320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13321 # Instead, we relocate shared libraries at runtime.
13322 ;;
13323
13324 msdosdjgpp*)
13325 # Just because we use GCC doesn't mean we suddenly get shared libraries
13326 # on systems that don't support them.
13327 lt_prog_compiler_can_build_shared_F77=no
13328 enable_shared=no
13329 ;;
13330
13331 sysv4*MP*)
13332 if test -d /usr/nec; then
13333 lt_prog_compiler_pic_F77=-Kconform_pic
13334 fi
13335 ;;
13336
13337 hpux*)
13338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13339 # not for PA HP-UX.
13340 case $host_cpu in
13341 hppa*64*|ia64*)
13342 # +Z the default
13343 ;;
13344 *)
13345 lt_prog_compiler_pic_F77='-fPIC'
13346 ;;
13347 esac
13348 ;;
13349
13350 *)
13351 lt_prog_compiler_pic_F77='-fPIC'
13352 ;;
13353 esac
13354 else
13355 # PORTME Check for flag to pass linker flags through the system compiler.
13356 case $host_os in
13357 aix*)
13358 lt_prog_compiler_wl_F77='-Wl,'
13359 if test "$host_cpu" = ia64; then
13360 # AIX 5 now supports IA64 processor
13361 lt_prog_compiler_static_F77='-Bstatic'
13362 else
13363 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13364 fi
13365 ;;
13366 darwin*)
13367 # PIC is the default on this platform
13368 # Common symbols not allowed in MH_DYLIB files
13369 case $cc_basename in
13370 xlc*)
13371 lt_prog_compiler_pic_F77='-qnocommon'
13372 lt_prog_compiler_wl_F77='-Wl,'
13373 ;;
13374 esac
13375 ;;
13376
13377 mingw* | pw32* | os2*)
13378 # This hack is so that the source file can tell whether it is being
13379 # built for inclusion in a dll (and should export symbols for example).
13380 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13381 ;;
13382
13383 hpux9* | hpux10* | hpux11*)
13384 lt_prog_compiler_wl_F77='-Wl,'
13385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13386 # not for PA HP-UX.
13387 case $host_cpu in
13388 hppa*64*|ia64*)
13389 # +Z the default
13390 ;;
13391 *)
13392 lt_prog_compiler_pic_F77='+Z'
13393 ;;
13394 esac
13395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13396 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13397 ;;
13398
13399 irix5* | irix6* | nonstopux*)
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 # PIC (with -KPIC) is the default.
13402 lt_prog_compiler_static_F77='-non_shared'
13403 ;;
13404
13405 newsos6)
13406 lt_prog_compiler_pic_F77='-KPIC'
13407 lt_prog_compiler_static_F77='-Bstatic'
13408 ;;
13409
13410 linux*)
13411 case $cc_basename in
13412 icc* | ecc*)
13413 lt_prog_compiler_wl_F77='-Wl,'
13414 lt_prog_compiler_pic_F77='-KPIC'
13415 lt_prog_compiler_static_F77='-static'
13416 ;;
13417 pgcc* | pgf77* | pgf90* | pgf95*)
13418 # Portland Group compilers (*not* the Pentium gcc compiler,
13419 # which looks to be a dead project)
13420 lt_prog_compiler_wl_F77='-Wl,'
13421 lt_prog_compiler_pic_F77='-fpic'
13422 lt_prog_compiler_static_F77='-Bstatic'
13423 ;;
13424 ccc*)
13425 lt_prog_compiler_wl_F77='-Wl,'
13426 # All Alpha code is PIC.
13427 lt_prog_compiler_static_F77='-non_shared'
13428 ;;
13429 esac
13430 ;;
13431
13432 osf3* | osf4* | osf5*)
13433 lt_prog_compiler_wl_F77='-Wl,'
13434 # All OSF/1 code is PIC.
13435 lt_prog_compiler_static_F77='-non_shared'
13436 ;;
13437
13438 solaris*)
13439 lt_prog_compiler_pic_F77='-KPIC'
13440 lt_prog_compiler_static_F77='-Bstatic'
13441 case $cc_basename in
13442 f77* | f90* | f95*)
13443 lt_prog_compiler_wl_F77='-Qoption ld ';;
13444 *)
13445 lt_prog_compiler_wl_F77='-Wl,';;
13446 esac
13447 ;;
13448
13449 sunos4*)
13450 lt_prog_compiler_wl_F77='-Qoption ld '
13451 lt_prog_compiler_pic_F77='-PIC'
13452 lt_prog_compiler_static_F77='-Bstatic'
13453 ;;
13454
13455 sysv4 | sysv4.2uw2* | sysv4.3*)
13456 lt_prog_compiler_wl_F77='-Wl,'
13457 lt_prog_compiler_pic_F77='-KPIC'
13458 lt_prog_compiler_static_F77='-Bstatic'
13459 ;;
13460
13461 sysv4*MP*)
13462 if test -d /usr/nec ;then
13463 lt_prog_compiler_pic_F77='-Kconform_pic'
13464 lt_prog_compiler_static_F77='-Bstatic'
13465 fi
13466 ;;
13467
13468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13469 lt_prog_compiler_wl_F77='-Wl,'
13470 lt_prog_compiler_pic_F77='-KPIC'
13471 lt_prog_compiler_static_F77='-Bstatic'
13472 ;;
13473
13474 unicos*)
13475 lt_prog_compiler_wl_F77='-Wl,'
13476 lt_prog_compiler_can_build_shared_F77=no
13477 ;;
13478
13479 uts4*)
13480 lt_prog_compiler_pic_F77='-pic'
13481 lt_prog_compiler_static_F77='-Bstatic'
13482 ;;
13483
13484 *)
13485 lt_prog_compiler_can_build_shared_F77=no
13486 ;;
13487 esac
13488 fi
13489
13490echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13491echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13492
13493#
13494# Check to make sure the PIC flag actually works.
13495#
13496if test -n "$lt_prog_compiler_pic_F77"; then
13497
13498echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13499echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13500if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502else
13503 lt_prog_compiler_pic_works_F77=no
13504 ac_outfile=conftest.$ac_objext
13505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13506 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13507 # Insert the option either (1) after the last *FLAGS variable, or
13508 # (2) before a word containing "conftest.", or (3) at the end.
13509 # Note that $ac_compile itself does not contain backslashes and begins
13510 # with a dollar sign (not a hyphen), so the echo should work correctly.
13511 # The option is referenced via a variable to avoid confusing sed.
13512 lt_compile=`echo "$ac_compile" | $SED \
13513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13515 -e 's:$: $lt_compiler_flag:'`
13516 (eval echo "\"\$as_me:13516: $lt_compile\"" >&5)
13517 (eval "$lt_compile" 2>conftest.err)
13518 ac_status=$?
13519 cat conftest.err >&5
13520 echo "$as_me:13520: \$? = $ac_status" >&5
13521 if (exit $ac_status) && test -s "$ac_outfile"; then
13522 # The compiler can only warn and ignore the option if not recognized
13523 # So say no if there are warnings other than the usual output.
13524 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13527 lt_prog_compiler_pic_works_F77=yes
13528 fi
13529 fi
13530 $rm conftest*
13531
13532fi
13533echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13534echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13535
13536if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13537 case $lt_prog_compiler_pic_F77 in
13538 "" | " "*) ;;
13539 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13540 esac
13541else
13542 lt_prog_compiler_pic_F77=
13543 lt_prog_compiler_can_build_shared_F77=no
13544fi
13545
13546fi
13547case $host_os in
13548 # For platforms which do not support PIC, -DPIC is meaningless:
13549 *djgpp*)
13550 lt_prog_compiler_pic_F77=
13551 ;;
13552 *)
13553 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13554 ;;
13555esac
13556
13557#
13558# Check to make sure the static flag actually works.
13559#
13560wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13561echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13562echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13563if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566 lt_prog_compiler_static_works_F77=no
13567 save_LDFLAGS="$LDFLAGS"
13568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13569 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13571 # The linker can only warn and ignore the option if not recognized
13572 # So say no if there are warnings
13573 if test -s conftest.err; then
13574 # Append any errors to the config.log.
13575 cat conftest.err 1>&5
13576 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13578 if diff conftest.exp conftest.er2 >/dev/null; then
13579 lt_prog_compiler_static_works_F77=yes
13580 fi
13581 else
13582 lt_prog_compiler_static_works_F77=yes
13583 fi
13584 fi
13585 $rm conftest*
13586 LDFLAGS="$save_LDFLAGS"
13587
13588fi
13589echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13590echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13591
13592if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13593 :
13594else
13595 lt_prog_compiler_static_F77=
13596fi
13597
13598
13599echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13600echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13601if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13603else
13604 lt_cv_prog_compiler_c_o_F77=no
13605 $rm -r conftest 2>/dev/null
13606 mkdir conftest
13607 cd conftest
13608 mkdir out
13609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13610
13611 lt_compiler_flag="-o out/conftest2.$ac_objext"
13612 # Insert the option either (1) after the last *FLAGS variable, or
13613 # (2) before a word containing "conftest.", or (3) at the end.
13614 # Note that $ac_compile itself does not contain backslashes and begins
13615 # with a dollar sign (not a hyphen), so the echo should work correctly.
13616 lt_compile=`echo "$ac_compile" | $SED \
13617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13619 -e 's:$: $lt_compiler_flag:'`
13620 (eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
13621 (eval "$lt_compile" 2>out/conftest.err)
13622 ac_status=$?
13623 cat out/conftest.err >&5
13624 echo "$as_me:13624: \$? = $ac_status" >&5
13625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13626 then
13627 # The compiler can only warn and ignore the option if not recognized
13628 # So say no if there are warnings
13629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13632 lt_cv_prog_compiler_c_o_F77=yes
13633 fi
13634 fi
13635 chmod u+w . 2>&5
13636 $rm conftest*
13637 # SGI C++ compiler will create directory out/ii_files/ for
13638 # template instantiation
13639 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13640 $rm out/* && rmdir out
13641 cd ..
13642 rmdir conftest
13643 $rm conftest*
13644
13645fi
13646echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13647echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13648
13649
13650hard_links="nottested"
13651if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13652 # do not overwrite the value of need_locks provided by the user
13653 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13654echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13655 hard_links=yes
13656 $rm conftest*
13657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13658 touch conftest.a
13659 ln conftest.a conftest.b 2>&5 || hard_links=no
13660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13661 echo "$as_me:$LINENO: result: $hard_links" >&5
13662echo "${ECHO_T}$hard_links" >&6
13663 if test "$hard_links" = no; then
13664 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13665echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13666 need_locks=warn
13667 fi
13668else
13669 need_locks=no
13670fi
13671
13672echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13673echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13674
13675 runpath_var=
13676 allow_undefined_flag_F77=
13677 enable_shared_with_static_runtimes_F77=no
13678 archive_cmds_F77=
13679 archive_expsym_cmds_F77=
13680 old_archive_From_new_cmds_F77=
13681 old_archive_from_expsyms_cmds_F77=
13682 export_dynamic_flag_spec_F77=
13683 whole_archive_flag_spec_F77=
13684 thread_safe_flag_spec_F77=
13685 hardcode_libdir_flag_spec_F77=
13686 hardcode_libdir_flag_spec_ld_F77=
13687 hardcode_libdir_separator_F77=
13688 hardcode_direct_F77=no
13689 hardcode_minus_L_F77=no
13690 hardcode_shlibpath_var_F77=unsupported
13691 link_all_deplibs_F77=unknown
13692 hardcode_automatic_F77=no
13693 module_cmds_F77=
13694 module_expsym_cmds_F77=
13695 always_export_symbols_F77=no
13696 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13697 # include_expsyms should be a list of space-separated symbols to be *always*
13698 # included in the symbol list
13699 include_expsyms_F77=
13700 # exclude_expsyms can be an extended regexp of symbols to exclude
13701 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13702 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13703 # as well as any symbol that contains `d'.
13704 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13705 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13706 # platforms (ab)use it in PIC code, but their linkers get confused if
13707 # the symbol is explicitly referenced. Since portable code cannot
13708 # rely on this symbol name, it's probably fine to never include it in
13709 # preloaded symbol tables.
13710 extract_expsyms_cmds=
13711 # Just being paranoid about ensuring that cc_basename is set.
13712 for cc_temp in $compiler""; do
13713 case $cc_temp in
13714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13716 \-*) ;;
13717 *) break;;
13718 esac
13719done
13720cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13721
13722 case $host_os in
13723 cygwin* | mingw* | pw32*)
13724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13725 # When not using gcc, we currently assume that we are using
13726 # Microsoft Visual C++.
13727 if test "$GCC" != yes; then
13728 with_gnu_ld=no
13729 fi
13730 ;;
13731 interix*)
13732 # we just hope/assume this is gcc and not c89 (= MSVC++)
13733 with_gnu_ld=yes
13734 ;;
13735 openbsd*)
13736 with_gnu_ld=no
13737 ;;
13738 esac
13739
13740 ld_shlibs_F77=yes
13741 if test "$with_gnu_ld" = yes; then
13742 # If archive_cmds runs LD, not CC, wlarc should be empty
13743 wlarc='${wl}'
13744
13745 # Set some defaults for GNU ld with shared library support. These
13746 # are reset later if shared libraries are not supported. Putting them
13747 # here allows them to be overridden if necessary.
13748 runpath_var=LD_RUN_PATH
13749 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13750 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13751 # ancient GNU ld didn't support --whole-archive et. al.
13752 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13753 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13754 else
13755 whole_archive_flag_spec_F77=
13756 fi
13757 supports_anon_versioning=no
13758 case `$LD -v 2>/dev/null` in
13759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13762 *\ 2.11.*) ;; # other 2.11 versions
13763 *) supports_anon_versioning=yes ;;
13764 esac
13765
13766 # See if GNU ld supports shared libraries.
13767 case $host_os in
13768 aix3* | aix4* | aix5*)
13769 # On AIX/PPC, the GNU linker is very broken
13770 if test "$host_cpu" != ia64; then
13771 ld_shlibs_F77=no
13772 cat <<EOF 1>&2
13773
13774*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13775*** to be unable to reliably create shared libraries on AIX.
13776*** Therefore, libtool is disabling shared libraries support. If you
13777*** really care for shared libraries, you may want to modify your PATH
13778*** so that a non-GNU linker is found, and then restart.
13779
13780EOF
13781 fi
13782 ;;
13783
13784 amigaos*)
13785 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)'
13786 hardcode_libdir_flag_spec_F77='-L$libdir'
13787 hardcode_minus_L_F77=yes
13788
13789 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13790 # that the semantics of dynamic libraries on AmigaOS, at least up
13791 # to version 4, is to share data among multiple programs linked
13792 # with the same dynamic library. Since this doesn't match the
13793 # behavior of shared libraries on other platforms, we can't use
13794 # them.
13795 ld_shlibs_F77=no
13796 ;;
13797
13798 beos*)
13799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13800 allow_undefined_flag_F77=unsupported
13801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13802 # support --undefined. This deserves some investigation. FIXME
13803 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13804 else
13805 ld_shlibs_F77=no
13806 fi
13807 ;;
13808
13809 cygwin* | mingw* | pw32*)
13810 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13811 # as there is no search path for DLLs.
13812 hardcode_libdir_flag_spec_F77='-L$libdir'
13813 allow_undefined_flag_F77=unsupported
13814 always_export_symbols_F77=no
13815 enable_shared_with_static_runtimes_F77=yes
13816 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13817
13818 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13819 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13820 # If the export-symbols file already is a .def file (1st line
13821 # is EXPORTS), use it as is; otherwise, prepend...
13822 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13823 cp $export_symbols $output_objdir/$soname.def;
13824 else
13825 echo EXPORTS > $output_objdir/$soname.def;
13826 cat $export_symbols >> $output_objdir/$soname.def;
13827 fi~
13828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13829 else
13830 ld_shlibs_F77=no
13831 fi
13832 ;;
13833
13834 interix3*)
13835 hardcode_direct_F77=no
13836 hardcode_shlibpath_var_F77=no
13837 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13838 export_dynamic_flag_spec_F77='${wl}-E'
13839 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13840 # Instead, shared libraries are loaded at an image base (0x10000000 by
13841 # default) and relocated if they conflict, which is a slow very memory
13842 # consuming and fragmenting process. To avoid this, we pick a random,
13843 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13844 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13845 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13846 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13847 ;;
13848
13849 linux*)
13850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13851 tmp_addflag=
13852 case $cc_basename,$host_cpu in
13853 pgcc*) # Portland Group C compiler
13854 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13855 tmp_addflag=' $pic_flag'
13856 ;;
13857 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13858 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13859 tmp_addflag=' $pic_flag -Mnomain' ;;
13860 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13861 tmp_addflag=' -i_dynamic' ;;
13862 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13863 tmp_addflag=' -i_dynamic -nofor_main' ;;
13864 ifc* | ifort*) # Intel Fortran compiler
13865 tmp_addflag=' -nofor_main' ;;
13866 esac
13867 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868
13869 if test $supports_anon_versioning = yes; then
13870 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13872 $echo "local: *; };" >> $output_objdir/$libname.ver~
13873 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13874 fi
13875 else
13876 ld_shlibs_F77=no
13877 fi
13878 ;;
13879
13880 netbsd*)
13881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13882 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13883 wlarc=
13884 else
13885 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13886 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13887 fi
13888 ;;
13889
13890 solaris*)
13891 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13892 ld_shlibs_F77=no
13893 cat <<EOF 1>&2
13894
13895*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13896*** create shared libraries on Solaris systems. Therefore, libtool
13897*** is disabling shared libraries support. We urge you to upgrade GNU
13898*** binutils to release 2.9.1 or newer. Another option is to modify
13899*** your PATH or compiler configuration so that the native linker is
13900*** used, and then restart.
13901
13902EOF
13903 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13905 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13906 else
13907 ld_shlibs_F77=no
13908 fi
13909 ;;
13910
13911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13912 case `$LD -v 2>&1` in
13913 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13914 ld_shlibs_F77=no
13915 cat <<_LT_EOF 1>&2
13916
13917*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13918*** reliably create shared libraries on SCO systems. Therefore, libtool
13919*** is disabling shared libraries support. We urge you to upgrade GNU
13920*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13921*** your PATH or compiler configuration so that the native linker is
13922*** used, and then restart.
13923
13924_LT_EOF
13925 ;;
13926 *)
13927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13928 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13931 else
13932 ld_shlibs_F77=no
13933 fi
13934 ;;
13935 esac
13936 ;;
13937
13938 sunos4*)
13939 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13940 wlarc=
13941 hardcode_direct_F77=yes
13942 hardcode_shlibpath_var_F77=no
13943 ;;
13944
13945 *)
13946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13948 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13949 else
13950 ld_shlibs_F77=no
13951 fi
13952 ;;
13953 esac
13954
13955 if test "$ld_shlibs_F77" = no; then
13956 runpath_var=
13957 hardcode_libdir_flag_spec_F77=
13958 export_dynamic_flag_spec_F77=
13959 whole_archive_flag_spec_F77=
13960 fi
13961 else
13962 # PORTME fill in a description of your system's linker (not GNU ld)
13963 case $host_os in
13964 aix3*)
13965 allow_undefined_flag_F77=unsupported
13966 always_export_symbols_F77=yes
13967 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'
13968 # Note: this linker hardcodes the directories in LIBPATH if there
13969 # are no directories specified by -L.
13970 hardcode_minus_L_F77=yes
13971 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13972 # Neither direct hardcoding nor static linking is supported with a
13973 # broken collect2.
13974 hardcode_direct_F77=unsupported
13975 fi
13976 ;;
13977
13978 aix4* | aix5*)
13979 if test "$host_cpu" = ia64; then
13980 # On IA64, the linker does run time linking by default, so we don't
13981 # have to do anything special.
13982 aix_use_runtimelinking=no
13983 exp_sym_flag='-Bexport'
13984 no_entry_flag=""
13985 else
13986 # If we're using GNU nm, then we don't want the "-C" option.
13987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13989 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'
13990 else
13991 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'
13992 fi
13993 aix_use_runtimelinking=no
13994
13995 # Test if we are trying to use run time linking or normal
13996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13997 # need to do runtime linking.
13998 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13999 for ld_flag in $LDFLAGS; do
14000 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14001 aix_use_runtimelinking=yes
14002 break
14003 fi
14004 done
14005 ;;
14006 esac
14007
14008 exp_sym_flag='-bexport'
14009 no_entry_flag='-bnoentry'
14010 fi
14011
14012 # When large executables or shared objects are built, AIX ld can
14013 # have problems creating the table of contents. If linking a library
14014 # or program results in "error TOC overflow" add -mminimal-toc to
14015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14017
14018 archive_cmds_F77=''
14019 hardcode_direct_F77=yes
14020 hardcode_libdir_separator_F77=':'
14021 link_all_deplibs_F77=yes
14022
14023 if test "$GCC" = yes; then
14024 case $host_os in aix4.[012]|aix4.[012].*)
14025 # We only want to do this on AIX 4.2 and lower, the check
14026 # below for broken collect2 doesn't work under 4.3+
14027 collect2name=`${CC} -print-prog-name=collect2`
14028 if test -f "$collect2name" && \
14029 strings "$collect2name" | grep resolve_lib_name >/dev/null
14030 then
14031 # We have reworked collect2
14032 hardcode_direct_F77=yes
14033 else
14034 # We have old collect2
14035 hardcode_direct_F77=unsupported
14036 # It fails to find uninstalled libraries when the uninstalled
14037 # path is not listed in the libpath. Setting hardcode_minus_L
14038 # to unsupported forces relinking
14039 hardcode_minus_L_F77=yes
14040 hardcode_libdir_flag_spec_F77='-L$libdir'
14041 hardcode_libdir_separator_F77=
14042 fi
14043 ;;
14044 esac
14045 shared_flag='-shared'
14046 if test "$aix_use_runtimelinking" = yes; then
14047 shared_flag="$shared_flag "'${wl}-G'
14048 fi
14049 else
14050 # not using gcc
14051 if test "$host_cpu" = ia64; then
14052 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14053 # chokes on -Wl,-G. The following line is correct:
14054 shared_flag='-G'
14055 else
14056 if test "$aix_use_runtimelinking" = yes; then
14057 shared_flag='${wl}-G'
14058 else
14059 shared_flag='${wl}-bM:SRE'
14060 fi
14061 fi
14062 fi
14063
14064 # It seems that -bexpall does not export symbols beginning with
14065 # underscore (_), so it is better to generate a list of symbols to export.
14066 always_export_symbols_F77=yes
14067 if test "$aix_use_runtimelinking" = yes; then
14068 # Warning - without using the other runtime loading flags (-brtl),
14069 # -berok will link without error, but may produce a broken library.
14070 allow_undefined_flag_F77='-berok'
14071 # Determine the default libpath from the value encoded in an empty executable.
14072 cat >conftest.$ac_ext <<_ACEOF
14073 program main
14074
14075 end
14076_ACEOF
14077rm -f conftest.$ac_objext conftest$ac_exeext
14078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14079 (eval $ac_link) 2>conftest.er1
14080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } &&
14086 { ac_try='test -z "$ac_f77_werror_flag"
14087 || test ! -s conftest.err'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
14099
14100aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14101}'`
14102# Check for a 64-bit object if we didn't find anything.
14103if 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; }
14104}'`; fi
14105else
14106 echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109fi
14110rm -f conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14112if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14113
14114 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14115 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14116 else
14117 if test "$host_cpu" = ia64; then
14118 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14119 allow_undefined_flag_F77="-z nodefs"
14120 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14121 else
14122 # Determine the default libpath from the value encoded in an empty executable.
14123 cat >conftest.$ac_ext <<_ACEOF
14124 program main
14125
14126 end
14127_ACEOF
14128rm -f conftest.$ac_objext conftest$ac_exeext
14129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130 (eval $ac_link) 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -z "$ac_f77_werror_flag"
14138 || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150
14151aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14152}'`
14153# Check for a 64-bit object if we didn't find anything.
14154if 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; }
14155}'`; fi
14156else
14157 echo "$as_me: failed program was:" >&5
14158sed 's/^/| /' conftest.$ac_ext >&5
14159
14160fi
14161rm -f conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
14163if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14164
14165 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14166 # Warning - without using the other run time loading flags,
14167 # -berok will link without error, but may produce a broken library.
14168 no_undefined_flag_F77=' ${wl}-bernotok'
14169 allow_undefined_flag_F77=' ${wl}-berok'
14170 # Exported symbols can be pulled into shared objects from archives
14171 whole_archive_flag_spec_F77='$convenience'
14172 archive_cmds_need_lc_F77=yes
14173 # This is similar to how AIX traditionally builds its shared libraries.
14174 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14175 fi
14176 fi
14177 ;;
14178
14179 amigaos*)
14180 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)'
14181 hardcode_libdir_flag_spec_F77='-L$libdir'
14182 hardcode_minus_L_F77=yes
14183 # see comment about different semantics on the GNU ld section
14184 ld_shlibs_F77=no
14185 ;;
14186
14187 bsdi[45]*)
14188 export_dynamic_flag_spec_F77=-rdynamic
14189 ;;
14190
14191 cygwin* | mingw* | pw32*)
14192 # When not using gcc, we currently assume that we are using
14193 # Microsoft Visual C++.
14194 # hardcode_libdir_flag_spec is actually meaningless, as there is
14195 # no search path for DLLs.
14196 hardcode_libdir_flag_spec_F77=' '
14197 allow_undefined_flag_F77=unsupported
14198 # Tell ltmain to make .lib files, not .a files.
14199 libext=lib
14200 # Tell ltmain to make .dll files, not .so files.
14201 shrext_cmds=".dll"
14202 # FIXME: Setting linknames here is a bad hack.
14203 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14204 # The linker will automatically build a .lib file if we build a DLL.
14205 old_archive_From_new_cmds_F77='true'
14206 # FIXME: Should let the user specify the lib program.
14207 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14208 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14209 enable_shared_with_static_runtimes_F77=yes
14210 ;;
14211
14212 darwin* | rhapsody*)
14213 case $host_os in
14214 rhapsody* | darwin1.[012])
14215 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14216 ;;
14217 *) # Darwin 1.3 on
14218 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14219 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14220 else
14221 case ${MACOSX_DEPLOYMENT_TARGET} in
14222 10.[012])
14223 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14224 ;;
14225 10.*)
14226 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14227 ;;
14228 esac
14229 fi
14230 ;;
14231 esac
14232 archive_cmds_need_lc_F77=no
14233 hardcode_direct_F77=no
14234 hardcode_automatic_F77=yes
14235 hardcode_shlibpath_var_F77=unsupported
14236 whole_archive_flag_spec_F77=''
14237 link_all_deplibs_F77=yes
14238 if test "$GCC" = yes ; then
14239 output_verbose_link_cmd='echo'
14240 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14241 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14243 archive_expsym_cmds_F77='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}'
14244 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}'
14245 else
14246 case $cc_basename in
14247 xlc*)
14248 output_verbose_link_cmd='echo'
14249 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14250 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14251 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14252 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14253 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}'
14254 ;;
14255 *)
14256 ld_shlibs_F77=no
14257 ;;
14258 esac
14259 fi
14260 ;;
14261
14262 dgux*)
14263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264 hardcode_libdir_flag_spec_F77='-L$libdir'
14265 hardcode_shlibpath_var_F77=no
14266 ;;
14267
14268 freebsd1*)
14269 ld_shlibs_F77=no
14270 ;;
14271
14272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14273 # support. Future versions do this automatically, but an explicit c++rt0.o
14274 # does not break anything, and helps significantly (at the cost of a little
14275 # extra space).
14276 freebsd2.2*)
14277 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14278 hardcode_libdir_flag_spec_F77='-R$libdir'
14279 hardcode_direct_F77=yes
14280 hardcode_shlibpath_var_F77=no
14281 ;;
14282
14283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14284 freebsd2*)
14285 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14286 hardcode_direct_F77=yes
14287 hardcode_minus_L_F77=yes
14288 hardcode_shlibpath_var_F77=no
14289 ;;
14290
14291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14292 freebsd* | kfreebsd*-gnu | dragonfly*)
14293 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14294 hardcode_libdir_flag_spec_F77='-R$libdir'
14295 hardcode_direct_F77=yes
14296 hardcode_shlibpath_var_F77=no
14297 ;;
14298
14299 hpux9*)
14300 if test "$GCC" = yes; then
14301 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'
14302 else
14303 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'
14304 fi
14305 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14306 hardcode_libdir_separator_F77=:
14307 hardcode_direct_F77=yes
14308
14309 # hardcode_minus_L: Not really in the search PATH,
14310 # but as the default location of the library.
14311 hardcode_minus_L_F77=yes
14312 export_dynamic_flag_spec_F77='${wl}-E'
14313 ;;
14314
14315 hpux10*)
14316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14317 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14318 else
14319 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14320 fi
14321 if test "$with_gnu_ld" = no; then
14322 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14323 hardcode_libdir_separator_F77=:
14324
14325 hardcode_direct_F77=yes
14326 export_dynamic_flag_spec_F77='${wl}-E'
14327
14328 # hardcode_minus_L: Not really in the search PATH,
14329 # but as the default location of the library.
14330 hardcode_minus_L_F77=yes
14331 fi
14332 ;;
14333
14334 hpux11*)
14335 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14336 case $host_cpu in
14337 hppa*64*)
14338 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 ;;
14340 ia64*)
14341 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14342 ;;
14343 *)
14344 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14345 ;;
14346 esac
14347 else
14348 case $host_cpu in
14349 hppa*64*)
14350 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14351 ;;
14352 ia64*)
14353 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14354 ;;
14355 *)
14356 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14357 ;;
14358 esac
14359 fi
14360 if test "$with_gnu_ld" = no; then
14361 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14362 hardcode_libdir_separator_F77=:
14363
14364 case $host_cpu in
14365 hppa*64*|ia64*)
14366 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14367 hardcode_direct_F77=no
14368 hardcode_shlibpath_var_F77=no
14369 ;;
14370 *)
14371 hardcode_direct_F77=yes
14372 export_dynamic_flag_spec_F77='${wl}-E'
14373
14374 # hardcode_minus_L: Not really in the search PATH,
14375 # but as the default location of the library.
14376 hardcode_minus_L_F77=yes
14377 ;;
14378 esac
14379 fi
14380 ;;
14381
14382 irix5* | irix6* | nonstopux*)
14383 if test "$GCC" = yes; then
14384 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'
14385 else
14386 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'
14387 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14388 fi
14389 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14390 hardcode_libdir_separator_F77=:
14391 link_all_deplibs_F77=yes
14392 ;;
14393
14394 netbsd*)
14395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14396 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14397 else
14398 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14399 fi
14400 hardcode_libdir_flag_spec_F77='-R$libdir'
14401 hardcode_direct_F77=yes
14402 hardcode_shlibpath_var_F77=no
14403 ;;
14404
14405 newsos6)
14406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_direct_F77=yes
14408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14409 hardcode_libdir_separator_F77=:
14410 hardcode_shlibpath_var_F77=no
14411 ;;
14412
14413 openbsd*)
14414 hardcode_direct_F77=yes
14415 hardcode_shlibpath_var_F77=no
14416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14417 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14418 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14419 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14420 export_dynamic_flag_spec_F77='${wl}-E'
14421 else
14422 case $host_os in
14423 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14424 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14425 hardcode_libdir_flag_spec_F77='-R$libdir'
14426 ;;
14427 *)
14428 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14429 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14430 ;;
14431 esac
14432 fi
14433 ;;
14434
14435 os2*)
14436 hardcode_libdir_flag_spec_F77='-L$libdir'
14437 hardcode_minus_L_F77=yes
14438 allow_undefined_flag_F77=unsupported
14439 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'
14440 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14441 ;;
14442
14443 osf3*)
14444 if test "$GCC" = yes; then
14445 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14446 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'
14447 else
14448 allow_undefined_flag_F77=' -expect_unresolved \*'
14449 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'
14450 fi
14451 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14452 hardcode_libdir_separator_F77=:
14453 ;;
14454
14455 osf4* | osf5*) # as osf3* with the addition of -msym flag
14456 if test "$GCC" = yes; then
14457 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14458 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'
14459 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460 else
14461 allow_undefined_flag_F77=' -expect_unresolved \*'
14462 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'
14463 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~
14464 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14465
14466 # Both c and cxx compiler support -rpath directly
14467 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14468 fi
14469 hardcode_libdir_separator_F77=:
14470 ;;
14471
14472 solaris*)
14473 no_undefined_flag_F77=' -z text'
14474 if test "$GCC" = yes; then
14475 wlarc='${wl}'
14476 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14477 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14478 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14479 else
14480 wlarc=''
14481 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14484 fi
14485 hardcode_libdir_flag_spec_F77='-R$libdir'
14486 hardcode_shlibpath_var_F77=no
14487 case $host_os in
14488 solaris2.[0-5] | solaris2.[0-5].*) ;;
14489 *)
14490 # The compiler driver will combine linker options so we
14491 # cannot just pass the convience library names through
14492 # without $wl, iff we do not link with $LD.
14493 # Luckily, gcc supports the same syntax we need for Sun Studio.
14494 # Supported since Solaris 2.6 (maybe 2.5.1?)
14495 case $wlarc in
14496 '')
14497 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14498 *)
14499 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14500 esac ;;
14501 esac
14502 link_all_deplibs_F77=yes
14503 ;;
14504
14505 sunos4*)
14506 if test "x$host_vendor" = xsequent; then
14507 # Use $CC to link under sequent, because it throws in some extra .o
14508 # files that make .init and .fini sections work.
14509 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14510 else
14511 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14512 fi
14513 hardcode_libdir_flag_spec_F77='-L$libdir'
14514 hardcode_direct_F77=yes
14515 hardcode_minus_L_F77=yes
14516 hardcode_shlibpath_var_F77=no
14517 ;;
14518
14519 sysv4)
14520 case $host_vendor in
14521 sni)
14522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_direct_F77=yes # is this really true???
14524 ;;
14525 siemens)
14526 ## LD is ld it makes a PLAMLIB
14527 ## CC just makes a GrossModule.
14528 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14529 reload_cmds_F77='$CC -r -o $output$reload_objs'
14530 hardcode_direct_F77=no
14531 ;;
14532 motorola)
14533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14534 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14535 ;;
14536 esac
14537 runpath_var='LD_RUN_PATH'
14538 hardcode_shlibpath_var_F77=no
14539 ;;
14540
14541 sysv4.3*)
14542 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14543 hardcode_shlibpath_var_F77=no
14544 export_dynamic_flag_spec_F77='-Bexport'
14545 ;;
14546
14547 sysv4*MP*)
14548 if test -d /usr/nec; then
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_shlibpath_var_F77=no
14551 runpath_var=LD_RUN_PATH
14552 hardcode_runpath_var=yes
14553 ld_shlibs_F77=yes
14554 fi
14555 ;;
14556
14557 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14558 no_undefined_flag_F77='${wl}-z,text'
14559 archive_cmds_need_lc_F77=no
14560 hardcode_shlibpath_var_F77=no
14561 runpath_var='LD_RUN_PATH'
14562
14563 if test "$GCC" = yes; then
14564 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14565 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 else
14567 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14569 fi
14570 ;;
14571
14572 sysv5* | sco3.2v5* | sco5v6*)
14573 # Note: We can NOT use -z defs as we might desire, because we do not
14574 # link with -lc, and that would cause any symbols used from libc to
14575 # always be unresolved, which means just about no library would
14576 # ever link correctly. If we're not using GNU ld we use -z text
14577 # though, which does catch some bad symbols but isn't as heavy-handed
14578 # as -z defs.
14579 no_undefined_flag_F77='${wl}-z,text'
14580 allow_undefined_flag_F77='${wl}-z,nodefs'
14581 archive_cmds_need_lc_F77=no
14582 hardcode_shlibpath_var_F77=no
14583 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14584 hardcode_libdir_separator_F77=':'
14585 link_all_deplibs_F77=yes
14586 export_dynamic_flag_spec_F77='${wl}-Bexport'
14587 runpath_var='LD_RUN_PATH'
14588
14589 if test "$GCC" = yes; then
14590 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14592 else
14593 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14594 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14595 fi
14596 ;;
14597
14598 uts4*)
14599 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14600 hardcode_libdir_flag_spec_F77='-L$libdir'
14601 hardcode_shlibpath_var_F77=no
14602 ;;
14603
14604 *)
14605 ld_shlibs_F77=no
14606 ;;
14607 esac
14608 fi
14609
14610echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14611echo "${ECHO_T}$ld_shlibs_F77" >&6
14612test "$ld_shlibs_F77" = no && can_build_shared=no
14613
14614#
14615# Do we need to explicitly link libc?
14616#
14617case "x$archive_cmds_need_lc_F77" in
14618x|xyes)
14619 # Assume -lc should be added
14620 archive_cmds_need_lc_F77=yes
14621
14622 if test "$enable_shared" = yes && test "$GCC" = yes; then
14623 case $archive_cmds_F77 in
14624 *'~'*)
14625 # FIXME: we may have to deal with multi-command sequences.
14626 ;;
14627 '$CC '*)
14628 # Test whether the compiler implicitly links with -lc since on some
14629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14630 # to ld, don't add -lc before -lgcc.
14631 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14632echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14633 $rm conftest*
14634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14635
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } 2>conftest.err; then
14641 soname=conftest
14642 lib=conftest
14643 libobjs=conftest.$ac_objext
14644 deplibs=
14645 wl=$lt_prog_compiler_wl_F77
14646 pic_flag=$lt_prog_compiler_pic_F77
14647 compiler_flags=-v
14648 linker_flags=-v
14649 verstring=
14650 output_objdir=.
14651 libname=conftest
14652 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14653 allow_undefined_flag_F77=
14654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14655 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }
14659 then
14660 archive_cmds_need_lc_F77=no
14661 else
14662 archive_cmds_need_lc_F77=yes
14663 fi
14664 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14665 else
14666 cat conftest.err 1>&5
14667 fi
14668 $rm conftest*
14669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14670echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14671 ;;
14672 esac
14673 fi
14674 ;;
14675esac
14676
14677echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14678echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14679library_names_spec=
14680libname_spec='lib$name'
14681soname_spec=
14682shrext_cmds=".so"
14683postinstall_cmds=
14684postuninstall_cmds=
14685finish_cmds=
14686finish_eval=
14687shlibpath_var=
14688shlibpath_overrides_runpath=unknown
14689version_type=none
14690dynamic_linker="$host_os ld.so"
14691sys_lib_dlsearch_path_spec="/lib /usr/lib"
14692if test "$GCC" = yes; then
14693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14694 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14695 # if the path contains ";" then we assume it to be the separator
14696 # otherwise default to the standard path separator (i.e. ":") - it is
14697 # assumed that no part of a normal pathname contains ";" but that should
14698 # okay in the real world where ";" in dirpaths is itself problematic.
14699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14700 else
14701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14702 fi
14703else
14704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14705fi
14706need_lib_prefix=unknown
14707hardcode_into_libs=no
14708
14709# when you set need_version to no, make sure it does not cause -set_version
14710# flags to be left without arguments
14711need_version=unknown
14712
14713case $host_os in
14714aix3*)
14715 version_type=linux
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14717 shlibpath_var=LIBPATH
14718
14719 # AIX 3 has no versioning support, so we append a major version to the name.
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 ;;
14722
14723aix4* | aix5*)
14724 version_type=linux
14725 need_lib_prefix=no
14726 need_version=no
14727 hardcode_into_libs=yes
14728 if test "$host_cpu" = ia64; then
14729 # AIX 5 supports IA64
14730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 else
14733 # With GCC up to 2.95.x, collect2 would create an import file
14734 # for dependence libraries. The import file would start with
14735 # the line `#! .'. This would cause the generated library to
14736 # depend on `.', always an invalid library. This was fixed in
14737 # development snapshots of GCC prior to 3.0.
14738 case $host_os in
14739 aix4 | aix4.[01] | aix4.[01].*)
14740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14741 echo ' yes '
14742 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14743 :
14744 else
14745 can_build_shared=no
14746 fi
14747 ;;
14748 esac
14749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14750 # soname into executable. Probably we can add versioning support to
14751 # collect2, so additional links can be useful in future.
14752 if test "$aix_use_runtimelinking" = yes; then
14753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14754 # instead of lib<name>.a to let people know that these are not
14755 # typical AIX shared libraries.
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 else
14758 # We preserve .a as extension for shared libraries through AIX4.2
14759 # and later when we are not doing run time linking.
14760 library_names_spec='${libname}${release}.a $libname.a'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 fi
14763 shlibpath_var=LIBPATH
14764 fi
14765 ;;
14766
14767amigaos*)
14768 library_names_spec='$libname.ixlibrary $libname.a'
14769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14770 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'
14771 ;;
14772
14773beos*)
14774 library_names_spec='${libname}${shared_ext}'
14775 dynamic_linker="$host_os ld.so"
14776 shlibpath_var=LIBRARY_PATH
14777 ;;
14778
14779bsdi[45]*)
14780 version_type=linux
14781 need_version=no
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14788 # the default ld.so.conf also contains /usr/contrib/lib and
14789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14790 # libtool to hard-code these into programs
14791 ;;
14792
14793cygwin* | mingw* | pw32*)
14794 version_type=windows
14795 shrext_cmds=".dll"
14796 need_version=no
14797 need_lib_prefix=no
14798
14799 case $GCC,$host_os in
14800 yes,cygwin* | yes,mingw* | yes,pw32*)
14801 library_names_spec='$libname.dll.a'
14802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14803 postinstall_cmds='base_file=`basename \${file}`~
14804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14805 dldir=$destdir/`dirname \$dlpath`~
14806 test -d \$dldir || mkdir -p \$dldir~
14807 $install_prog $dir/$dlname \$dldir/$dlname~
14808 chmod a+x \$dldir/$dlname'
14809 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14810 dlpath=$dir/\$dldll~
14811 $rm \$dlpath'
14812 shlibpath_overrides_runpath=yes
14813
14814 case $host_os in
14815 cygwin*)
14816 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14817 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14818 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14819 ;;
14820 mingw*)
14821 # MinGW DLLs use traditional 'lib' prefix
14822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14823 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14824 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14825 # It is most probably a Windows format PATH printed by
14826 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14827 # path with ; separators, and with drive letters. We can handle the
14828 # drive letters (cygwin fileutils understands them), so leave them,
14829 # especially as we might pass files found there to a mingw objdump,
14830 # which wouldn't understand a cygwinified path. Ahh.
14831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14832 else
14833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14834 fi
14835 ;;
14836 pw32*)
14837 # pw32 DLLs use 'pw' prefix rather than 'lib'
14838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14839 ;;
14840 esac
14841 ;;
14842
14843 *)
14844 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14845 ;;
14846 esac
14847 dynamic_linker='Win32 ld.exe'
14848 # FIXME: first we should search . and the directory the executable is in
14849 shlibpath_var=PATH
14850 ;;
14851
14852darwin* | rhapsody*)
14853 dynamic_linker="$host_os dyld"
14854 version_type=darwin
14855 need_lib_prefix=no
14856 need_version=no
14857 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14858 soname_spec='${libname}${release}${major}$shared_ext'
14859 shlibpath_overrides_runpath=yes
14860 shlibpath_var=DYLD_LIBRARY_PATH
14861 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14862 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14863 if test "$GCC" = yes; then
14864 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"`
14865 else
14866 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14867 fi
14868 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14869 ;;
14870
14871dgux*)
14872 version_type=linux
14873 need_lib_prefix=no
14874 need_version=no
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 ;;
14879
14880freebsd1*)
14881 dynamic_linker=no
14882 ;;
14883
14884kfreebsd*-gnu)
14885 version_type=linux
14886 need_lib_prefix=no
14887 need_version=no
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14889 soname_spec='${libname}${release}${shared_ext}$major'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=no
14892 hardcode_into_libs=yes
14893 dynamic_linker='GNU ld.so'
14894 ;;
14895
14896freebsd* | dragonfly*)
14897 # DragonFly does not have aout. When/if they implement a new
14898 # versioning mechanism, adjust this.
14899 if test -x /usr/bin/objformat; then
14900 objformat=`/usr/bin/objformat`
14901 else
14902 case $host_os in
14903 freebsd[123]*) objformat=aout ;;
14904 *) objformat=elf ;;
14905 esac
14906 fi
14907 version_type=freebsd-$objformat
14908 case $version_type in
14909 freebsd-elf*)
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14911 need_version=no
14912 need_lib_prefix=no
14913 ;;
14914 freebsd-*)
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14916 need_version=yes
14917 ;;
14918 esac
14919 shlibpath_var=LD_LIBRARY_PATH
14920 case $host_os in
14921 freebsd2*)
14922 shlibpath_overrides_runpath=yes
14923 ;;
14924 freebsd3.[01]* | freebsdelf3.[01]*)
14925 shlibpath_overrides_runpath=yes
14926 hardcode_into_libs=yes
14927 ;;
14928 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14929 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14930 shlibpath_overrides_runpath=no
14931 hardcode_into_libs=yes
14932 ;;
14933 freebsd*) # from 4.6 on
14934 shlibpath_overrides_runpath=yes
14935 hardcode_into_libs=yes
14936 ;;
14937 esac
14938 ;;
14939
14940gnu*)
14941 version_type=linux
14942 need_lib_prefix=no
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 hardcode_into_libs=yes
14948 ;;
14949
14950hpux9* | hpux10* | hpux11*)
14951 # Give a soname corresponding to the major version so that dld.sl refuses to
14952 # link against other versions.
14953 version_type=sunos
14954 need_lib_prefix=no
14955 need_version=no
14956 case $host_cpu in
14957 ia64*)
14958 shrext_cmds='.so'
14959 hardcode_into_libs=yes
14960 dynamic_linker="$host_os dld.so"
14961 shlibpath_var=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 if test "X$HPUX_IA64_MODE" = X32; then
14966 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14967 else
14968 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14969 fi
14970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14971 ;;
14972 hppa*64*)
14973 shrext_cmds='.sl'
14974 hardcode_into_libs=yes
14975 dynamic_linker="$host_os dld.sl"
14976 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14982 ;;
14983 *)
14984 shrext_cmds='.sl'
14985 dynamic_linker="$host_os dld.sl"
14986 shlibpath_var=SHLIB_PATH
14987 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 ;;
14991 esac
14992 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14993 postinstall_cmds='chmod 555 $lib'
14994 ;;
14995
14996interix3*)
14997 version_type=linux
14998 need_lib_prefix=no
14999 need_version=no
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=no
15005 hardcode_into_libs=yes
15006 ;;
15007
15008irix5* | irix6* | nonstopux*)
15009 case $host_os in
15010 nonstopux*) version_type=nonstopux ;;
15011 *)
15012 if test "$lt_cv_prog_gnu_ld" = yes; then
15013 version_type=linux
15014 else
15015 version_type=irix
15016 fi ;;
15017 esac
15018 need_lib_prefix=no
15019 need_version=no
15020 soname_spec='${libname}${release}${shared_ext}$major'
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15022 case $host_os in
15023 irix5* | nonstopux*)
15024 libsuff= shlibsuff=
15025 ;;
15026 *)
15027 case $LD in # libtool.m4 will add one of these switches to LD
15028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15029 libsuff= shlibsuff= libmagic=32-bit;;
15030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15031 libsuff=32 shlibsuff=N32 libmagic=N32;;
15032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15034 *) libsuff= shlibsuff= libmagic=never-match;;
15035 esac
15036 ;;
15037 esac
15038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15039 shlibpath_overrides_runpath=no
15040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15042 hardcode_into_libs=yes
15043 ;;
15044
15045# No shared lib support for Linux oldld, aout, or coff.
15046linux*oldld* | linux*aout* | linux*coff*)
15047 dynamic_linker=no
15048 ;;
15049
15050# This must be Linux ELF.
15051linux*)
15052 version_type=linux
15053 need_lib_prefix=no
15054 need_version=no
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath=no
15060 # This implies no fast_install, which is unacceptable.
15061 # Some rework will be needed to allow for fast_install
15062 # before this can be enabled.
15063 hardcode_into_libs=yes
15064
15065 # find out which ABI we are using
15066 libsuff=
15067 case "$host_cpu" in
15068 x86_64*|s390x*|powerpc64*)
15069 echo '#line 15069 "configure"' > conftest.$ac_ext
15070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15071 (eval $ac_compile) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; then
15075 case `/usr/bin/file conftest.$ac_objext` in
15076 *64-bit*)
15077 libsuff=64
15078 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15079 ;;
15080 esac
15081 fi
15082 rm -rf conftest*
15083 ;;
15084 esac
15085
15086 # Append ld.so.conf contents to the search path
15087 if test -f /etc/ld.so.conf; then
15088 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15089 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15090 fi
15091
15092 # We used to test for /lib/ld.so.1 and disable shared libraries on
15093 # powerpc, because MkLinux only supported shared libraries with the
15094 # GNU dynamic linker. Since this was broken with cross compilers,
15095 # most powerpc-linux boxes support dynamic linking these days and
15096 # people can always --disable-shared, the test was removed, and we
15097 # assume the GNU/Linux dynamic linker is in use.
15098 dynamic_linker='GNU/Linux ld.so'
15099 ;;
15100
15101knetbsd*-gnu)
15102 version_type=linux
15103 need_lib_prefix=no
15104 need_version=no
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=no
15109 hardcode_into_libs=yes
15110 dynamic_linker='GNU ld.so'
15111 ;;
15112
15113netbsd*)
15114 version_type=sunos
15115 need_lib_prefix=no
15116 need_version=no
15117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15120 dynamic_linker='NetBSD (a.out) ld.so'
15121 else
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15123 soname_spec='${libname}${release}${shared_ext}$major'
15124 dynamic_linker='NetBSD ld.elf_so'
15125 fi
15126 shlibpath_var=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath=yes
15128 hardcode_into_libs=yes
15129 ;;
15130
15131newsos6)
15132 version_type=linux
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 shlibpath_var=LD_LIBRARY_PATH
15135 shlibpath_overrides_runpath=yes
15136 ;;
15137
15138nto-qnx*)
15139 version_type=linux
15140 need_lib_prefix=no
15141 need_version=no
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 shlibpath_overrides_runpath=yes
15146 ;;
15147
15148openbsd*)
15149 version_type=sunos
15150 sys_lib_dlsearch_path_spec="/usr/lib"
15151 need_lib_prefix=no
15152 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15153 case $host_os in
15154 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15155 *) need_version=no ;;
15156 esac
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15161 case $host_os in
15162 openbsd2.[89] | openbsd2.[89].*)
15163 shlibpath_overrides_runpath=no
15164 ;;
15165 *)
15166 shlibpath_overrides_runpath=yes
15167 ;;
15168 esac
15169 else
15170 shlibpath_overrides_runpath=yes
15171 fi
15172 ;;
15173
15174os2*)
15175 libname_spec='$name'
15176 shrext_cmds=".dll"
15177 need_lib_prefix=no
15178 library_names_spec='$libname${shared_ext} $libname.a'
15179 dynamic_linker='OS/2 ld.exe'
15180 shlibpath_var=LIBPATH
15181 ;;
15182
15183osf3* | osf4* | osf5*)
15184 version_type=osf
15185 need_lib_prefix=no
15186 need_version=no
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15191 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15192 ;;
15193
15194solaris*)
15195 version_type=linux
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=yes
15202 hardcode_into_libs=yes
15203 # ldd complains unless libraries are executable
15204 postinstall_cmds='chmod +x $lib'
15205 ;;
15206
15207sunos4*)
15208 version_type=sunos
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=yes
15213 if test "$with_gnu_ld" = yes; then
15214 need_lib_prefix=no
15215 fi
15216 need_version=yes
15217 ;;
15218
15219sysv4 | sysv4.3*)
15220 version_type=linux
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 case $host_vendor in
15225 sni)
15226 shlibpath_overrides_runpath=no
15227 need_lib_prefix=no
15228 export_dynamic_flag_spec='${wl}-Blargedynsym'
15229 runpath_var=LD_RUN_PATH
15230 ;;
15231 siemens)
15232 need_lib_prefix=no
15233 ;;
15234 motorola)
15235 need_lib_prefix=no
15236 need_version=no
15237 shlibpath_overrides_runpath=no
15238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15239 ;;
15240 esac
15241 ;;
15242
15243sysv4*MP*)
15244 if test -d /usr/nec ;then
15245 version_type=linux
15246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15247 soname_spec='$libname${shared_ext}.$major'
15248 shlibpath_var=LD_LIBRARY_PATH
15249 fi
15250 ;;
15251
15252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15253 version_type=freebsd-elf
15254 need_lib_prefix=no
15255 need_version=no
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 hardcode_into_libs=yes
15260 if test "$with_gnu_ld" = yes; then
15261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15262 shlibpath_overrides_runpath=no
15263 else
15264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15265 shlibpath_overrides_runpath=yes
15266 case $host_os in
15267 sco3.2v5*)
15268 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15269 ;;
15270 esac
15271 fi
15272 sys_lib_dlsearch_path_spec='/usr/lib'
15273 ;;
15274
15275uts4*)
15276 version_type=linux
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 ;;
15281
15282*)
15283 dynamic_linker=no
15284 ;;
15285esac
15286echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15287echo "${ECHO_T}$dynamic_linker" >&6
15288test "$dynamic_linker" = no && can_build_shared=no
15289
15290variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15291if test "$GCC" = yes; then
15292 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15293fi
15294
15295echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15296echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15297hardcode_action_F77=
15298if test -n "$hardcode_libdir_flag_spec_F77" || \
15299 test -n "$runpath_var_F77" || \
15300 test "X$hardcode_automatic_F77" = "Xyes" ; then
15301
15302 # We can hardcode non-existant directories.
15303 if test "$hardcode_direct_F77" != no &&
15304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15305 # have to relink, otherwise we might link with an installed library
15306 # when we should be linking with a yet-to-be-installed one
15307 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15308 test "$hardcode_minus_L_F77" != no; then
15309 # Linking always hardcodes the temporary library directory.
15310 hardcode_action_F77=relink
15311 else
15312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15313 hardcode_action_F77=immediate
15314 fi
15315else
15316 # We cannot hardcode anything, or else we can only hardcode existing
15317 # directories.
15318 hardcode_action_F77=unsupported
15319fi
15320echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15321echo "${ECHO_T}$hardcode_action_F77" >&6
15322
15323if test "$hardcode_action_F77" = relink; then
15324 # Fast installation is not supported
15325 enable_fast_install=no
15326elif test "$shlibpath_overrides_runpath" = yes ||
15327 test "$enable_shared" = no; then
15328 # Fast installation is not necessary
15329 enable_fast_install=needless
15330fi
15331
15332
15333# The else clause should only fire when bootstrapping the
15334# libtool distribution, otherwise you forgot to ship ltmain.sh
15335# with your package, and you will get complaints that there are
15336# no rules to generate ltmain.sh.
15337if test -f "$ltmain"; then
15338 # See if we are running on zsh, and set the options which allow our commands through
15339 # without removal of \ escapes.
15340 if test -n "${ZSH_VERSION+set}" ; then
15341 setopt NO_GLOB_SUBST
15342 fi
15343 # Now quote all the things that may contain metacharacters while being
15344 # careful not to overquote the AC_SUBSTed values. We take copies of the
15345 # variables and quote the copies for generation of the libtool script.
15346 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15347 SED SHELL STRIP \
15348 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15349 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15350 deplibs_check_method reload_flag reload_cmds need_locks \
15351 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15352 lt_cv_sys_global_symbol_to_c_name_address \
15353 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15354 old_postinstall_cmds old_postuninstall_cmds \
15355 compiler_F77 \
15356 CC_F77 \
15357 LD_F77 \
15358 lt_prog_compiler_wl_F77 \
15359 lt_prog_compiler_pic_F77 \
15360 lt_prog_compiler_static_F77 \
15361 lt_prog_compiler_no_builtin_flag_F77 \
15362 export_dynamic_flag_spec_F77 \
15363 thread_safe_flag_spec_F77 \
15364 whole_archive_flag_spec_F77 \
15365 enable_shared_with_static_runtimes_F77 \
15366 old_archive_cmds_F77 \
15367 old_archive_from_new_cmds_F77 \
15368 predep_objects_F77 \
15369 postdep_objects_F77 \
15370 predeps_F77 \
15371 postdeps_F77 \
15372 compiler_lib_search_path_F77 \
15373 archive_cmds_F77 \
15374 archive_expsym_cmds_F77 \
15375 postinstall_cmds_F77 \
15376 postuninstall_cmds_F77 \
15377 old_archive_from_expsyms_cmds_F77 \
15378 allow_undefined_flag_F77 \
15379 no_undefined_flag_F77 \
15380 export_symbols_cmds_F77 \
15381 hardcode_libdir_flag_spec_F77 \
15382 hardcode_libdir_flag_spec_ld_F77 \
15383 hardcode_libdir_separator_F77 \
15384 hardcode_automatic_F77 \
15385 module_cmds_F77 \
15386 module_expsym_cmds_F77 \
15387 lt_cv_prog_compiler_c_o_F77 \
15388 exclude_expsyms_F77 \
15389 include_expsyms_F77; do
15390
15391 case $var in
15392 old_archive_cmds_F77 | \
15393 old_archive_from_new_cmds_F77 | \
15394 archive_cmds_F77 | \
15395 archive_expsym_cmds_F77 | \
15396 module_cmds_F77 | \
15397 module_expsym_cmds_F77 | \
15398 old_archive_from_expsyms_cmds_F77 | \
15399 export_symbols_cmds_F77 | \
15400 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15401 postinstall_cmds | postuninstall_cmds | \
15402 old_postinstall_cmds | old_postuninstall_cmds | \
15403 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15404 # Double-quote double-evaled strings.
15405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15406 ;;
15407 *)
15408 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15409 ;;
15410 esac
15411 done
15412
15413 case $lt_echo in
15414 *'\$0 --fallback-echo"')
15415 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15416 ;;
15417 esac
15418
15419cfgfile="$ofile"
15420
15421 cat <<__EOF__ >> "$cfgfile"
15422# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15423
15424# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15425
15426# Shell to use when invoking shell scripts.
15427SHELL=$lt_SHELL
15428
15429# Whether or not to build shared libraries.
15430build_libtool_libs=$enable_shared
15431
15432# Whether or not to build static libraries.
15433build_old_libs=$enable_static
15434
15435# Whether or not to add -lc for building shared libraries.
15436build_libtool_need_lc=$archive_cmds_need_lc_F77
15437
15438# Whether or not to disallow shared libs when runtime libs are static
15439allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15440
15441# Whether or not to optimize for fast installation.
15442fast_install=$enable_fast_install
15443
15444# The host system.
15445host_alias=$host_alias
15446host=$host
15447host_os=$host_os
15448
15449# The build system.
15450build_alias=$build_alias
15451build=$build
15452build_os=$build_os
15453
15454# An echo program that does not interpret backslashes.
15455echo=$lt_echo
15456
15457# The archiver.
15458AR=$lt_AR
15459AR_FLAGS=$lt_AR_FLAGS
15460
15461# A C compiler.
15462LTCC=$lt_LTCC
15463
15464# LTCC compiler flags.
15465LTCFLAGS=$lt_LTCFLAGS
15466
15467# A language-specific compiler.
15468CC=$lt_compiler_F77
15469
15470# Is the compiler the GNU C compiler?
15471with_gcc=$GCC_F77
15472
15473gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15474gcc_ver=\`gcc -dumpversion\`
15475
15476# An ERE matcher.
15477EGREP=$lt_EGREP
15478
15479# The linker used to build libraries.
15480LD=$lt_LD_F77
15481
15482# Whether we need hard or soft links.
15483LN_S=$lt_LN_S
15484
15485# A BSD-compatible nm program.
15486NM=$lt_NM
15487
15488# A symbol stripping program
15489STRIP=$lt_STRIP
15490
15491# Used to examine libraries when file_magic_cmd begins "file"
15492MAGIC_CMD=$MAGIC_CMD
15493
15494# Used on cygwin: DLL creation program.
15495DLLTOOL="$DLLTOOL"
15496
15497# Used on cygwin: object dumper.
15498OBJDUMP="$OBJDUMP"
15499
15500# Used on cygwin: assembler.
15501AS="$AS"
15502
15503# The name of the directory that contains temporary libtool files.
15504objdir=$objdir
15505
15506# How to create reloadable object files.
15507reload_flag=$lt_reload_flag
15508reload_cmds=$lt_reload_cmds
15509
15510# How to pass a linker flag through the compiler.
15511wl=$lt_lt_prog_compiler_wl_F77
15512
15513# Object file suffix (normally "o").
15514objext="$ac_objext"
15515
15516# Old archive suffix (normally "a").
15517libext="$libext"
15518
15519# Shared library suffix (normally ".so").
15520shrext_cmds='$shrext_cmds'
15521
15522# Executable file suffix (normally "").
15523exeext="$exeext"
15524
15525# Additional compiler flags for building library objects.
15526pic_flag=$lt_lt_prog_compiler_pic_F77
15527pic_mode=$pic_mode
15528
15529# What is the maximum length of a command?
15530max_cmd_len=$lt_cv_sys_max_cmd_len
15531
15532# Does compiler simultaneously support -c and -o options?
15533compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15534
15535# Must we lock files when doing compilation?
15536need_locks=$lt_need_locks
15537
15538# Do we need the lib prefix for modules?
15539need_lib_prefix=$need_lib_prefix
15540
15541# Do we need a version for libraries?
15542need_version=$need_version
15543
15544# Whether dlopen is supported.
15545dlopen_support=$enable_dlopen
15546
15547# Whether dlopen of programs is supported.
15548dlopen_self=$enable_dlopen_self
15549
15550# Whether dlopen of statically linked programs is supported.
15551dlopen_self_static=$enable_dlopen_self_static
15552
15553# Compiler flag to prevent dynamic linking.
15554link_static_flag=$lt_lt_prog_compiler_static_F77
15555
15556# Compiler flag to turn off builtin functions.
15557no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15558
15559# Compiler flag to allow reflexive dlopens.
15560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15561
15562# Compiler flag to generate shared objects directly from archives.
15563whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15564
15565# Compiler flag to generate thread-safe objects.
15566thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15567
15568# Library versioning type.
15569version_type=$version_type
15570
15571# Format of library name prefix.
15572libname_spec=$lt_libname_spec
15573
15574# List of archive names. First name is the real one, the rest are links.
15575# The last name is the one that the linker finds with -lNAME.
15576library_names_spec=$lt_library_names_spec
15577
15578# The coded name of the library, if different from the real name.
15579soname_spec=$lt_soname_spec
15580
15581# Commands used to build and install an old-style archive.
15582RANLIB=$lt_RANLIB
15583old_archive_cmds=$lt_old_archive_cmds_F77
15584old_postinstall_cmds=$lt_old_postinstall_cmds
15585old_postuninstall_cmds=$lt_old_postuninstall_cmds
15586
15587# Create an old-style archive from a shared archive.
15588old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15589
15590# Create a temporary old-style archive to link instead of a shared archive.
15591old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15592
15593# Commands used to build and install a shared archive.
15594archive_cmds=$lt_archive_cmds_F77
15595archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15596postinstall_cmds=$lt_postinstall_cmds
15597postuninstall_cmds=$lt_postuninstall_cmds
15598
15599# Commands used to build a loadable module (assumed same as above if empty)
15600module_cmds=$lt_module_cmds_F77
15601module_expsym_cmds=$lt_module_expsym_cmds_F77
15602
15603# Commands to strip libraries.
15604old_striplib=$lt_old_striplib
15605striplib=$lt_striplib
15606
15607# Dependencies to place before the objects being linked to create a
15608# shared library.
15609predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15610
15611# Dependencies to place after the objects being linked to create a
15612# shared library.
15613postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15614
15615# Dependencies to place before the objects being linked to create a
15616# shared library.
15617predeps=$lt_predeps_F77
15618
15619# Dependencies to place after the objects being linked to create a
15620# shared library.
15621postdeps=$lt_postdeps_F77
15622
15623# The library search path used internally by the compiler when linking
15624# a shared library.
15625compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15626
15627# Method to check whether dependent libraries are shared objects.
15628deplibs_check_method=$lt_deplibs_check_method
15629
15630# Command to use when deplibs_check_method == file_magic.
15631file_magic_cmd=$lt_file_magic_cmd
15632
15633# Flag that allows shared libraries with undefined symbols to be built.
15634allow_undefined_flag=$lt_allow_undefined_flag_F77
15635
15636# Flag that forces no undefined symbols.
15637no_undefined_flag=$lt_no_undefined_flag_F77
15638
15639# Commands used to finish a libtool library installation in a directory.
15640finish_cmds=$lt_finish_cmds
15641
15642# Same as above, but a single script fragment to be evaled but not shown.
15643finish_eval=$lt_finish_eval
15644
15645# Take the output of nm and produce a listing of raw symbols and C names.
15646global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15647
15648# Transform the output of nm in a proper C declaration
15649global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15650
15651# Transform the output of nm in a C name address pair
15652global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15653
15654# This is the shared library runtime path variable.
15655runpath_var=$runpath_var
15656
15657# This is the shared library path variable.
15658shlibpath_var=$shlibpath_var
15659
15660# Is shlibpath searched before the hard-coded library search path?
15661shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15662
15663# How to hardcode a shared library path into an executable.
15664hardcode_action=$hardcode_action_F77
15665
15666# Whether we should hardcode library paths into libraries.
15667hardcode_into_libs=$hardcode_into_libs
15668
15669# Flag to hardcode \$libdir into a binary during linking.
15670# This must work even if \$libdir does not exist.
15671hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15672
15673# If ld is used when linking, flag to hardcode \$libdir into
15674# a binary during linking. This must work even if \$libdir does
15675# not exist.
15676hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15677
15678# Whether we need a single -rpath flag with a separated argument.
15679hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15680
15681# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15682# resulting binary.
15683hardcode_direct=$hardcode_direct_F77
15684
15685# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15686# resulting binary.
15687hardcode_minus_L=$hardcode_minus_L_F77
15688
15689# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15690# the resulting binary.
15691hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15692
15693# Set to yes if building a shared library automatically hardcodes DIR into the library
15694# and all subsequent libraries and executables linked against it.
15695hardcode_automatic=$hardcode_automatic_F77
15696
15697# Variables whose values should be saved in libtool wrapper scripts and
15698# restored at relink time.
15699variables_saved_for_relink="$variables_saved_for_relink"
15700
15701# Whether libtool must link a program against all its dependency libraries.
15702link_all_deplibs=$link_all_deplibs_F77
15703
15704# Compile-time system search path for libraries
15705sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15706
15707# Run-time system search path for libraries
15708sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15709
15710# Fix the shell variable \$srcfile for the compiler.
15711fix_srcfile_path="$fix_srcfile_path_F77"
15712
15713# Set to yes if exported symbols are required.
15714always_export_symbols=$always_export_symbols_F77
15715
15716# The commands to list exported symbols.
15717export_symbols_cmds=$lt_export_symbols_cmds_F77
15718
15719# The commands to extract the exported symbol list from a shared archive.
15720extract_expsyms_cmds=$lt_extract_expsyms_cmds
15721
15722# Symbols that should not be listed in the preloaded symbols.
15723exclude_expsyms=$lt_exclude_expsyms_F77
15724
15725# Symbols that must always be exported.
15726include_expsyms=$lt_include_expsyms_F77
15727
15728# ### END LIBTOOL TAG CONFIG: $tagname
15729
15730__EOF__
15731
15732
15733else
15734 # If there is no Makefile yet, we rely on a make rule to execute
15735 # `config.status --recheck' to rerun these tests and create the
15736 # libtool script then.
15737 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15738 if test -f "$ltmain_in"; then
15739 test -f Makefile && make "$ltmain"
15740 fi
15741fi
15742
15743
15744ac_ext=c
15745ac_cpp='$CPP $CPPFLAGS'
15746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15748ac_compiler_gnu=$ac_cv_c_compiler_gnu
15749
15750CC="$lt_save_CC"
15751
15752 else
15753 tagname=""
15754 fi
15755 ;;
15756
15757 GCJ)
15758 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15759
15760
15761
15762# Source file extension for Java test sources.
15763ac_ext=java
15764
15765# Object file extension for compiled Java test sources.
15766objext=o
15767objext_GCJ=$objext
15768
15769# Code to be used in simple compile tests
15770lt_simple_compile_test_code="class foo {}\n"
15771
15772# Code to be used in simple link tests
15773lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15774
15775# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15776
15777# If no C compiler was specified, use CC.
15778LTCC=${LTCC-"$CC"}
15779
15780# If no C compiler flags were specified, use CFLAGS.
15781LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15782
15783# Allow CC to be a program name with arguments.
15784compiler=$CC
15785
15786
15787# save warnings/boilerplate of simple test code
15788ac_outfile=conftest.$ac_objext
15789printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15790eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15791_lt_compiler_boilerplate=`cat conftest.err`
15792$rm conftest*
15793
15794ac_outfile=conftest.$ac_objext
15795printf "$lt_simple_link_test_code" >conftest.$ac_ext
15796eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15797_lt_linker_boilerplate=`cat conftest.err`
15798$rm conftest*
15799
15800
15801# Allow CC to be a program name with arguments.
15802lt_save_CC="$CC"
15803CC=${GCJ-"gcj"}
15804compiler=$CC
15805compiler_GCJ=$CC
15806for cc_temp in $compiler""; do
15807 case $cc_temp in
15808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15810 \-*) ;;
15811 *) break;;
15812 esac
15813done
15814cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15815
15816
15817# GCJ did not exist at the time GCC didn't implicitly link libc in.
15818archive_cmds_need_lc_GCJ=no
15819
15820old_archive_cmds_GCJ=$old_archive_cmds
15821
15822
15823lt_prog_compiler_no_builtin_flag_GCJ=
15824
15825if test "$GCC" = yes; then
15826 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15827
15828
15829echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15830echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15831if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15833else
15834 lt_cv_prog_compiler_rtti_exceptions=no
15835 ac_outfile=conftest.$ac_objext
15836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15837 lt_compiler_flag="-fno-rtti -fno-exceptions"
15838 # Insert the option either (1) after the last *FLAGS variable, or
15839 # (2) before a word containing "conftest.", or (3) at the end.
15840 # Note that $ac_compile itself does not contain backslashes and begins
15841 # with a dollar sign (not a hyphen), so the echo should work correctly.
15842 # The option is referenced via a variable to avoid confusing sed.
15843 lt_compile=`echo "$ac_compile" | $SED \
15844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15846 -e 's:$: $lt_compiler_flag:'`
15847 (eval echo "\"\$as_me:15847: $lt_compile\"" >&5)
15848 (eval "$lt_compile" 2>conftest.err)
15849 ac_status=$?
15850 cat conftest.err >&5
15851 echo "$as_me:15851: \$? = $ac_status" >&5
15852 if (exit $ac_status) && test -s "$ac_outfile"; then
15853 # The compiler can only warn and ignore the option if not recognized
15854 # So say no if there are warnings other than the usual output.
15855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15858 lt_cv_prog_compiler_rtti_exceptions=yes
15859 fi
15860 fi
15861 $rm conftest*
15862
15863fi
15864echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15865echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15866
15867if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15868 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15869else
15870 :
15871fi
15872
15873fi
15874
15875lt_prog_compiler_wl_GCJ=
15876lt_prog_compiler_pic_GCJ=
15877lt_prog_compiler_static_GCJ=
15878
15879echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15880echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15881
15882 if test "$GCC" = yes; then
15883 lt_prog_compiler_wl_GCJ='-Wl,'
15884 lt_prog_compiler_static_GCJ='-static'
15885
15886 case $host_os in
15887 aix*)
15888 # All AIX code is PIC.
15889 if test "$host_cpu" = ia64; then
15890 # AIX 5 now supports IA64 processor
15891 lt_prog_compiler_static_GCJ='-Bstatic'
15892 fi
15893 ;;
15894
15895 amigaos*)
15896 # FIXME: we need at least 68020 code to build shared libraries, but
15897 # adding the `-m68020' flag to GCC prevents building anything better,
15898 # like `-m68040'.
15899 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15900 ;;
15901
15902 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15903 # PIC is the default for these OSes.
15904 ;;
15905
15906 mingw* | pw32* | os2*)
15907 # This hack is so that the source file can tell whether it is being
15908 # built for inclusion in a dll (and should export symbols for example).
15909 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15910 ;;
15911
15912 darwin* | rhapsody*)
15913 # PIC is the default on this platform
15914 # Common symbols not allowed in MH_DYLIB files
15915 lt_prog_compiler_pic_GCJ='-fno-common'
15916 ;;
15917
15918 interix3*)
15919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15920 # Instead, we relocate shared libraries at runtime.
15921 ;;
15922
15923 msdosdjgpp*)
15924 # Just because we use GCC doesn't mean we suddenly get shared libraries
15925 # on systems that don't support them.
15926 lt_prog_compiler_can_build_shared_GCJ=no
15927 enable_shared=no
15928 ;;
15929
15930 sysv4*MP*)
15931 if test -d /usr/nec; then
15932 lt_prog_compiler_pic_GCJ=-Kconform_pic
15933 fi
15934 ;;
15935
15936 hpux*)
15937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15938 # not for PA HP-UX.
15939 case $host_cpu in
15940 hppa*64*|ia64*)
15941 # +Z the default
15942 ;;
15943 *)
15944 lt_prog_compiler_pic_GCJ='-fPIC'
15945 ;;
15946 esac
15947 ;;
15948
15949 *)
15950 lt_prog_compiler_pic_GCJ='-fPIC'
15951 ;;
15952 esac
15953 else
15954 # PORTME Check for flag to pass linker flags through the system compiler.
15955 case $host_os in
15956 aix*)
15957 lt_prog_compiler_wl_GCJ='-Wl,'
15958 if test "$host_cpu" = ia64; then
15959 # AIX 5 now supports IA64 processor
15960 lt_prog_compiler_static_GCJ='-Bstatic'
15961 else
15962 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15963 fi
15964 ;;
15965 darwin*)
15966 # PIC is the default on this platform
15967 # Common symbols not allowed in MH_DYLIB files
15968 case $cc_basename in
15969 xlc*)
15970 lt_prog_compiler_pic_GCJ='-qnocommon'
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15972 ;;
15973 esac
15974 ;;
15975
15976 mingw* | pw32* | os2*)
15977 # This hack is so that the source file can tell whether it is being
15978 # built for inclusion in a dll (and should export symbols for example).
15979 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15980 ;;
15981
15982 hpux9* | hpux10* | hpux11*)
15983 lt_prog_compiler_wl_GCJ='-Wl,'
15984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15985 # not for PA HP-UX.
15986 case $host_cpu in
15987 hppa*64*|ia64*)
15988 # +Z the default
15989 ;;
15990 *)
15991 lt_prog_compiler_pic_GCJ='+Z'
15992 ;;
15993 esac
15994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15995 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15996 ;;
15997
15998 irix5* | irix6* | nonstopux*)
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 # PIC (with -KPIC) is the default.
16001 lt_prog_compiler_static_GCJ='-non_shared'
16002 ;;
16003
16004 newsos6)
16005 lt_prog_compiler_pic_GCJ='-KPIC'
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16007 ;;
16008
16009 linux*)
16010 case $cc_basename in
16011 icc* | ecc*)
16012 lt_prog_compiler_wl_GCJ='-Wl,'
16013 lt_prog_compiler_pic_GCJ='-KPIC'
16014 lt_prog_compiler_static_GCJ='-static'
16015 ;;
16016 pgcc* | pgf77* | pgf90* | pgf95*)
16017 # Portland Group compilers (*not* the Pentium gcc compiler,
16018 # which looks to be a dead project)
16019 lt_prog_compiler_wl_GCJ='-Wl,'
16020 lt_prog_compiler_pic_GCJ='-fpic'
16021 lt_prog_compiler_static_GCJ='-Bstatic'
16022 ;;
16023 ccc*)
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 # All Alpha code is PIC.
16026 lt_prog_compiler_static_GCJ='-non_shared'
16027 ;;
16028 esac
16029 ;;
16030
16031 osf3* | osf4* | osf5*)
16032 lt_prog_compiler_wl_GCJ='-Wl,'
16033 # All OSF/1 code is PIC.
16034 lt_prog_compiler_static_GCJ='-non_shared'
16035 ;;
16036
16037 solaris*)
16038 lt_prog_compiler_pic_GCJ='-KPIC'
16039 lt_prog_compiler_static_GCJ='-Bstatic'
16040 case $cc_basename in
16041 f77* | f90* | f95*)
16042 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16043 *)
16044 lt_prog_compiler_wl_GCJ='-Wl,';;
16045 esac
16046 ;;
16047
16048 sunos4*)
16049 lt_prog_compiler_wl_GCJ='-Qoption ld '
16050 lt_prog_compiler_pic_GCJ='-PIC'
16051 lt_prog_compiler_static_GCJ='-Bstatic'
16052 ;;
16053
16054 sysv4 | sysv4.2uw2* | sysv4.3*)
16055 lt_prog_compiler_wl_GCJ='-Wl,'
16056 lt_prog_compiler_pic_GCJ='-KPIC'
16057 lt_prog_compiler_static_GCJ='-Bstatic'
16058 ;;
16059
16060 sysv4*MP*)
16061 if test -d /usr/nec ;then
16062 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16063 lt_prog_compiler_static_GCJ='-Bstatic'
16064 fi
16065 ;;
16066
16067 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16068 lt_prog_compiler_wl_GCJ='-Wl,'
16069 lt_prog_compiler_pic_GCJ='-KPIC'
16070 lt_prog_compiler_static_GCJ='-Bstatic'
16071 ;;
16072
16073 unicos*)
16074 lt_prog_compiler_wl_GCJ='-Wl,'
16075 lt_prog_compiler_can_build_shared_GCJ=no
16076 ;;
16077
16078 uts4*)
16079 lt_prog_compiler_pic_GCJ='-pic'
16080 lt_prog_compiler_static_GCJ='-Bstatic'
16081 ;;
16082
16083 *)
16084 lt_prog_compiler_can_build_shared_GCJ=no
16085 ;;
16086 esac
16087 fi
16088
16089echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16090echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16091
16092#
16093# Check to make sure the PIC flag actually works.
16094#
16095if test -n "$lt_prog_compiler_pic_GCJ"; then
16096
16097echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16098echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16099if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101else
16102 lt_prog_compiler_pic_works_GCJ=no
16103 ac_outfile=conftest.$ac_objext
16104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16105 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16106 # Insert the option either (1) after the last *FLAGS variable, or
16107 # (2) before a word containing "conftest.", or (3) at the end.
16108 # Note that $ac_compile itself does not contain backslashes and begins
16109 # with a dollar sign (not a hyphen), so the echo should work correctly.
16110 # The option is referenced via a variable to avoid confusing sed.
16111 lt_compile=`echo "$ac_compile" | $SED \
16112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16114 -e 's:$: $lt_compiler_flag:'`
16115 (eval echo "\"\$as_me:16115: $lt_compile\"" >&5)
16116 (eval "$lt_compile" 2>conftest.err)
16117 ac_status=$?
16118 cat conftest.err >&5
16119 echo "$as_me:16119: \$? = $ac_status" >&5
16120 if (exit $ac_status) && test -s "$ac_outfile"; then
16121 # The compiler can only warn and ignore the option if not recognized
16122 # So say no if there are warnings other than the usual output.
16123 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16126 lt_prog_compiler_pic_works_GCJ=yes
16127 fi
16128 fi
16129 $rm conftest*
16130
16131fi
16132echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16133echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16134
16135if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16136 case $lt_prog_compiler_pic_GCJ in
16137 "" | " "*) ;;
16138 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16139 esac
16140else
16141 lt_prog_compiler_pic_GCJ=
16142 lt_prog_compiler_can_build_shared_GCJ=no
16143fi
16144
16145fi
16146case $host_os in
16147 # For platforms which do not support PIC, -DPIC is meaningless:
16148 *djgpp*)
16149 lt_prog_compiler_pic_GCJ=
16150 ;;
16151 *)
16152 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16153 ;;
16154esac
16155
16156#
16157# Check to make sure the static flag actually works.
16158#
16159wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16160echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16161echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16162if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164else
16165 lt_prog_compiler_static_works_GCJ=no
16166 save_LDFLAGS="$LDFLAGS"
16167 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16168 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16169 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16170 # The linker can only warn and ignore the option if not recognized
16171 # So say no if there are warnings
16172 if test -s conftest.err; then
16173 # Append any errors to the config.log.
16174 cat conftest.err 1>&5
16175 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16177 if diff conftest.exp conftest.er2 >/dev/null; then
16178 lt_prog_compiler_static_works_GCJ=yes
16179 fi
16180 else
16181 lt_prog_compiler_static_works_GCJ=yes
16182 fi
16183 fi
16184 $rm conftest*
16185 LDFLAGS="$save_LDFLAGS"
16186
16187fi
16188echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16189echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16190
16191if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16192 :
16193else
16194 lt_prog_compiler_static_GCJ=
16195fi
16196
16197
16198echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16199echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16200if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202else
16203 lt_cv_prog_compiler_c_o_GCJ=no
16204 $rm -r conftest 2>/dev/null
16205 mkdir conftest
16206 cd conftest
16207 mkdir out
16208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16209
16210 lt_compiler_flag="-o out/conftest2.$ac_objext"
16211 # Insert the option either (1) after the last *FLAGS variable, or
16212 # (2) before a word containing "conftest.", or (3) at the end.
16213 # Note that $ac_compile itself does not contain backslashes and begins
16214 # with a dollar sign (not a hyphen), so the echo should work correctly.
16215 lt_compile=`echo "$ac_compile" | $SED \
16216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16218 -e 's:$: $lt_compiler_flag:'`
16219 (eval echo "\"\$as_me:16219: $lt_compile\"" >&5)
16220 (eval "$lt_compile" 2>out/conftest.err)
16221 ac_status=$?
16222 cat out/conftest.err >&5
16223 echo "$as_me:16223: \$? = $ac_status" >&5
16224 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16225 then
16226 # The compiler can only warn and ignore the option if not recognized
16227 # So say no if there are warnings
16228 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16229 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16230 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16231 lt_cv_prog_compiler_c_o_GCJ=yes
16232 fi
16233 fi
16234 chmod u+w . 2>&5
16235 $rm conftest*
16236 # SGI C++ compiler will create directory out/ii_files/ for
16237 # template instantiation
16238 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16239 $rm out/* && rmdir out
16240 cd ..
16241 rmdir conftest
16242 $rm conftest*
16243
16244fi
16245echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16246echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16247
16248
16249hard_links="nottested"
16250if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16251 # do not overwrite the value of need_locks provided by the user
16252 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16253echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16254 hard_links=yes
16255 $rm conftest*
16256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16257 touch conftest.a
16258 ln conftest.a conftest.b 2>&5 || hard_links=no
16259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16260 echo "$as_me:$LINENO: result: $hard_links" >&5
16261echo "${ECHO_T}$hard_links" >&6
16262 if test "$hard_links" = no; then
16263 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16264echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16265 need_locks=warn
16266 fi
16267else
16268 need_locks=no
16269fi
16270
16271echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16272echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16273
16274 runpath_var=
16275 allow_undefined_flag_GCJ=
16276 enable_shared_with_static_runtimes_GCJ=no
16277 archive_cmds_GCJ=
16278 archive_expsym_cmds_GCJ=
16279 old_archive_From_new_cmds_GCJ=
16280 old_archive_from_expsyms_cmds_GCJ=
16281 export_dynamic_flag_spec_GCJ=
16282 whole_archive_flag_spec_GCJ=
16283 thread_safe_flag_spec_GCJ=
16284 hardcode_libdir_flag_spec_GCJ=
16285 hardcode_libdir_flag_spec_ld_GCJ=
16286 hardcode_libdir_separator_GCJ=
16287 hardcode_direct_GCJ=no
16288 hardcode_minus_L_GCJ=no
16289 hardcode_shlibpath_var_GCJ=unsupported
16290 link_all_deplibs_GCJ=unknown
16291 hardcode_automatic_GCJ=no
16292 module_cmds_GCJ=
16293 module_expsym_cmds_GCJ=
16294 always_export_symbols_GCJ=no
16295 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16296 # include_expsyms should be a list of space-separated symbols to be *always*
16297 # included in the symbol list
16298 include_expsyms_GCJ=
16299 # exclude_expsyms can be an extended regexp of symbols to exclude
16300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16302 # as well as any symbol that contains `d'.
16303 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16305 # platforms (ab)use it in PIC code, but their linkers get confused if
16306 # the symbol is explicitly referenced. Since portable code cannot
16307 # rely on this symbol name, it's probably fine to never include it in
16308 # preloaded symbol tables.
16309 extract_expsyms_cmds=
16310 # Just being paranoid about ensuring that cc_basename is set.
16311 for cc_temp in $compiler""; do
16312 case $cc_temp in
16313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16315 \-*) ;;
16316 *) break;;
16317 esac
16318done
16319cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16320
16321 case $host_os in
16322 cygwin* | mingw* | pw32*)
16323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16324 # When not using gcc, we currently assume that we are using
16325 # Microsoft Visual C++.
16326 if test "$GCC" != yes; then
16327 with_gnu_ld=no
16328 fi
16329 ;;
16330 interix*)
16331 # we just hope/assume this is gcc and not c89 (= MSVC++)
16332 with_gnu_ld=yes
16333 ;;
16334 openbsd*)
16335 with_gnu_ld=no
16336 ;;
16337 esac
16338
16339 ld_shlibs_GCJ=yes
16340 if test "$with_gnu_ld" = yes; then
16341 # If archive_cmds runs LD, not CC, wlarc should be empty
16342 wlarc='${wl}'
16343
16344 # Set some defaults for GNU ld with shared library support. These
16345 # are reset later if shared libraries are not supported. Putting them
16346 # here allows them to be overridden if necessary.
16347 runpath_var=LD_RUN_PATH
16348 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16349 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16350 # ancient GNU ld didn't support --whole-archive et. al.
16351 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16352 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16353 else
16354 whole_archive_flag_spec_GCJ=
16355 fi
16356 supports_anon_versioning=no
16357 case `$LD -v 2>/dev/null` in
16358 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16359 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16360 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16361 *\ 2.11.*) ;; # other 2.11 versions
16362 *) supports_anon_versioning=yes ;;
16363 esac
16364
16365 # See if GNU ld supports shared libraries.
16366 case $host_os in
16367 aix3* | aix4* | aix5*)
16368 # On AIX/PPC, the GNU linker is very broken
16369 if test "$host_cpu" != ia64; then
16370 ld_shlibs_GCJ=no
16371 cat <<EOF 1>&2
16372
16373*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16374*** to be unable to reliably create shared libraries on AIX.
16375*** Therefore, libtool is disabling shared libraries support. If you
16376*** really care for shared libraries, you may want to modify your PATH
16377*** so that a non-GNU linker is found, and then restart.
16378
16379EOF
16380 fi
16381 ;;
16382
16383 amigaos*)
16384 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)'
16385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16386 hardcode_minus_L_GCJ=yes
16387
16388 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16389 # that the semantics of dynamic libraries on AmigaOS, at least up
16390 # to version 4, is to share data among multiple programs linked
16391 # with the same dynamic library. Since this doesn't match the
16392 # behavior of shared libraries on other platforms, we can't use
16393 # them.
16394 ld_shlibs_GCJ=no
16395 ;;
16396
16397 beos*)
16398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16399 allow_undefined_flag_GCJ=unsupported
16400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16401 # support --undefined. This deserves some investigation. FIXME
16402 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16403 else
16404 ld_shlibs_GCJ=no
16405 fi
16406 ;;
16407
16408 cygwin* | mingw* | pw32*)
16409 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16410 # as there is no search path for DLLs.
16411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16412 allow_undefined_flag_GCJ=unsupported
16413 always_export_symbols_GCJ=no
16414 enable_shared_with_static_runtimes_GCJ=yes
16415 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16416
16417 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16418 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16419 # If the export-symbols file already is a .def file (1st line
16420 # is EXPORTS), use it as is; otherwise, prepend...
16421 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16422 cp $export_symbols $output_objdir/$soname.def;
16423 else
16424 echo EXPORTS > $output_objdir/$soname.def;
16425 cat $export_symbols >> $output_objdir/$soname.def;
16426 fi~
16427 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16428 else
16429 ld_shlibs_GCJ=no
16430 fi
16431 ;;
16432
16433 interix3*)
16434 hardcode_direct_GCJ=no
16435 hardcode_shlibpath_var_GCJ=no
16436 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16437 export_dynamic_flag_spec_GCJ='${wl}-E'
16438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16439 # Instead, shared libraries are loaded at an image base (0x10000000 by
16440 # default) and relocated if they conflict, which is a slow very memory
16441 # consuming and fragmenting process. To avoid this, we pick a random,
16442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16444 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16445 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16446 ;;
16447
16448 linux*)
16449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16450 tmp_addflag=
16451 case $cc_basename,$host_cpu in
16452 pgcc*) # Portland Group C compiler
16453 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16454 tmp_addflag=' $pic_flag'
16455 ;;
16456 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16457 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16458 tmp_addflag=' $pic_flag -Mnomain' ;;
16459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16460 tmp_addflag=' -i_dynamic' ;;
16461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16462 tmp_addflag=' -i_dynamic -nofor_main' ;;
16463 ifc* | ifort*) # Intel Fortran compiler
16464 tmp_addflag=' -nofor_main' ;;
16465 esac
16466 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16467
16468 if test $supports_anon_versioning = yes; then
16469 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16471 $echo "local: *; };" >> $output_objdir/$libname.ver~
16472 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16473 fi
16474 else
16475 ld_shlibs_GCJ=no
16476 fi
16477 ;;
16478
16479 netbsd*)
16480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16481 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16482 wlarc=
16483 else
16484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16486 fi
16487 ;;
16488
16489 solaris*)
16490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16491 ld_shlibs_GCJ=no
16492 cat <<EOF 1>&2
16493
16494*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16495*** create shared libraries on Solaris systems. Therefore, libtool
16496*** is disabling shared libraries support. We urge you to upgrade GNU
16497*** binutils to release 2.9.1 or newer. Another option is to modify
16498*** your PATH or compiler configuration so that the native linker is
16499*** used, and then restart.
16500
16501EOF
16502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16505 else
16506 ld_shlibs_GCJ=no
16507 fi
16508 ;;
16509
16510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16511 case `$LD -v 2>&1` in
16512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16513 ld_shlibs_GCJ=no
16514 cat <<_LT_EOF 1>&2
16515
16516*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16517*** reliably create shared libraries on SCO systems. Therefore, libtool
16518*** is disabling shared libraries support. We urge you to upgrade GNU
16519*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16520*** your PATH or compiler configuration so that the native linker is
16521*** used, and then restart.
16522
16523_LT_EOF
16524 ;;
16525 *)
16526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16527 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16530 else
16531 ld_shlibs_GCJ=no
16532 fi
16533 ;;
16534 esac
16535 ;;
16536
16537 sunos4*)
16538 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16539 wlarc=
16540 hardcode_direct_GCJ=yes
16541 hardcode_shlibpath_var_GCJ=no
16542 ;;
16543
16544 *)
16545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16548 else
16549 ld_shlibs_GCJ=no
16550 fi
16551 ;;
16552 esac
16553
16554 if test "$ld_shlibs_GCJ" = no; then
16555 runpath_var=
16556 hardcode_libdir_flag_spec_GCJ=
16557 export_dynamic_flag_spec_GCJ=
16558 whole_archive_flag_spec_GCJ=
16559 fi
16560 else
16561 # PORTME fill in a description of your system's linker (not GNU ld)
16562 case $host_os in
16563 aix3*)
16564 allow_undefined_flag_GCJ=unsupported
16565 always_export_symbols_GCJ=yes
16566 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'
16567 # Note: this linker hardcodes the directories in LIBPATH if there
16568 # are no directories specified by -L.
16569 hardcode_minus_L_GCJ=yes
16570 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16571 # Neither direct hardcoding nor static linking is supported with a
16572 # broken collect2.
16573 hardcode_direct_GCJ=unsupported
16574 fi
16575 ;;
16576
16577 aix4* | aix5*)
16578 if test "$host_cpu" = ia64; then
16579 # On IA64, the linker does run time linking by default, so we don't
16580 # have to do anything special.
16581 aix_use_runtimelinking=no
16582 exp_sym_flag='-Bexport'
16583 no_entry_flag=""
16584 else
16585 # If we're using GNU nm, then we don't want the "-C" option.
16586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16588 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'
16589 else
16590 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'
16591 fi
16592 aix_use_runtimelinking=no
16593
16594 # Test if we are trying to use run time linking or normal
16595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16596 # need to do runtime linking.
16597 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16598 for ld_flag in $LDFLAGS; do
16599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16600 aix_use_runtimelinking=yes
16601 break
16602 fi
16603 done
16604 ;;
16605 esac
16606
16607 exp_sym_flag='-bexport'
16608 no_entry_flag='-bnoentry'
16609 fi
16610
16611 # When large executables or shared objects are built, AIX ld can
16612 # have problems creating the table of contents. If linking a library
16613 # or program results in "error TOC overflow" add -mminimal-toc to
16614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16616
16617 archive_cmds_GCJ=''
16618 hardcode_direct_GCJ=yes
16619 hardcode_libdir_separator_GCJ=':'
16620 link_all_deplibs_GCJ=yes
16621
16622 if test "$GCC" = yes; then
16623 case $host_os in aix4.[012]|aix4.[012].*)
16624 # We only want to do this on AIX 4.2 and lower, the check
16625 # below for broken collect2 doesn't work under 4.3+
16626 collect2name=`${CC} -print-prog-name=collect2`
16627 if test -f "$collect2name" && \
16628 strings "$collect2name" | grep resolve_lib_name >/dev/null
16629 then
16630 # We have reworked collect2
16631 hardcode_direct_GCJ=yes
16632 else
16633 # We have old collect2
16634 hardcode_direct_GCJ=unsupported
16635 # It fails to find uninstalled libraries when the uninstalled
16636 # path is not listed in the libpath. Setting hardcode_minus_L
16637 # to unsupported forces relinking
16638 hardcode_minus_L_GCJ=yes
16639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16640 hardcode_libdir_separator_GCJ=
16641 fi
16642 ;;
16643 esac
16644 shared_flag='-shared'
16645 if test "$aix_use_runtimelinking" = yes; then
16646 shared_flag="$shared_flag "'${wl}-G'
16647 fi
16648 else
16649 # not using gcc
16650 if test "$host_cpu" = ia64; then
16651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16652 # chokes on -Wl,-G. The following line is correct:
16653 shared_flag='-G'
16654 else
16655 if test "$aix_use_runtimelinking" = yes; then
16656 shared_flag='${wl}-G'
16657 else
16658 shared_flag='${wl}-bM:SRE'
16659 fi
16660 fi
16661 fi
16662
16663 # It seems that -bexpall does not export symbols beginning with
16664 # underscore (_), so it is better to generate a list of symbols to export.
16665 always_export_symbols_GCJ=yes
16666 if test "$aix_use_runtimelinking" = yes; then
16667 # Warning - without using the other runtime loading flags (-brtl),
16668 # -berok will link without error, but may produce a broken library.
16669 allow_undefined_flag_GCJ='-berok'
16670 # Determine the default libpath from the value encoded in an empty executable.
16671 cat >conftest.$ac_ext <<_ACEOF
16672/* confdefs.h. */
16673_ACEOF
16674cat confdefs.h >>conftest.$ac_ext
16675cat >>conftest.$ac_ext <<_ACEOF
16676/* end confdefs.h. */
16677
16678int
16679main ()
16680{
16681
16682 ;
16683 return 0;
16684}
16685_ACEOF
16686rm -f conftest.$ac_objext conftest$ac_exeext
16687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>conftest.er1
16689 ac_status=$?
16690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -z "$ac_c_werror_flag"
16696 || test ! -s conftest.err'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708
16709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16710}'`
16711# Check for a 64-bit object if we didn't find anything.
16712if 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; }
16713}'`; fi
16714else
16715 echo "$as_me: failed program was:" >&5
16716sed 's/^/| /' conftest.$ac_ext >&5
16717
16718fi
16719rm -f conftest.err conftest.$ac_objext \
16720 conftest$ac_exeext conftest.$ac_ext
16721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16722
16723 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16724 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16725 else
16726 if test "$host_cpu" = ia64; then
16727 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16728 allow_undefined_flag_GCJ="-z nodefs"
16729 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16730 else
16731 # Determine the default libpath from the value encoded in an empty executable.
16732 cat >conftest.$ac_ext <<_ACEOF
16733/* confdefs.h. */
16734_ACEOF
16735cat confdefs.h >>conftest.$ac_ext
16736cat >>conftest.$ac_ext <<_ACEOF
16737/* end confdefs.h. */
16738
16739int
16740main ()
16741{
16742
16743 ;
16744 return 0;
16745}
16746_ACEOF
16747rm -f conftest.$ac_objext conftest$ac_exeext
16748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16749 (eval $ac_link) 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
16756 { ac_try='test -z "$ac_c_werror_flag"
16757 || test ! -s conftest.err'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest$ac_exeext'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769
16770aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16771}'`
16772# Check for a 64-bit object if we didn't find anything.
16773if 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; }
16774}'`; fi
16775else
16776 echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
16779fi
16780rm -f conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16782if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16783
16784 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16785 # Warning - without using the other run time loading flags,
16786 # -berok will link without error, but may produce a broken library.
16787 no_undefined_flag_GCJ=' ${wl}-bernotok'
16788 allow_undefined_flag_GCJ=' ${wl}-berok'
16789 # Exported symbols can be pulled into shared objects from archives
16790 whole_archive_flag_spec_GCJ='$convenience'
16791 archive_cmds_need_lc_GCJ=yes
16792 # This is similar to how AIX traditionally builds its shared libraries.
16793 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16794 fi
16795 fi
16796 ;;
16797
16798 amigaos*)
16799 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)'
16800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16801 hardcode_minus_L_GCJ=yes
16802 # see comment about different semantics on the GNU ld section
16803 ld_shlibs_GCJ=no
16804 ;;
16805
16806 bsdi[45]*)
16807 export_dynamic_flag_spec_GCJ=-rdynamic
16808 ;;
16809
16810 cygwin* | mingw* | pw32*)
16811 # When not using gcc, we currently assume that we are using
16812 # Microsoft Visual C++.
16813 # hardcode_libdir_flag_spec is actually meaningless, as there is
16814 # no search path for DLLs.
16815 hardcode_libdir_flag_spec_GCJ=' '
16816 allow_undefined_flag_GCJ=unsupported
16817 # Tell ltmain to make .lib files, not .a files.
16818 libext=lib
16819 # Tell ltmain to make .dll files, not .so files.
16820 shrext_cmds=".dll"
16821 # FIXME: Setting linknames here is a bad hack.
16822 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16823 # The linker will automatically build a .lib file if we build a DLL.
16824 old_archive_From_new_cmds_GCJ='true'
16825 # FIXME: Should let the user specify the lib program.
16826 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16827 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16828 enable_shared_with_static_runtimes_GCJ=yes
16829 ;;
16830
16831 darwin* | rhapsody*)
16832 case $host_os in
16833 rhapsody* | darwin1.[012])
16834 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16835 ;;
16836 *) # Darwin 1.3 on
16837 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16839 else
16840 case ${MACOSX_DEPLOYMENT_TARGET} in
16841 10.[012])
16842 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16843 ;;
16844 10.*)
16845 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16846 ;;
16847 esac
16848 fi
16849 ;;
16850 esac
16851 archive_cmds_need_lc_GCJ=no
16852 hardcode_direct_GCJ=no
16853 hardcode_automatic_GCJ=yes
16854 hardcode_shlibpath_var_GCJ=unsupported
16855 whole_archive_flag_spec_GCJ=''
16856 link_all_deplibs_GCJ=yes
16857 if test "$GCC" = yes ; then
16858 output_verbose_link_cmd='echo'
16859 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16860 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16862 archive_expsym_cmds_GCJ='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}'
16863 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}'
16864 else
16865 case $cc_basename in
16866 xlc*)
16867 output_verbose_link_cmd='echo'
16868 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16869 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16871 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16872 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}'
16873 ;;
16874 *)
16875 ld_shlibs_GCJ=no
16876 ;;
16877 esac
16878 fi
16879 ;;
16880
16881 dgux*)
16882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16883 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16884 hardcode_shlibpath_var_GCJ=no
16885 ;;
16886
16887 freebsd1*)
16888 ld_shlibs_GCJ=no
16889 ;;
16890
16891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16892 # support. Future versions do this automatically, but an explicit c++rt0.o
16893 # does not break anything, and helps significantly (at the cost of a little
16894 # extra space).
16895 freebsd2.2*)
16896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16897 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16898 hardcode_direct_GCJ=yes
16899 hardcode_shlibpath_var_GCJ=no
16900 ;;
16901
16902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16903 freebsd2*)
16904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_direct_GCJ=yes
16906 hardcode_minus_L_GCJ=yes
16907 hardcode_shlibpath_var_GCJ=no
16908 ;;
16909
16910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16911 freebsd* | kfreebsd*-gnu | dragonfly*)
16912 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16914 hardcode_direct_GCJ=yes
16915 hardcode_shlibpath_var_GCJ=no
16916 ;;
16917
16918 hpux9*)
16919 if test "$GCC" = yes; then
16920 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'
16921 else
16922 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'
16923 fi
16924 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16925 hardcode_libdir_separator_GCJ=:
16926 hardcode_direct_GCJ=yes
16927
16928 # hardcode_minus_L: Not really in the search PATH,
16929 # but as the default location of the library.
16930 hardcode_minus_L_GCJ=yes
16931 export_dynamic_flag_spec_GCJ='${wl}-E'
16932 ;;
16933
16934 hpux10*)
16935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16936 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16937 else
16938 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16939 fi
16940 if test "$with_gnu_ld" = no; then
16941 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16942 hardcode_libdir_separator_GCJ=:
16943
16944 hardcode_direct_GCJ=yes
16945 export_dynamic_flag_spec_GCJ='${wl}-E'
16946
16947 # hardcode_minus_L: Not really in the search PATH,
16948 # but as the default location of the library.
16949 hardcode_minus_L_GCJ=yes
16950 fi
16951 ;;
16952
16953 hpux11*)
16954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16955 case $host_cpu in
16956 hppa*64*)
16957 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16958 ;;
16959 ia64*)
16960 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16961 ;;
16962 *)
16963 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16964 ;;
16965 esac
16966 else
16967 case $host_cpu in
16968 hppa*64*)
16969 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16970 ;;
16971 ia64*)
16972 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16973 ;;
16974 *)
16975 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16976 ;;
16977 esac
16978 fi
16979 if test "$with_gnu_ld" = no; then
16980 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16981 hardcode_libdir_separator_GCJ=:
16982
16983 case $host_cpu in
16984 hppa*64*|ia64*)
16985 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16986 hardcode_direct_GCJ=no
16987 hardcode_shlibpath_var_GCJ=no
16988 ;;
16989 *)
16990 hardcode_direct_GCJ=yes
16991 export_dynamic_flag_spec_GCJ='${wl}-E'
16992
16993 # hardcode_minus_L: Not really in the search PATH,
16994 # but as the default location of the library.
16995 hardcode_minus_L_GCJ=yes
16996 ;;
16997 esac
16998 fi
16999 ;;
17000
17001 irix5* | irix6* | nonstopux*)
17002 if test "$GCC" = yes; then
17003 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'
17004 else
17005 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'
17006 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17007 fi
17008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17009 hardcode_libdir_separator_GCJ=:
17010 link_all_deplibs_GCJ=yes
17011 ;;
17012
17013 netbsd*)
17014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17015 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17016 else
17017 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17018 fi
17019 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17020 hardcode_direct_GCJ=yes
17021 hardcode_shlibpath_var_GCJ=no
17022 ;;
17023
17024 newsos6)
17025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_direct_GCJ=yes
17027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17028 hardcode_libdir_separator_GCJ=:
17029 hardcode_shlibpath_var_GCJ=no
17030 ;;
17031
17032 openbsd*)
17033 hardcode_direct_GCJ=yes
17034 hardcode_shlibpath_var_GCJ=no
17035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17036 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17039 export_dynamic_flag_spec_GCJ='${wl}-E'
17040 else
17041 case $host_os in
17042 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17044 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17045 ;;
17046 *)
17047 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17049 ;;
17050 esac
17051 fi
17052 ;;
17053
17054 os2*)
17055 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17056 hardcode_minus_L_GCJ=yes
17057 allow_undefined_flag_GCJ=unsupported
17058 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'
17059 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17060 ;;
17061
17062 osf3*)
17063 if test "$GCC" = yes; then
17064 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17065 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'
17066 else
17067 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17068 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'
17069 fi
17070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17071 hardcode_libdir_separator_GCJ=:
17072 ;;
17073
17074 osf4* | osf5*) # as osf3* with the addition of -msym flag
17075 if test "$GCC" = yes; then
17076 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17077 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'
17078 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17079 else
17080 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17081 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'
17082 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~
17083 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17084
17085 # Both c and cxx compiler support -rpath directly
17086 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17087 fi
17088 hardcode_libdir_separator_GCJ=:
17089 ;;
17090
17091 solaris*)
17092 no_undefined_flag_GCJ=' -z text'
17093 if test "$GCC" = yes; then
17094 wlarc='${wl}'
17095 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17097 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17098 else
17099 wlarc=''
17100 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17101 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17103 fi
17104 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17105 hardcode_shlibpath_var_GCJ=no
17106 case $host_os in
17107 solaris2.[0-5] | solaris2.[0-5].*) ;;
17108 *)
17109 # The compiler driver will combine linker options so we
17110 # cannot just pass the convience library names through
17111 # without $wl, iff we do not link with $LD.
17112 # Luckily, gcc supports the same syntax we need for Sun Studio.
17113 # Supported since Solaris 2.6 (maybe 2.5.1?)
17114 case $wlarc in
17115 '')
17116 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17117 *)
17118 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17119 esac ;;
17120 esac
17121 link_all_deplibs_GCJ=yes
17122 ;;
17123
17124 sunos4*)
17125 if test "x$host_vendor" = xsequent; then
17126 # Use $CC to link under sequent, because it throws in some extra .o
17127 # files that make .init and .fini sections work.
17128 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17129 else
17130 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17131 fi
17132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17133 hardcode_direct_GCJ=yes
17134 hardcode_minus_L_GCJ=yes
17135 hardcode_shlibpath_var_GCJ=no
17136 ;;
17137
17138 sysv4)
17139 case $host_vendor in
17140 sni)
17141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17142 hardcode_direct_GCJ=yes # is this really true???
17143 ;;
17144 siemens)
17145 ## LD is ld it makes a PLAMLIB
17146 ## CC just makes a GrossModule.
17147 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17148 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17149 hardcode_direct_GCJ=no
17150 ;;
17151 motorola)
17152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17154 ;;
17155 esac
17156 runpath_var='LD_RUN_PATH'
17157 hardcode_shlibpath_var_GCJ=no
17158 ;;
17159
17160 sysv4.3*)
17161 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17162 hardcode_shlibpath_var_GCJ=no
17163 export_dynamic_flag_spec_GCJ='-Bexport'
17164 ;;
17165
17166 sysv4*MP*)
17167 if test -d /usr/nec; then
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_shlibpath_var_GCJ=no
17170 runpath_var=LD_RUN_PATH
17171 hardcode_runpath_var=yes
17172 ld_shlibs_GCJ=yes
17173 fi
17174 ;;
17175
17176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17177 no_undefined_flag_GCJ='${wl}-z,text'
17178 archive_cmds_need_lc_GCJ=no
17179 hardcode_shlibpath_var_GCJ=no
17180 runpath_var='LD_RUN_PATH'
17181
17182 if test "$GCC" = yes; then
17183 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17184 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17185 else
17186 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17187 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17188 fi
17189 ;;
17190
17191 sysv5* | sco3.2v5* | sco5v6*)
17192 # Note: We can NOT use -z defs as we might desire, because we do not
17193 # link with -lc, and that would cause any symbols used from libc to
17194 # always be unresolved, which means just about no library would
17195 # ever link correctly. If we're not using GNU ld we use -z text
17196 # though, which does catch some bad symbols but isn't as heavy-handed
17197 # as -z defs.
17198 no_undefined_flag_GCJ='${wl}-z,text'
17199 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17200 archive_cmds_need_lc_GCJ=no
17201 hardcode_shlibpath_var_GCJ=no
17202 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17203 hardcode_libdir_separator_GCJ=':'
17204 link_all_deplibs_GCJ=yes
17205 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17206 runpath_var='LD_RUN_PATH'
17207
17208 if test "$GCC" = yes; then
17209 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17210 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17211 else
17212 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17213 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17214 fi
17215 ;;
17216
17217 uts4*)
17218 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220 hardcode_shlibpath_var_GCJ=no
17221 ;;
17222
17223 *)
17224 ld_shlibs_GCJ=no
17225 ;;
17226 esac
17227 fi
17228
17229echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17230echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17231test "$ld_shlibs_GCJ" = no && can_build_shared=no
17232
17233#
17234# Do we need to explicitly link libc?
17235#
17236case "x$archive_cmds_need_lc_GCJ" in
17237x|xyes)
17238 # Assume -lc should be added
17239 archive_cmds_need_lc_GCJ=yes
17240
17241 if test "$enable_shared" = yes && test "$GCC" = yes; then
17242 case $archive_cmds_GCJ in
17243 *'~'*)
17244 # FIXME: we may have to deal with multi-command sequences.
17245 ;;
17246 '$CC '*)
17247 # Test whether the compiler implicitly links with -lc since on some
17248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17249 # to ld, don't add -lc before -lgcc.
17250 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17251echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17252 $rm conftest*
17253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17254
17255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17256 (eval $ac_compile) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } 2>conftest.err; then
17260 soname=conftest
17261 lib=conftest
17262 libobjs=conftest.$ac_objext
17263 deplibs=
17264 wl=$lt_prog_compiler_wl_GCJ
17265 pic_flag=$lt_prog_compiler_pic_GCJ
17266 compiler_flags=-v
17267 linker_flags=-v
17268 verstring=
17269 output_objdir=.
17270 libname=conftest
17271 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17272 allow_undefined_flag_GCJ=
17273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17274 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }
17278 then
17279 archive_cmds_need_lc_GCJ=no
17280 else
17281 archive_cmds_need_lc_GCJ=yes
17282 fi
17283 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17284 else
17285 cat conftest.err 1>&5
17286 fi
17287 $rm conftest*
17288 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17289echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17290 ;;
17291 esac
17292 fi
17293 ;;
17294esac
17295
17296echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17297echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17298library_names_spec=
17299libname_spec='lib$name'
17300soname_spec=
17301shrext_cmds=".so"
17302postinstall_cmds=
17303postuninstall_cmds=
17304finish_cmds=
17305finish_eval=
17306shlibpath_var=
17307shlibpath_overrides_runpath=unknown
17308version_type=none
17309dynamic_linker="$host_os ld.so"
17310sys_lib_dlsearch_path_spec="/lib /usr/lib"
17311if test "$GCC" = yes; then
17312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17313 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17314 # if the path contains ";" then we assume it to be the separator
17315 # otherwise default to the standard path separator (i.e. ":") - it is
17316 # assumed that no part of a normal pathname contains ";" but that should
17317 # okay in the real world where ";" in dirpaths is itself problematic.
17318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17319 else
17320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17321 fi
17322else
17323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17324fi
17325need_lib_prefix=unknown
17326hardcode_into_libs=no
17327
17328# when you set need_version to no, make sure it does not cause -set_version
17329# flags to be left without arguments
17330need_version=unknown
17331
17332case $host_os in
17333aix3*)
17334 version_type=linux
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17336 shlibpath_var=LIBPATH
17337
17338 # AIX 3 has no versioning support, so we append a major version to the name.
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 ;;
17341
17342aix4* | aix5*)
17343 version_type=linux
17344 need_lib_prefix=no
17345 need_version=no
17346 hardcode_into_libs=yes
17347 if test "$host_cpu" = ia64; then
17348 # AIX 5 supports IA64
17349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 else
17352 # With GCC up to 2.95.x, collect2 would create an import file
17353 # for dependence libraries. The import file would start with
17354 # the line `#! .'. This would cause the generated library to
17355 # depend on `.', always an invalid library. This was fixed in
17356 # development snapshots of GCC prior to 3.0.
17357 case $host_os in
17358 aix4 | aix4.[01] | aix4.[01].*)
17359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17360 echo ' yes '
17361 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17362 :
17363 else
17364 can_build_shared=no
17365 fi
17366 ;;
17367 esac
17368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17369 # soname into executable. Probably we can add versioning support to
17370 # collect2, so additional links can be useful in future.
17371 if test "$aix_use_runtimelinking" = yes; then
17372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17373 # instead of lib<name>.a to let people know that these are not
17374 # typical AIX shared libraries.
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 else
17377 # We preserve .a as extension for shared libraries through AIX4.2
17378 # and later when we are not doing run time linking.
17379 library_names_spec='${libname}${release}.a $libname.a'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 fi
17382 shlibpath_var=LIBPATH
17383 fi
17384 ;;
17385
17386amigaos*)
17387 library_names_spec='$libname.ixlibrary $libname.a'
17388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17389 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'
17390 ;;
17391
17392beos*)
17393 library_names_spec='${libname}${shared_ext}'
17394 dynamic_linker="$host_os ld.so"
17395 shlibpath_var=LIBRARY_PATH
17396 ;;
17397
17398bsdi[45]*)
17399 version_type=linux
17400 need_version=no
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17407 # the default ld.so.conf also contains /usr/contrib/lib and
17408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17409 # libtool to hard-code these into programs
17410 ;;
17411
17412cygwin* | mingw* | pw32*)
17413 version_type=windows
17414 shrext_cmds=".dll"
17415 need_version=no
17416 need_lib_prefix=no
17417
17418 case $GCC,$host_os in
17419 yes,cygwin* | yes,mingw* | yes,pw32*)
17420 library_names_spec='$libname.dll.a'
17421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17422 postinstall_cmds='base_file=`basename \${file}`~
17423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17424 dldir=$destdir/`dirname \$dlpath`~
17425 test -d \$dldir || mkdir -p \$dldir~
17426 $install_prog $dir/$dlname \$dldir/$dlname~
17427 chmod a+x \$dldir/$dlname'
17428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17429 dlpath=$dir/\$dldll~
17430 $rm \$dlpath'
17431 shlibpath_overrides_runpath=yes
17432
17433 case $host_os in
17434 cygwin*)
17435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17437 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17438 ;;
17439 mingw*)
17440 # MinGW DLLs use traditional 'lib' prefix
17441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17442 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17443 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17444 # It is most probably a Windows format PATH printed by
17445 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17446 # path with ; separators, and with drive letters. We can handle the
17447 # drive letters (cygwin fileutils understands them), so leave them,
17448 # especially as we might pass files found there to a mingw objdump,
17449 # which wouldn't understand a cygwinified path. Ahh.
17450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17451 else
17452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17453 fi
17454 ;;
17455 pw32*)
17456 # pw32 DLLs use 'pw' prefix rather than 'lib'
17457 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17458 ;;
17459 esac
17460 ;;
17461
17462 *)
17463 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17464 ;;
17465 esac
17466 dynamic_linker='Win32 ld.exe'
17467 # FIXME: first we should search . and the directory the executable is in
17468 shlibpath_var=PATH
17469 ;;
17470
17471darwin* | rhapsody*)
17472 dynamic_linker="$host_os dyld"
17473 version_type=darwin
17474 need_lib_prefix=no
17475 need_version=no
17476 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17477 soname_spec='${libname}${release}${major}$shared_ext'
17478 shlibpath_overrides_runpath=yes
17479 shlibpath_var=DYLD_LIBRARY_PATH
17480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17481 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17482 if test "$GCC" = yes; then
17483 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"`
17484 else
17485 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17486 fi
17487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17488 ;;
17489
17490dgux*)
17491 version_type=linux
17492 need_lib_prefix=no
17493 need_version=no
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 shlibpath_var=LD_LIBRARY_PATH
17497 ;;
17498
17499freebsd1*)
17500 dynamic_linker=no
17501 ;;
17502
17503kfreebsd*-gnu)
17504 version_type=linux
17505 need_lib_prefix=no
17506 need_version=no
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=no
17511 hardcode_into_libs=yes
17512 dynamic_linker='GNU ld.so'
17513 ;;
17514
17515freebsd* | dragonfly*)
17516 # DragonFly does not have aout. When/if they implement a new
17517 # versioning mechanism, adjust this.
17518 if test -x /usr/bin/objformat; then
17519 objformat=`/usr/bin/objformat`
17520 else
17521 case $host_os in
17522 freebsd[123]*) objformat=aout ;;
17523 *) objformat=elf ;;
17524 esac
17525 fi
17526 version_type=freebsd-$objformat
17527 case $version_type in
17528 freebsd-elf*)
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17530 need_version=no
17531 need_lib_prefix=no
17532 ;;
17533 freebsd-*)
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17535 need_version=yes
17536 ;;
17537 esac
17538 shlibpath_var=LD_LIBRARY_PATH
17539 case $host_os in
17540 freebsd2*)
17541 shlibpath_overrides_runpath=yes
17542 ;;
17543 freebsd3.[01]* | freebsdelf3.[01]*)
17544 shlibpath_overrides_runpath=yes
17545 hardcode_into_libs=yes
17546 ;;
17547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17549 shlibpath_overrides_runpath=no
17550 hardcode_into_libs=yes
17551 ;;
17552 freebsd*) # from 4.6 on
17553 shlibpath_overrides_runpath=yes
17554 hardcode_into_libs=yes
17555 ;;
17556 esac
17557 ;;
17558
17559gnu*)
17560 version_type=linux
17561 need_lib_prefix=no
17562 need_version=no
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 shlibpath_var=LD_LIBRARY_PATH
17566 hardcode_into_libs=yes
17567 ;;
17568
17569hpux9* | hpux10* | hpux11*)
17570 # Give a soname corresponding to the major version so that dld.sl refuses to
17571 # link against other versions.
17572 version_type=sunos
17573 need_lib_prefix=no
17574 need_version=no
17575 case $host_cpu in
17576 ia64*)
17577 shrext_cmds='.so'
17578 hardcode_into_libs=yes
17579 dynamic_linker="$host_os dld.so"
17580 shlibpath_var=LD_LIBRARY_PATH
17581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583 soname_spec='${libname}${release}${shared_ext}$major'
17584 if test "X$HPUX_IA64_MODE" = X32; then
17585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17586 else
17587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17588 fi
17589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17590 ;;
17591 hppa*64*)
17592 shrext_cmds='.sl'
17593 hardcode_into_libs=yes
17594 dynamic_linker="$host_os dld.sl"
17595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598 soname_spec='${libname}${release}${shared_ext}$major'
17599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17601 ;;
17602 *)
17603 shrext_cmds='.sl'
17604 dynamic_linker="$host_os dld.sl"
17605 shlibpath_var=SHLIB_PATH
17606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 ;;
17610 esac
17611 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17612 postinstall_cmds='chmod 555 $lib'
17613 ;;
17614
17615interix3*)
17616 version_type=linux
17617 need_lib_prefix=no
17618 need_version=no
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath=no
17624 hardcode_into_libs=yes
17625 ;;
17626
17627irix5* | irix6* | nonstopux*)
17628 case $host_os in
17629 nonstopux*) version_type=nonstopux ;;
17630 *)
17631 if test "$lt_cv_prog_gnu_ld" = yes; then
17632 version_type=linux
17633 else
17634 version_type=irix
17635 fi ;;
17636 esac
17637 need_lib_prefix=no
17638 need_version=no
17639 soname_spec='${libname}${release}${shared_ext}$major'
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17641 case $host_os in
17642 irix5* | nonstopux*)
17643 libsuff= shlibsuff=
17644 ;;
17645 *)
17646 case $LD in # libtool.m4 will add one of these switches to LD
17647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17648 libsuff= shlibsuff= libmagic=32-bit;;
17649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17650 libsuff=32 shlibsuff=N32 libmagic=N32;;
17651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17652 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17653 *) libsuff= shlibsuff= libmagic=never-match;;
17654 esac
17655 ;;
17656 esac
17657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17658 shlibpath_overrides_runpath=no
17659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17661 hardcode_into_libs=yes
17662 ;;
17663
17664# No shared lib support for Linux oldld, aout, or coff.
17665linux*oldld* | linux*aout* | linux*coff*)
17666 dynamic_linker=no
17667 ;;
17668
17669# This must be Linux ELF.
17670linux*)
17671 version_type=linux
17672 need_lib_prefix=no
17673 need_version=no
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17677 shlibpath_var=LD_LIBRARY_PATH
17678 shlibpath_overrides_runpath=no
17679 # This implies no fast_install, which is unacceptable.
17680 # Some rework will be needed to allow for fast_install
17681 # before this can be enabled.
17682 hardcode_into_libs=yes
17683
17684 # find out which ABI we are using
17685 libsuff=
17686 case "$host_cpu" in
17687 x86_64*|s390x*|powerpc64*)
17688 echo '#line 17688 "configure"' > conftest.$ac_ext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690 (eval $ac_compile) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; then
17694 case `/usr/bin/file conftest.$ac_objext` in
17695 *64-bit*)
17696 libsuff=64
17697 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17698 ;;
17699 esac
17700 fi
17701 rm -rf conftest*
17702 ;;
17703 esac
17704
17705 # Append ld.so.conf contents to the search path
17706 if test -f /etc/ld.so.conf; then
17707 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17708 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17709 fi
17710
17711 # We used to test for /lib/ld.so.1 and disable shared libraries on
17712 # powerpc, because MkLinux only supported shared libraries with the
17713 # GNU dynamic linker. Since this was broken with cross compilers,
17714 # most powerpc-linux boxes support dynamic linking these days and
17715 # people can always --disable-shared, the test was removed, and we
17716 # assume the GNU/Linux dynamic linker is in use.
17717 dynamic_linker='GNU/Linux ld.so'
17718 ;;
17719
17720knetbsd*-gnu)
17721 version_type=linux
17722 need_lib_prefix=no
17723 need_version=no
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath=no
17728 hardcode_into_libs=yes
17729 dynamic_linker='GNU ld.so'
17730 ;;
17731
17732netbsd*)
17733 version_type=sunos
17734 need_lib_prefix=no
17735 need_version=no
17736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17739 dynamic_linker='NetBSD (a.out) ld.so'
17740 else
17741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 dynamic_linker='NetBSD ld.elf_so'
17744 fi
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=yes
17747 hardcode_into_libs=yes
17748 ;;
17749
17750newsos6)
17751 version_type=linux
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753 shlibpath_var=LD_LIBRARY_PATH
17754 shlibpath_overrides_runpath=yes
17755 ;;
17756
17757nto-qnx*)
17758 version_type=linux
17759 need_lib_prefix=no
17760 need_version=no
17761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17762 soname_spec='${libname}${release}${shared_ext}$major'
17763 shlibpath_var=LD_LIBRARY_PATH
17764 shlibpath_overrides_runpath=yes
17765 ;;
17766
17767openbsd*)
17768 version_type=sunos
17769 sys_lib_dlsearch_path_spec="/usr/lib"
17770 need_lib_prefix=no
17771 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17772 case $host_os in
17773 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17774 *) need_version=no ;;
17775 esac
17776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17778 shlibpath_var=LD_LIBRARY_PATH
17779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17780 case $host_os in
17781 openbsd2.[89] | openbsd2.[89].*)
17782 shlibpath_overrides_runpath=no
17783 ;;
17784 *)
17785 shlibpath_overrides_runpath=yes
17786 ;;
17787 esac
17788 else
17789 shlibpath_overrides_runpath=yes
17790 fi
17791 ;;
17792
17793os2*)
17794 libname_spec='$name'
17795 shrext_cmds=".dll"
17796 need_lib_prefix=no
17797 library_names_spec='$libname${shared_ext} $libname.a'
17798 dynamic_linker='OS/2 ld.exe'
17799 shlibpath_var=LIBPATH
17800 ;;
17801
17802osf3* | osf4* | osf5*)
17803 version_type=osf
17804 need_lib_prefix=no
17805 need_version=no
17806 soname_spec='${libname}${release}${shared_ext}$major'
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17810 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17811 ;;
17812
17813solaris*)
17814 version_type=linux
17815 need_lib_prefix=no
17816 need_version=no
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818 soname_spec='${libname}${release}${shared_ext}$major'
17819 shlibpath_var=LD_LIBRARY_PATH
17820 shlibpath_overrides_runpath=yes
17821 hardcode_into_libs=yes
17822 # ldd complains unless libraries are executable
17823 postinstall_cmds='chmod +x $lib'
17824 ;;
17825
17826sunos4*)
17827 version_type=sunos
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=yes
17832 if test "$with_gnu_ld" = yes; then
17833 need_lib_prefix=no
17834 fi
17835 need_version=yes
17836 ;;
17837
17838sysv4 | sysv4.3*)
17839 version_type=linux
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 soname_spec='${libname}${release}${shared_ext}$major'
17842 shlibpath_var=LD_LIBRARY_PATH
17843 case $host_vendor in
17844 sni)
17845 shlibpath_overrides_runpath=no
17846 need_lib_prefix=no
17847 export_dynamic_flag_spec='${wl}-Blargedynsym'
17848 runpath_var=LD_RUN_PATH
17849 ;;
17850 siemens)
17851 need_lib_prefix=no
17852 ;;
17853 motorola)
17854 need_lib_prefix=no
17855 need_version=no
17856 shlibpath_overrides_runpath=no
17857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17858 ;;
17859 esac
17860 ;;
17861
17862sysv4*MP*)
17863 if test -d /usr/nec ;then
17864 version_type=linux
17865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17866 soname_spec='$libname${shared_ext}.$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 fi
17869 ;;
17870
17871sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17872 version_type=freebsd-elf
17873 need_lib_prefix=no
17874 need_version=no
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 hardcode_into_libs=yes
17879 if test "$with_gnu_ld" = yes; then
17880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17881 shlibpath_overrides_runpath=no
17882 else
17883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17884 shlibpath_overrides_runpath=yes
17885 case $host_os in
17886 sco3.2v5*)
17887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17888 ;;
17889 esac
17890 fi
17891 sys_lib_dlsearch_path_spec='/usr/lib'
17892 ;;
17893
17894uts4*)
17895 version_type=linux
17896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17897 soname_spec='${libname}${release}${shared_ext}$major'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 ;;
17900
17901*)
17902 dynamic_linker=no
17903 ;;
17904esac
17905echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17906echo "${ECHO_T}$dynamic_linker" >&6
17907test "$dynamic_linker" = no && can_build_shared=no
17908
17909variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17910if test "$GCC" = yes; then
17911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17912fi
17913
17914echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17915echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17916hardcode_action_GCJ=
17917if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17918 test -n "$runpath_var_GCJ" || \
17919 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17920
17921 # We can hardcode non-existant directories.
17922 if test "$hardcode_direct_GCJ" != no &&
17923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17924 # have to relink, otherwise we might link with an installed library
17925 # when we should be linking with a yet-to-be-installed one
17926 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17927 test "$hardcode_minus_L_GCJ" != no; then
17928 # Linking always hardcodes the temporary library directory.
17929 hardcode_action_GCJ=relink
17930 else
17931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17932 hardcode_action_GCJ=immediate
17933 fi
17934else
17935 # We cannot hardcode anything, or else we can only hardcode existing
17936 # directories.
17937 hardcode_action_GCJ=unsupported
17938fi
17939echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17940echo "${ECHO_T}$hardcode_action_GCJ" >&6
17941
17942if test "$hardcode_action_GCJ" = relink; then
17943 # Fast installation is not supported
17944 enable_fast_install=no
17945elif test "$shlibpath_overrides_runpath" = yes ||
17946 test "$enable_shared" = no; then
17947 # Fast installation is not necessary
17948 enable_fast_install=needless
17949fi
17950
17951
17952# The else clause should only fire when bootstrapping the
17953# libtool distribution, otherwise you forgot to ship ltmain.sh
17954# with your package, and you will get complaints that there are
17955# no rules to generate ltmain.sh.
17956if test -f "$ltmain"; then
17957 # See if we are running on zsh, and set the options which allow our commands through
17958 # without removal of \ escapes.
17959 if test -n "${ZSH_VERSION+set}" ; then
17960 setopt NO_GLOB_SUBST
17961 fi
17962 # Now quote all the things that may contain metacharacters while being
17963 # careful not to overquote the AC_SUBSTed values. We take copies of the
17964 # variables and quote the copies for generation of the libtool script.
17965 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17966 SED SHELL STRIP \
17967 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17968 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17969 deplibs_check_method reload_flag reload_cmds need_locks \
17970 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17971 lt_cv_sys_global_symbol_to_c_name_address \
17972 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17973 old_postinstall_cmds old_postuninstall_cmds \
17974 compiler_GCJ \
17975 CC_GCJ \
17976 LD_GCJ \
17977 lt_prog_compiler_wl_GCJ \
17978 lt_prog_compiler_pic_GCJ \
17979 lt_prog_compiler_static_GCJ \
17980 lt_prog_compiler_no_builtin_flag_GCJ \
17981 export_dynamic_flag_spec_GCJ \
17982 thread_safe_flag_spec_GCJ \
17983 whole_archive_flag_spec_GCJ \
17984 enable_shared_with_static_runtimes_GCJ \
17985 old_archive_cmds_GCJ \
17986 old_archive_from_new_cmds_GCJ \
17987 predep_objects_GCJ \
17988 postdep_objects_GCJ \
17989 predeps_GCJ \
17990 postdeps_GCJ \
17991 compiler_lib_search_path_GCJ \
17992 archive_cmds_GCJ \
17993 archive_expsym_cmds_GCJ \
17994 postinstall_cmds_GCJ \
17995 postuninstall_cmds_GCJ \
17996 old_archive_from_expsyms_cmds_GCJ \
17997 allow_undefined_flag_GCJ \
17998 no_undefined_flag_GCJ \
17999 export_symbols_cmds_GCJ \
18000 hardcode_libdir_flag_spec_GCJ \
18001 hardcode_libdir_flag_spec_ld_GCJ \
18002 hardcode_libdir_separator_GCJ \
18003 hardcode_automatic_GCJ \
18004 module_cmds_GCJ \
18005 module_expsym_cmds_GCJ \
18006 lt_cv_prog_compiler_c_o_GCJ \
18007 exclude_expsyms_GCJ \
18008 include_expsyms_GCJ; do
18009
18010 case $var in
18011 old_archive_cmds_GCJ | \
18012 old_archive_from_new_cmds_GCJ | \
18013 archive_cmds_GCJ | \
18014 archive_expsym_cmds_GCJ | \
18015 module_cmds_GCJ | \
18016 module_expsym_cmds_GCJ | \
18017 old_archive_from_expsyms_cmds_GCJ | \
18018 export_symbols_cmds_GCJ | \
18019 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18020 postinstall_cmds | postuninstall_cmds | \
18021 old_postinstall_cmds | old_postuninstall_cmds | \
18022 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18023 # Double-quote double-evaled strings.
18024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18025 ;;
18026 *)
18027 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18028 ;;
18029 esac
18030 done
18031
18032 case $lt_echo in
18033 *'\$0 --fallback-echo"')
18034 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18035 ;;
18036 esac
18037
18038cfgfile="$ofile"
18039
18040 cat <<__EOF__ >> "$cfgfile"
18041# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18042
18043# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18044
18045# Shell to use when invoking shell scripts.
18046SHELL=$lt_SHELL
18047
18048# Whether or not to build shared libraries.
18049build_libtool_libs=$enable_shared
18050
18051# Whether or not to build static libraries.
18052build_old_libs=$enable_static
18053
18054# Whether or not to add -lc for building shared libraries.
18055build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18056
18057# Whether or not to disallow shared libs when runtime libs are static
18058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18059
18060# Whether or not to optimize for fast installation.
18061fast_install=$enable_fast_install
18062
18063# The host system.
18064host_alias=$host_alias
18065host=$host
18066host_os=$host_os
18067
18068# The build system.
18069build_alias=$build_alias
18070build=$build
18071build_os=$build_os
18072
18073# An echo program that does not interpret backslashes.
18074echo=$lt_echo
18075
18076# The archiver.
18077AR=$lt_AR
18078AR_FLAGS=$lt_AR_FLAGS
18079
18080# A C compiler.
18081LTCC=$lt_LTCC
18082
18083# LTCC compiler flags.
18084LTCFLAGS=$lt_LTCFLAGS
18085
18086# A language-specific compiler.
18087CC=$lt_compiler_GCJ
18088
18089# Is the compiler the GNU C compiler?
18090with_gcc=$GCC_GCJ
18091
18092gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18093gcc_ver=\`gcc -dumpversion\`
18094
18095# An ERE matcher.
18096EGREP=$lt_EGREP
18097
18098# The linker used to build libraries.
18099LD=$lt_LD_GCJ
18100
18101# Whether we need hard or soft links.
18102LN_S=$lt_LN_S
18103
18104# A BSD-compatible nm program.
18105NM=$lt_NM
18106
18107# A symbol stripping program
18108STRIP=$lt_STRIP
18109
18110# Used to examine libraries when file_magic_cmd begins "file"
18111MAGIC_CMD=$MAGIC_CMD
18112
18113# Used on cygwin: DLL creation program.
18114DLLTOOL="$DLLTOOL"
18115
18116# Used on cygwin: object dumper.
18117OBJDUMP="$OBJDUMP"
18118
18119# Used on cygwin: assembler.
18120AS="$AS"
18121
18122# The name of the directory that contains temporary libtool files.
18123objdir=$objdir
18124
18125# How to create reloadable object files.
18126reload_flag=$lt_reload_flag
18127reload_cmds=$lt_reload_cmds
18128
18129# How to pass a linker flag through the compiler.
18130wl=$lt_lt_prog_compiler_wl_GCJ
18131
18132# Object file suffix (normally "o").
18133objext="$ac_objext"
18134
18135# Old archive suffix (normally "a").
18136libext="$libext"
18137
18138# Shared library suffix (normally ".so").
18139shrext_cmds='$shrext_cmds'
18140
18141# Executable file suffix (normally "").
18142exeext="$exeext"
18143
18144# Additional compiler flags for building library objects.
18145pic_flag=$lt_lt_prog_compiler_pic_GCJ
18146pic_mode=$pic_mode
18147
18148# What is the maximum length of a command?
18149max_cmd_len=$lt_cv_sys_max_cmd_len
18150
18151# Does compiler simultaneously support -c and -o options?
18152compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18153
18154# Must we lock files when doing compilation?
18155need_locks=$lt_need_locks
18156
18157# Do we need the lib prefix for modules?
18158need_lib_prefix=$need_lib_prefix
18159
18160# Do we need a version for libraries?
18161need_version=$need_version
18162
18163# Whether dlopen is supported.
18164dlopen_support=$enable_dlopen
18165
18166# Whether dlopen of programs is supported.
18167dlopen_self=$enable_dlopen_self
18168
18169# Whether dlopen of statically linked programs is supported.
18170dlopen_self_static=$enable_dlopen_self_static
18171
18172# Compiler flag to prevent dynamic linking.
18173link_static_flag=$lt_lt_prog_compiler_static_GCJ
18174
18175# Compiler flag to turn off builtin functions.
18176no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18177
18178# Compiler flag to allow reflexive dlopens.
18179export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18180
18181# Compiler flag to generate shared objects directly from archives.
18182whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18183
18184# Compiler flag to generate thread-safe objects.
18185thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18186
18187# Library versioning type.
18188version_type=$version_type
18189
18190# Format of library name prefix.
18191libname_spec=$lt_libname_spec
18192
18193# List of archive names. First name is the real one, the rest are links.
18194# The last name is the one that the linker finds with -lNAME.
18195library_names_spec=$lt_library_names_spec
18196
18197# The coded name of the library, if different from the real name.
18198soname_spec=$lt_soname_spec
18199
18200# Commands used to build and install an old-style archive.
18201RANLIB=$lt_RANLIB
18202old_archive_cmds=$lt_old_archive_cmds_GCJ
18203old_postinstall_cmds=$lt_old_postinstall_cmds
18204old_postuninstall_cmds=$lt_old_postuninstall_cmds
18205
18206# Create an old-style archive from a shared archive.
18207old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18208
18209# Create a temporary old-style archive to link instead of a shared archive.
18210old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18211
18212# Commands used to build and install a shared archive.
18213archive_cmds=$lt_archive_cmds_GCJ
18214archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18215postinstall_cmds=$lt_postinstall_cmds
18216postuninstall_cmds=$lt_postuninstall_cmds
18217
18218# Commands used to build a loadable module (assumed same as above if empty)
18219module_cmds=$lt_module_cmds_GCJ
18220module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18221
18222# Commands to strip libraries.
18223old_striplib=$lt_old_striplib
18224striplib=$lt_striplib
18225
18226# Dependencies to place before the objects being linked to create a
18227# shared library.
18228predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18229
18230# Dependencies to place after the objects being linked to create a
18231# shared library.
18232postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18233
18234# Dependencies to place before the objects being linked to create a
18235# shared library.
18236predeps=$lt_predeps_GCJ
18237
18238# Dependencies to place after the objects being linked to create a
18239# shared library.
18240postdeps=$lt_postdeps_GCJ
18241
18242# The library search path used internally by the compiler when linking
18243# a shared library.
18244compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18245
18246# Method to check whether dependent libraries are shared objects.
18247deplibs_check_method=$lt_deplibs_check_method
18248
18249# Command to use when deplibs_check_method == file_magic.
18250file_magic_cmd=$lt_file_magic_cmd
18251
18252# Flag that allows shared libraries with undefined symbols to be built.
18253allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18254
18255# Flag that forces no undefined symbols.
18256no_undefined_flag=$lt_no_undefined_flag_GCJ
18257
18258# Commands used to finish a libtool library installation in a directory.
18259finish_cmds=$lt_finish_cmds
18260
18261# Same as above, but a single script fragment to be evaled but not shown.
18262finish_eval=$lt_finish_eval
18263
18264# Take the output of nm and produce a listing of raw symbols and C names.
18265global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18266
18267# Transform the output of nm in a proper C declaration
18268global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18269
18270# Transform the output of nm in a C name address pair
18271global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18272
18273# This is the shared library runtime path variable.
18274runpath_var=$runpath_var
18275
18276# This is the shared library path variable.
18277shlibpath_var=$shlibpath_var
18278
18279# Is shlibpath searched before the hard-coded library search path?
18280shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18281
18282# How to hardcode a shared library path into an executable.
18283hardcode_action=$hardcode_action_GCJ
18284
18285# Whether we should hardcode library paths into libraries.
18286hardcode_into_libs=$hardcode_into_libs
18287
18288# Flag to hardcode \$libdir into a binary during linking.
18289# This must work even if \$libdir does not exist.
18290hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18291
18292# If ld is used when linking, flag to hardcode \$libdir into
18293# a binary during linking. This must work even if \$libdir does
18294# not exist.
18295hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18296
18297# Whether we need a single -rpath flag with a separated argument.
18298hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18299
18300# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18301# resulting binary.
18302hardcode_direct=$hardcode_direct_GCJ
18303
18304# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18305# resulting binary.
18306hardcode_minus_L=$hardcode_minus_L_GCJ
18307
18308# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18309# the resulting binary.
18310hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18311
18312# Set to yes if building a shared library automatically hardcodes DIR into the library
18313# and all subsequent libraries and executables linked against it.
18314hardcode_automatic=$hardcode_automatic_GCJ
18315
18316# Variables whose values should be saved in libtool wrapper scripts and
18317# restored at relink time.
18318variables_saved_for_relink="$variables_saved_for_relink"
18319
18320# Whether libtool must link a program against all its dependency libraries.
18321link_all_deplibs=$link_all_deplibs_GCJ
18322
18323# Compile-time system search path for libraries
18324sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18325
18326# Run-time system search path for libraries
18327sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18328
18329# Fix the shell variable \$srcfile for the compiler.
18330fix_srcfile_path="$fix_srcfile_path_GCJ"
18331
18332# Set to yes if exported symbols are required.
18333always_export_symbols=$always_export_symbols_GCJ
18334
18335# The commands to list exported symbols.
18336export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18337
18338# The commands to extract the exported symbol list from a shared archive.
18339extract_expsyms_cmds=$lt_extract_expsyms_cmds
18340
18341# Symbols that should not be listed in the preloaded symbols.
18342exclude_expsyms=$lt_exclude_expsyms_GCJ
18343
18344# Symbols that must always be exported.
18345include_expsyms=$lt_include_expsyms_GCJ
18346
18347# ### END LIBTOOL TAG CONFIG: $tagname
18348
18349__EOF__
18350
18351
18352else
18353 # If there is no Makefile yet, we rely on a make rule to execute
18354 # `config.status --recheck' to rerun these tests and create the
18355 # libtool script then.
18356 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18357 if test -f "$ltmain_in"; then
18358 test -f Makefile && make "$ltmain"
18359 fi
18360fi
18361
18362
18363ac_ext=c
18364ac_cpp='$CPP $CPPFLAGS'
18365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18367ac_compiler_gnu=$ac_cv_c_compiler_gnu
18368
18369CC="$lt_save_CC"
18370
18371 else
18372 tagname=""
18373 fi
18374 ;;
18375
18376 RC)
18377
18378
18379
18380# Source file extension for RC test sources.
18381ac_ext=rc
18382
18383# Object file extension for compiled RC test sources.
18384objext=o
18385objext_RC=$objext
18386
18387# Code to be used in simple compile tests
18388lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18389
18390# Code to be used in simple link tests
18391lt_simple_link_test_code="$lt_simple_compile_test_code"
18392
18393# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18394
18395# If no C compiler was specified, use CC.
18396LTCC=${LTCC-"$CC"}
18397
18398# If no C compiler flags were specified, use CFLAGS.
18399LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18400
18401# Allow CC to be a program name with arguments.
18402compiler=$CC
18403
18404
18405# save warnings/boilerplate of simple test code
18406ac_outfile=conftest.$ac_objext
18407printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18408eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18409_lt_compiler_boilerplate=`cat conftest.err`
18410$rm conftest*
18411
18412ac_outfile=conftest.$ac_objext
18413printf "$lt_simple_link_test_code" >conftest.$ac_ext
18414eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18415_lt_linker_boilerplate=`cat conftest.err`
18416$rm conftest*
18417
18418
18419# Allow CC to be a program name with arguments.
18420lt_save_CC="$CC"
18421CC=${RC-"windres"}
18422compiler=$CC
18423compiler_RC=$CC
18424for cc_temp in $compiler""; do
18425 case $cc_temp in
18426 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18427 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18428 \-*) ;;
18429 *) break;;
18430 esac
18431done
18432cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18433
18434lt_cv_prog_compiler_c_o_RC=yes
18435
18436# The else clause should only fire when bootstrapping the
18437# libtool distribution, otherwise you forgot to ship ltmain.sh
18438# with your package, and you will get complaints that there are
18439# no rules to generate ltmain.sh.
18440if test -f "$ltmain"; then
18441 # See if we are running on zsh, and set the options which allow our commands through
18442 # without removal of \ escapes.
18443 if test -n "${ZSH_VERSION+set}" ; then
18444 setopt NO_GLOB_SUBST
18445 fi
18446 # Now quote all the things that may contain metacharacters while being
18447 # careful not to overquote the AC_SUBSTed values. We take copies of the
18448 # variables and quote the copies for generation of the libtool script.
18449 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18450 SED SHELL STRIP \
18451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18453 deplibs_check_method reload_flag reload_cmds need_locks \
18454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18455 lt_cv_sys_global_symbol_to_c_name_address \
18456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18457 old_postinstall_cmds old_postuninstall_cmds \
18458 compiler_RC \
18459 CC_RC \
18460 LD_RC \
18461 lt_prog_compiler_wl_RC \
18462 lt_prog_compiler_pic_RC \
18463 lt_prog_compiler_static_RC \
18464 lt_prog_compiler_no_builtin_flag_RC \
18465 export_dynamic_flag_spec_RC \
18466 thread_safe_flag_spec_RC \
18467 whole_archive_flag_spec_RC \
18468 enable_shared_with_static_runtimes_RC \
18469 old_archive_cmds_RC \
18470 old_archive_from_new_cmds_RC \
18471 predep_objects_RC \
18472 postdep_objects_RC \
18473 predeps_RC \
18474 postdeps_RC \
18475 compiler_lib_search_path_RC \
18476 archive_cmds_RC \
18477 archive_expsym_cmds_RC \
18478 postinstall_cmds_RC \
18479 postuninstall_cmds_RC \
18480 old_archive_from_expsyms_cmds_RC \
18481 allow_undefined_flag_RC \
18482 no_undefined_flag_RC \
18483 export_symbols_cmds_RC \
18484 hardcode_libdir_flag_spec_RC \
18485 hardcode_libdir_flag_spec_ld_RC \
18486 hardcode_libdir_separator_RC \
18487 hardcode_automatic_RC \
18488 module_cmds_RC \
18489 module_expsym_cmds_RC \
18490 lt_cv_prog_compiler_c_o_RC \
18491 exclude_expsyms_RC \
18492 include_expsyms_RC; do
18493
18494 case $var in
18495 old_archive_cmds_RC | \
18496 old_archive_from_new_cmds_RC | \
18497 archive_cmds_RC | \
18498 archive_expsym_cmds_RC | \
18499 module_cmds_RC | \
18500 module_expsym_cmds_RC | \
18501 old_archive_from_expsyms_cmds_RC | \
18502 export_symbols_cmds_RC | \
18503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18504 postinstall_cmds | postuninstall_cmds | \
18505 old_postinstall_cmds | old_postuninstall_cmds | \
18506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18507 # Double-quote double-evaled strings.
18508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18509 ;;
18510 *)
18511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18512 ;;
18513 esac
18514 done
18515
18516 case $lt_echo in
18517 *'\$0 --fallback-echo"')
18518 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18519 ;;
18520 esac
18521
18522cfgfile="$ofile"
18523
18524 cat <<__EOF__ >> "$cfgfile"
18525# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18526
18527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18528
18529# Shell to use when invoking shell scripts.
18530SHELL=$lt_SHELL
18531
18532# Whether or not to build shared libraries.
18533build_libtool_libs=$enable_shared
18534
18535# Whether or not to build static libraries.
18536build_old_libs=$enable_static
18537
18538# Whether or not to add -lc for building shared libraries.
18539build_libtool_need_lc=$archive_cmds_need_lc_RC
18540
18541# Whether or not to disallow shared libs when runtime libs are static
18542allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18543
18544# Whether or not to optimize for fast installation.
18545fast_install=$enable_fast_install
18546
18547# The host system.
18548host_alias=$host_alias
18549host=$host
18550host_os=$host_os
18551
18552# The build system.
18553build_alias=$build_alias
18554build=$build
18555build_os=$build_os
18556
18557# An echo program that does not interpret backslashes.
18558echo=$lt_echo
18559
18560# The archiver.
18561AR=$lt_AR
18562AR_FLAGS=$lt_AR_FLAGS
18563
18564# A C compiler.
18565LTCC=$lt_LTCC
18566
18567# LTCC compiler flags.
18568LTCFLAGS=$lt_LTCFLAGS
18569
18570# A language-specific compiler.
18571CC=$lt_compiler_RC
18572
18573# Is the compiler the GNU C compiler?
18574with_gcc=$GCC_RC
18575
18576gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18577gcc_ver=\`gcc -dumpversion\`
18578
18579# An ERE matcher.
18580EGREP=$lt_EGREP
18581
18582# The linker used to build libraries.
18583LD=$lt_LD_RC
18584
18585# Whether we need hard or soft links.
18586LN_S=$lt_LN_S
18587
18588# A BSD-compatible nm program.
18589NM=$lt_NM
18590
18591# A symbol stripping program
18592STRIP=$lt_STRIP
18593
18594# Used to examine libraries when file_magic_cmd begins "file"
18595MAGIC_CMD=$MAGIC_CMD
18596
18597# Used on cygwin: DLL creation program.
18598DLLTOOL="$DLLTOOL"
18599
18600# Used on cygwin: object dumper.
18601OBJDUMP="$OBJDUMP"
18602
18603# Used on cygwin: assembler.
18604AS="$AS"
18605
18606# The name of the directory that contains temporary libtool files.
18607objdir=$objdir
18608
18609# How to create reloadable object files.
18610reload_flag=$lt_reload_flag
18611reload_cmds=$lt_reload_cmds
18612
18613# How to pass a linker flag through the compiler.
18614wl=$lt_lt_prog_compiler_wl_RC
18615
18616# Object file suffix (normally "o").
18617objext="$ac_objext"
18618
18619# Old archive suffix (normally "a").
18620libext="$libext"
18621
18622# Shared library suffix (normally ".so").
18623shrext_cmds='$shrext_cmds'
18624
18625# Executable file suffix (normally "").
18626exeext="$exeext"
18627
18628# Additional compiler flags for building library objects.
18629pic_flag=$lt_lt_prog_compiler_pic_RC
18630pic_mode=$pic_mode
18631
18632# What is the maximum length of a command?
18633max_cmd_len=$lt_cv_sys_max_cmd_len
18634
18635# Does compiler simultaneously support -c and -o options?
18636compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18637
18638# Must we lock files when doing compilation?
18639need_locks=$lt_need_locks
18640
18641# Do we need the lib prefix for modules?
18642need_lib_prefix=$need_lib_prefix
18643
18644# Do we need a version for libraries?
18645need_version=$need_version
18646
18647# Whether dlopen is supported.
18648dlopen_support=$enable_dlopen
18649
18650# Whether dlopen of programs is supported.
18651dlopen_self=$enable_dlopen_self
18652
18653# Whether dlopen of statically linked programs is supported.
18654dlopen_self_static=$enable_dlopen_self_static
18655
18656# Compiler flag to prevent dynamic linking.
18657link_static_flag=$lt_lt_prog_compiler_static_RC
18658
18659# Compiler flag to turn off builtin functions.
18660no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18661
18662# Compiler flag to allow reflexive dlopens.
18663export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18664
18665# Compiler flag to generate shared objects directly from archives.
18666whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18667
18668# Compiler flag to generate thread-safe objects.
18669thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18670
18671# Library versioning type.
18672version_type=$version_type
18673
18674# Format of library name prefix.
18675libname_spec=$lt_libname_spec
18676
18677# List of archive names. First name is the real one, the rest are links.
18678# The last name is the one that the linker finds with -lNAME.
18679library_names_spec=$lt_library_names_spec
18680
18681# The coded name of the library, if different from the real name.
18682soname_spec=$lt_soname_spec
18683
18684# Commands used to build and install an old-style archive.
18685RANLIB=$lt_RANLIB
18686old_archive_cmds=$lt_old_archive_cmds_RC
18687old_postinstall_cmds=$lt_old_postinstall_cmds
18688old_postuninstall_cmds=$lt_old_postuninstall_cmds
18689
18690# Create an old-style archive from a shared archive.
18691old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18692
18693# Create a temporary old-style archive to link instead of a shared archive.
18694old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18695
18696# Commands used to build and install a shared archive.
18697archive_cmds=$lt_archive_cmds_RC
18698archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18699postinstall_cmds=$lt_postinstall_cmds
18700postuninstall_cmds=$lt_postuninstall_cmds
18701
18702# Commands used to build a loadable module (assumed same as above if empty)
18703module_cmds=$lt_module_cmds_RC
18704module_expsym_cmds=$lt_module_expsym_cmds_RC
18705
18706# Commands to strip libraries.
18707old_striplib=$lt_old_striplib
18708striplib=$lt_striplib
18709
18710# Dependencies to place before the objects being linked to create a
18711# shared library.
18712predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18713
18714# Dependencies to place after the objects being linked to create a
18715# shared library.
18716postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18717
18718# Dependencies to place before the objects being linked to create a
18719# shared library.
18720predeps=$lt_predeps_RC
18721
18722# Dependencies to place after the objects being linked to create a
18723# shared library.
18724postdeps=$lt_postdeps_RC
18725
18726# The library search path used internally by the compiler when linking
18727# a shared library.
18728compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18729
18730# Method to check whether dependent libraries are shared objects.
18731deplibs_check_method=$lt_deplibs_check_method
18732
18733# Command to use when deplibs_check_method == file_magic.
18734file_magic_cmd=$lt_file_magic_cmd
18735
18736# Flag that allows shared libraries with undefined symbols to be built.
18737allow_undefined_flag=$lt_allow_undefined_flag_RC
18738
18739# Flag that forces no undefined symbols.
18740no_undefined_flag=$lt_no_undefined_flag_RC
18741
18742# Commands used to finish a libtool library installation in a directory.
18743finish_cmds=$lt_finish_cmds
18744
18745# Same as above, but a single script fragment to be evaled but not shown.
18746finish_eval=$lt_finish_eval
18747
18748# Take the output of nm and produce a listing of raw symbols and C names.
18749global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18750
18751# Transform the output of nm in a proper C declaration
18752global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18753
18754# Transform the output of nm in a C name address pair
18755global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18756
18757# This is the shared library runtime path variable.
18758runpath_var=$runpath_var
18759
18760# This is the shared library path variable.
18761shlibpath_var=$shlibpath_var
18762
18763# Is shlibpath searched before the hard-coded library search path?
18764shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18765
18766# How to hardcode a shared library path into an executable.
18767hardcode_action=$hardcode_action_RC
18768
18769# Whether we should hardcode library paths into libraries.
18770hardcode_into_libs=$hardcode_into_libs
18771
18772# Flag to hardcode \$libdir into a binary during linking.
18773# This must work even if \$libdir does not exist.
18774hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18775
18776# If ld is used when linking, flag to hardcode \$libdir into
18777# a binary during linking. This must work even if \$libdir does
18778# not exist.
18779hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18780
18781# Whether we need a single -rpath flag with a separated argument.
18782hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18783
18784# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18785# resulting binary.
18786hardcode_direct=$hardcode_direct_RC
18787
18788# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18789# resulting binary.
18790hardcode_minus_L=$hardcode_minus_L_RC
18791
18792# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18793# the resulting binary.
18794hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18795
18796# Set to yes if building a shared library automatically hardcodes DIR into the library
18797# and all subsequent libraries and executables linked against it.
18798hardcode_automatic=$hardcode_automatic_RC
18799
18800# Variables whose values should be saved in libtool wrapper scripts and
18801# restored at relink time.
18802variables_saved_for_relink="$variables_saved_for_relink"
18803
18804# Whether libtool must link a program against all its dependency libraries.
18805link_all_deplibs=$link_all_deplibs_RC
18806
18807# Compile-time system search path for libraries
18808sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18809
18810# Run-time system search path for libraries
18811sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18812
18813# Fix the shell variable \$srcfile for the compiler.
18814fix_srcfile_path="$fix_srcfile_path_RC"
18815
18816# Set to yes if exported symbols are required.
18817always_export_symbols=$always_export_symbols_RC
18818
18819# The commands to list exported symbols.
18820export_symbols_cmds=$lt_export_symbols_cmds_RC
18821
18822# The commands to extract the exported symbol list from a shared archive.
18823extract_expsyms_cmds=$lt_extract_expsyms_cmds
18824
18825# Symbols that should not be listed in the preloaded symbols.
18826exclude_expsyms=$lt_exclude_expsyms_RC
18827
18828# Symbols that must always be exported.
18829include_expsyms=$lt_include_expsyms_RC
18830
18831# ### END LIBTOOL TAG CONFIG: $tagname
18832
18833__EOF__
18834
18835
18836else
18837 # If there is no Makefile yet, we rely on a make rule to execute
18838 # `config.status --recheck' to rerun these tests and create the
18839 # libtool script then.
18840 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18841 if test -f "$ltmain_in"; then
18842 test -f Makefile && make "$ltmain"
18843 fi
18844fi
18845
18846
18847ac_ext=c
18848ac_cpp='$CPP $CPPFLAGS'
18849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18851ac_compiler_gnu=$ac_cv_c_compiler_gnu
18852
18853CC="$lt_save_CC"
18854
18855 ;;
18856
18857 *)
18858 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18859echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18860 { (exit 1); exit 1; }; }
18861 ;;
18862 esac
18863
18864 # Append the new tag name to the list of available tags.
18865 if test -n "$tagname" ; then
18866 available_tags="$available_tags $tagname"
18867 fi
18868 fi
18869 done
18870 IFS="$lt_save_ifs"
18871
18872 # Now substitute the updated list of available tags.
18873 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18874 mv "${ofile}T" "$ofile"
18875 chmod +x "$ofile"
18876 else
18877 rm -f "${ofile}T"
18878 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18879echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18880 { (exit 1); exit 1; }; }
18881 fi
18882fi
18883
18884
18885
18886# This can be used to rebuild libtool when needed
18887LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18888
18889# Always use our own libtool.
18890LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18891
18892# Prevent multiple expansion
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915saveLIBS="$LIBS"
18916echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
18917echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
18918if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921 ac_check_lib_save_LIBS=$LIBS
18922LIBS="-lgdbm $LIBS"
18923cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929
18930/* Override any gcc2 internal prototype to avoid an error. */
18931#ifdef __cplusplus
18932extern "C"
18933#endif
18934/* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18936char gdbm_open ();
18937int
18938main ()
18939{
18940gdbm_open ();
18941 ;
18942 return 0;
18943}
18944_ACEOF
18945rm -f conftest.$ac_objext conftest$ac_exeext
18946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947 (eval $ac_link) 2>conftest.er1
18948 ac_status=$?
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_lib_gdbm_gdbm_open=yes
18968else
18969 echo "$as_me: failed program was:" >&5
18970sed 's/^/| /' conftest.$ac_ext >&5
18971
18972ac_cv_lib_gdbm_gdbm_open=no
18973fi
18974rm -f conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976LIBS=$ac_check_lib_save_LIBS
18977fi
18978echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
18979echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
18980if test $ac_cv_lib_gdbm_gdbm_open = yes; then
18981 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
18982fi
18983
18984
18985echo "$as_me:$LINENO: checking for gdbm_open" >&5
18986echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
18987if test "${ac_cv_func_gdbm_open+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989else
18990 cat >conftest.$ac_ext <<_ACEOF
18991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
18996/* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998#define gdbm_open innocuous_gdbm_open
18999
19000/* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char gdbm_open (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19004
19005#ifdef __STDC__
19006# include <limits.h>
19007#else
19008# include <assert.h>
19009#endif
19010
19011#undef gdbm_open
19012
19013/* Override any gcc2 internal prototype to avoid an error. */
19014#ifdef __cplusplus
19015extern "C"
19016{
19017#endif
19018/* We use char because int might match the return type of a gcc2
19019 builtin and then its argument prototype would still apply. */
19020char gdbm_open ();
19021/* The GNU C library defines this for functions which it implements
19022 to always fail with ENOSYS. Some functions are actually named
19023 something starting with __ and the normal name is an alias. */
19024#if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19025choke me
19026#else
19027char (*f) () = gdbm_open;
19028#endif
19029#ifdef __cplusplus
19030}
19031#endif
19032
19033int
19034main ()
19035{
19036return f != gdbm_open;
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext conftest$ac_exeext
19042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19043 (eval $ac_link) 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -z "$ac_c_werror_flag"
19051 || test ! -s conftest.err'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19063 ac_cv_func_gdbm_open=yes
19064else
19065 echo "$as_me: failed program was:" >&5
19066sed 's/^/| /' conftest.$ac_ext >&5
19067
19068ac_cv_func_gdbm_open=no
19069fi
19070rm -f conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072fi
19073echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
19074echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
19075if test $ac_cv_func_gdbm_open = yes; then
19076 FOUND_GDBM=1
19077else
19078 FOUND_GDBM=0
19079fi
19080
19081
19082if test "$FOUND_GDBM" = 1
19083then
19084
19085for ac_func in gdbm_fdesc
19086do
19087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19088echo "$as_me:$LINENO: checking for $ac_func" >&5
19089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19090if eval "test \"\${$as_ac_var+set}\" = set"; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19092else
19093 cat >conftest.$ac_ext <<_ACEOF
19094/* confdefs.h. */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h. */
19099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19101#define $ac_func innocuous_$ac_func
19102
19103/* System header to define __stub macros and hopefully few prototypes,
19104 which can conflict with char $ac_func (); below.
19105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19106 <limits.h> exists even on freestanding compilers. */
19107
19108#ifdef __STDC__
19109# include <limits.h>
19110#else
19111# include <assert.h>
19112#endif
19113
19114#undef $ac_func
19115
19116/* Override any gcc2 internal prototype to avoid an error. */
19117#ifdef __cplusplus
19118extern "C"
19119{
19120#endif
19121/* We use char because int might match the return type of a gcc2
19122 builtin and then its argument prototype would still apply. */
19123char $ac_func ();
19124/* The GNU C library defines this for functions which it implements
19125 to always fail with ENOSYS. Some functions are actually named
19126 something starting with __ and the normal name is an alias. */
19127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19128choke me
19129#else
19130char (*f) () = $ac_func;
19131#endif
19132#ifdef __cplusplus
19133}
19134#endif
19135
19136int
19137main ()
19138{
19139return f != $ac_func;
19140 ;
19141 return 0;
19142}
19143_ACEOF
19144rm -f conftest.$ac_objext conftest$ac_exeext
19145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19146 (eval $ac_link) 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -z "$ac_c_werror_flag"
19154 || test ! -s conftest.err'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest$ac_exeext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 eval "$as_ac_var=yes"
19167else
19168 echo "$as_me: failed program was:" >&5
19169sed 's/^/| /' conftest.$ac_ext >&5
19170
19171eval "$as_ac_var=no"
19172fi
19173rm -f conftest.err conftest.$ac_objext \
19174 conftest$ac_exeext conftest.$ac_ext
19175fi
19176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19177echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19178if test `eval echo '${'$as_ac_var'}'` = yes; then
19179 cat >>confdefs.h <<_ACEOF
19180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19181_ACEOF
19182
19183fi
19184done
19185
19186fi
19187
19188
19189for ac_header in unistd.h fcntl.h
19190do
19191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19192if eval "test \"\${$as_ac_Header+set}\" = set"; then
19193 echo "$as_me:$LINENO: checking for $ac_header" >&5
19194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19195if eval "test \"\${$as_ac_Header+set}\" = set"; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197fi
19198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19200else
19201 # Is the header compilable?
19202echo "$as_me:$LINENO: checking $ac_header usability" >&5
19203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19204cat >conftest.$ac_ext <<_ACEOF
19205/* confdefs.h. */
19206_ACEOF
19207cat confdefs.h >>conftest.$ac_ext
19208cat >>conftest.$ac_ext <<_ACEOF
19209/* end confdefs.h. */
19210$ac_includes_default
19211#include <$ac_header>
19212_ACEOF
19213rm -f conftest.$ac_objext
19214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19215 (eval $ac_compile) 2>conftest.er1
19216 ac_status=$?
19217 grep -v '^ *+' conftest.er1 >conftest.err
19218 rm -f conftest.er1
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 ac_header_compiler=yes
19236else
19237 echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240ac_header_compiler=no
19241fi
19242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19243echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19244echo "${ECHO_T}$ac_header_compiler" >&6
19245
19246# Is the header present?
19247echo "$as_me:$LINENO: checking $ac_header presence" >&5
19248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19249cat >conftest.$ac_ext <<_ACEOF
19250/* confdefs.h. */
19251_ACEOF
19252cat confdefs.h >>conftest.$ac_ext
19253cat >>conftest.$ac_ext <<_ACEOF
19254/* end confdefs.h. */
19255#include <$ac_header>
19256_ACEOF
19257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } >/dev/null; then
19265 if test -s conftest.err; then
19266 ac_cpp_err=$ac_c_preproc_warn_flag
19267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19268 else
19269 ac_cpp_err=
19270 fi
19271else
19272 ac_cpp_err=yes
19273fi
19274if test -z "$ac_cpp_err"; then
19275 ac_header_preproc=yes
19276else
19277 echo "$as_me: failed program was:" >&5
19278sed 's/^/| /' conftest.$ac_ext >&5
19279
19280 ac_header_preproc=no
19281fi
19282rm -f conftest.err conftest.$ac_ext
19283echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19284echo "${ECHO_T}$ac_header_preproc" >&6
19285
19286# So? What about this header?
19287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19288 yes:no: )
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19293 ac_header_preproc=yes
19294 ;;
19295 no:yes:* )
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19299echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19303echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19308 (
19309 cat <<\_ASBOX
19310## -------------------------------------------------- ##
19311## Report this to courier-users@lists.sourceforge.net ##
19312## -------------------------------------------------- ##
19313_ASBOX
19314 ) |
19315 sed "s/^/$as_me: WARNING: /" >&2
19316 ;;
19317esac
19318echo "$as_me:$LINENO: checking for $ac_header" >&5
19319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19320if eval "test \"\${$as_ac_Header+set}\" = set"; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322else
19323 eval "$as_ac_Header=\$ac_header_preproc"
19324fi
19325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19327
19328fi
19329if test `eval echo '${'$as_ac_Header'}'` = yes; then
19330 cat >>confdefs.h <<_ACEOF
19331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19332_ACEOF
19333
19334fi
19335
19336done
19337
19338
19339LIBS="$saveLIBS"
19340
19341
19342
19343
19344
19345if test "$FOUND_GDBM" = 1; then
19346 FOUND_GDBM_TRUE=
19347 FOUND_GDBM_FALSE='#'
19348else
19349 FOUND_GDBM_TRUE='#'
19350 FOUND_GDBM_FALSE=
19351fi
19352
19353
19354
19355echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19356echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19357if test "${ac_cv_c_const+set}" = set; then
19358 echo $ECHO_N "(cached) $ECHO_C" >&6
19359else
19360 cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h. */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h. */
19366
19367int
19368main ()
19369{
19370/* FIXME: Include the comments suggested by Paul. */
19371#ifndef __cplusplus
19372 /* Ultrix mips cc rejects this. */
19373 typedef int charset[2];
19374 const charset x;
19375 /* SunOS 4.1.1 cc rejects this. */
19376 char const *const *ccp;
19377 char **p;
19378 /* NEC SVR4.0.2 mips cc rejects this. */
19379 struct point {int x, y;};
19380 static struct point const zero = {0,0};
19381 /* AIX XL C 1.02.0.0 rejects this.
19382 It does not let you subtract one const X* pointer from another in
19383 an arm of an if-expression whose if-part is not a constant
19384 expression */
19385 const char *g = "string";
19386 ccp = &g + (g ? g-g : 0);
19387 /* HPUX 7.0 cc rejects these. */
19388 ++ccp;
19389 p = (char**) ccp;
19390 ccp = (char const *const *) p;
19391 { /* SCO 3.2v4 cc rejects this. */
19392 char *t;
19393 char const *s = 0 ? (char *) 0 : (char const *) 0;
19394
19395 *t++ = 0;
19396 }
19397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19398 int x[] = {25, 17};
19399 const int *foo = &x[0];
19400 ++foo;
19401 }
19402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19403 typedef const int *iptr;
19404 iptr p = 0;
19405 ++p;
19406 }
19407 { /* AIX XL C 1.02.0.0 rejects this saying
19408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19409 struct s { int j; const int *ap[3]; };
19410 struct s *b; b->j = 5;
19411 }
19412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19413 const int foo = 10;
19414 }
19415#endif
19416
19417 ;
19418 return 0;
19419}
19420_ACEOF
19421rm -f conftest.$ac_objext
19422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423 (eval $ac_compile) 2>conftest.er1
19424 ac_status=$?
19425 grep -v '^ *+' conftest.er1 >conftest.err
19426 rm -f conftest.er1
19427 cat conftest.err >&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -z "$ac_c_werror_flag"
19431 || test ! -s conftest.err'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest.$ac_objext'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_c_const=yes
19444else
19445 echo "$as_me: failed program was:" >&5
19446sed 's/^/| /' conftest.$ac_ext >&5
19447
19448ac_cv_c_const=no
19449fi
19450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19451fi
19452echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19453echo "${ECHO_T}$ac_cv_c_const" >&6
19454if test $ac_cv_c_const = no; then
19455
19456cat >>confdefs.h <<\_ACEOF
19457#define const
19458_ACEOF
19459
19460fi
19461
19462echo "$as_me:$LINENO: checking for size_t" >&5
19463echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19464if test "${ac_cv_type_size_t+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19466else
19467 cat >conftest.$ac_ext <<_ACEOF
19468/* confdefs.h. */
19469_ACEOF
19470cat confdefs.h >>conftest.$ac_ext
19471cat >>conftest.$ac_ext <<_ACEOF
19472/* end confdefs.h. */
19473$ac_includes_default
19474int
19475main ()
19476{
19477if ((size_t *) 0)
19478 return 0;
19479if (sizeof (size_t))
19480 return 0;
19481 ;
19482 return 0;
19483}
19484_ACEOF
19485rm -f conftest.$ac_objext
19486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19487 (eval $ac_compile) 2>conftest.er1
19488 ac_status=$?
19489 grep -v '^ *+' conftest.er1 >conftest.err
19490 rm -f conftest.er1
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } &&
19494 { ac_try='test -z "$ac_c_werror_flag"
19495 || test ! -s conftest.err'
19496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 (eval $ac_try) 2>&5
19498 ac_status=$?
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; } &&
19501 { ac_try='test -s conftest.$ac_objext'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507 ac_cv_type_size_t=yes
19508else
19509 echo "$as_me: failed program was:" >&5
19510sed 's/^/| /' conftest.$ac_ext >&5
19511
19512ac_cv_type_size_t=no
19513fi
19514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19515fi
19516echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19517echo "${ECHO_T}$ac_cv_type_size_t" >&6
19518if test $ac_cv_type_size_t = yes; then
19519 :
19520else
19521
19522cat >>confdefs.h <<_ACEOF
19523#define size_t unsigned
19524_ACEOF
19525
19526fi
19527
19528
19529
19530ac_ext=cc
19531ac_cpp='$CXXCPP $CPPFLAGS'
19532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19535
19536echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
19537echo $ECHO_N "checking if the C++ compiler needs -fhandle-exceptions... $ECHO_C" >&6
19538if test "${ac_cxx_need_handlexceptions+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540else
19541 cat >conftest.$ac_ext <<_ACEOF
19542/* confdefs.h. */
19543_ACEOF
19544cat confdefs.h >>conftest.$ac_ext
19545cat >>conftest.$ac_ext <<_ACEOF
19546/* end confdefs.h. */
19547
19548int
19549main ()
19550{
19551
19552throw;
19553
19554 ;
19555 return 0;
19556}
19557_ACEOF
19558rm -f conftest.$ac_objext
19559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19560 (eval $ac_compile) 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_cxx_werror_flag"
19568 || test ! -s conftest.err'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_cxx_need_handlexceptions=no
19581else
19582 echo "$as_me: failed program was:" >&5
19583sed 's/^/| /' conftest.$ac_ext >&5
19584
19585ac_cxx_need_handlexceptions=yes
19586fi
19587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588
19589fi
19590echo "$as_me:$LINENO: result: $ac_cxx_need_handlexceptions" >&5
19591echo "${ECHO_T}$ac_cxx_need_handlexceptions" >&6
19592
19593if test "$ac_cxx_need_handlexceptions" = "yes"
19594then
19595 case "$CXXFLAGS" in
19596 *handle-exceptions*)
19597 ;;
19598 *)
19599 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
19600 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
19601 ;;
19602 esac
19603fi
19604
19605 ac_config_files="$ac_config_files Makefile"
19606cat >confcache <<\_ACEOF
19607# This file is a shell script that caches the results of configure
19608# tests run on this system so they can be shared between configure
19609# scripts and configure runs, see configure's option --config-cache.
19610# It is not useful on other systems. If it contains results you don't
19611# want to keep, you may remove or edit it.
19612#
19613# config.status only pays attention to the cache file if you give it
19614# the --recheck option to rerun configure.
19615#
19616# `ac_cv_env_foo' variables (set or unset) will be overridden when
19617# loading this file, other *unset* `ac_cv_foo' will be assigned the
19618# following values.
19619
19620_ACEOF
19621
19622# The following way of writing the cache mishandles newlines in values,
19623# but we know of no workaround that is simple, portable, and efficient.
19624# So, don't put newlines in cache variables' values.
19625# Ultrix sh set writes to stderr and can't be redirected directly,
19626# and sets the high bit in the cache file unless we assign to the vars.
19627{
19628 (set) 2>&1 |
19629 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19630 *ac_space=\ *)
19631 # `set' does not quote correctly, so add quotes (double-quote
19632 # substitution turns \\\\ into \\, and sed turns \\ into \).
19633 sed -n \
19634 "s/'/'\\\\''/g;
19635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19636 ;;
19637 *)
19638 # `set' quotes correctly as required by POSIX, so do not add quotes.
19639 sed -n \
19640 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19641 ;;
19642 esac;
19643} |
19644 sed '
19645 t clear
19646 : clear
19647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19648 t end
19649 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19650 : end' >>confcache
19651if diff $cache_file confcache >/dev/null 2>&1; then :; else
19652 if test -w $cache_file; then
19653 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19654 cat confcache >$cache_file
19655 else
19656 echo "not updating unwritable cache $cache_file"
19657 fi
19658fi
19659rm -f confcache
19660
19661test "x$prefix" = xNONE && prefix=$ac_default_prefix
19662# Let make expand exec_prefix.
19663test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19664
19665# VPATH may cause trouble with some makes, so we remove $(srcdir),
19666# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19667# trailing colons and then remove the whole line if VPATH becomes empty
19668# (actually we leave an empty line to preserve line numbers).
19669if test "x$srcdir" = x.; then
19670 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19671s/:*\$(srcdir):*/:/;
19672s/:*\${srcdir}:*/:/;
19673s/:*@srcdir@:*/:/;
19674s/^\([^=]*=[ ]*\):*/\1/;
19675s/:*$//;
19676s/^[^=]*=[ ]*$//;
19677}'
19678fi
19679
19680DEFS=-DHAVE_CONFIG_H
19681
19682ac_libobjs=
19683ac_ltlibobjs=
19684for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19685 # 1. Remove the extension, and $U if already installed.
19686 ac_i=`echo "$ac_i" |
19687 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19688 # 2. Add them.
19689 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19690 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19691done
19692LIBOBJS=$ac_libobjs
19693
19694LTLIBOBJS=$ac_ltlibobjs
19695
19696
19697if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19698 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19699Usually this means the macro was only invoked conditionally." >&5
19700echo "$as_me: error: conditional \"AMDEP\" was never defined.
19701Usually this means the macro was only invoked conditionally." >&2;}
19702 { (exit 1); exit 1; }; }
19703fi
19704if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19705 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19706Usually this means the macro was only invoked conditionally." >&5
19707echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19708Usually this means the macro was only invoked conditionally." >&2;}
19709 { (exit 1); exit 1; }; }
19710fi
19711if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19712 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19713Usually this means the macro was only invoked conditionally." >&5
19714echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19715Usually this means the macro was only invoked conditionally." >&2;}
19716 { (exit 1); exit 1; }; }
19717fi
19718if test -z "${FOUND_GDBM_TRUE}" && test -z "${FOUND_GDBM_FALSE}"; then
19719 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GDBM\" was never defined.
19720Usually this means the macro was only invoked conditionally." >&5
19721echo "$as_me: error: conditional \"FOUND_GDBM\" was never defined.
19722Usually this means the macro was only invoked conditionally." >&2;}
19723 { (exit 1); exit 1; }; }
19724fi
19725
19726: ${CONFIG_STATUS=./config.status}
19727ac_clean_files_save=$ac_clean_files
19728ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19729{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19730echo "$as_me: creating $CONFIG_STATUS" >&6;}
19731cat >$CONFIG_STATUS <<_ACEOF
19732#! $SHELL
19733# Generated by $as_me.
19734# Run this file to recreate the current configuration.
19735# Compiler output produced by configure, useful for debugging
19736# configure, is in config.log if it exists.
19737
19738debug=false
19739ac_cs_recheck=false
19740ac_cs_silent=false
19741SHELL=\${CONFIG_SHELL-$SHELL}
19742_ACEOF
19743
19744cat >>$CONFIG_STATUS <<\_ACEOF
19745## --------------------- ##
19746## M4sh Initialization. ##
19747## --------------------- ##
19748
19749# Be Bourne compatible
19750if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19751 emulate sh
19752 NULLCMD=:
19753 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19754 # is contrary to our usage. Disable this feature.
19755 alias -g '${1+"$@"}'='"$@"'
19756elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19757 set -o posix
19758fi
19759DUALCASE=1; export DUALCASE # for MKS sh
19760
19761# Support unset when possible.
19762if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19763 as_unset=unset
19764else
19765 as_unset=false
19766fi
19767
19768
19769# Work around bugs in pre-3.0 UWIN ksh.
19770$as_unset ENV MAIL MAILPATH
19771PS1='$ '
19772PS2='> '
19773PS4='+ '
19774
19775# NLS nuisances.
19776for as_var in \
19777 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19778 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19779 LC_TELEPHONE LC_TIME
19780do
19781 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19782 eval $as_var=C; export $as_var
19783 else
19784 $as_unset $as_var
19785 fi
19786done
19787
19788# Required to use basename.
19789if expr a : '\(a\)' >/dev/null 2>&1; then
19790 as_expr=expr
19791else
19792 as_expr=false
19793fi
19794
19795if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19796 as_basename=basename
19797else
19798 as_basename=false
19799fi
19800
19801
19802# Name of the executable.
19803as_me=`$as_basename "$0" ||
19804$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19805 X"$0" : 'X\(//\)$' \| \
19806 X"$0" : 'X\(/\)$' \| \
19807 . : '\(.\)' 2>/dev/null ||
19808echo X/"$0" |
19809 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19810 /^X\/\(\/\/\)$/{ s//\1/; q; }
19811 /^X\/\(\/\).*/{ s//\1/; q; }
19812 s/.*/./; q'`
19813
19814
19815# PATH needs CR, and LINENO needs CR and PATH.
19816# Avoid depending upon Character Ranges.
19817as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19819as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19820as_cr_digits='0123456789'
19821as_cr_alnum=$as_cr_Letters$as_cr_digits
19822
19823# The user is always right.
19824if test "${PATH_SEPARATOR+set}" != set; then
19825 echo "#! /bin/sh" >conf$$.sh
19826 echo "exit 0" >>conf$$.sh
19827 chmod +x conf$$.sh
19828 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19829 PATH_SEPARATOR=';'
19830 else
19831 PATH_SEPARATOR=:
19832 fi
19833 rm -f conf$$.sh
19834fi
19835
19836
19837 as_lineno_1=$LINENO
19838 as_lineno_2=$LINENO
19839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19840 test "x$as_lineno_1" != "x$as_lineno_2" &&
19841 test "x$as_lineno_3" = "x$as_lineno_2" || {
19842 # Find who we are. Look in the path if we contain no path at all
19843 # relative or not.
19844 case $0 in
19845 *[\\/]* ) as_myself=$0 ;;
19846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847for as_dir in $PATH
19848do
19849 IFS=$as_save_IFS
19850 test -z "$as_dir" && as_dir=.
19851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19852done
19853
19854 ;;
19855 esac
19856 # We did not find ourselves, most probably we were run as `sh COMMAND'
19857 # in which case we are not to be found in the path.
19858 if test "x$as_myself" = x; then
19859 as_myself=$0
19860 fi
19861 if test ! -f "$as_myself"; then
19862 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19863echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19864 { (exit 1); exit 1; }; }
19865 fi
19866 case $CONFIG_SHELL in
19867 '')
19868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19869for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19870do
19871 IFS=$as_save_IFS
19872 test -z "$as_dir" && as_dir=.
19873 for as_base in sh bash ksh sh5; do
19874 case $as_dir in
19875 /*)
19876 if ("$as_dir/$as_base" -c '
19877 as_lineno_1=$LINENO
19878 as_lineno_2=$LINENO
19879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19880 test "x$as_lineno_1" != "x$as_lineno_2" &&
19881 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19882 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19883 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19884 CONFIG_SHELL=$as_dir/$as_base
19885 export CONFIG_SHELL
19886 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19887 fi;;
19888 esac
19889 done
19890done
19891;;
19892 esac
19893
19894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19895 # uniformly replaced by the line number. The first 'sed' inserts a
19896 # line-number line before each line; the second 'sed' does the real
19897 # work. The second script uses 'N' to pair each line-number line
19898 # with the numbered line, and appends trailing '-' during
19899 # substitution so that $LINENO is not a special case at line end.
19900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19901 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19902 sed '=' <$as_myself |
19903 sed '
19904 N
19905 s,$,-,
19906 : loop
19907 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19908 t loop
19909 s,-$,,
19910 s,^['$as_cr_digits']*\n,,
19911 ' >$as_me.lineno &&
19912 chmod +x $as_me.lineno ||
19913 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19914echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19915 { (exit 1); exit 1; }; }
19916
19917 # Don't try to exec as it changes $[0], causing all sort of problems
19918 # (the dirname of $[0] is not the place where we might find the
19919 # original and so on. Autoconf is especially sensible to this).
19920 . ./$as_me.lineno
19921 # Exit status is that of the last command.
19922 exit
19923}
19924
19925
19926case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19927 *c*,-n*) ECHO_N= ECHO_C='
19928' ECHO_T=' ' ;;
19929 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19930 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19931esac
19932
19933if expr a : '\(a\)' >/dev/null 2>&1; then
19934 as_expr=expr
19935else
19936 as_expr=false
19937fi
19938
19939rm -f conf$$ conf$$.exe conf$$.file
19940echo >conf$$.file
19941if ln -s conf$$.file conf$$ 2>/dev/null; then
19942 # We could just check for DJGPP; but this test a) works b) is more generic
19943 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19944 if test -f conf$$.exe; then
19945 # Don't use ln at all; we don't have any links
19946 as_ln_s='cp -p'
19947 else
19948 as_ln_s='ln -s'
19949 fi
19950elif ln conf$$.file conf$$ 2>/dev/null; then
19951 as_ln_s=ln
19952else
19953 as_ln_s='cp -p'
19954fi
19955rm -f conf$$ conf$$.exe conf$$.file
19956
19957if mkdir -p . 2>/dev/null; then
19958 as_mkdir_p=:
19959else
19960 test -d ./-p && rmdir ./-p
19961 as_mkdir_p=false
19962fi
19963
19964as_executable_p="test -f"
19965
19966# Sed expression to map a string onto a valid CPP name.
19967as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19968
19969# Sed expression to map a string onto a valid variable name.
19970as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19971
19972
19973# IFS
19974# We need space, tab and new line, in precisely that order.
19975as_nl='
19976'
19977IFS=" $as_nl"
19978
19979# CDPATH.
19980$as_unset CDPATH
19981
19982exec 6>&1
19983
19984# Open the log real soon, to keep \$[0] and so on meaningful, and to
19985# report actual input values of CONFIG_FILES etc. instead of their
19986# values after options handling. Logging --version etc. is OK.
19987exec 5>>config.log
19988{
19989 echo
19990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19991## Running $as_me. ##
19992_ASBOX
19993} >&5
19994cat >&5 <<_CSEOF
19995
19996This file was extended by gdbmobj $as_me 0.10, which was
19997generated by GNU Autoconf 2.59. Invocation command line was
19998
19999 CONFIG_FILES = $CONFIG_FILES
20000 CONFIG_HEADERS = $CONFIG_HEADERS
20001 CONFIG_LINKS = $CONFIG_LINKS
20002 CONFIG_COMMANDS = $CONFIG_COMMANDS
20003 $ $0 $@
20004
20005_CSEOF
20006echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20007echo >&5
20008_ACEOF
20009
20010# Files that config.status was made for.
20011if test -n "$ac_config_files"; then
20012 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20013fi
20014
20015if test -n "$ac_config_headers"; then
20016 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20017fi
20018
20019if test -n "$ac_config_links"; then
20020 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20021fi
20022
20023if test -n "$ac_config_commands"; then
20024 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20025fi
20026
20027cat >>$CONFIG_STATUS <<\_ACEOF
20028
20029ac_cs_usage="\
20030\`$as_me' instantiates files from templates according to the
20031current configuration.
20032
20033Usage: $0 [OPTIONS] [FILE]...
20034
20035 -h, --help print this help, then exit
20036 -V, --version print version number, then exit
20037 -q, --quiet do not print progress messages
20038 -d, --debug don't remove temporary files
20039 --recheck update $as_me by reconfiguring in the same conditions
20040 --file=FILE[:TEMPLATE]
20041 instantiate the configuration file FILE
20042 --header=FILE[:TEMPLATE]
20043 instantiate the configuration header FILE
20044
20045Configuration files:
20046$config_files
20047
20048Configuration headers:
20049$config_headers
20050
20051Configuration commands:
20052$config_commands
20053
20054Report bugs to <bug-autoconf@gnu.org>."
20055_ACEOF
20056
20057cat >>$CONFIG_STATUS <<_ACEOF
20058ac_cs_version="\\
20059gdbmobj config.status 0.10
20060configured by $0, generated by GNU Autoconf 2.59,
20061 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20062
20063Copyright (C) 2003 Free Software Foundation, Inc.
20064This config.status script is free software; the Free Software Foundation
20065gives unlimited permission to copy, distribute and modify it."
20066srcdir=$srcdir
20067INSTALL="$INSTALL"
20068_ACEOF
20069
20070cat >>$CONFIG_STATUS <<\_ACEOF
20071# If no file are specified by the user, then we need to provide default
20072# value. By we need to know if files were specified by the user.
20073ac_need_defaults=:
20074while test $# != 0
20075do
20076 case $1 in
20077 --*=*)
20078 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20079 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20080 ac_shift=:
20081 ;;
20082 -*)
20083 ac_option=$1
20084 ac_optarg=$2
20085 ac_shift=shift
20086 ;;
20087 *) # This is not an option, so the user has probably given explicit
20088 # arguments.
20089 ac_option=$1
20090 ac_need_defaults=false;;
20091 esac
20092
20093 case $ac_option in
20094 # Handling of the options.
20095_ACEOF
20096cat >>$CONFIG_STATUS <<\_ACEOF
20097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20098 ac_cs_recheck=: ;;
20099 --version | --vers* | -V )
20100 echo "$ac_cs_version"; exit 0 ;;
20101 --he | --h)
20102 # Conflict between --help and --header
20103 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20104Try \`$0 --help' for more information." >&5
20105echo "$as_me: error: ambiguous option: $1
20106Try \`$0 --help' for more information." >&2;}
20107 { (exit 1); exit 1; }; };;
20108 --help | --hel | -h )
20109 echo "$ac_cs_usage"; exit 0 ;;
20110 --debug | --d* | -d )
20111 debug=: ;;
20112 --file | --fil | --fi | --f )
20113 $ac_shift
20114 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20115 ac_need_defaults=false;;
20116 --header | --heade | --head | --hea )
20117 $ac_shift
20118 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20119 ac_need_defaults=false;;
20120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20122 ac_cs_silent=: ;;
20123
20124 # This is an error.
20125 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20126Try \`$0 --help' for more information." >&5
20127echo "$as_me: error: unrecognized option: $1
20128Try \`$0 --help' for more information." >&2;}
20129 { (exit 1); exit 1; }; } ;;
20130
20131 *) ac_config_targets="$ac_config_targets $1" ;;
20132
20133 esac
20134 shift
20135done
20136
20137ac_configure_extra_args=
20138
20139if $ac_cs_silent; then
20140 exec 6>/dev/null
20141 ac_configure_extra_args="$ac_configure_extra_args --silent"
20142fi
20143
20144_ACEOF
20145cat >>$CONFIG_STATUS <<_ACEOF
20146if \$ac_cs_recheck; then
20147 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20148 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20149fi
20150
20151_ACEOF
20152
20153cat >>$CONFIG_STATUS <<_ACEOF
20154#
20155# INIT-COMMANDS section.
20156#
20157
20158AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20159
20160_ACEOF
20161
20162
20163
20164cat >>$CONFIG_STATUS <<\_ACEOF
20165for ac_config_target in $ac_config_targets
20166do
20167 case "$ac_config_target" in
20168 # Handling of arguments.
20169 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20170 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20171 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20173echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20174 { (exit 1); exit 1; }; };;
20175 esac
20176done
20177
20178# If the user did not use the arguments to specify the items to instantiate,
20179# then the envvar interface is used. Set only those that are not.
20180# We use the long form for the default assignment because of an extremely
20181# bizarre bug on SunOS 4.1.3.
20182if $ac_need_defaults; then
20183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20185 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20186fi
20187
20188# Have a temporary directory for convenience. Make it in the build tree
20189# simply because there is no reason to put it here, and in addition,
20190# creating and moving files from /tmp can sometimes cause problems.
20191# Create a temporary directory, and hook for its removal unless debugging.
20192$debug ||
20193{
20194 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20195 trap '{ (exit 1); exit 1; }' 1 2 13 15
20196}
20197
20198# Create a (secure) tmp directory for tmp files.
20199
20200{
20201 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20202 test -n "$tmp" && test -d "$tmp"
20203} ||
20204{
20205 tmp=./confstat$$-$RANDOM
20206 (umask 077 && mkdir $tmp)
20207} ||
20208{
20209 echo "$me: cannot create a temporary directory in ." >&2
20210 { (exit 1); exit 1; }
20211}
20212
20213_ACEOF
20214
20215cat >>$CONFIG_STATUS <<_ACEOF
20216
20217#
20218# CONFIG_FILES section.
20219#
20220
20221# No need to generate the scripts if there are no CONFIG_FILES.
20222# This happens for instance when ./config.status config.h
20223if test -n "\$CONFIG_FILES"; then
20224 # Protect against being on the right side of a sed subst in config.status.
20225 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20226 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20227s,@SHELL@,$SHELL,;t t
20228s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20229s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20230s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20231s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20232s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20233s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20234s,@exec_prefix@,$exec_prefix,;t t
20235s,@prefix@,$prefix,;t t
20236s,@program_transform_name@,$program_transform_name,;t t
20237s,@bindir@,$bindir,;t t
20238s,@sbindir@,$sbindir,;t t
20239s,@libexecdir@,$libexecdir,;t t
20240s,@datadir@,$datadir,;t t
20241s,@sysconfdir@,$sysconfdir,;t t
20242s,@sharedstatedir@,$sharedstatedir,;t t
20243s,@localstatedir@,$localstatedir,;t t
20244s,@libdir@,$libdir,;t t
20245s,@includedir@,$includedir,;t t
20246s,@oldincludedir@,$oldincludedir,;t t
20247s,@infodir@,$infodir,;t t
20248s,@mandir@,$mandir,;t t
20249s,@build_alias@,$build_alias,;t t
20250s,@host_alias@,$host_alias,;t t
20251s,@target_alias@,$target_alias,;t t
20252s,@DEFS@,$DEFS,;t t
20253s,@ECHO_C@,$ECHO_C,;t t
20254s,@ECHO_N@,$ECHO_N,;t t
20255s,@ECHO_T@,$ECHO_T,;t t
20256s,@LIBS@,$LIBS,;t t
20257s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20258s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20259s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20260s,@CYGPATH_W@,$CYGPATH_W,;t t
20261s,@PACKAGE@,$PACKAGE,;t t
20262s,@VERSION@,$VERSION,;t t
20263s,@ACLOCAL@,$ACLOCAL,;t t
20264s,@AUTOCONF@,$AUTOCONF,;t t
20265s,@AUTOMAKE@,$AUTOMAKE,;t t
20266s,@AUTOHEADER@,$AUTOHEADER,;t t
20267s,@MAKEINFO@,$MAKEINFO,;t t
20268s,@install_sh@,$install_sh,;t t
20269s,@STRIP@,$STRIP,;t t
20270s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20271s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20272s,@mkdir_p@,$mkdir_p,;t t
20273s,@AWK@,$AWK,;t t
20274s,@SET_MAKE@,$SET_MAKE,;t t
20275s,@am__leading_dot@,$am__leading_dot,;t t
20276s,@AMTAR@,$AMTAR,;t t
20277s,@am__tar@,$am__tar,;t t
20278s,@am__untar@,$am__untar,;t t
20279s,@CC@,$CC,;t t
20280s,@CFLAGS@,$CFLAGS,;t t
20281s,@LDFLAGS@,$LDFLAGS,;t t
20282s,@CPPFLAGS@,$CPPFLAGS,;t t
20283s,@ac_ct_CC@,$ac_ct_CC,;t t
20284s,@EXEEXT@,$EXEEXT,;t t
20285s,@OBJEXT@,$OBJEXT,;t t
20286s,@DEPDIR@,$DEPDIR,;t t
20287s,@am__include@,$am__include,;t t
20288s,@am__quote@,$am__quote,;t t
20289s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20290s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20291s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20292s,@CCDEPMODE@,$CCDEPMODE,;t t
20293s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20294s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20295s,@CPP@,$CPP,;t t
20296s,@EGREP@,$EGREP,;t t
20297s,@CXX@,$CXX,;t t
20298s,@CXXFLAGS@,$CXXFLAGS,;t t
20299s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20300s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20301s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20302s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20303s,@build@,$build,;t t
20304s,@build_cpu@,$build_cpu,;t t
20305s,@build_vendor@,$build_vendor,;t t
20306s,@build_os@,$build_os,;t t
20307s,@host@,$host,;t t
20308s,@host_cpu@,$host_cpu,;t t
20309s,@host_vendor@,$host_vendor,;t t
20310s,@host_os@,$host_os,;t t
20311s,@SED@,$SED,;t t
20312s,@LN_S@,$LN_S,;t t
20313s,@ECHO@,$ECHO,;t t
20314s,@AR@,$AR,;t t
20315s,@ac_ct_AR@,$ac_ct_AR,;t t
20316s,@RANLIB@,$RANLIB,;t t
20317s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20318s,@CXXCPP@,$CXXCPP,;t t
20319s,@F77@,$F77,;t t
20320s,@FFLAGS@,$FFLAGS,;t t
20321s,@ac_ct_F77@,$ac_ct_F77,;t t
20322s,@LIBTOOL@,$LIBTOOL,;t t
20323s,@LIBGDBM@,$LIBGDBM,;t t
20324s,@FOUND_GDBM_TRUE@,$FOUND_GDBM_TRUE,;t t
20325s,@FOUND_GDBM_FALSE@,$FOUND_GDBM_FALSE,;t t
20326s,@LIBOBJS@,$LIBOBJS,;t t
20327s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20328CEOF
20329
20330_ACEOF
20331
20332 cat >>$CONFIG_STATUS <<\_ACEOF
20333 # Split the substitutions into bite-sized pieces for seds with
20334 # small command number limits, like on Digital OSF/1 and HP-UX.
20335 ac_max_sed_lines=48
20336 ac_sed_frag=1 # Number of current file.
20337 ac_beg=1 # First line for current file.
20338 ac_end=$ac_max_sed_lines # Line after last line for current file.
20339 ac_more_lines=:
20340 ac_sed_cmds=
20341 while $ac_more_lines; do
20342 if test $ac_beg -gt 1; then
20343 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20344 else
20345 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20346 fi
20347 if test ! -s $tmp/subs.frag; then
20348 ac_more_lines=false
20349 else
20350 # The purpose of the label and of the branching condition is to
20351 # speed up the sed processing (if there are no `@' at all, there
20352 # is no need to browse any of the substitutions).
20353 # These are the two extra sed commands mentioned above.
20354 (echo ':t
20355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20356 if test -z "$ac_sed_cmds"; then
20357 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20358 else
20359 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20360 fi
20361 ac_sed_frag=`expr $ac_sed_frag + 1`
20362 ac_beg=$ac_end
20363 ac_end=`expr $ac_end + $ac_max_sed_lines`
20364 fi
20365 done
20366 if test -z "$ac_sed_cmds"; then
20367 ac_sed_cmds=cat
20368 fi
20369fi # test -n "$CONFIG_FILES"
20370
20371_ACEOF
20372cat >>$CONFIG_STATUS <<\_ACEOF
20373for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20375 case $ac_file in
20376 - | *:- | *:-:* ) # input from stdin
20377 cat >$tmp/stdin
20378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20382 * ) ac_file_in=$ac_file.in ;;
20383 esac
20384
20385 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20387$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20388 X"$ac_file" : 'X\(//\)[^/]' \| \
20389 X"$ac_file" : 'X\(//\)$' \| \
20390 X"$ac_file" : 'X\(/\)' \| \
20391 . : '\(.\)' 2>/dev/null ||
20392echo X"$ac_file" |
20393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20395 /^X\(\/\/\)$/{ s//\1/; q; }
20396 /^X\(\/\).*/{ s//\1/; q; }
20397 s/.*/./; q'`
20398 { if $as_mkdir_p; then
20399 mkdir -p "$ac_dir"
20400 else
20401 as_dir="$ac_dir"
20402 as_dirs=
20403 while test ! -d "$as_dir"; do
20404 as_dirs="$as_dir $as_dirs"
20405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20406$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20407 X"$as_dir" : 'X\(//\)[^/]' \| \
20408 X"$as_dir" : 'X\(//\)$' \| \
20409 X"$as_dir" : 'X\(/\)' \| \
20410 . : '\(.\)' 2>/dev/null ||
20411echo X"$as_dir" |
20412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20414 /^X\(\/\/\)$/{ s//\1/; q; }
20415 /^X\(\/\).*/{ s//\1/; q; }
20416 s/.*/./; q'`
20417 done
20418 test ! -n "$as_dirs" || mkdir $as_dirs
20419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20420echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20421 { (exit 1); exit 1; }; }; }
20422
20423 ac_builddir=.
20424
20425if test "$ac_dir" != .; then
20426 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20427 # A "../" for each directory in $ac_dir_suffix.
20428 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20429else
20430 ac_dir_suffix= ac_top_builddir=
20431fi
20432
20433case $srcdir in
20434 .) # No --srcdir option. We are building in place.
20435 ac_srcdir=.
20436 if test -z "$ac_top_builddir"; then
20437 ac_top_srcdir=.
20438 else
20439 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20440 fi ;;
20441 [\\/]* | ?:[\\/]* ) # Absolute path.
20442 ac_srcdir=$srcdir$ac_dir_suffix;
20443 ac_top_srcdir=$srcdir ;;
20444 *) # Relative path.
20445 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20446 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20447esac
20448
20449# Do not use `cd foo && pwd` to compute absolute paths, because
20450# the directories may not exist.
20451case `pwd` in
20452.) ac_abs_builddir="$ac_dir";;
20453*)
20454 case "$ac_dir" in
20455 .) ac_abs_builddir=`pwd`;;
20456 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20457 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20458 esac;;
20459esac
20460case $ac_abs_builddir in
20461.) ac_abs_top_builddir=${ac_top_builddir}.;;
20462*)
20463 case ${ac_top_builddir}. in
20464 .) ac_abs_top_builddir=$ac_abs_builddir;;
20465 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20466 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20467 esac;;
20468esac
20469case $ac_abs_builddir in
20470.) ac_abs_srcdir=$ac_srcdir;;
20471*)
20472 case $ac_srcdir in
20473 .) ac_abs_srcdir=$ac_abs_builddir;;
20474 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20475 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20476 esac;;
20477esac
20478case $ac_abs_builddir in
20479.) ac_abs_top_srcdir=$ac_top_srcdir;;
20480*)
20481 case $ac_top_srcdir in
20482 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20483 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20484 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20485 esac;;
20486esac
20487
20488
20489 case $INSTALL in
20490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20491 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20492 esac
20493
20494 if test x"$ac_file" != x-; then
20495 { echo "$as_me:$LINENO: creating $ac_file" >&5
20496echo "$as_me: creating $ac_file" >&6;}
20497 rm -f "$ac_file"
20498 fi
20499 # Let's still pretend it is `configure' which instantiates (i.e., don't
20500 # use $as_me), people would be surprised to read:
20501 # /* config.h. Generated by config.status. */
20502 if test x"$ac_file" = x-; then
20503 configure_input=
20504 else
20505 configure_input="$ac_file. "
20506 fi
20507 configure_input=$configure_input"Generated from `echo $ac_file_in |
20508 sed 's,.*/,,'` by configure."
20509
20510 # First look for the input files in the build tree, otherwise in the
20511 # src tree.
20512 ac_file_inputs=`IFS=:
20513 for f in $ac_file_in; do
20514 case $f in
20515 -) echo $tmp/stdin ;;
20516 [\\/$]*)
20517 # Absolute (can't be DOS-style, as IFS=:)
20518 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20519echo "$as_me: error: cannot find input file: $f" >&2;}
20520 { (exit 1); exit 1; }; }
20521 echo "$f";;
20522 *) # Relative
20523 if test -f "$f"; then
20524 # Build tree
20525 echo "$f"
20526 elif test -f "$srcdir/$f"; then
20527 # Source tree
20528 echo "$srcdir/$f"
20529 else
20530 # /dev/null tree
20531 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20532echo "$as_me: error: cannot find input file: $f" >&2;}
20533 { (exit 1); exit 1; }; }
20534 fi;;
20535 esac
20536 done` || { (exit 1); exit 1; }
20537_ACEOF
20538cat >>$CONFIG_STATUS <<_ACEOF
20539 sed "$ac_vpsub
20540$extrasub
20541_ACEOF
20542cat >>$CONFIG_STATUS <<\_ACEOF
20543:t
20544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20545s,@configure_input@,$configure_input,;t t
20546s,@srcdir@,$ac_srcdir,;t t
20547s,@abs_srcdir@,$ac_abs_srcdir,;t t
20548s,@top_srcdir@,$ac_top_srcdir,;t t
20549s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20550s,@builddir@,$ac_builddir,;t t
20551s,@abs_builddir@,$ac_abs_builddir,;t t
20552s,@top_builddir@,$ac_top_builddir,;t t
20553s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20554s,@INSTALL@,$ac_INSTALL,;t t
20555" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20556 rm -f $tmp/stdin
20557 if test x"$ac_file" != x-; then
20558 mv $tmp/out $ac_file
20559 else
20560 cat $tmp/out
20561 rm -f $tmp/out
20562 fi
20563
20564done
20565_ACEOF
20566cat >>$CONFIG_STATUS <<\_ACEOF
20567
20568#
20569# CONFIG_HEADER section.
20570#
20571
20572# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20573# NAME is the cpp macro being defined and VALUE is the value it is being given.
20574#
20575# ac_d sets the value in "#define NAME VALUE" lines.
20576ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20577ac_dB='[ ].*$,\1#\2'
20578ac_dC=' '
20579ac_dD=',;t'
20580# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20581ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20582ac_uB='$,\1#\2define\3'
20583ac_uC=' '
20584ac_uD=',;t'
20585
20586for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20588 case $ac_file in
20589 - | *:- | *:-:* ) # input from stdin
20590 cat >$tmp/stdin
20591 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20593 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20595 * ) ac_file_in=$ac_file.in ;;
20596 esac
20597
20598 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20599echo "$as_me: creating $ac_file" >&6;}
20600
20601 # First look for the input files in the build tree, otherwise in the
20602 # src tree.
20603 ac_file_inputs=`IFS=:
20604 for f in $ac_file_in; do
20605 case $f in
20606 -) echo $tmp/stdin ;;
20607 [\\/$]*)
20608 # Absolute (can't be DOS-style, as IFS=:)
20609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20610echo "$as_me: error: cannot find input file: $f" >&2;}
20611 { (exit 1); exit 1; }; }
20612 # Do quote $f, to prevent DOS paths from being IFS'd.
20613 echo "$f";;
20614 *) # Relative
20615 if test -f "$f"; then
20616 # Build tree
20617 echo "$f"
20618 elif test -f "$srcdir/$f"; then
20619 # Source tree
20620 echo "$srcdir/$f"
20621 else
20622 # /dev/null tree
20623 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20624echo "$as_me: error: cannot find input file: $f" >&2;}
20625 { (exit 1); exit 1; }; }
20626 fi;;
20627 esac
20628 done` || { (exit 1); exit 1; }
20629 # Remove the trailing spaces.
20630 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20631
20632_ACEOF
20633
20634# Transform confdefs.h into two sed scripts, `conftest.defines' and
20635# `conftest.undefs', that substitutes the proper values into
20636# config.h.in to produce config.h. The first handles `#define'
20637# templates, and the second `#undef' templates.
20638# And first: Protect against being on the right side of a sed subst in
20639# config.status. Protect against being in an unquoted here document
20640# in config.status.
20641rm -f conftest.defines conftest.undefs
20642# Using a here document instead of a string reduces the quoting nightmare.
20643# Putting comments in sed scripts is not portable.
20644#
20645# `end' is used to avoid that the second main sed command (meant for
20646# 0-ary CPP macros) applies to n-ary macro definitions.
20647# See the Autoconf documentation for `clear'.
20648cat >confdef2sed.sed <<\_ACEOF
20649s/[\\&,]/\\&/g
20650s,[\\$`],\\&,g
20651t clear
20652: clear
20653s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20654t end
20655s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20656: end
20657_ACEOF
20658# If some macros were called several times there might be several times
20659# the same #defines, which is useless. Nevertheless, we may not want to
20660# sort them, since we want the *last* AC-DEFINE to be honored.
20661uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20662sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20663rm -f confdef2sed.sed
20664
20665# This sed command replaces #undef with comments. This is necessary, for
20666# example, in the case of _POSIX_SOURCE, which is predefined and required
20667# on some systems where configure will not decide to define it.
20668cat >>conftest.undefs <<\_ACEOF
20669s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20670_ACEOF
20671
20672# Break up conftest.defines because some shells have a limit on the size
20673# of here documents, and old seds have small limits too (100 cmds).
20674echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20675echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20676echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20677echo ' :' >>$CONFIG_STATUS
20678rm -f conftest.tail
20679while grep . conftest.defines >/dev/null
20680do
20681 # Write a limited-size here document to $tmp/defines.sed.
20682 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20683 # Speed up: don't consider the non `#define' lines.
20684 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20685 # Work around the forget-to-reset-the-flag bug.
20686 echo 't clr' >>$CONFIG_STATUS
20687 echo ': clr' >>$CONFIG_STATUS
20688 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20689 echo 'CEOF
20690 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20691 rm -f $tmp/in
20692 mv $tmp/out $tmp/in
20693' >>$CONFIG_STATUS
20694 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20695 rm -f conftest.defines
20696 mv conftest.tail conftest.defines
20697done
20698rm -f conftest.defines
20699echo ' fi # grep' >>$CONFIG_STATUS
20700echo >>$CONFIG_STATUS
20701
20702# Break up conftest.undefs because some shells have a limit on the size
20703# of here documents, and old seds have small limits too (100 cmds).
20704echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20705rm -f conftest.tail
20706while grep . conftest.undefs >/dev/null
20707do
20708 # Write a limited-size here document to $tmp/undefs.sed.
20709 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20710 # Speed up: don't consider the non `#undef'
20711 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20712 # Work around the forget-to-reset-the-flag bug.
20713 echo 't clr' >>$CONFIG_STATUS
20714 echo ': clr' >>$CONFIG_STATUS
20715 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20716 echo 'CEOF
20717 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20718 rm -f $tmp/in
20719 mv $tmp/out $tmp/in
20720' >>$CONFIG_STATUS
20721 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20722 rm -f conftest.undefs
20723 mv conftest.tail conftest.undefs
20724done
20725rm -f conftest.undefs
20726
20727cat >>$CONFIG_STATUS <<\_ACEOF
20728 # Let's still pretend it is `configure' which instantiates (i.e., don't
20729 # use $as_me), people would be surprised to read:
20730 # /* config.h. Generated by config.status. */
20731 if test x"$ac_file" = x-; then
20732 echo "/* Generated by configure. */" >$tmp/config.h
20733 else
20734 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20735 fi
20736 cat $tmp/in >>$tmp/config.h
20737 rm -f $tmp/in
20738 if test x"$ac_file" != x-; then
20739 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20741echo "$as_me: $ac_file is unchanged" >&6;}
20742 else
20743 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20744$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20745 X"$ac_file" : 'X\(//\)[^/]' \| \
20746 X"$ac_file" : 'X\(//\)$' \| \
20747 X"$ac_file" : 'X\(/\)' \| \
20748 . : '\(.\)' 2>/dev/null ||
20749echo X"$ac_file" |
20750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20752 /^X\(\/\/\)$/{ s//\1/; q; }
20753 /^X\(\/\).*/{ s//\1/; q; }
20754 s/.*/./; q'`
20755 { if $as_mkdir_p; then
20756 mkdir -p "$ac_dir"
20757 else
20758 as_dir="$ac_dir"
20759 as_dirs=
20760 while test ! -d "$as_dir"; do
20761 as_dirs="$as_dir $as_dirs"
20762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20764 X"$as_dir" : 'X\(//\)[^/]' \| \
20765 X"$as_dir" : 'X\(//\)$' \| \
20766 X"$as_dir" : 'X\(/\)' \| \
20767 . : '\(.\)' 2>/dev/null ||
20768echo X"$as_dir" |
20769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20771 /^X\(\/\/\)$/{ s//\1/; q; }
20772 /^X\(\/\).*/{ s//\1/; q; }
20773 s/.*/./; q'`
20774 done
20775 test ! -n "$as_dirs" || mkdir $as_dirs
20776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20777echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20778 { (exit 1); exit 1; }; }; }
20779
20780 rm -f $ac_file
20781 mv $tmp/config.h $ac_file
20782 fi
20783 else
20784 cat $tmp/config.h
20785 rm -f $tmp/config.h
20786 fi
20787# Compute $ac_file's index in $config_headers.
20788_am_stamp_count=1
20789for _am_header in $config_headers :; do
20790 case $_am_header in
20791 $ac_file | $ac_file:* )
20792 break ;;
20793 * )
20794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20795 esac
20796done
20797echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20798$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20799 X$ac_file : 'X\(//\)[^/]' \| \
20800 X$ac_file : 'X\(//\)$' \| \
20801 X$ac_file : 'X\(/\)' \| \
20802 . : '\(.\)' 2>/dev/null ||
20803echo X$ac_file |
20804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20806 /^X\(\/\/\)$/{ s//\1/; q; }
20807 /^X\(\/\).*/{ s//\1/; q; }
20808 s/.*/./; q'`/stamp-h$_am_stamp_count
20809done
20810_ACEOF
20811cat >>$CONFIG_STATUS <<\_ACEOF
20812
20813#
20814# CONFIG_COMMANDS section.
20815#
20816for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20820$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20821 X"$ac_dest" : 'X\(//\)[^/]' \| \
20822 X"$ac_dest" : 'X\(//\)$' \| \
20823 X"$ac_dest" : 'X\(/\)' \| \
20824 . : '\(.\)' 2>/dev/null ||
20825echo X"$ac_dest" |
20826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20828 /^X\(\/\/\)$/{ s//\1/; q; }
20829 /^X\(\/\).*/{ s//\1/; q; }
20830 s/.*/./; q'`
20831 { if $as_mkdir_p; then
20832 mkdir -p "$ac_dir"
20833 else
20834 as_dir="$ac_dir"
20835 as_dirs=
20836 while test ! -d "$as_dir"; do
20837 as_dirs="$as_dir $as_dirs"
20838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20839$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20840 X"$as_dir" : 'X\(//\)[^/]' \| \
20841 X"$as_dir" : 'X\(//\)$' \| \
20842 X"$as_dir" : 'X\(/\)' \| \
20843 . : '\(.\)' 2>/dev/null ||
20844echo X"$as_dir" |
20845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20847 /^X\(\/\/\)$/{ s//\1/; q; }
20848 /^X\(\/\).*/{ s//\1/; q; }
20849 s/.*/./; q'`
20850 done
20851 test ! -n "$as_dirs" || mkdir $as_dirs
20852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20853echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20854 { (exit 1); exit 1; }; }; }
20855
20856 ac_builddir=.
20857
20858if test "$ac_dir" != .; then
20859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20860 # A "../" for each directory in $ac_dir_suffix.
20861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20862else
20863 ac_dir_suffix= ac_top_builddir=
20864fi
20865
20866case $srcdir in
20867 .) # No --srcdir option. We are building in place.
20868 ac_srcdir=.
20869 if test -z "$ac_top_builddir"; then
20870 ac_top_srcdir=.
20871 else
20872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20873 fi ;;
20874 [\\/]* | ?:[\\/]* ) # Absolute path.
20875 ac_srcdir=$srcdir$ac_dir_suffix;
20876 ac_top_srcdir=$srcdir ;;
20877 *) # Relative path.
20878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20880esac
20881
20882# Do not use `cd foo && pwd` to compute absolute paths, because
20883# the directories may not exist.
20884case `pwd` in
20885.) ac_abs_builddir="$ac_dir";;
20886*)
20887 case "$ac_dir" in
20888 .) ac_abs_builddir=`pwd`;;
20889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20891 esac;;
20892esac
20893case $ac_abs_builddir in
20894.) ac_abs_top_builddir=${ac_top_builddir}.;;
20895*)
20896 case ${ac_top_builddir}. in
20897 .) ac_abs_top_builddir=$ac_abs_builddir;;
20898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20900 esac;;
20901esac
20902case $ac_abs_builddir in
20903.) ac_abs_srcdir=$ac_srcdir;;
20904*)
20905 case $ac_srcdir in
20906 .) ac_abs_srcdir=$ac_abs_builddir;;
20907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20909 esac;;
20910esac
20911case $ac_abs_builddir in
20912.) ac_abs_top_srcdir=$ac_top_srcdir;;
20913*)
20914 case $ac_top_srcdir in
20915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20918 esac;;
20919esac
20920
20921
20922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20923echo "$as_me: executing $ac_dest commands" >&6;}
20924 case $ac_dest in
20925 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20926 # Strip MF so we end up with the name of the file.
20927 mf=`echo "$mf" | sed -e 's/:.*$//'`
20928 # Check whether this is an Automake generated Makefile or not.
20929 # We used to match only the files named `Makefile.in', but
20930 # some people rename them; so instead we look at the file content.
20931 # Grep'ing the first line is not enough: some people post-process
20932 # each Makefile.in and add a new line on top of each file to say so.
20933 # So let's grep whole file.
20934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20935 dirpart=`(dirname "$mf") 2>/dev/null ||
20936$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20937 X"$mf" : 'X\(//\)[^/]' \| \
20938 X"$mf" : 'X\(//\)$' \| \
20939 X"$mf" : 'X\(/\)' \| \
20940 . : '\(.\)' 2>/dev/null ||
20941echo X"$mf" |
20942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20944 /^X\(\/\/\)$/{ s//\1/; q; }
20945 /^X\(\/\).*/{ s//\1/; q; }
20946 s/.*/./; q'`
20947 else
20948 continue
20949 fi
20950 # Extract the definition of DEPDIR, am__include, and am__quote
20951 # from the Makefile without running `make'.
20952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20953 test -z "$DEPDIR" && continue
20954 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20955 test -z "am__include" && continue
20956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20957 # When using ansi2knr, U may be empty or an underscore; expand it
20958 U=`sed -n 's/^U = //p' < "$mf"`
20959 # Find all dependency output files, they are included files with
20960 # $(DEPDIR) in their names. We invoke sed twice because it is the
20961 # simplest approach to changing $(DEPDIR) to its actual value in the
20962 # expansion.
20963 for file in `sed -n "
20964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20966 # Make sure the directory exists.
20967 test -f "$dirpart/$file" && continue
20968 fdir=`(dirname "$file") 2>/dev/null ||
20969$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20970 X"$file" : 'X\(//\)[^/]' \| \
20971 X"$file" : 'X\(//\)$' \| \
20972 X"$file" : 'X\(/\)' \| \
20973 . : '\(.\)' 2>/dev/null ||
20974echo X"$file" |
20975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20977 /^X\(\/\/\)$/{ s//\1/; q; }
20978 /^X\(\/\).*/{ s//\1/; q; }
20979 s/.*/./; q'`
20980 { if $as_mkdir_p; then
20981 mkdir -p $dirpart/$fdir
20982 else
20983 as_dir=$dirpart/$fdir
20984 as_dirs=
20985 while test ! -d "$as_dir"; do
20986 as_dirs="$as_dir $as_dirs"
20987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20989 X"$as_dir" : 'X\(//\)[^/]' \| \
20990 X"$as_dir" : 'X\(//\)$' \| \
20991 X"$as_dir" : 'X\(/\)' \| \
20992 . : '\(.\)' 2>/dev/null ||
20993echo X"$as_dir" |
20994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20996 /^X\(\/\/\)$/{ s//\1/; q; }
20997 /^X\(\/\).*/{ s//\1/; q; }
20998 s/.*/./; q'`
20999 done
21000 test ! -n "$as_dirs" || mkdir $as_dirs
21001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21002echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21003 { (exit 1); exit 1; }; }; }
21004
21005 # echo "creating $dirpart/$file"
21006 echo '# dummy' > "$dirpart/$file"
21007 done
21008done
21009 ;;
21010 esac
21011done
21012_ACEOF
21013
21014cat >>$CONFIG_STATUS <<\_ACEOF
21015
21016{ (exit 0); exit 0; }
21017_ACEOF
21018chmod +x $CONFIG_STATUS
21019ac_clean_files=$ac_clean_files_save
21020
21021
21022# configure is writing to config.log, and then calls config.status.
21023# config.status does its own redirection, appending to config.log.
21024# Unfortunately, on DOS this fails, as config.log is still kept open
21025# by configure, so config.status won't be able to write to it; its
21026# output is simply discarded. So we exec the FD to /dev/null,
21027# effectively closing config.log, so it can be properly (re)opened and
21028# appended to by config.status. When coming back to configure, we
21029# need to make the FD available again.
21030if test "$no_create" != yes; then
21031 ac_cs_success=:
21032 ac_config_status_args=
21033 test "$silent" = yes &&
21034 ac_config_status_args="$ac_config_status_args --quiet"
21035 exec 5>/dev/null
21036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21037 exec 5>>config.log
21038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21039 # would make configure fail if this is the last instruction.
21040 $ac_cs_success || { (exit 1); exit 1; }
21041fi
21042