]> andersk Git - moira.git/blame - configure
Command line printer manipulation client, and build goo.
[moira.git] / configure
CommitLineData
ea0caf4a 1#! /bin/sh
ea0caf4a 2# Guess values for system-dependent variables and create Makefiles.
00274452 3# Generated by GNU Autoconf 2.59.
ea0caf4a 4#
00274452 5# Copyright (C) 2003 Free Software Foundation, Inc.
ea0caf4a 6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
00274452 8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
ea0caf4a 193
00274452 194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
a816420b 244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274$*
275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
00274452 398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
ea0caf4a 408ac_default_prefix=/usr/local
00274452 409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="patchlevel.h"
00274452 429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
a816420b 466ac_subdirs_all="$ac_subdirs_all util/et"
42bcd2e6 467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SO_LDFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB EGREP LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SET_MAKE mrbindir subdirs COM_ERR_SUBDIR COMPILE_ET REG_SVR_DEFS REG_SVR_INCLUDES REG_SVR_LIBS RSAREF_CPPFLAGS RSAREF_LIBS RSAREF_SUBDIRS RSAREF_LIBDEP PRO_C PRO_C_DEFS PRO_C_INCLUDES PRO_C_OPTS SQL_LIBS SVRSUBDIRS JAVA_CPPFLAGS WEBMOIRA_SUBDIRS LDAP_CPPFLAGS LDAP_LIBS WINAD_SUBDIRS AFS_CPPFLAGS AFS_PRO_C_INCLUDES AFS_LIBS AFS_DIR AFS_SUBDIRS AFS_SYNCDIR READLINE_CPPFLAGS READLINE_LIBS CURSES_CPPFLAGS CURSES_LIBS CURSES_SUBDIRS MR_LIBDEP KLIBS LIBOBJS LTLIBOBJS'
00274452 468ac_subst_files=''
ea0caf4a 469
470# Initialize some variables set by options.
00274452 471ac_init_help=
472ac_init_version=false
ea0caf4a 473# The variables have the same names as the options, with
474# dashes changed to underlines.
00274452 475cache_file=/dev/null
ea0caf4a 476exec_prefix=NONE
ea0caf4a 477no_create=
ea0caf4a 478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
ea0caf4a 486verbose=
487x_includes=NONE
488x_libraries=NONE
00274452 489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
ea0caf4a 495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
ea0caf4a 508ac_prev=
509for ac_option
510do
ea0caf4a 511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
00274452 518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
ea0caf4a 519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
00274452 522 case $ac_option in
ea0caf4a 523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
00274452 527 bindir=$ac_optarg ;;
ea0caf4a 528
529 -build | --build | --buil | --bui | --bu)
00274452 530 ac_prev=build_alias ;;
ea0caf4a 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
00274452 532 build_alias=$ac_optarg ;;
ea0caf4a 533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
00274452 539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
ea0caf4a 543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
00274452 548 datadir=$ac_optarg ;;
ea0caf4a 549
550 -disable-* | --disable-*)
00274452 551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ea0caf4a 552 # Reject names that are not valid shell variable names.
00274452 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
ea0caf4a 558
559 -enable-* | --enable-*)
00274452 560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ea0caf4a 561 # Reject names that are not valid shell variable names.
00274452 562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ea0caf4a 568 *) ac_optarg=yes ;;
569 esac
00274452 570 eval "enable_$ac_feature='$ac_optarg'" ;;
ea0caf4a 571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
00274452 579 exec_prefix=$ac_optarg ;;
ea0caf4a 580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
00274452 585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
ea0caf4a 591
592 -host | --host | --hos | --ho)
00274452 593 ac_prev=host_alias ;;
ea0caf4a 594 -host=* | --host=* | --hos=* | --ho=*)
00274452 595 host_alias=$ac_optarg ;;
ea0caf4a 596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
00274452 602 includedir=$ac_optarg ;;
ea0caf4a 603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
00274452 607 infodir=$ac_optarg ;;
ea0caf4a 608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
00274452 612 libdir=$ac_optarg ;;
ea0caf4a 613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
00274452 619 libexecdir=$ac_optarg ;;
ea0caf4a 620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
00274452 628 localstatedir=$ac_optarg ;;
ea0caf4a 629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
00274452 633 mandir=$ac_optarg ;;
ea0caf4a 634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
00274452 640 | --no-cr | --no-c | -n)
ea0caf4a 641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
00274452 654 oldincludedir=$ac_optarg ;;
ea0caf4a 655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
00274452 659 prefix=$ac_optarg ;;
ea0caf4a 660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
00274452 666 program_prefix=$ac_optarg ;;
ea0caf4a 667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
00274452 673 program_suffix=$ac_optarg ;;
ea0caf4a 674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
00274452 690 program_transform_name=$ac_optarg ;;
ea0caf4a 691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
00274452 700 sbindir=$ac_optarg ;;
ea0caf4a 701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
00274452 711 sharedstatedir=$ac_optarg ;;
ea0caf4a 712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
00274452 716 site=$ac_optarg ;;
ea0caf4a 717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
00274452 721 srcdir=$ac_optarg ;;
ea0caf4a 722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
00274452 728 sysconfdir=$ac_optarg ;;
ea0caf4a 729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
00274452 731 ac_prev=target_alias ;;
ea0caf4a 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
00274452 733 target_alias=$ac_optarg ;;
ea0caf4a 734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
00274452 738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
ea0caf4a 740
741 -with-* | --with-*)
00274452 742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ea0caf4a 743 # Reject names that are not valid shell variable names.
00274452 744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
ea0caf4a 747 ac_package=`echo $ac_package| sed 's/-/_/g'`
00274452 748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ea0caf4a 750 *) ac_optarg=yes ;;
751 esac
00274452 752 eval "with_$ac_package='$ac_optarg'" ;;
ea0caf4a 753
754 -without-* | --without-*)
00274452 755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ea0caf4a 756 # Reject names that are not valid shell variable names.
00274452 757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
ea0caf4a 762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
00274452 772 x_includes=$ac_optarg ;;
ea0caf4a 773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
00274452 779 x_libraries=$ac_optarg ;;
ea0caf4a 780
00274452 781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
ea0caf4a 784 ;;
785
00274452 786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
ea0caf4a 796 *)
00274452 797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ea0caf4a 802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
00274452 808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
ea0caf4a 811fi
ea0caf4a 812
00274452 813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
ea0caf4a 823
00274452 824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
ea0caf4a 827do
00274452 828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
ea0caf4a 833 esac
834done
835
00274452 836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
ea0caf4a 853
00274452 854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
ea0caf4a 858
ea0caf4a 859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
00274452 864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
ea0caf4a 876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
00274452 885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
ea0caf4a 887 else
00274452 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
ea0caf4a 890 fi
891fi
00274452 892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
a816420b 928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
00274452 948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956\`configure' configures this package to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012_ACEOF
1013fi
1014
1015if test -n "$ac_init_help"; then
1016
1017 cat <<\_ACEOF
1018
1019Optional Features:
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a816420b 1022 --enable-shared[=PKGS]
1023 build shared libraries [default=yes]
1024 --enable-static[=PKGS]
1025 build static libraries [default=yes]
1026 --enable-fast-install[=PKGS]
1027 optimize for fast installation [default=yes]
1028 --disable-libtool-lock avoid locking (might break parallel builds)
00274452 1029 --enable-athena Enable Athena-specific policy decisions
1030
1031Optional Packages:
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a816420b 1034 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1035 --with-pic try to use only PIC/non-PIC objects [default=use
1036 both]
1037 --with-tags[=TAGS]
1038 include additional configurations [automatic]
00274452 1039 --with-com_err=PREFIX Specify location of com_err
1040 --with-krb4=PREFIX Specify location of krb4
cb974713 1041 --with-krb5=PREFIX Specify location of krb5
00274452 1042 --with-hesiod=PREFIX Specify location of Hesiod
1043 --with-zephyr=PREFIX Specify location of Zephyr
1044 --with-rsaref=PREFIX Specify location of RSAREF
1045 --with-oracle=PREFIX Specify location of Oracle (for server)
1046 --with-java=PREFIX Specify location of Java libs and headers
1047 --with-ldap=PREFIX Specify location of LDAP libs (for server)
1048 --with-afs=PREFIX Specify location of AFS libs (for server)
1049 --with-readline=PREFIX Specify location of GNU readline
1050
1051Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CPP C preprocessor
a816420b 1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
00274452 1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068_ACEOF
1069fi
1070
1071if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1073 ac_popdir=`pwd`
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1076 ac_builddir=.
1077
1078if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082else
1083 ac_dir_suffix= ac_top_builddir=
1084fi
1085
1086case $srcdir in
1087 .) # No --srcdir option. We are building in place.
1088 ac_srcdir=.
1089 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=.
1091 else
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 fi ;;
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1097 *) # Relative path.
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100esac
1101
1102# Do not use `cd foo && pwd` to compute absolute paths, because
1103# the directories may not exist.
1104case `pwd` in
1105.) ac_abs_builddir="$ac_dir";;
1106*)
1107 case "$ac_dir" in
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115*)
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_srcdir=$ac_srcdir;;
1124*)
1125 case $ac_srcdir in
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133*)
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 esac;;
1139esac
1140
1141 cd $ac_dir
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1144 echo
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1147 echo
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1151 echo
1152 $ac_configure --help
1153 else
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 fi
1156 cd $ac_popdir
1157 done
1158fi
1159
1160test -n "$ac_init_help" && exit 0
1161if $ac_init_version; then
1162 cat <<\_ACEOF
1163
1164Copyright (C) 2003 Free Software Foundation, Inc.
1165This configure script is free software; the Free Software Foundation
1166gives unlimited permission to copy, distribute and modify it.
1167_ACEOF
1168 exit 0
1169fi
1170exec 5>config.log
1171cat >&5 <<_ACEOF
1172This file contains any messages produced by compilers while
1173running configure, to aid debugging if configure makes a mistake.
1174
1175It was created by $as_me, which was
1176generated by GNU Autoconf 2.59. Invocation command line was
1177
1178 $ $0 $@
1179
1180_ACEOF
1181{
1182cat <<_ASUNAME
1183## --------- ##
1184## Platform. ##
1185## --------- ##
1186
1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1195
1196/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1200/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1203
1204_ASUNAME
1205
1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207for as_dir in $PATH
1208do
1209 IFS=$as_save_IFS
1210 test -z "$as_dir" && as_dir=.
1211 echo "PATH: $as_dir"
1212done
1213
1214} >&5
1215
1216cat >&5 <<_ACEOF
1217
1218
1219## ----------- ##
1220## Core tests. ##
1221## ----------- ##
1222
1223_ACEOF
1224
1225
1226# Keep a trace of the command line.
1227# Strip out --no-create and --no-recursion so they do not pile up.
1228# Strip out --silent because we don't want to record it for future runs.
1229# Also quote any args containing shell meta-characters.
1230# Make two passes to allow for proper duplicate-argument suppression.
1231ac_configure_args=
1232ac_configure_args0=
1233ac_configure_args1=
1234ac_sep=
1235ac_must_keep_next=false
1236for ac_pass in 1 2
1237do
1238 for ac_arg
1239 do
1240 case $ac_arg in
1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 continue ;;
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 esac
1248 case $ac_pass in
1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250 2)
1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252 if test $ac_must_keep_next = true; then
1253 ac_must_keep_next=false # Got value, back to normal.
1254 else
1255 case $ac_arg in
1256 *=* | --config-cache | -C | -disable-* | --disable-* \
1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259 | -with-* | --with-* | -without-* | --without-* | --x)
1260 case "$ac_configure_args0 " in
1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 esac
1263 ;;
1264 -* ) ac_must_keep_next=true ;;
1265 esac
1266 fi
1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268 # Get rid of the leading space.
1269 ac_sep=" "
1270 ;;
1271 esac
1272 done
1273done
1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277# When interrupted or exit'd, cleanup temporary files, and complete
1278# config.log. We remove comments because anyway the quotes in there
1279# would cause problems or look ugly.
1280# WARNING: Be sure not to use single quotes in there, as some shells,
1281# such as our DU 5.0 friend, will then `close' the trap.
1282trap 'exit_status=$?
1283 # Save into config.log some information that might help in debugging.
1284 {
1285 echo
1286
1287 cat <<\_ASBOX
1288## ---------------- ##
1289## Cache variables. ##
1290## ---------------- ##
1291_ASBOX
1292 echo
1293 # The following way of writing the cache mishandles newlines in values,
1294{
1295 (set) 2>&1 |
1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 *ac_space=\ *)
1298 sed -n \
1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301 ;;
1302 *)
1303 sed -n \
1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305 ;;
1306 esac;
1307}
1308 echo
1309
1310 cat <<\_ASBOX
1311## ----------------- ##
1312## Output variables. ##
1313## ----------------- ##
1314_ASBOX
1315 echo
1316 for ac_var in $ac_subst_vars
1317 do
1318 eval ac_val=$`echo $ac_var`
1319 echo "$ac_var='"'"'$ac_val'"'"'"
1320 done | sort
1321 echo
1322
1323 if test -n "$ac_subst_files"; then
1324 cat <<\_ASBOX
1325## ------------- ##
1326## Output files. ##
1327## ------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_files
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336 fi
1337
1338 if test -s confdefs.h; then
1339 cat <<\_ASBOX
1340## ----------- ##
1341## confdefs.h. ##
1342## ----------- ##
1343_ASBOX
1344 echo
1345 sed "/^$/d" confdefs.h | sort
1346 echo
1347 fi
1348 test "$ac_signal" != 0 &&
1349 echo "$as_me: caught signal $ac_signal"
1350 echo "$as_me: exit $exit_status"
1351 } >&5
1352 rm -f core *.core &&
1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 exit $exit_status
1355 ' 0
1356for ac_signal in 1 2 13 15; do
1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358done
1359ac_signal=0
1360
1361# confdefs.h avoids OS command line length limits that DEFS can exceed.
1362rm -rf conftest* confdefs.h
1363# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364echo >confdefs.h
1365
1366# Predefined preprocessor variables.
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_NAME "$PACKAGE_NAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_VERSION "$PACKAGE_VERSION"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_STRING "$PACKAGE_STRING"
1385_ACEOF
ea0caf4a 1386
00274452 1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390_ACEOF
1391
1392
1393# Let the site file select an alternate cache file if it wants to.
ea0caf4a 1394# Prefer explicitly selected file to automatically selected ones.
1395if test -z "$CONFIG_SITE"; then
1396 if test "x$prefix" != xNONE; then
1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398 else
1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 fi
1401fi
1402for ac_site_file in $CONFIG_SITE; do
1403 if test -r "$ac_site_file"; then
00274452 1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405echo "$as_me: loading site script $ac_site_file" >&6;}
1406 sed 's/^/| /' "$ac_site_file" >&5
ea0caf4a 1407 . "$ac_site_file"
1408 fi
1409done
1410
1411if test -r "$cache_file"; then
00274452 1412 # Some versions of bash will fail to source /dev/null (special
1413 # files actually), so we avoid doing that.
1414 if test -f "$cache_file"; then
1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416echo "$as_me: loading cache $cache_file" >&6;}
1417 case $cache_file in
1418 [\\/]* | ?:[\\/]* ) . $cache_file;;
1419 *) . ./$cache_file;;
1420 esac
1421 fi
ea0caf4a 1422else
00274452 1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424echo "$as_me: creating cache $cache_file" >&6;}
1425 >$cache_file
1426fi
1427
1428# Check that the precious variables saved in the cache have kept the same
1429# value.
1430ac_cache_corrupted=false
1431for ac_var in `(set) 2>&1 |
1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434 eval ac_new_set=\$ac_env_${ac_var}_set
1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436 eval ac_new_val="\$ac_env_${ac_var}_value"
1437 case $ac_old_set,$ac_new_set in
1438 set,)
1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1442 ,set)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,);;
1447 *)
1448 if test "x$ac_old_val" != "x$ac_new_val"; then
1449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1452echo "$as_me: former value: $ac_old_val" >&2;}
1453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1454echo "$as_me: current value: $ac_new_val" >&2;}
1455 ac_cache_corrupted=:
1456 fi;;
1457 esac
1458 # Pass precious variables to config.status.
1459 if test "$ac_new_set" = set; then
1460 case $ac_new_val in
1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463 *) ac_arg=$ac_var=$ac_new_val ;;
1464 esac
1465 case " $ac_configure_args " in
1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468 esac
1469 fi
1470done
1471if $ac_cache_corrupted; then
1472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476 { (exit 1); exit 1; }; }
ea0caf4a 1477fi
1478
1479ac_ext=c
ea0caf4a 1480ac_cpp='$CPP $CPPFLAGS'
00274452 1481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
ea0caf4a 1501
1502
1503
1504
1505
3595c6c0 1506ac_aux_dir=
1507for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508 if test -f $ac_dir/install-sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install-sh -c"
1511 break
1512 elif test -f $ac_dir/install.sh; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/install.sh -c"
1515 break
00274452 1516 elif test -f $ac_dir/shtool; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/shtool install -c"
1519 break
3595c6c0 1520 fi
1521done
1522if test -z "$ac_aux_dir"; then
00274452 1523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525 { (exit 1); exit 1; }; }
3595c6c0 1526fi
00274452 1527ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3595c6c0 1530
1531# Make sure we can run config.sub.
00274452 1532$ac_config_sub sun4 >/dev/null 2>&1 ||
1533 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535 { (exit 1); exit 1; }; }
1536
1537echo "$as_me:$LINENO: checking build system type" >&5
1538echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539if test "${ac_cv_build+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541else
1542 ac_cv_build_alias=$build_alias
1543test -z "$ac_cv_build_alias" &&
1544 ac_cv_build_alias=`$ac_config_guess`
1545test -z "$ac_cv_build_alias" &&
1546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548 { (exit 1); exit 1; }; }
1549ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1553
1554fi
1555echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556echo "${ECHO_T}$ac_cv_build" >&6
1557build=$ac_cv_build
1558build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563echo "$as_me:$LINENO: checking host system type" >&5
1564echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565if test "${ac_cv_host+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_host_alias=$host_alias
1569test -z "$ac_cv_host_alias" &&
1570 ac_cv_host_alias=$ac_cv_build_alias
1571ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
3595c6c0 1575
00274452 1576fi
1577echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578echo "${ECHO_T}$ac_cv_host" >&6
1579host=$ac_cv_host
1580host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3595c6c0 1583
3595c6c0 1584
0bec79fd 1585# SO_LDFLAGS setting below is a great big ick.
a5a4b554 1586# But it beats sucking in libtool for one small part of the source tree.
3595c6c0 1587case $host_os in
1588solaris*)
1589 short_os=solaris
0bec79fd 1590 SO_LDFLAGS="-G"
3595c6c0 1591 ;;
1592irix*)
1593 short_os=irix
0bec79fd 1594 SO_LDFLAGS="-shared"
3595c6c0 1595 ;;
1596linux*)
1597 short_os=linux
0bec79fd 1598 SO_LDFLAGS="-shared"
3595c6c0 1599 ;;
1600esac
1601
ea0caf4a 1602
1603
0bec79fd 1604
ea0caf4a 1605
1606
1607
00274452 1608
1609ac_ext=c
1610ac_cpp='$CPP $CPPFLAGS'
1611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617echo "$as_me:$LINENO: checking for $ac_word" >&5
1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 1621else
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624else
00274452 1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1635 fi
1636done
1637done
1638
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$ac_cv_prog_CC"; then
1652 ac_ct_CC=$CC
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654set dummy gcc; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682echo "${ECHO_T}$ac_ct_CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 CC=$ac_ct_CC
1689else
1690 CC="$ac_cv_prog_CC"
1691fi
1692
1693if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}cc; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
ea0caf4a 1719fi
1720fi
00274452 1721CC=$ac_cv_prog_CC
ea0caf4a 1722if test -n "$CC"; then
00274452 1723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730fi
1731if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "cc", so it can be a program name with args.
1734set dummy cc; ac_word=$2
1735echo "$as_me:$LINENO: checking for $ac_word" >&5
1736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742else
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1753 fi
1754done
1755done
1756
1757fi
1758fi
1759ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762echo "${ECHO_T}$ac_ct_CC" >&6
1763else
1764 echo "$as_me:$LINENO: result: no" >&5
1765echo "${ECHO_T}no" >&6
1766fi
1767
1768 CC=$ac_ct_CC
ea0caf4a 1769else
00274452 1770 CC="$ac_cv_prog_CC"
ea0caf4a 1771fi
1772
00274452 1773fi
ea0caf4a 1774if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776set dummy cc; ac_word=$2
00274452 1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 1781else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784else
ea0caf4a 1785 ac_prog_rejected=no
00274452 1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1795 continue
1796 fi
1797 ac_cv_prog_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
1802done
1803
ea0caf4a 1804if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1807 shift
00274452 1808 if test $# != 0; then
ea0caf4a 1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1812 shift
00274452 1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ea0caf4a 1814 fi
1815fi
1816fi
1817fi
00274452 1818CC=$ac_cv_prog_CC
ea0caf4a 1819if test -n "$CC"; then
00274452 1820 echo "$as_me:$LINENO: result: $CC" >&5
1821echo "${ECHO_T}$CC" >&6
ea0caf4a 1822else
00274452 1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
ea0caf4a 1825fi
1826
00274452 1827fi
1828if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in cl
1831 do
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834echo "$as_me:$LINENO: checking for $ac_word" >&5
1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
ee85084d 1838else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841else
00274452 1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853done
1854done
1855
ee85084d 1856fi
1857fi
00274452 1858CC=$ac_cv_prog_CC
ee85084d 1859if test -n "$CC"; then
00274452 1860 echo "$as_me:$LINENO: result: $CC" >&5
1861echo "${ECHO_T}$CC" >&6
ee85084d 1862else
00274452 1863 echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
ee85084d 1865fi
00274452 1866
1867 test -n "$CC" && break
1868 done
1869fi
1870if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1873do
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875set dummy $ac_prog; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
ee85084d 1894 fi
00274452 1895done
1896done
1897
1898fi
1899fi
1900ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903echo "${ECHO_T}$ac_ct_CC" >&6
1904else
1905 echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
ea0caf4a 1907fi
1908
00274452 1909 test -n "$ac_ct_CC" && break
1910done
ea0caf4a 1911
00274452 1912 CC=$ac_ct_CC
1913fi
1914
1915fi
1916
1917
1918test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1919See \`config.log' for more details." >&5
1920echo "$as_me: error: no acceptable C compiler found in \$PATH
1921See \`config.log' for more details." >&2;}
1922 { (exit 1); exit 1; }; }
1923
1924# Provide some information about the compiler.
1925echo "$as_me:$LINENO:" \
1926 "checking for C compiler version" >&5
1927ac_compiler=`set X $ac_compile; echo $2`
1928{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1929 (eval $ac_compiler --version </dev/null >&5) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1934 (eval $ac_compiler -v </dev/null >&5) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1938{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1939 (eval $ac_compiler -V </dev/null >&5) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }
1943
1944cat >conftest.$ac_ext <<_ACEOF
1945/* confdefs.h. */
1946_ACEOF
1947cat confdefs.h >>conftest.$ac_ext
1948cat >>conftest.$ac_ext <<_ACEOF
1949/* end confdefs.h. */
1950
1951int
1952main ()
1953{
1954
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959ac_clean_files_save=$ac_clean_files
1960ac_clean_files="$ac_clean_files a.out a.exe b.out"
1961# Try to create an executable without -o first, disregard a.out.
1962# It will help us diagnose broken compilers, and finding out an intuition
1963# of exeext.
1964echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1965echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1966ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1967if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1968 (eval $ac_link_default) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 # Find the output, starting from the most likely. This scheme is
1973# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1974# resort.
1975
1976# Be careful to initialize this variable, since it used to be cached.
1977# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1978ac_cv_exeext=
1979# b.out is created by i960 compilers.
1980for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1981do
1982 test -f "$ac_file" || continue
1983 case $ac_file in
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1985 ;;
1986 conftest.$ac_ext )
1987 # This is the source file.
1988 ;;
1989 [ab].out )
1990 # We found the default executable, but exeext='' is most
1991 # certainly right.
1992 break;;
1993 *.* )
1994 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 # FIXME: I believe we export ac_cv_exeext for Libtool,
1996 # but it would be cool to find out if it's true. Does anybody
1997 # maintain Libtool? --akim.
1998 export ac_cv_exeext
1999 break;;
2000 * )
2001 break;;
2002 esac
2003done
2004else
2005 echo "$as_me: failed program was:" >&5
2006sed 's/^/| /' conftest.$ac_ext >&5
2007
2008{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2009See \`config.log' for more details." >&5
2010echo "$as_me: error: C compiler cannot create executables
2011See \`config.log' for more details." >&2;}
2012 { (exit 77); exit 77; }; }
2013fi
2014
2015ac_exeext=$ac_cv_exeext
2016echo "$as_me:$LINENO: result: $ac_file" >&5
2017echo "${ECHO_T}$ac_file" >&6
2018
2019# Check the compiler produces executables we can run. If not, either
2020# the compiler is broken, or we cross compile.
2021echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2022echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2023# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2024# If not cross compiling, check that we can run a simple program.
2025if test "$cross_compiling" != yes; then
2026 if { ac_try='./$ac_file'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2032 cross_compiling=no
ea0caf4a 2033 else
00274452 2034 if test "$cross_compiling" = maybe; then
2035 cross_compiling=yes
2036 else
2037 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2038If you meant to cross compile, use \`--host'.
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: cannot run C compiled programs.
2041If you meant to cross compile, use \`--host'.
2042See \`config.log' for more details." >&2;}
2043 { (exit 1); exit 1; }; }
2044 fi
ea0caf4a 2045 fi
ea0caf4a 2046fi
00274452 2047echo "$as_me:$LINENO: result: yes" >&5
2048echo "${ECHO_T}yes" >&6
2049
2050rm -f a.out a.exe conftest$ac_cv_exeext b.out
2051ac_clean_files=$ac_clean_files_save
2052# Check the compiler produces executables we can run. If not, either
2053# the compiler is broken, or we cross compile.
2054echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2055echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2056echo "$as_me:$LINENO: result: $cross_compiling" >&5
2057echo "${ECHO_T}$cross_compiling" >&6
2058
2059echo "$as_me:$LINENO: checking for suffix of executables" >&5
2060echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2062 (eval $ac_link) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; then
2066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2067# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2068# work properly (i.e., refer to `conftest.exe'), while it won't with
2069# `rm'.
2070for ac_file in conftest.exe conftest conftest.*; do
2071 test -f "$ac_file" || continue
2072 case $ac_file in
2073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 export ac_cv_exeext
2076 break;;
2077 * ) break;;
2078 esac
2079done
ea0caf4a 2080else
00274452 2081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
2086fi
2087
2088rm -f conftest$ac_cv_exeext
2089echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090echo "${ECHO_T}$ac_cv_exeext" >&6
2091
2092rm -f conftest.$ac_ext
2093EXEEXT=$ac_cv_exeext
2094ac_exeext=$EXEEXT
2095echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 cat >conftest.$ac_ext <<_ACEOF
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
2106
2107int
2108main ()
2109{
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115rm -f conftest.o conftest.obj
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122 case $ac_file in
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125 break;;
2126 esac
2127done
2128else
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
2132{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133See \`config.log' for more details." >&5
2134echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2137fi
2138
2139rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140fi
2141echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142echo "${ECHO_T}$ac_cv_objext" >&6
2143OBJEXT=$ac_cv_objext
2144ac_objext=$OBJEXT
2145echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150 cat >conftest.$ac_ext <<_ACEOF
2151/* confdefs.h. */
2152_ACEOF
2153cat confdefs.h >>conftest.$ac_ext
2154cat >>conftest.$ac_ext <<_ACEOF
2155/* end confdefs.h. */
2156
2157int
2158main ()
2159{
2160#ifndef __GNUC__
2161 choke me
2162#endif
ea0caf4a 2163
00274452 2164 ;
2165 return 0;
2166}
2167_ACEOF
2168rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_compiler_gnu=yes
ee85084d 2191else
00274452 2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195ac_compiler_gnu=no
ee85084d 2196fi
00274452 2197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198ac_cv_c_compiler_gnu=$ac_compiler_gnu
ee85084d 2199
00274452 2200fi
2201echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203GCC=`test $ac_compiler_gnu = yes && echo yes`
2204ac_test_CFLAGS=${CFLAGS+set}
2205ac_save_CFLAGS=$CFLAGS
2206CFLAGS="-g"
2207echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2211else
00274452 2212 cat >conftest.$ac_ext <<_ACEOF
2213/* confdefs.h. */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h. */
2218
2219int
2220main ()
2221{
2222
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
ea0caf4a 2249 ac_cv_prog_cc_g=yes
2250else
00274452 2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 2253
00274452 2254ac_cv_prog_cc_g=no
ea0caf4a 2255fi
00274452 2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
ee85084d 2260if test "$ac_test_CFLAGS" = set; then
00274452 2261 CFLAGS=$ac_save_CFLAGS
ee85084d 2262elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
ea0caf4a 2264 CFLAGS="-g -O2"
2265 else
ee85084d 2266 CFLAGS="-g"
ea0caf4a 2267 fi
2268else
ee85084d 2269 if test "$GCC" = yes; then
2270 CFLAGS="-O2"
2271 else
2272 CFLAGS=
2273 fi
ea0caf4a 2274fi
00274452 2275echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280 ac_cv_prog_cc_stdc=no
2281ac_save_CC=$CC
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#include <stdarg.h>
2289#include <stdio.h>
2290#include <sys/types.h>
2291#include <sys/stat.h>
2292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293struct buf { int x; };
2294FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295static char *e (p, i)
2296 char **p;
2297 int i;
2298{
2299 return p[i];
2300}
2301static char *f (char * (*g) (char **, int), char **p, ...)
2302{
2303 char *s;
2304 va_list v;
2305 va_start (v,p);
2306 s = g (p, va_arg (v,int));
2307 va_end (v);
2308 return s;
2309}
2310
2311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320int test (int i, double x);
2321struct s1 {int (*f) (int a);};
2322struct s2 {int (*f) (double a);};
2323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324int argc;
2325char **argv;
2326int
2327main ()
2328{
2329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334# Don't try gcc -ansi; that turns off useful extensions and
2335# breaks some systems' header files.
2336# AIX -qlanglvl=ansi
2337# Ultrix and OSF/1 -std1
2338# HP-UX 10.20 and later -Ae
2339# HP-UX older versions -Aa -D_HPUX_SOURCE
2340# SVR4 -Xc -D__EXTENSIONS__
2341for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342do
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cc_stdc=$ac_arg
2367break
2368else
2369 echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372fi
2373rm -f conftest.err conftest.$ac_objext
2374done
2375rm -f conftest.$ac_ext conftest.$ac_objext
2376CC=$ac_save_CC
2377
2378fi
2379
2380case "x$ac_cv_prog_cc_stdc" in
2381 x|xno)
2382 echo "$as_me:$LINENO: result: none needed" >&5
2383echo "${ECHO_T}none needed" >&6 ;;
2384 *)
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387 CC="$CC $ac_cv_prog_cc_stdc" ;;
2388esac
2389
2390# Some people use a C++ compiler to compile C. Since we use `exit',
2391# in C++ we need to declare it. In case someone uses the same compiler
2392# for both compiling C and C++ we need to have the C++ compiler decide
2393# the declaration of exit, since it's the most demanding environment.
2394cat >conftest.$ac_ext <<_ACEOF
2395#ifndef __cplusplus
2396 choke me
2397#endif
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
2422 '' \
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2427 'void exit (int);'
2428do
2429 cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h. */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h. */
2435$ac_declaration
2436#include <stdlib.h>
2437int
2438main ()
2439{
2440exit (42);
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 :
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472continue
2473fi
2474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
2481$ac_declaration
2482int
2483main ()
2484{
2485exit (42);
2486 ;
2487 return 0;
2488}
2489_ACEOF
2490rm -f conftest.$ac_objext
2491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 break
2513else
2514 echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517fi
2518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519done
2520rm -f conftest*
2521if test -n "$ac_declaration"; then
2522 echo '#ifdef __cplusplus' >>confdefs.h
2523 echo $ac_declaration >>confdefs.h
2524 echo '#endif' >>confdefs.h
2525fi
2526
2527else
2528 echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531fi
2532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
ea0caf4a 2538
ea0caf4a 2539# Find a good install program. We prefer a C program (faster),
2540# so one script is as good as another. But avoid the broken or
2541# incompatible versions:
2542# SysV /etc/install, /usr/sbin/install
2543# SunOS /usr/etc/install
2544# IRIX /sbin/install
2545# AIX /bin/install
00274452 2546# AmigaOS /C/install, which installs bootblocks on floppy discs
ee85084d 2547# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ea0caf4a 2548# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
00274452 2550# OS/2's system install, which has a completely different semantic
ea0caf4a 2551# ./install, which can be erroneously created by make from ./install.sh.
00274452 2552echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2553echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ea0caf4a 2554if test -z "$INSTALL"; then
00274452 2555if test "${ac_cv_path_install+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 # Account for people who put trailing slashes in PATH elements.
2564case $as_dir/ in
2565 ./ | .// | /cC/* | \
2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2568 /usr/ucb/* ) ;;
2569 *)
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2572 # by default.
2573 for ac_prog in ginstall scoinst install; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ea0caf4a 2576 if test $ac_prog = install &&
00274452 2577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
ea0caf4a 2578 # AIX install. It has an incompatible calling convention.
ea0caf4a 2579 :
00274452 2580 elif test $ac_prog = install &&
2581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2583 :
ea0caf4a 2584 else
00274452 2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586 break 3
ea0caf4a 2587 fi
2588 fi
2589 done
00274452 2590 done
2591 ;;
2592esac
2593done
2594
ea0caf4a 2595
2596fi
2597 if test "${ac_cv_path_install+set}" = set; then
00274452 2598 INSTALL=$ac_cv_path_install
ea0caf4a 2599 else
2600 # As a last resort, use the slow shell script. We don't cache a
2601 # path for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the path is relative.
00274452 2604 INSTALL=$ac_install_sh
ea0caf4a 2605 fi
2606fi
00274452 2607echo "$as_me:$LINENO: result: $INSTALL" >&5
2608echo "${ECHO_T}$INSTALL" >&6
ea0caf4a 2609
2610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611# It thinks the first close brace ends the variable substitution.
2612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
00274452 2614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ee85084d 2615
ea0caf4a 2616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
00274452 2618if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2620set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2621echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623if test "${ac_cv_prog_RANLIB+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2625else
2626 if test -n "$RANLIB"; then
2627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2628else
00274452 2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
2642
ea0caf4a 2643fi
2644fi
00274452 2645RANLIB=$ac_cv_prog_RANLIB
ea0caf4a 2646if test -n "$RANLIB"; then
00274452 2647 echo "$as_me:$LINENO: result: $RANLIB" >&5
2648echo "${ECHO_T}$RANLIB" >&6
2649else
2650 echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6
2652fi
2653
2654fi
2655if test -z "$ac_cv_prog_RANLIB"; then
2656 ac_ct_RANLIB=$RANLIB
2657 # Extract the first word of "ranlib", so it can be a program name with args.
2658set dummy ranlib; ac_word=$2
2659echo "$as_me:$LINENO: checking for $ac_word" >&5
2660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2661if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2663else
00274452 2664 if test -n "$ac_ct_RANLIB"; then
2665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_RANLIB="ranlib"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678done
2679done
2680
2681 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2682fi
2683fi
2684ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2685if test -n "$ac_ct_RANLIB"; then
2686 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2687echo "${ECHO_T}$ac_ct_RANLIB" >&6
2688else
2689 echo "$as_me:$LINENO: result: no" >&5
2690echo "${ECHO_T}no" >&6
2691fi
2692
2693 RANLIB=$ac_ct_RANLIB
2694else
2695 RANLIB="$ac_cv_prog_RANLIB"
ea0caf4a 2696fi
2697
a816420b 2698# Check whether --enable-shared or --disable-shared was given.
2699if test "${enable_shared+set}" = set; then
2700 enableval="$enable_shared"
2701 p=${PACKAGE-default}
2702 case $enableval in
2703 yes) enable_shared=yes ;;
2704 no) enable_shared=no ;;
2705 *)
2706 enable_shared=no
2707 # Look at the argument we got. We use all the common list separators.
2708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2709 for pkg in $enableval; do
2710 IFS="$lt_save_ifs"
2711 if test "X$pkg" = "X$p"; then
2712 enable_shared=yes
2713 fi
2714 done
2715 IFS="$lt_save_ifs"
2716 ;;
2717 esac
2718else
2719 enable_shared=yes
2720fi;
2721
2722# Check whether --enable-static or --disable-static was given.
2723if test "${enable_static+set}" = set; then
2724 enableval="$enable_static"
2725 p=${PACKAGE-default}
2726 case $enableval in
2727 yes) enable_static=yes ;;
2728 no) enable_static=no ;;
2729 *)
2730 enable_static=no
2731 # Look at the argument we got. We use all the common list separators.
2732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2733 for pkg in $enableval; do
2734 IFS="$lt_save_ifs"
2735 if test "X$pkg" = "X$p"; then
2736 enable_static=yes
2737 fi
2738 done
2739 IFS="$lt_save_ifs"
2740 ;;
2741 esac
2742else
2743 enable_static=yes
2744fi;
2745
2746# Check whether --enable-fast-install or --disable-fast-install was given.
2747if test "${enable_fast_install+set}" = set; then
2748 enableval="$enable_fast_install"
2749 p=${PACKAGE-default}
2750 case $enableval in
2751 yes) enable_fast_install=yes ;;
2752 no) enable_fast_install=no ;;
2753 *)
2754 enable_fast_install=no
2755 # Look at the argument we got. We use all the common list separators.
2756 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2757 for pkg in $enableval; do
2758 IFS="$lt_save_ifs"
2759 if test "X$pkg" = "X$p"; then
2760 enable_fast_install=yes
2761 fi
2762 done
2763 IFS="$lt_save_ifs"
2764 ;;
2765 esac
2766else
2767 enable_fast_install=yes
2768fi;
2769
2770echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2771echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2772if test "${lt_cv_path_SED+set}" = set; then
00274452 2773 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2774else
a816420b 2775 # Loop through the user's path and test for sed and gsed.
2776# Then use that list of sed's as ones to test for truncation.
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for lt_ac_prog in sed gsed; do
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2785 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2786 fi
2787 done
2788 done
2789done
2790lt_ac_max=0
2791lt_ac_count=0
2792# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2793# along with /bin/sed that truncates output.
2794for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2795 test ! -f $lt_ac_sed && break
2796 cat /dev/null > conftest.in
2797 lt_ac_count=0
2798 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2799 # Check for GNU sed and select it if it is found.
2800 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2801 lt_cv_path_SED=$lt_ac_sed
2802 break
2803 fi
2804 while true; do
2805 cat conftest.in conftest.in >conftest.tmp
2806 mv conftest.tmp conftest.in
2807 cp conftest.in conftest.nl
2808 echo >>conftest.nl
2809 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2810 cmp -s conftest.out conftest.nl || break
2811 # 10000 chars as input seems more than enough
2812 test $lt_ac_count -gt 10 && break
2813 lt_ac_count=`expr $lt_ac_count + 1`
2814 if test $lt_ac_count -gt $lt_ac_max; then
2815 lt_ac_max=$lt_ac_count
2816 lt_cv_path_SED=$lt_ac_sed
2817 fi
2818 done
2819done
2820SED=$lt_cv_path_SED
2821
2822fi
2823
2824echo "$as_me:$LINENO: result: $SED" >&5
2825echo "${ECHO_T}$SED" >&6
2826
2827echo "$as_me:$LINENO: checking for egrep" >&5
2828echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2829if test "${ac_cv_prog_egrep+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2831else
a816420b 2832 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2833 then ac_cv_prog_egrep='grep -E'
2834 else ac_cv_prog_egrep='egrep'
2835 fi
ea0caf4a 2836fi
a816420b 2837echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2838echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2839 EGREP=$ac_cv_prog_egrep
2840
2841
2842
2843# Check whether --with-gnu-ld or --without-gnu-ld was given.
2844if test "${with_gnu_ld+set}" = set; then
2845 withval="$with_gnu_ld"
2846 test "$withval" = no || with_gnu_ld=yes
2847else
2848 with_gnu_ld=no
2849fi;
2850ac_prog=ld
2851if test "$GCC" = yes; then
2852 # Check if gcc -print-prog-name=ld gives a path.
2853 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2854echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2855 case $host in
2856 *-*-mingw*)
2857 # gcc leaves a trailing carriage return which upsets mingw
2858 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2859 *)
2860 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2861 esac
2862 case $ac_prog in
2863 # Accept absolute paths.
2864 [\\/]* | ?:[\\/]*)
2865 re_direlt='/[^/][^/]*/\.\./'
2866 # Canonicalize the pathname of ld
2867 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2868 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2869 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2870 done
2871 test -z "$LD" && LD="$ac_prog"
2872 ;;
2873 "")
2874 # If it fails, then pretend we aren't using GCC.
2875 ac_prog=ld
2876 ;;
2877 *)
2878 # If it is relative, then search for the first ld in PATH.
2879 with_gnu_ld=unknown
2880 ;;
2881 esac
2882elif test "$with_gnu_ld" = yes; then
2883 echo "$as_me:$LINENO: checking for GNU ld" >&5
2884echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2885else
2886 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2887echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
ea0caf4a 2888fi
a816420b 2889if test "${lt_cv_path_LD+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891else
2892 if test -z "$LD"; then
2893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2894 for ac_dir in $PATH; do
2895 IFS="$lt_save_ifs"
2896 test -z "$ac_dir" && ac_dir=.
2897 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2898 lt_cv_path_LD="$ac_dir/$ac_prog"
2899 # Check to see if the program is GNU ld. I'd rather use --version,
2900 # but apparently some GNU ld's only accept -v.
2901 # Break only if it was the GNU/non-GNU ld that we prefer.
2902 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2903 *GNU* | *'with BFD'*)
2904 test "$with_gnu_ld" != no && break
2905 ;;
2906 *)
2907 test "$with_gnu_ld" != yes && break
2908 ;;
2909 esac
2910 fi
2911 done
2912 IFS="$lt_save_ifs"
2913else
2914 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2915fi
2916fi
2917
2918LD="$lt_cv_path_LD"
2919if test -n "$LD"; then
2920 echo "$as_me:$LINENO: result: $LD" >&5
2921echo "${ECHO_T}$LD" >&6
ea0caf4a 2922else
00274452 2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
ea0caf4a 2925fi
a816420b 2926test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2927echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2928 { (exit 1); exit 1; }; }
2929echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2930echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2931if test "${lt_cv_prog_gnu_ld+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2935case `$LD -v 2>&1 </dev/null` in
2936*GNU* | *'with BFD'*)
2937 lt_cv_prog_gnu_ld=yes
2938 ;;
2939*)
2940 lt_cv_prog_gnu_ld=no
2941 ;;
2942esac
2943fi
2944echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2945echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2946with_gnu_ld=$lt_cv_prog_gnu_ld
ea0caf4a 2947
2948
a816420b 2949echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2950echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2951if test "${lt_cv_ld_reload_flag+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953else
2954 lt_cv_ld_reload_flag='-r'
2955fi
2956echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2957echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2958reload_flag=$lt_cv_ld_reload_flag
2959case $reload_flag in
2960"" | " "*) ;;
2961*) reload_flag=" $reload_flag" ;;
2962esac
2963reload_cmds='$LD$reload_flag -o $output$reload_objs'
00274452 2964
a816420b 2965echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2966echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2967if test "${lt_cv_path_NM+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 if test -n "$NM"; then
2971 # Let the user override the test.
2972 lt_cv_path_NM="$NM"
2973else
2974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2975 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2976 IFS="$lt_save_ifs"
2977 test -z "$ac_dir" && ac_dir=.
2978 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2979 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2980 # Check to see if the nm accepts a BSD-compat flag.
2981 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2982 # nm: unknown option "B" ignored
2983 # Tru64's nm complains that /dev/null is an invalid object file
2984 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2985 */dev/null* | *'Invalid file or object type'*)
2986 lt_cv_path_NM="$tmp_nm -B"
2987 break
2988 ;;
2989 *)
2990 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2991 */dev/null*)
2992 lt_cv_path_NM="$tmp_nm -p"
2993 break
2994 ;;
2995 *)
2996 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2997 continue # so that we can try to find one that supports BSD flags
2998 ;;
2999 esac
3000 esac
3001 fi
3002 done
3003 IFS="$lt_save_ifs"
3004 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3005fi
3006fi
3007echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3008echo "${ECHO_T}$lt_cv_path_NM" >&6
3009NM="$lt_cv_path_NM"
3010
3011echo "$as_me:$LINENO: checking whether ln -s works" >&5
3012echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3013LN_S=$as_ln_s
3014if test "$LN_S" = "ln -s"; then
3015 echo "$as_me:$LINENO: result: yes" >&5
3016echo "${ECHO_T}yes" >&6
3017else
3018 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3019echo "${ECHO_T}no, using $LN_S" >&6
3020fi
618b3834 3021
a816420b 3022echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3023echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3024if test "${lt_cv_deplibs_check_method+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027 lt_cv_file_magic_cmd='$MAGIC_CMD'
3028lt_cv_file_magic_test_file=
3029lt_cv_deplibs_check_method='unknown'
3030# Need to set the preceding variable on all platforms that support
3031# interlibrary dependencies.
3032# 'none' -- dependencies not supported.
3033# `unknown' -- same as none, but documents that we really don't know.
3034# 'pass_all' -- all dependencies passed with no checks.
3035# 'test_compile' -- check by making test program.
3036# 'file_magic [[regex]]' -- check by looking for files in library path
3037# which responds to the $file_magic_cmd with a given extended regex.
3038# If you have `file' or equivalent on your system and you're not sure
3039# whether `pass_all' will *always* work, you probably want this one.
00274452 3040
a816420b 3041case $host_os in
3042aix4* | aix5*)
3043 lt_cv_deplibs_check_method=pass_all
3044 ;;
3045
3046beos*)
3047 lt_cv_deplibs_check_method=pass_all
3048 ;;
3049
3050bsdi4*)
3051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3052 lt_cv_file_magic_cmd='/usr/bin/file -L'
3053 lt_cv_file_magic_test_file=/shlib/libc.so
3054 ;;
3055
3056cygwin*)
3057 # func_win32_libid is a shell function defined in ltmain.sh
3058 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3059 lt_cv_file_magic_cmd='func_win32_libid'
3060 ;;
3061
3062mingw* | pw32*)
3063 # Base MSYS/MinGW do not provide the 'file' command needed by
3064 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3065 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3066 lt_cv_file_magic_cmd='$OBJDUMP -f'
3067 ;;
3068
3069darwin* | rhapsody*)
3070 lt_cv_deplibs_check_method=pass_all
3071 ;;
3072
3073freebsd* | kfreebsd*-gnu)
3074 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3075 case $host_cpu in
3076 i*86 )
3077 # Not sure whether the presence of OpenBSD here was a mistake.
3078 # Let's accept both of them until this is cleared up.
3079 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3080 lt_cv_file_magic_cmd=/usr/bin/file
3081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3082 ;;
618b3834 3083 esac
a816420b 3084 else
3085 lt_cv_deplibs_check_method=pass_all
3086 fi
3087 ;;
3088
3089gnu*)
3090 lt_cv_deplibs_check_method=pass_all
3091 ;;
3092
3093hpux10.20* | hpux11*)
3094 lt_cv_file_magic_cmd=/usr/bin/file
3095 case "$host_cpu" in
3096 ia64*)
3097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3098 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3099 ;;
3100 hppa*64*)
3101 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]'
3102 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3103 ;;
3104 *)
3105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3106 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3107 ;;
3108 esac
3109 ;;
3110
3111irix5* | irix6* | nonstopux*)
3112 case $LD in
3113 *-32|*"-32 ") libmagic=32-bit;;
3114 *-n32|*"-n32 ") libmagic=N32;;
3115 *-64|*"-64 ") libmagic=64-bit;;
3116 *) libmagic=never-match;;
3117 esac
3118 lt_cv_deplibs_check_method=pass_all
3119 ;;
618b3834 3120
a816420b 3121# This must be Linux ELF.
3122linux*)
3123 case $host_cpu in
3124 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3125 lt_cv_deplibs_check_method=pass_all ;;
3126 *)
3127 # glibc up to 2.1.1 does not perform some relocations on ARM
3128 # this will be overridden with pass_all, but let us keep it just in case
3129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3130 esac
3131 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3132 lt_cv_deplibs_check_method=pass_all
3133 ;;
618b3834 3134
a816420b 3135netbsd*)
3136 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3138 else
3139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3140 fi
3141 ;;
3142
3143newos6*)
3144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3145 lt_cv_file_magic_cmd=/usr/bin/file
3146 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3147 ;;
3148
3149nto-qnx*)
3150 lt_cv_deplibs_check_method=unknown
3151 ;;
3152
3153openbsd*)
3154 lt_cv_file_magic_cmd=/usr/bin/file
3155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3158 else
3159 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3160 fi
3161 ;;
00274452 3162
a816420b 3163osf3* | osf4* | osf5*)
3164 lt_cv_deplibs_check_method=pass_all
3165 ;;
ea0caf4a 3166
a816420b 3167sco3.2v5*)
3168 lt_cv_deplibs_check_method=pass_all
3169 ;;
ea0caf4a 3170
a816420b 3171solaris*)
3172 lt_cv_deplibs_check_method=pass_all
3173 ;;
3174
3175sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3176 case $host_vendor in
3177 motorola)
3178 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]'
3179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3180 ;;
3181 ncr)
3182 lt_cv_deplibs_check_method=pass_all
3183 ;;
3184 sequent)
3185 lt_cv_file_magic_cmd='/bin/file'
3186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3187 ;;
3188 sni)
3189 lt_cv_file_magic_cmd='/bin/file'
3190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3191 lt_cv_file_magic_test_file=/lib/libc.so
3192 ;;
3193 siemens)
3194 lt_cv_deplibs_check_method=pass_all
3195 ;;
3196 esac
3197 ;;
ea0caf4a 3198
a816420b 3199sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3200 lt_cv_deplibs_check_method=pass_all
3201 ;;
3202esac
00274452 3203
a816420b 3204fi
3205echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3206echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3207file_magic_cmd=$lt_cv_file_magic_cmd
3208deplibs_check_method=$lt_cv_deplibs_check_method
3209test -z "$deplibs_check_method" && deplibs_check_method=unknown
00274452 3210
00274452 3211
ea0caf4a 3212
ea0caf4a 3213
a816420b 3214# If no C compiler was specified, use CC.
3215LTCC=${LTCC-"$CC"}
ea0caf4a 3216
a816420b 3217# Allow CC to be a program name with arguments.
3218compiler=$CC
ea0caf4a 3219
00274452 3220
a816420b 3221# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3222if test "${enable_libtool_lock+set}" = set; then
3223 enableval="$enable_libtool_lock"
00274452 3224
a816420b 3225fi;
3226test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3227
3228# Some flags need to be propagated to the compiler or linker for good
3229# libtool support.
3230case $host in
3231ia64-*-hpux*)
3232 # Find out which ABI we are using.
3233 echo 'int i;' > conftest.$ac_ext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
00274452 3236 ac_status=$?
00274452 3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 3238 (exit $ac_status); }; then
3239 case `/usr/bin/file conftest.$ac_objext` in
3240 *ELF-32*)
3241 HPUX_IA64_MODE="32"
3242 ;;
3243 *ELF-64*)
3244 HPUX_IA64_MODE="64"
3245 ;;
3246 esac
3247 fi
3248 rm -rf conftest*
3249 ;;
3250*-*-irix6*)
3251 # Find out which ABI we are using.
3252 echo '#line 3252 "configure"' > conftest.$ac_ext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>&5
00274452 3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 3257 (exit $ac_status); }; then
3258 if test "$lt_cv_prog_gnu_ld" = yes; then
3259 case `/usr/bin/file conftest.$ac_objext` in
3260 *32-bit*)
3261 LD="${LD-ld} -melf32bsmip"
3262 ;;
3263 *N32*)
3264 LD="${LD-ld} -melf32bmipn32"
3265 ;;
3266 *64-bit*)
3267 LD="${LD-ld} -melf64bmip"
3268 ;;
3269 esac
3270 else
3271 case `/usr/bin/file conftest.$ac_objext` in
3272 *32-bit*)
3273 LD="${LD-ld} -32"
3274 ;;
3275 *N32*)
3276 LD="${LD-ld} -n32"
3277 ;;
3278 *64-bit*)
3279 LD="${LD-ld} -64"
3280 ;;
3281 esac
3282 fi
3283 fi
3284 rm -rf conftest*
3285 ;;
3286
3287x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3288 # Find out which ABI we are using.
3289 echo 'int i;' > conftest.$ac_ext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 (eval $ac_compile) 2>&5
00274452 3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 3294 (exit $ac_status); }; then
3295 case "`/usr/bin/file conftest.o`" in
3296 *32-bit*)
3297 case $host in
3298 x86_64-*linux*)
3299 LD="${LD-ld} -m elf_i386"
3300 ;;
3301 ppc64-*linux*|powerpc64-*linux*)
3302 LD="${LD-ld} -m elf32ppclinux"
3303 ;;
3304 s390x-*linux*)
3305 LD="${LD-ld} -m elf_s390"
3306 ;;
3307 sparc64-*linux*)
3308 LD="${LD-ld} -m elf32_sparc"
3309 ;;
3310 esac
3311 ;;
3312 *64-bit*)
3313 case $host in
3314 x86_64-*linux*)
3315 LD="${LD-ld} -m elf_x86_64"
3316 ;;
3317 ppc*-*linux*|powerpc*-*linux*)
3318 LD="${LD-ld} -m elf64ppc"
3319 ;;
3320 s390*-*linux*)
3321 LD="${LD-ld} -m elf64_s390"
3322 ;;
3323 sparc*-*linux*)
3324 LD="${LD-ld} -m elf64_sparc"
3325 ;;
3326 esac
3327 ;;
3328 esac
3329 fi
3330 rm -rf conftest*
3331 ;;
3332
3333*-*-sco3.2v5*)
3334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3335 SAVE_CFLAGS="$CFLAGS"
3336 CFLAGS="$CFLAGS -belf"
3337 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3338echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3339if test "${lt_cv_cc_needs_belf+set}" = set; then
00274452 3340 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3341else
a816420b 3342 ac_ext=c
3343ac_cpp='$CPP $CPPFLAGS'
3344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
3348 cat >conftest.$ac_ext <<_ACEOF
00274452 3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354
00274452 3355int
3356main ()
3357{
a816420b 3358
00274452 3359 ;
3360 return 0;
3361}
3362_ACEOF
3363rm -f conftest.$ac_objext conftest$ac_exeext
3364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest$ac_exeext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
a816420b 3385 lt_cv_cc_needs_belf=yes
00274452 3386else
3387 echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3389
a816420b 3390lt_cv_cc_needs_belf=no
00274452 3391fi
3392rm -f conftest.err conftest.$ac_objext \
3393 conftest$ac_exeext conftest.$ac_ext
a816420b 3394 ac_ext=c
3395ac_cpp='$CPP $CPPFLAGS'
3396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
ea0caf4a 3400fi
a816420b 3401echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3402echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3403 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3404 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3405 CFLAGS="$SAVE_CFLAGS"
3406 fi
3407 ;;
ea0caf4a 3408
a816420b 3409esac
ea0caf4a 3410
a816420b 3411need_locks="$enable_libtool_lock"
00274452 3412
a816420b 3413
3414ac_ext=c
3415ac_cpp='$CPP $CPPFLAGS'
3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3420echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3421# On Suns, sometimes $CPP names a directory.
3422if test -n "$CPP" && test -d "$CPP"; then
3423 CPP=
3424fi
3425if test -z "$CPP"; then
3426 if test "${ac_cv_prog_CPP+set}" = set; then
00274452 3427 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3428else
a816420b 3429 # Double quotes because CPP needs to be expanded
3430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3431 do
3432 ac_preproc_ok=false
3433for ac_c_preproc_warn_flag in '' yes
3434do
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat >conftest.$ac_ext <<_ACEOF
00274452 3442/* confdefs.h. */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h. */
a816420b 3447#ifdef __STDC__
3448# include <limits.h>
3449#else
3450# include <assert.h>
00274452 3451#endif
a816420b 3452 Syntax error
00274452 3453_ACEOF
a816420b 3454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
00274452 3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 3461 (exit $ac_status); } >/dev/null; then
3462 if test -s conftest.err; then
3463 ac_cpp_err=$ac_c_preproc_warn_flag
3464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3465 else
3466 ac_cpp_err=
3467 fi
3468else
3469 ac_cpp_err=yes
3470fi
3471if test -z "$ac_cpp_err"; then
3472 :
00274452 3473else
3474 echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3476
a816420b 3477 # Broken: fails on valid input.
3478continue
ea0caf4a 3479fi
a816420b 3480rm -f conftest.err conftest.$ac_ext
ea0caf4a 3481
a816420b 3482 # OK, works on sane cases. Now check whether non-existent headers
3483 # can be detected and how.
00274452 3484 cat >conftest.$ac_ext <<_ACEOF
3485/* confdefs.h. */
3486_ACEOF
3487cat confdefs.h >>conftest.$ac_ext
3488cat >>conftest.$ac_ext <<_ACEOF
3489/* end confdefs.h. */
a816420b 3490#include <ac_nonexistent.h>
3491_ACEOF
3492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } >/dev/null; then
3500 if test -s conftest.err; then
3501 ac_cpp_err=$ac_c_preproc_warn_flag
3502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3503 else
3504 ac_cpp_err=
3505 fi
3506else
3507 ac_cpp_err=yes
3508fi
3509if test -z "$ac_cpp_err"; then
3510 # Broken: success on invalid input.
3511continue
3512else
3513 echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3515
a816420b 3516 # Passes both tests.
3517ac_preproc_ok=:
3518break
3519fi
3520rm -f conftest.err conftest.$ac_ext
ea0caf4a 3521
a816420b 3522done
3523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524rm -f conftest.err conftest.$ac_ext
3525if $ac_preproc_ok; then
3526 break
3527fi
3528
3529 done
3530 ac_cv_prog_CPP=$CPP
3531
3532fi
3533 CPP=$ac_cv_prog_CPP
3534else
3535 ac_cv_prog_CPP=$CPP
3536fi
3537echo "$as_me:$LINENO: result: $CPP" >&5
3538echo "${ECHO_T}$CPP" >&6
3539ac_preproc_ok=false
3540for ac_c_preproc_warn_flag in '' yes
3541do
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h. */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h. */
3554#ifdef __STDC__
3555# include <limits.h>
ea0caf4a 3556#else
a816420b 3557# include <assert.h>
ea0caf4a 3558#endif
a816420b 3559 Syntax error
00274452 3560_ACEOF
a816420b 3561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
00274452 3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572 else
3573 ac_cpp_err=
3574 fi
3575else
3576 ac_cpp_err=yes
3577fi
3578if test -z "$ac_cpp_err"; then
3579 :
3580else
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 # Broken: fails on valid input.
3585continue
3586fi
3587rm -f conftest.err conftest.$ac_ext
3588
3589 # OK, works on sane cases. Now check whether non-existent headers
3590 # can be detected and how.
3591 cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
3597#include <ac_nonexistent.h>
3598_ACEOF
3599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
00274452 3601 ac_status=$?
a816420b 3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
00274452 3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610 else
3611 ac_cpp_err=
3612 fi
3613else
3614 ac_cpp_err=yes
3615fi
3616if test -z "$ac_cpp_err"; then
3617 # Broken: success on invalid input.
3618continue
ea0caf4a 3619else
00274452 3620 echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
a816420b 3623 # Passes both tests.
3624ac_preproc_ok=:
3625break
ea0caf4a 3626fi
a816420b 3627rm -f conftest.err conftest.$ac_ext
3628
3629done
3630# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631rm -f conftest.err conftest.$ac_ext
3632if $ac_preproc_ok; then
ea0caf4a 3633 :
3634else
a816420b 3635 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&5
3637echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638See \`config.log' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
3640fi
00274452 3641
a816420b 3642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648
3649echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3650echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3651if test "${ac_cv_header_stdc+set}" = set; then
00274452 3652 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3653else
a816420b 3654 cat >conftest.$ac_ext <<_ACEOF
00274452 3655/* confdefs.h. */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h. */
a816420b 3660#include <stdlib.h>
3661#include <stdarg.h>
3662#include <string.h>
3663#include <float.h>
00274452 3664
00274452 3665int
3666main ()
3667{
a816420b 3668
00274452 3669 ;
3670 return 0;
3671}
3672_ACEOF
a816420b 3673rm -f conftest.$ac_objext
3674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>conftest.er1
00274452 3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag"
3683 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
a816420b 3689 { ac_try='test -s conftest.$ac_objext'
00274452 3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
a816420b 3695 ac_cv_header_stdc=yes
00274452 3696else
3697 echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3699
a816420b 3700ac_cv_header_stdc=no
00274452 3701fi
a816420b 3702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ea0caf4a 3703
a816420b 3704if test $ac_cv_header_stdc = yes; then
3705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3706 cat >conftest.$ac_ext <<_ACEOF
00274452 3707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
a816420b 3712#include <string.h>
00274452 3713
a816420b 3714_ACEOF
3715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 $EGREP "memchr" >/dev/null 2>&1; then
3717 :
3718else
3719 ac_cv_header_stdc=no
3720fi
3721rm -f conftest*
3722
3723fi
3724
3725if test $ac_cv_header_stdc = yes; then
3726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727 cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733#include <stdlib.h>
3734
3735_ACEOF
3736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 $EGREP "free" >/dev/null 2>&1; then
3738 :
3739else
3740 ac_cv_header_stdc=no
3741fi
3742rm -f conftest*
3743
3744fi
3745
3746if test $ac_cv_header_stdc = yes; then
3747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3748 if test "$cross_compiling" = yes; then
3749 :
3750else
3751 cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h. */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h. */
3757#include <ctype.h>
3758#if ((' ' & 0x0FF) == 0x020)
3759# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3760# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3761#else
3762# define ISLOWER(c) \
3763 (('a' <= (c) && (c) <= 'i') \
3764 || ('j' <= (c) && (c) <= 'r') \
3765 || ('s' <= (c) && (c) <= 'z'))
3766# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3767#endif
3768
3769#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
00274452 3770int
3771main ()
3772{
a816420b 3773 int i;
3774 for (i = 0; i < 256; i++)
3775 if (XOR (islower (i), ISLOWER (i))
3776 || toupper (i) != TOUPPER (i))
3777 exit(2);
3778 exit (0);
00274452 3779}
3780_ACEOF
a816420b 3781rm -f conftest$ac_exeext
00274452 3782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a816420b 3783 (eval $ac_link) 2>&5
00274452 3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 3786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
00274452 3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
a816420b 3792 :
00274452 3793else
a816420b 3794 echo "$as_me: program exited with status $ac_status" >&5
3795echo "$as_me: failed program was:" >&5
00274452 3796sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3797
a816420b 3798( exit $ac_status )
3799ac_cv_header_stdc=no
00274452 3800fi
a816420b 3801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ea0caf4a 3802fi
ea0caf4a 3803fi
ea0caf4a 3804fi
a816420b 3805echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3806echo "${ECHO_T}$ac_cv_header_stdc" >&6
3807if test $ac_cv_header_stdc = yes; then
ea0caf4a 3808
a816420b 3809cat >>confdefs.h <<\_ACEOF
3810#define STDC_HEADERS 1
3811_ACEOF
ea0caf4a 3812
a816420b 3813fi
7f7f279f 3814
a816420b 3815# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7f7f279f 3816
00274452 3817
7f7f279f 3818
7f7f279f 3819
7f7f279f 3820
00274452 3821
7f7f279f 3822
3823
3824
a816420b 3825for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3826 inttypes.h stdint.h unistd.h
3827do
3828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3829echo "$as_me:$LINENO: checking for $ac_header" >&5
3830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3831if eval "test \"\${$as_ac_Header+set}\" = set"; then
00274452 3832 echo $ECHO_N "(cached) $ECHO_C" >&6
a96aec98 3833else
a816420b 3834 cat >conftest.$ac_ext <<_ACEOF
00274452 3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
a816420b 3840$ac_includes_default
00274452 3841
a816420b 3842#include <$ac_header>
00274452 3843_ACEOF
a816420b 3844rm -f conftest.$ac_objext
3845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
00274452 3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
a816420b 3860 { ac_try='test -s conftest.$ac_objext'
00274452 3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
a816420b 3866 eval "$as_ac_Header=yes"
00274452 3867else
3868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
a96aec98 3870
a816420b 3871eval "$as_ac_Header=no"
a96aec98 3872fi
a816420b 3873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00274452 3874fi
a816420b 3875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3877if test `eval echo '${'$as_ac_Header'}'` = yes; then
3878 cat >>confdefs.h <<_ACEOF
3879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3880_ACEOF
3881
3882fi
3883
3884done
3885
3886
3887
3888for ac_header in dlfcn.h
3889do
3890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3891if eval "test \"\${$as_ac_Header+set}\" = set"; then
3892 echo "$as_me:$LINENO: checking for $ac_header" >&5
3893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3894if eval "test \"\${$as_ac_Header+set}\" = set"; then
00274452 3895 echo $ECHO_N "(cached) $ECHO_C" >&6
a816420b 3896fi
3897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a96aec98 3899else
a816420b 3900 # Is the header compilable?
3901echo "$as_me:$LINENO: checking $ac_header usability" >&5
3902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
00274452 3903cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h. */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h. */
a816420b 3909$ac_includes_default
3910#include <$ac_header>
3911_ACEOF
3912rm -f conftest.$ac_objext
3913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_header_compiler=yes
3935else
3936 echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939ac_header_compiler=no
3940fi
3941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3943echo "${ECHO_T}$ac_header_compiler" >&6
3944
3945# Is the header present?
3946echo "$as_me:$LINENO: checking $ac_header presence" >&5
3947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3948cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h. */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h. */
3954#include <$ac_header>
3955_ACEOF
3956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967 else
3968 ac_cpp_err=
3969 fi
3970else
3971 ac_cpp_err=yes
3972fi
3973if test -z "$ac_cpp_err"; then
3974 ac_header_preproc=yes
3975else
3976 echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 ac_header_preproc=no
3980fi
3981rm -f conftest.err conftest.$ac_ext
3982echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3983echo "${ECHO_T}$ac_header_preproc" >&6
3984
3985# So? What about this header?
3986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3987 yes:no: )
3988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3992 ac_header_preproc=yes
3993 ;;
3994 no:yes:* )
3995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4007 (
4008 cat <<\_ASBOX
4009## ------------------------------------------ ##
4010## Report this to the AC_PACKAGE_NAME lists. ##
4011## ------------------------------------------ ##
4012_ASBOX
4013 ) |
4014 sed "s/^/$as_me: WARNING: /" >&2
4015 ;;
4016esac
4017echo "$as_me:$LINENO: checking for $ac_header" >&5
4018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 eval "$as_ac_Header=\$ac_header_preproc"
4023fi
4024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4026
4027fi
4028if test `eval echo '${'$as_ac_Header'}'` = yes; then
4029 cat >>confdefs.h <<_ACEOF
4030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4031_ACEOF
4032
4033fi
4034
4035done
4036
4037ac_ext=cc
4038ac_cpp='$CXXCPP $CPPFLAGS'
4039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4042if test -n "$ac_tool_prefix"; then
4043 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4044 do
4045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047echo "$as_me:$LINENO: checking for $ac_word" >&5
4048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049if test "${ac_cv_prog_CXX+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 if test -n "$CXX"; then
4053 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4054else
4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH
4057do
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 break 2
4065 fi
4066done
4067done
4068
4069fi
4070fi
4071CXX=$ac_cv_prog_CXX
4072if test -n "$CXX"; then
4073 echo "$as_me:$LINENO: result: $CXX" >&5
4074echo "${ECHO_T}$CXX" >&6
4075else
4076 echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
4078fi
4079
4080 test -n "$CXX" && break
4081 done
4082fi
4083if test -z "$CXX"; then
4084 ac_ct_CXX=$CXX
4085 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4086do
4087 # Extract the first word of "$ac_prog", so it can be a program name with args.
4088set dummy $ac_prog; ac_word=$2
4089echo "$as_me:$LINENO: checking for $ac_word" >&5
4090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094 if test -n "$ac_ct_CXX"; then
4095 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_ac_ct_CXX="$ac_prog"
4105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108done
4109done
4110
4111fi
4112fi
4113ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4114if test -n "$ac_ct_CXX"; then
4115 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4116echo "${ECHO_T}$ac_ct_CXX" >&6
4117else
4118 echo "$as_me:$LINENO: result: no" >&5
4119echo "${ECHO_T}no" >&6
4120fi
4121
4122 test -n "$ac_ct_CXX" && break
4123done
4124test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4125
4126 CXX=$ac_ct_CXX
4127fi
4128
4129
4130# Provide some information about the compiler.
4131echo "$as_me:$LINENO:" \
4132 "checking for C++ compiler version" >&5
4133ac_compiler=`set X $ac_compile; echo $2`
4134{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4135 (eval $ac_compiler --version </dev/null >&5) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }
4139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4140 (eval $ac_compiler -v </dev/null >&5) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }
4144{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4145 (eval $ac_compiler -V </dev/null >&5) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }
4149
4150echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4151echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4152if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161
4162int
4163main ()
4164{
4165#ifndef __GNUC__
4166 choke me
4167#endif
4168
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext
4174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_cxx_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_compiler_gnu=yes
4196else
4197 echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200ac_compiler_gnu=no
4201fi
4202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4204
4205fi
4206echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4207echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4208GXX=`test $ac_compiler_gnu = yes && echo yes`
4209ac_test_CXXFLAGS=${CXXFLAGS+set}
4210ac_save_CXXFLAGS=$CXXFLAGS
4211CXXFLAGS="-g"
4212echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4213echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4214if test "${ac_cv_prog_cxx_g+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223
4224int
4225main ()
4226{
4227
4228 ;
4229 return 0;
4230}
4231_ACEOF
4232rm -f conftest.$ac_objext
4233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_cxx_werror_flag"
4242 || test ! -s conftest.err'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; } &&
4248 { ac_try='test -s conftest.$ac_objext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 ac_cv_prog_cxx_g=yes
4255else
4256 echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
4258
4259ac_cv_prog_cxx_g=no
4260fi
4261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4262fi
4263echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4264echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4265if test "$ac_test_CXXFLAGS" = set; then
4266 CXXFLAGS=$ac_save_CXXFLAGS
4267elif test $ac_cv_prog_cxx_g = yes; then
4268 if test "$GXX" = yes; then
4269 CXXFLAGS="-g -O2"
4270 else
4271 CXXFLAGS="-g"
4272 fi
4273else
4274 if test "$GXX" = yes; then
4275 CXXFLAGS="-O2"
4276 else
4277 CXXFLAGS=
4278 fi
4279fi
4280for ac_declaration in \
4281 '' \
4282 'extern "C" void std::exit (int) throw (); using std::exit;' \
4283 'extern "C" void std::exit (int); using std::exit;' \
4284 'extern "C" void exit (int) throw ();' \
4285 'extern "C" void exit (int);' \
4286 'void exit (int);'
4287do
4288 cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
4294$ac_declaration
4295#include <stdlib.h>
4296int
4297main ()
4298{
4299exit (42);
4300 ;
4301 return 0;
4302}
4303_ACEOF
4304rm -f conftest.$ac_objext
4305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_cxx_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 :
4327else
4328 echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331continue
4332fi
4333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340$ac_declaration
4341int
4342main ()
4343{
4344exit (42);
4345 ;
4346 return 0;
4347}
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_cxx_werror_flag"
4359 || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 break
4372else
4373 echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376fi
4377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4378done
4379rm -f conftest*
4380if test -n "$ac_declaration"; then
4381 echo '#ifdef __cplusplus' >>confdefs.h
4382 echo $ac_declaration >>confdefs.h
4383 echo '#endif' >>confdefs.h
4384fi
4385
4386ac_ext=cc
4387ac_cpp='$CXXCPP $CPPFLAGS'
4388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391
4392ac_ext=cc
4393ac_cpp='$CXXCPP $CPPFLAGS'
4394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4397echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4398echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4399if test -z "$CXXCPP"; then
4400 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 # Double quotes because CXXCPP needs to be expanded
4404 for CXXCPP in "$CXX -E" "/lib/cpp"
4405 do
4406 ac_preproc_ok=false
4407for ac_cxx_preproc_warn_flag in '' yes
4408do
4409 # Use a header file that comes with gcc, so configuring glibc
4410 # with a fresh cross-compiler works.
4411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4412 # <limits.h> exists even on freestanding compilers.
4413 # On the NeXT, cc -E runs the code through the compiler's parser,
4414 # not just through cpp. "Syntax error" is here to catch this case.
4415 cat >conftest.$ac_ext <<_ACEOF
4416/* confdefs.h. */
4417_ACEOF
4418cat confdefs.h >>conftest.$ac_ext
4419cat >>conftest.$ac_ext <<_ACEOF
4420/* end confdefs.h. */
4421#ifdef __STDC__
4422# include <limits.h>
4423#else
4424# include <assert.h>
4425#endif
4426 Syntax error
4427_ACEOF
4428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null; then
4436 if test -s conftest.err; then
4437 ac_cpp_err=$ac_cxx_preproc_warn_flag
4438 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4439 else
4440 ac_cpp_err=
4441 fi
4442else
4443 ac_cpp_err=yes
4444fi
4445if test -z "$ac_cpp_err"; then
4446 :
4447else
4448 echo "$as_me: failed program was:" >&5
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 # Broken: fails on valid input.
4452continue
4453fi
4454rm -f conftest.err conftest.$ac_ext
4455
4456 # OK, works on sane cases. Now check whether non-existent headers
4457 # can be detected and how.
4458 cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h. */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h. */
4464#include <ac_nonexistent.h>
4465_ACEOF
4466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } >/dev/null; then
4474 if test -s conftest.err; then
4475 ac_cpp_err=$ac_cxx_preproc_warn_flag
4476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4477 else
4478 ac_cpp_err=
4479 fi
4480else
4481 ac_cpp_err=yes
4482fi
4483if test -z "$ac_cpp_err"; then
4484 # Broken: success on invalid input.
4485continue
4486else
4487 echo "$as_me: failed program was:" >&5
4488sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 # Passes both tests.
4491ac_preproc_ok=:
4492break
4493fi
4494rm -f conftest.err conftest.$ac_ext
4495
4496done
4497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498rm -f conftest.err conftest.$ac_ext
4499if $ac_preproc_ok; then
4500 break
4501fi
4502
4503 done
4504 ac_cv_prog_CXXCPP=$CXXCPP
4505
4506fi
4507 CXXCPP=$ac_cv_prog_CXXCPP
4508else
4509 ac_cv_prog_CXXCPP=$CXXCPP
4510fi
4511echo "$as_me:$LINENO: result: $CXXCPP" >&5
4512echo "${ECHO_T}$CXXCPP" >&6
4513ac_preproc_ok=false
4514for ac_cxx_preproc_warn_flag in '' yes
4515do
4516 # Use a header file that comes with gcc, so configuring glibc
4517 # with a fresh cross-compiler works.
4518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 # <limits.h> exists even on freestanding compilers.
4520 # On the NeXT, cc -E runs the code through the compiler's parser,
4521 # not just through cpp. "Syntax error" is here to catch this case.
4522 cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h. */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h. */
4528#ifdef __STDC__
4529# include <limits.h>
4530#else
4531# include <assert.h>
4532#endif
4533 Syntax error
4534_ACEOF
4535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4537 ac_status=$?
4538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } >/dev/null; then
4543 if test -s conftest.err; then
4544 ac_cpp_err=$ac_cxx_preproc_warn_flag
4545 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4546 else
4547 ac_cpp_err=
4548 fi
4549else
4550 ac_cpp_err=yes
4551fi
4552if test -z "$ac_cpp_err"; then
4553 :
4554else
4555 echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 # Broken: fails on valid input.
4559continue
4560fi
4561rm -f conftest.err conftest.$ac_ext
4562
4563 # OK, works on sane cases. Now check whether non-existent headers
4564 # can be detected and how.
4565 cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h. */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h. */
4571#include <ac_nonexistent.h>
4572_ACEOF
4573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4575 ac_status=$?
4576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } >/dev/null; then
4581 if test -s conftest.err; then
4582 ac_cpp_err=$ac_cxx_preproc_warn_flag
4583 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4584 else
4585 ac_cpp_err=
4586 fi
4587else
4588 ac_cpp_err=yes
4589fi
4590if test -z "$ac_cpp_err"; then
4591 # Broken: success on invalid input.
4592continue
4593else
4594 echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 # Passes both tests.
4598ac_preproc_ok=:
4599break
4600fi
4601rm -f conftest.err conftest.$ac_ext
4602
4603done
4604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605rm -f conftest.err conftest.$ac_ext
4606if $ac_preproc_ok; then
4607 :
4608else
4609 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4610See \`config.log' for more details." >&5
4611echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4612See \`config.log' for more details." >&2;}
4613 { (exit 1); exit 1; }; }
4614fi
4615
4616ac_ext=cc
4617ac_cpp='$CXXCPP $CPPFLAGS'
4618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621
4622
4623ac_ext=f
4624ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4625ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4627if test -n "$ac_tool_prefix"; then
4628 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4629 do
4630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4632echo "$as_me:$LINENO: checking for $ac_word" >&5
4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634if test "${ac_cv_prog_F77+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
4637 if test -n "$F77"; then
4638 ac_cv_prog_F77="$F77" # Let the user override the test.
4639else
4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4650 fi
4651done
4652done
4653
4654fi
4655fi
4656F77=$ac_cv_prog_F77
4657if test -n "$F77"; then
4658 echo "$as_me:$LINENO: result: $F77" >&5
4659echo "${ECHO_T}$F77" >&6
4660else
4661 echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6
4663fi
4664
4665 test -n "$F77" && break
4666 done
4667fi
4668if test -z "$F77"; then
4669 ac_ct_F77=$F77
4670 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4671do
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673set dummy $ac_prog; ac_word=$2
4674echo "$as_me:$LINENO: checking for $ac_word" >&5
4675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4676if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679 if test -n "$ac_ct_F77"; then
4680 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_ac_ct_F77="$ac_prog"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
4694done
4695
4696fi
4697fi
4698ac_ct_F77=$ac_cv_prog_ac_ct_F77
4699if test -n "$ac_ct_F77"; then
4700 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4701echo "${ECHO_T}$ac_ct_F77" >&6
4702else
4703 echo "$as_me:$LINENO: result: no" >&5
4704echo "${ECHO_T}no" >&6
4705fi
4706
4707 test -n "$ac_ct_F77" && break
4708done
4709
4710 F77=$ac_ct_F77
4711fi
4712
4713
4714# Provide some information about the compiler.
4715echo "$as_me:4715:" \
4716 "checking for Fortran 77 compiler version" >&5
4717ac_compiler=`set X $ac_compile; echo $2`
4718{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4719 (eval $ac_compiler --version </dev/null >&5) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }
4723{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4724 (eval $ac_compiler -v </dev/null >&5) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }
4728{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4729 (eval $ac_compiler -V </dev/null >&5) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }
4733rm -f a.out
4734
4735# If we don't use `.F' as extension, the preprocessor is not run on the
4736# input file. (Note that this only needs to work for GNU compilers.)
4737ac_save_ext=$ac_ext
4738ac_ext=F
4739echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4740echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4741if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744 cat >conftest.$ac_ext <<_ACEOF
4745 program main
4746#ifndef __GNUC__
4747 choke me
4748#endif
4749
4750 end
4751_ACEOF
4752rm -f conftest.$ac_objext
4753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754 (eval $ac_compile) 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_f77_werror_flag"
4762 || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4774 ac_compiler_gnu=yes
4775else
4776 echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779ac_compiler_gnu=no
4780fi
4781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4783
4784fi
4785echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4786echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4787ac_ext=$ac_save_ext
4788ac_test_FFLAGS=${FFLAGS+set}
4789ac_save_FFLAGS=$FFLAGS
4790FFLAGS=
4791echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4792echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4793if test "${ac_cv_prog_f77_g+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796 FFLAGS=-g
4797cat >conftest.$ac_ext <<_ACEOF
4798 program main
4799
4800 end
4801_ACEOF
4802rm -f conftest.$ac_objext
4803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_f77_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_prog_f77_g=yes
4825else
4826 echo "$as_me: failed program was:" >&5
4827sed 's/^/| /' conftest.$ac_ext >&5
4828
4829ac_cv_prog_f77_g=no
4830fi
4831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832
4833fi
4834echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4835echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4836if test "$ac_test_FFLAGS" = set; then
4837 FFLAGS=$ac_save_FFLAGS
4838elif test $ac_cv_prog_f77_g = yes; then
4839 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4840 FFLAGS="-g -O2"
4841 else
4842 FFLAGS="-g"
4843 fi
4844else
4845 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4846 FFLAGS="-O2"
4847 else
4848 FFLAGS=
4849 fi
4850fi
4851
4852G77=`test $ac_compiler_gnu = yes && echo yes`
4853ac_ext=c
4854ac_cpp='$CPP $CPPFLAGS'
4855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859
4860
4861# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4862
4863# find the maximum length of command line arguments
4864echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4865echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4866if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869 i=0
4870 teststring="ABCD"
4871
4872 case $build_os in
4873 msdosdjgpp*)
4874 # On DJGPP, this test can blow up pretty badly due to problems in libc
4875 # (any single argument exceeding 2000 bytes causes a buffer overrun
4876 # during glob expansion). Even if it were fixed, the result of this
4877 # check would be larger than it should be.
4878 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4879 ;;
4880
4881 gnu*)
4882 # Under GNU Hurd, this test is not required because there is
4883 # no limit to the length of command line arguments.
4884 # Libtool will interpret -1 as no limit whatsoever
4885 lt_cv_sys_max_cmd_len=-1;
4886 ;;
4887
4888 cygwin* | mingw*)
4889 # On Win9x/ME, this test blows up -- it succeeds, but takes
4890 # about 5 minutes as the teststring grows exponentially.
4891 # Worse, since 9x/ME are not pre-emptively multitasking,
4892 # you end up with a "frozen" computer, even though with patience
4893 # the test eventually succeeds (with a max line length of 256k).
4894 # Instead, let's just punt: use the minimum linelength reported by
4895 # all of the supported platforms: 8192 (on NT/2K/XP).
4896 lt_cv_sys_max_cmd_len=8192;
4897 ;;
4898
4899 amigaos*)
4900 # On AmigaOS with pdksh, this test takes hours, literally.
4901 # So we just punt and use a minimum line length of 8192.
4902 lt_cv_sys_max_cmd_len=8192;
4903 ;;
4904
4905 *)
4906 # If test is not a shell built-in, we'll probably end up computing a
4907 # maximum length that is only half of the actual maximum length, but
4908 # we can't tell.
4909 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4910 = "XX$teststring") >/dev/null 2>&1 &&
4911 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4912 lt_cv_sys_max_cmd_len=$new_result &&
4913 test $i != 17 # 1/2 MB should be enough
4914 do
4915 i=`expr $i + 1`
4916 teststring=$teststring$teststring
4917 done
4918 teststring=
4919 # Add a significant safety factor because C++ compilers can tack on massive
4920 # amounts of additional arguments before passing them to the linker.
4921 # It appears as though 1/2 is a usable value.
4922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4923 ;;
4924 esac
4925
4926fi
4927
4928if test -n $lt_cv_sys_max_cmd_len ; then
4929 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4930echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4931else
4932 echo "$as_me:$LINENO: result: none" >&5
4933echo "${ECHO_T}none" >&6
4934fi
4935
4936
4937
4938
4939# Check for command to grab the raw symbol name followed by C symbol from nm.
4940echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4941echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4942if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944else
4945
4946# These are sane defaults that work on at least a few old systems.
4947# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4948
4949# Character class describing NM global symbol codes.
4950symcode='[BCDEGRST]'
4951
4952# Regexp to match symbols that can be accessed directly from C.
4953sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4954
4955# Transform the above into a raw symbol and a C symbol.
4956symxfrm='\1 \2\3 \3'
4957
4958# Transform an extracted symbol line into a proper C declaration
4959lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4960
4961# Transform an extracted symbol line into symbol name and symbol address
4962lt_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'"
4963
4964# Define system-specific variables.
4965case $host_os in
4966aix*)
4967 symcode='[BCDT]'
4968 ;;
4969cygwin* | mingw* | pw32*)
4970 symcode='[ABCDGISTW]'
4971 ;;
4972hpux*) # Its linker distinguishes data from code symbols
4973 if test "$host_cpu" = ia64; then
4974 symcode='[ABCDEGRST]'
4975 fi
4976 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4977 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'"
4978 ;;
4979irix* | nonstopux*)
4980 symcode='[BCDEGRST]'
4981 ;;
4982osf*)
4983 symcode='[BCDEGQRST]'
4984 ;;
4985solaris* | sysv5*)
4986 symcode='[BDRT]'
4987 ;;
4988sysv4)
4989 symcode='[DFNSTU]'
4990 ;;
4991esac
4992
4993# Handle CRLF in mingw tool chain
4994opt_cr=
4995case $build_os in
4996mingw*)
4997 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4998 ;;
4999esac
5000
5001# If we're using GNU nm, then use its standard symbol codes.
5002case `$NM -V 2>&1` in
5003*GNU* | *'with BFD'*)
5004 symcode='[ABCDGIRSTW]' ;;
5005esac
5006
5007# Try without a prefix undercore, then with it.
5008for ac_symprfx in "" "_"; do
5009
5010 # Write the raw and C identifiers.
5011 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5012
5013 # Check to see that the pipe works correctly.
5014 pipe_works=no
5015
5016 rm -f conftest*
5017 cat > conftest.$ac_ext <<EOF
5018#ifdef __cplusplus
5019extern "C" {
5020#endif
5021char nm_test_var;
5022void nm_test_func(){}
5023#ifdef __cplusplus
5024}
5025#endif
5026int main(){nm_test_var='a';nm_test_func();return(0);}
5027EOF
5028
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; then
5034 # Now try to grab the symbols.
5035 nlist=conftest.nm
5036 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5037 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && test -s "$nlist"; then
5041 # Try sorting and uniquifying the output.
5042 if sort "$nlist" | uniq > "$nlist"T; then
5043 mv -f "$nlist"T "$nlist"
5044 else
5045 rm -f "$nlist"T
5046 fi
5047
5048 # Make sure that we snagged all the symbols we need.
5049 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5050 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5051 cat <<EOF > conftest.$ac_ext
5052#ifdef __cplusplus
5053extern "C" {
5054#endif
5055
5056EOF
5057 # Now generate the symbol file.
5058 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5059
5060 cat <<EOF >> conftest.$ac_ext
5061#if defined (__STDC__) && __STDC__
5062# define lt_ptr_t void *
5063#else
5064# define lt_ptr_t char *
5065# define const
5066#endif
5067
5068/* The mapping between symbol names and symbols. */
5069const struct {
5070 const char *name;
5071 lt_ptr_t address;
5072}
5073lt_preloaded_symbols[] =
5074{
5075EOF
5076 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5077 cat <<\EOF >> conftest.$ac_ext
5078 {0, (lt_ptr_t) 0}
5079};
5080
5081#ifdef __cplusplus
5082}
5083#endif
5084EOF
5085 # Now try linking the two files.
5086 mv conftest.$ac_objext conftstm.$ac_objext
5087 lt_save_LIBS="$LIBS"
5088 lt_save_CFLAGS="$CFLAGS"
5089 LIBS="conftstm.$ac_objext"
5090 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092 (eval $ac_link) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5096 pipe_works=yes
5097 fi
5098 LIBS="$lt_save_LIBS"
5099 CFLAGS="$lt_save_CFLAGS"
5100 else
5101 echo "cannot find nm_test_func in $nlist" >&5
5102 fi
5103 else
5104 echo "cannot find nm_test_var in $nlist" >&5
5105 fi
5106 else
5107 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5108 fi
5109 else
5110 echo "$progname: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 fi
5113 rm -f conftest* conftst*
5114
5115 # Do not use the global_symbol_pipe unless it works.
5116 if test "$pipe_works" = yes; then
5117 break
5118 else
5119 lt_cv_sys_global_symbol_pipe=
5120 fi
5121done
5122
5123fi
5124
5125if test -z "$lt_cv_sys_global_symbol_pipe"; then
5126 lt_cv_sys_global_symbol_to_cdecl=
5127fi
5128if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5129 echo "$as_me:$LINENO: result: failed" >&5
5130echo "${ECHO_T}failed" >&6
5131else
5132 echo "$as_me:$LINENO: result: ok" >&5
5133echo "${ECHO_T}ok" >&6
5134fi
5135
5136echo "$as_me:$LINENO: checking for objdir" >&5
5137echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5138if test "${lt_cv_objdir+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141 rm -f .libs 2>/dev/null
5142mkdir .libs 2>/dev/null
5143if test -d .libs; then
5144 lt_cv_objdir=.libs
5145else
5146 # MS-DOS does not allow filenames that begin with a dot.
5147 lt_cv_objdir=_libs
5148fi
5149rmdir .libs 2>/dev/null
5150fi
5151echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5152echo "${ECHO_T}$lt_cv_objdir" >&6
5153objdir=$lt_cv_objdir
5154
5155
5156
5157
5158
5159case $host_os in
5160aix3*)
5161 # AIX sometimes has problems with the GCC collect2 program. For some
5162 # reason, if we set the COLLECT_NAMES environment variable, the problems
5163 # vanish in a puff of smoke.
5164 if test "X${COLLECT_NAMES+set}" != Xset; then
5165 COLLECT_NAMES=
5166 export COLLECT_NAMES
5167 fi
5168 ;;
5169esac
5170
5171# Sed substitution that helps us do robust quoting. It backslashifies
5172# metacharacters that are still active within double-quoted strings.
5173Xsed='sed -e s/^X//'
5174sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5175
5176# Same as above, but do not quote variable references.
5177double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5178
5179# Sed substitution to delay expansion of an escaped shell variable in a
5180# double_quote_subst'ed string.
5181delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5182
5183# Sed substitution to avoid accidental globbing in evaled expressions
5184no_glob_subst='s/\*/\\\*/g'
5185
5186# Constants:
5187rm="rm -f"
5188
5189# Global variables:
5190default_ofile=libtool
5191can_build_shared=yes
5192
5193# All known linkers require a `.a' archive for static linking (except M$VC,
5194# which needs '.lib').
5195libext=a
5196ltmain="$ac_aux_dir/ltmain.sh"
5197ofile="$default_ofile"
5198with_gnu_ld="$lt_cv_prog_gnu_ld"
5199
5200if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5202set dummy ${ac_tool_prefix}ar; ac_word=$2
5203echo "$as_me:$LINENO: checking for $ac_word" >&5
5204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205if test "${ac_cv_prog_AR+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207else
5208 if test -n "$AR"; then
5209 ac_cv_prog_AR="$AR" # Let the user override the test.
5210else
5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212for as_dir in $PATH
5213do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_AR="${ac_tool_prefix}ar"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222done
5223done
5224
5225fi
5226fi
5227AR=$ac_cv_prog_AR
5228if test -n "$AR"; then
5229 echo "$as_me:$LINENO: result: $AR" >&5
5230echo "${ECHO_T}$AR" >&6
5231else
5232 echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234fi
5235
5236fi
5237if test -z "$ac_cv_prog_AR"; then
5238 ac_ct_AR=$AR
5239 # Extract the first word of "ar", so it can be a program name with args.
5240set dummy ar; ac_word=$2
5241echo "$as_me:$LINENO: checking for $ac_word" >&5
5242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246 if test -n "$ac_ct_AR"; then
5247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_ac_ct_AR="ar"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260done
5261done
5262
5263 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5264fi
5265fi
5266ac_ct_AR=$ac_cv_prog_ac_ct_AR
5267if test -n "$ac_ct_AR"; then
5268 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5269echo "${ECHO_T}$ac_ct_AR" >&6
5270else
5271 echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273fi
5274
5275 AR=$ac_ct_AR
5276else
5277 AR="$ac_cv_prog_AR"
5278fi
5279
5280if test -n "$ac_tool_prefix"; then
5281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5282set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5283echo "$as_me:$LINENO: checking for $ac_word" >&5
5284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5285if test "${ac_cv_prog_RANLIB+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288 if test -n "$RANLIB"; then
5289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302done
5303done
5304
5305fi
5306fi
5307RANLIB=$ac_cv_prog_RANLIB
5308if test -n "$RANLIB"; then
5309 echo "$as_me:$LINENO: result: $RANLIB" >&5
5310echo "${ECHO_T}$RANLIB" >&6
5311else
5312 echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
5314fi
5315
5316fi
5317if test -z "$ac_cv_prog_RANLIB"; then
5318 ac_ct_RANLIB=$RANLIB
5319 # Extract the first word of "ranlib", so it can be a program name with args.
5320set dummy ranlib; ac_word=$2
5321echo "$as_me:$LINENO: checking for $ac_word" >&5
5322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326 if test -n "$ac_ct_RANLIB"; then
5327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_ac_ct_RANLIB="ranlib"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340done
5341done
5342
5343 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5344fi
5345fi
5346ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5347if test -n "$ac_ct_RANLIB"; then
5348 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5349echo "${ECHO_T}$ac_ct_RANLIB" >&6
5350else
5351 echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353fi
5354
5355 RANLIB=$ac_ct_RANLIB
5356else
5357 RANLIB="$ac_cv_prog_RANLIB"
5358fi
5359
5360if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5362set dummy ${ac_tool_prefix}strip; ac_word=$2
5363echo "$as_me:$LINENO: checking for $ac_word" >&5
5364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365if test "${ac_cv_prog_STRIP+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368 if test -n "$STRIP"; then
5369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382done
5383done
5384
5385fi
5386fi
5387STRIP=$ac_cv_prog_STRIP
5388if test -n "$STRIP"; then
5389 echo "$as_me:$LINENO: result: $STRIP" >&5
5390echo "${ECHO_T}$STRIP" >&6
5391else
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394fi
5395
5396fi
5397if test -z "$ac_cv_prog_STRIP"; then
5398 ac_ct_STRIP=$STRIP
5399 # Extract the first word of "strip", so it can be a program name with args.
5400set dummy strip; ac_word=$2
5401echo "$as_me:$LINENO: checking for $ac_word" >&5
5402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406 if test -n "$ac_ct_STRIP"; then
5407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_ac_ct_STRIP="strip"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420done
5421done
5422
5423 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5424fi
5425fi
5426ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5427if test -n "$ac_ct_STRIP"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5429echo "${ECHO_T}$ac_ct_STRIP" >&6
5430else
5431 echo "$as_me:$LINENO: result: no" >&5
5432echo "${ECHO_T}no" >&6
5433fi
5434
5435 STRIP=$ac_ct_STRIP
5436else
5437 STRIP="$ac_cv_prog_STRIP"
5438fi
5439
5440
5441old_CC="$CC"
5442old_CFLAGS="$CFLAGS"
5443
5444# Set sane defaults for various variables
5445test -z "$AR" && AR=ar
5446test -z "$AR_FLAGS" && AR_FLAGS=cru
5447test -z "$AS" && AS=as
5448test -z "$CC" && CC=cc
5449test -z "$LTCC" && LTCC=$CC
5450test -z "$DLLTOOL" && DLLTOOL=dlltool
5451test -z "$LD" && LD=ld
5452test -z "$LN_S" && LN_S="ln -s"
5453test -z "$MAGIC_CMD" && MAGIC_CMD=file
5454test -z "$NM" && NM=nm
5455test -z "$SED" && SED=sed
5456test -z "$OBJDUMP" && OBJDUMP=objdump
5457test -z "$RANLIB" && RANLIB=:
5458test -z "$STRIP" && STRIP=:
5459test -z "$ac_objext" && ac_objext=o
5460
5461# Determine commands to create old-style static archives.
5462old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5463old_postinstall_cmds='chmod 644 $oldlib'
5464old_postuninstall_cmds=
5465
5466if test -n "$RANLIB"; then
5467 case $host_os in
5468 openbsd*)
5469 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5470 ;;
5471 *)
5472 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5473 ;;
5474 esac
5475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5476fi
5477
5478# Only perform the check for file, if the check method requires it
5479case $deplibs_check_method in
5480file_magic*)
5481 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5482 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5483echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5484if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486else
5487 case $MAGIC_CMD in
5488[\\/*] | ?:[\\/]*)
5489 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5490 ;;
5491*)
5492 lt_save_MAGIC_CMD="$MAGIC_CMD"
5493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5494 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5495 for ac_dir in $ac_dummy; do
5496 IFS="$lt_save_ifs"
5497 test -z "$ac_dir" && ac_dir=.
5498 if test -f $ac_dir/${ac_tool_prefix}file; then
5499 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5500 if test -n "$file_magic_test_file"; then
5501 case $deplibs_check_method in
5502 "file_magic "*)
5503 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5506 $EGREP "$file_magic_regex" > /dev/null; then
5507 :
5508 else
5509 cat <<EOF 1>&2
5510
5511*** Warning: the command libtool uses to detect shared libraries,
5512*** $file_magic_cmd, produces output that libtool cannot recognize.
5513*** The result is that libtool may fail to recognize shared libraries
5514*** as such. This will affect the creation of libtool libraries that
5515*** depend on shared libraries, but programs linked with such libtool
5516*** libraries will work regardless of this problem. Nevertheless, you
5517*** may want to report the problem to your system manager and/or to
5518*** bug-libtool@gnu.org
5519
5520EOF
5521 fi ;;
5522 esac
5523 fi
5524 break
5525 fi
5526 done
5527 IFS="$lt_save_ifs"
5528 MAGIC_CMD="$lt_save_MAGIC_CMD"
5529 ;;
5530esac
5531fi
5532
5533MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5534if test -n "$MAGIC_CMD"; then
5535 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5536echo "${ECHO_T}$MAGIC_CMD" >&6
5537else
5538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
5540fi
5541
5542if test -z "$lt_cv_path_MAGIC_CMD"; then
5543 if test -n "$ac_tool_prefix"; then
5544 echo "$as_me:$LINENO: checking for file" >&5
5545echo $ECHO_N "checking for file... $ECHO_C" >&6
5546if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
5549 case $MAGIC_CMD in
5550[\\/*] | ?:[\\/]*)
5551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5552 ;;
5553*)
5554 lt_save_MAGIC_CMD="$MAGIC_CMD"
5555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5557 for ac_dir in $ac_dummy; do
5558 IFS="$lt_save_ifs"
5559 test -z "$ac_dir" && ac_dir=.
5560 if test -f $ac_dir/file; then
5561 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5562 if test -n "$file_magic_test_file"; then
5563 case $deplibs_check_method in
5564 "file_magic "*)
5565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5568 $EGREP "$file_magic_regex" > /dev/null; then
5569 :
5570 else
5571 cat <<EOF 1>&2
5572
5573*** Warning: the command libtool uses to detect shared libraries,
5574*** $file_magic_cmd, produces output that libtool cannot recognize.
5575*** The result is that libtool may fail to recognize shared libraries
5576*** as such. This will affect the creation of libtool libraries that
5577*** depend on shared libraries, but programs linked with such libtool
5578*** libraries will work regardless of this problem. Nevertheless, you
5579*** may want to report the problem to your system manager and/or to
5580*** bug-libtool@gnu.org
5581
5582EOF
5583 fi ;;
5584 esac
5585 fi
5586 break
5587 fi
5588 done
5589 IFS="$lt_save_ifs"
5590 MAGIC_CMD="$lt_save_MAGIC_CMD"
5591 ;;
5592esac
5593fi
5594
5595MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5596if test -n "$MAGIC_CMD"; then
5597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5598echo "${ECHO_T}$MAGIC_CMD" >&6
5599else
5600 echo "$as_me:$LINENO: result: no" >&5
5601echo "${ECHO_T}no" >&6
5602fi
5603
5604 else
5605 MAGIC_CMD=:
5606 fi
5607fi
5608
5609 fi
5610 ;;
5611esac
5612
5613enable_dlopen=no
5614enable_win32_dll=no
5615
5616# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5617if test "${enable_libtool_lock+set}" = set; then
5618 enableval="$enable_libtool_lock"
5619
5620fi;
5621test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5622
5623
5624# Check whether --with-pic or --without-pic was given.
5625if test "${with_pic+set}" = set; then
5626 withval="$with_pic"
5627 pic_mode="$withval"
5628else
5629 pic_mode=default
5630fi;
5631test -z "$pic_mode" && pic_mode=default
5632
5633# Use C for the default configuration in the libtool script
5634tagname=
5635lt_save_CC="$CC"
5636ac_ext=c
5637ac_cpp='$CPP $CPPFLAGS'
5638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
5642
5643# Source file extension for C test sources.
5644ac_ext=c
5645
5646# Object file extension for compiled C test sources.
5647objext=o
5648objext=$objext
5649
5650# Code to be used in simple compile tests
5651lt_simple_compile_test_code="int some_variable = 0;\n"
5652
5653# Code to be used in simple link tests
5654lt_simple_link_test_code='int main(){return(0);}\n'
5655
5656
5657# If no C compiler was specified, use CC.
5658LTCC=${LTCC-"$CC"}
5659
5660# Allow CC to be a program name with arguments.
5661compiler=$CC
5662
5663
5664#
5665# Check for any special shared library compilation flags.
5666#
5667lt_prog_cc_shlib=
5668if test "$GCC" = no; then
5669 case $host_os in
5670 sco3.2v5*)
5671 lt_prog_cc_shlib='-belf'
5672 ;;
5673 esac
5674fi
5675if test -n "$lt_prog_cc_shlib"; then
5676 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5677echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5678 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5679 else
5680 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5681echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5682 lt_cv_prog_cc_can_build_shared=no
5683 fi
5684fi
5685
5686
5687#
5688# Check to make sure the static flag actually works.
5689#
5690echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5691echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5692if test "${lt_prog_compiler_static_works+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695 lt_prog_compiler_static_works=no
5696 save_LDFLAGS="$LDFLAGS"
5697 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5698 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5700 # The compiler can only warn and ignore the option if not recognized
5701 # So say no if there are warnings
5702 if test -s conftest.err; then
5703 # Append any errors to the config.log.
5704 cat conftest.err 1>&5
5705 else
5706 lt_prog_compiler_static_works=yes
5707 fi
5708 fi
5709 $rm conftest*
5710 LDFLAGS="$save_LDFLAGS"
5711
5712fi
5713echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5714echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5715
5716if test x"$lt_prog_compiler_static_works" = xyes; then
5717 :
5718else
5719 lt_prog_compiler_static=
5720fi
5721
5722
5723
5724
5725lt_prog_compiler_no_builtin_flag=
5726
5727if test "$GCC" = yes; then
5728 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5729
5730
5731echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5732echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5733if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736 lt_cv_prog_compiler_rtti_exceptions=no
5737 ac_outfile=conftest.$ac_objext
5738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5739 lt_compiler_flag="-fno-rtti -fno-exceptions"
5740 # Insert the option either (1) after the last *FLAGS variable, or
5741 # (2) before a word containing "conftest.", or (3) at the end.
5742 # Note that $ac_compile itself does not contain backslashes and begins
5743 # with a dollar sign (not a hyphen), so the echo should work correctly.
5744 # The option is referenced via a variable to avoid confusing sed.
5745 lt_compile=`echo "$ac_compile" | $SED \
5746 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5748 -e 's:$: $lt_compiler_flag:'`
5749 (eval echo "\"\$as_me:5749: $lt_compile\"" >&5)
5750 (eval "$lt_compile" 2>conftest.err)
5751 ac_status=$?
5752 cat conftest.err >&5
5753 echo "$as_me:5753: \$? = $ac_status" >&5
5754 if (exit $ac_status) && test -s "$ac_outfile"; then
5755 # The compiler can only warn and ignore the option if not recognized
5756 # So say no if there are warnings
5757 if test ! -s conftest.err; then
5758 lt_cv_prog_compiler_rtti_exceptions=yes
5759 fi
5760 fi
5761 $rm conftest*
5762
5763fi
5764echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5765echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5766
5767if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5768 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5769else
5770 :
5771fi
5772
5773fi
5774
5775lt_prog_compiler_wl=
5776lt_prog_compiler_pic=
5777lt_prog_compiler_static=
5778
5779echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5780echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5781
5782 if test "$GCC" = yes; then
5783 lt_prog_compiler_wl='-Wl,'
5784 lt_prog_compiler_static='-static'
5785
5786 case $host_os in
5787 aix*)
5788 # All AIX code is PIC.
5789 if test "$host_cpu" = ia64; then
5790 # AIX 5 now supports IA64 processor
5791 lt_prog_compiler_static='-Bstatic'
5792 fi
5793 ;;
5794
5795 amigaos*)
5796 # FIXME: we need at least 68020 code to build shared libraries, but
5797 # adding the `-m68020' flag to GCC prevents building anything better,
5798 # like `-m68040'.
5799 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5800 ;;
5801
5802 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5803 # PIC is the default for these OSes.
5804 ;;
5805
5806 mingw* | pw32* | os2*)
5807 # This hack is so that the source file can tell whether it is being
5808 # built for inclusion in a dll (and should export symbols for example).
5809 lt_prog_compiler_pic='-DDLL_EXPORT'
5810 ;;
5811
5812 darwin* | rhapsody*)
5813 # PIC is the default on this platform
5814 # Common symbols not allowed in MH_DYLIB files
5815 lt_prog_compiler_pic='-fno-common'
5816 ;;
5817
5818 msdosdjgpp*)
5819 # Just because we use GCC doesn't mean we suddenly get shared libraries
5820 # on systems that don't support them.
5821 lt_prog_compiler_can_build_shared=no
5822 enable_shared=no
5823 ;;
5824
5825 sysv4*MP*)
5826 if test -d /usr/nec; then
5827 lt_prog_compiler_pic=-Kconform_pic
5828 fi
5829 ;;
5830
5831 hpux*)
5832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5833 # not for PA HP-UX.
5834 case "$host_cpu" in
5835 hppa*64*|ia64*)
5836 # +Z the default
5837 ;;
5838 *)
5839 lt_prog_compiler_pic='-fPIC'
5840 ;;
5841 esac
5842 ;;
5843
5844 *)
5845 lt_prog_compiler_pic='-fPIC'
5846 ;;
5847 esac
5848 else
5849 # PORTME Check for flag to pass linker flags through the system compiler.
5850 case $host_os in
5851 aix*)
5852 lt_prog_compiler_wl='-Wl,'
5853 if test "$host_cpu" = ia64; then
5854 # AIX 5 now supports IA64 processor
5855 lt_prog_compiler_static='-Bstatic'
5856 else
5857 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5858 fi
5859 ;;
5860
5861 mingw* | pw32* | os2*)
5862 # This hack is so that the source file can tell whether it is being
5863 # built for inclusion in a dll (and should export symbols for example).
5864 lt_prog_compiler_pic='-DDLL_EXPORT'
5865 ;;
5866
5867 hpux9* | hpux10* | hpux11*)
5868 lt_prog_compiler_wl='-Wl,'
5869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5870 # not for PA HP-UX.
5871 case "$host_cpu" in
5872 hppa*64*|ia64*)
5873 # +Z the default
5874 ;;
5875 *)
5876 lt_prog_compiler_pic='+Z'
5877 ;;
5878 esac
5879 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5880 lt_prog_compiler_static='${wl}-a ${wl}archive'
5881 ;;
5882
5883 irix5* | irix6* | nonstopux*)
5884 lt_prog_compiler_wl='-Wl,'
5885 # PIC (with -KPIC) is the default.
5886 lt_prog_compiler_static='-non_shared'
5887 ;;
5888
5889 newsos6)
5890 lt_prog_compiler_pic='-KPIC'
5891 lt_prog_compiler_static='-Bstatic'
5892 ;;
5893
5894 linux*)
5895 case $CC in
5896 icc* | ecc*)
5897 lt_prog_compiler_wl='-Wl,'
5898 lt_prog_compiler_pic='-KPIC'
5899 lt_prog_compiler_static='-static'
5900 ;;
5901 ccc*)
5902 lt_prog_compiler_wl='-Wl,'
5903 # All Alpha code is PIC.
5904 lt_prog_compiler_static='-non_shared'
5905 ;;
5906 esac
5907 ;;
5908
5909 osf3* | osf4* | osf5*)
5910 lt_prog_compiler_wl='-Wl,'
5911 # All OSF/1 code is PIC.
5912 lt_prog_compiler_static='-non_shared'
5913 ;;
5914
5915 sco3.2v5*)
5916 lt_prog_compiler_pic='-Kpic'
5917 lt_prog_compiler_static='-dn'
5918 ;;
5919
5920 solaris*)
5921 lt_prog_compiler_wl='-Wl,'
5922 lt_prog_compiler_pic='-KPIC'
5923 lt_prog_compiler_static='-Bstatic'
5924 ;;
5925
5926 sunos4*)
5927 lt_prog_compiler_wl='-Qoption ld '
5928 lt_prog_compiler_pic='-PIC'
5929 lt_prog_compiler_static='-Bstatic'
5930 ;;
5931
5932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5933 lt_prog_compiler_wl='-Wl,'
5934 lt_prog_compiler_pic='-KPIC'
5935 lt_prog_compiler_static='-Bstatic'
5936 ;;
5937
5938 sysv4*MP*)
5939 if test -d /usr/nec ;then
5940 lt_prog_compiler_pic='-Kconform_pic'
5941 lt_prog_compiler_static='-Bstatic'
5942 fi
5943 ;;
5944
5945 uts4*)
5946 lt_prog_compiler_pic='-pic'
5947 lt_prog_compiler_static='-Bstatic'
5948 ;;
5949
5950 *)
5951 lt_prog_compiler_can_build_shared=no
5952 ;;
5953 esac
5954 fi
5955
5956echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5957echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5958
5959#
5960# Check to make sure the PIC flag actually works.
5961#
5962if test -n "$lt_prog_compiler_pic"; then
5963
5964echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5965echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5966if test "${lt_prog_compiler_pic_works+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 lt_prog_compiler_pic_works=no
5970 ac_outfile=conftest.$ac_objext
5971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5973 # Insert the option either (1) after the last *FLAGS variable, or
5974 # (2) before a word containing "conftest.", or (3) at the end.
5975 # Note that $ac_compile itself does not contain backslashes and begins
5976 # with a dollar sign (not a hyphen), so the echo should work correctly.
5977 # The option is referenced via a variable to avoid confusing sed.
5978 lt_compile=`echo "$ac_compile" | $SED \
5979 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5981 -e 's:$: $lt_compiler_flag:'`
5982 (eval echo "\"\$as_me:5982: $lt_compile\"" >&5)
5983 (eval "$lt_compile" 2>conftest.err)
5984 ac_status=$?
5985 cat conftest.err >&5
5986 echo "$as_me:5986: \$? = $ac_status" >&5
5987 if (exit $ac_status) && test -s "$ac_outfile"; then
5988 # The compiler can only warn and ignore the option if not recognized
5989 # So say no if there are warnings
5990 if test ! -s conftest.err; then
5991 lt_prog_compiler_pic_works=yes
5992 fi
5993 fi
5994 $rm conftest*
5995
5996fi
5997echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5998echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5999
6000if test x"$lt_prog_compiler_pic_works" = xyes; then
6001 case $lt_prog_compiler_pic in
6002 "" | " "*) ;;
6003 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6004 esac
6005else
6006 lt_prog_compiler_pic=
6007 lt_prog_compiler_can_build_shared=no
6008fi
6009
6010fi
6011case "$host_os" in
6012 # For platforms which do not support PIC, -DPIC is meaningless:
6013 *djgpp*)
6014 lt_prog_compiler_pic=
6015 ;;
6016 *)
6017 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6018 ;;
6019esac
6020
6021echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6022echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6023if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025else
6026 lt_cv_prog_compiler_c_o=no
6027 $rm -r conftest 2>/dev/null
6028 mkdir conftest
6029 cd conftest
6030 mkdir out
6031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6032
6033 lt_compiler_flag="-o out/conftest2.$ac_objext"
6034 # Insert the option either (1) after the last *FLAGS variable, or
6035 # (2) before a word containing "conftest.", or (3) at the end.
6036 # Note that $ac_compile itself does not contain backslashes and begins
6037 # with a dollar sign (not a hyphen), so the echo should work correctly.
6038 lt_compile=`echo "$ac_compile" | $SED \
6039 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6041 -e 's:$: $lt_compiler_flag:'`
6042 (eval echo "\"\$as_me:6042: $lt_compile\"" >&5)
6043 (eval "$lt_compile" 2>out/conftest.err)
6044 ac_status=$?
6045 cat out/conftest.err >&5
6046 echo "$as_me:6046: \$? = $ac_status" >&5
6047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6048 then
6049 # The compiler can only warn and ignore the option if not recognized
6050 # So say no if there are warnings
6051 if test ! -s out/conftest.err; then
6052 lt_cv_prog_compiler_c_o=yes
6053 fi
6054 fi
6055 chmod u+w .
6056 $rm conftest*
6057 # SGI C++ compiler will create directory out/ii_files/ for
6058 # template instantiation
6059 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6060 $rm out/* && rmdir out
6061 cd ..
6062 rmdir conftest
6063 $rm conftest*
6064
6065fi
6066echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6067echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6068
6069
6070hard_links="nottested"
6071if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6072 # do not overwrite the value of need_locks provided by the user
6073 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6074echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6075 hard_links=yes
6076 $rm conftest*
6077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6078 touch conftest.a
6079 ln conftest.a conftest.b 2>&5 || hard_links=no
6080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6081 echo "$as_me:$LINENO: result: $hard_links" >&5
6082echo "${ECHO_T}$hard_links" >&6
6083 if test "$hard_links" = no; then
6084 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6085echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6086 need_locks=warn
6087 fi
6088else
6089 need_locks=no
6090fi
6091
6092echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6093echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6094
6095 runpath_var=
6096 allow_undefined_flag=
6097 enable_shared_with_static_runtimes=no
6098 archive_cmds=
6099 archive_expsym_cmds=
6100 old_archive_From_new_cmds=
6101 old_archive_from_expsyms_cmds=
6102 export_dynamic_flag_spec=
6103 whole_archive_flag_spec=
6104 thread_safe_flag_spec=
6105 hardcode_libdir_flag_spec=
6106 hardcode_libdir_flag_spec_ld=
6107 hardcode_libdir_separator=
6108 hardcode_direct=no
6109 hardcode_minus_L=no
6110 hardcode_shlibpath_var=unsupported
6111 link_all_deplibs=unknown
6112 hardcode_automatic=no
6113 module_cmds=
6114 module_expsym_cmds=
6115 always_export_symbols=no
6116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6117 # include_expsyms should be a list of space-separated symbols to be *always*
6118 # included in the symbol list
6119 include_expsyms=
6120 # exclude_expsyms can be an extended regexp of symbols to exclude
6121 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6122 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6123 # as well as any symbol that contains `d'.
6124 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6125 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6126 # platforms (ab)use it in PIC code, but their linkers get confused if
6127 # the symbol is explicitly referenced. Since portable code cannot
6128 # rely on this symbol name, it's probably fine to never include it in
6129 # preloaded symbol tables.
6130 extract_expsyms_cmds=
6131
6132 case $host_os in
6133 cygwin* | mingw* | pw32*)
6134 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6135 # When not using gcc, we currently assume that we are using
6136 # Microsoft Visual C++.
6137 if test "$GCC" != yes; then
6138 with_gnu_ld=no
6139 fi
6140 ;;
6141 openbsd*)
6142 with_gnu_ld=no
6143 ;;
6144 esac
6145
6146 ld_shlibs=yes
6147 if test "$with_gnu_ld" = yes; then
6148 # If archive_cmds runs LD, not CC, wlarc should be empty
6149 wlarc='${wl}'
6150
6151 # See if GNU ld supports shared libraries.
6152 case $host_os in
6153 aix3* | aix4* | aix5*)
6154 # On AIX/PPC, the GNU linker is very broken
6155 if test "$host_cpu" != ia64; then
6156 ld_shlibs=no
6157 cat <<EOF 1>&2
6158
6159*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6160*** to be unable to reliably create shared libraries on AIX.
6161*** Therefore, libtool is disabling shared libraries support. If you
6162*** really care for shared libraries, you may want to modify your PATH
6163*** so that a non-GNU linker is found, and then restart.
6164
6165EOF
6166 fi
6167 ;;
6168
6169 amigaos*)
6170 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)'
6171 hardcode_libdir_flag_spec='-L$libdir'
6172 hardcode_minus_L=yes
6173
6174 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6175 # that the semantics of dynamic libraries on AmigaOS, at least up
6176 # to version 4, is to share data among multiple programs linked
6177 # with the same dynamic library. Since this doesn't match the
6178 # behavior of shared libraries on other platforms, we can't use
6179 # them.
6180 ld_shlibs=no
6181 ;;
6182
6183 beos*)
6184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6185 allow_undefined_flag=unsupported
6186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6187 # support --undefined. This deserves some investigation. FIXME
6188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6189 else
6190 ld_shlibs=no
6191 fi
6192 ;;
6193
6194 cygwin* | mingw* | pw32*)
6195 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6196 # as there is no search path for DLLs.
6197 hardcode_libdir_flag_spec='-L$libdir'
6198 allow_undefined_flag=unsupported
6199 always_export_symbols=no
6200 enable_shared_with_static_runtimes=yes
6201 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6202
6203 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6205 # If the export-symbols file already is a .def file (1st line
6206 # is EXPORTS), use it as is; otherwise, prepend...
6207 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6208 cp $export_symbols $output_objdir/$soname.def;
6209 else
6210 echo EXPORTS > $output_objdir/$soname.def;
6211 cat $export_symbols >> $output_objdir/$soname.def;
6212 fi~
6213 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6214 else
6215 ld_shlibs=no
6216 fi
6217 ;;
6218
6219 netbsd*)
6220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6221 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6222 wlarc=
6223 else
6224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6226 fi
6227 ;;
6228
6229 solaris* | sysv5*)
6230 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6231 ld_shlibs=no
6232 cat <<EOF 1>&2
6233
6234*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6235*** create shared libraries on Solaris systems. Therefore, libtool
6236*** is disabling shared libraries support. We urge you to upgrade GNU
6237*** binutils to release 2.9.1 or newer. Another option is to modify
6238*** your PATH or compiler configuration so that the native linker is
6239*** used, and then restart.
6240
6241EOF
6242 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6245 else
6246 ld_shlibs=no
6247 fi
6248 ;;
6249
6250 sunos4*)
6251 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6252 wlarc=
6253 hardcode_direct=yes
6254 hardcode_shlibpath_var=no
6255 ;;
6256
6257 linux*)
6258 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6259 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6260 archive_cmds="$tmp_archive_cmds"
6261 supports_anon_versioning=no
6262 case `$LD -v 2>/dev/null` in
6263 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6266 *\ 2.11.*) ;; # other 2.11 versions
6267 *) supports_anon_versioning=yes ;;
6268 esac
6269 if test $supports_anon_versioning = yes; then
6270 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6271cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6272$echo "local: *; };" >> $output_objdir/$libname.ver~
6273 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6274 else
6275 archive_expsym_cmds="$tmp_archive_cmds"
6276 fi
6277 else
6278 ld_shlibs=no
6279 fi
6280 ;;
6281
6282 *)
6283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6286 else
6287 ld_shlibs=no
6288 fi
6289 ;;
6290 esac
6291
6292 if test "$ld_shlibs" = yes; then
6293 runpath_var=LD_RUN_PATH
6294 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6295 export_dynamic_flag_spec='${wl}--export-dynamic'
6296 # ancient GNU ld didn't support --whole-archive et. al.
6297 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6299 else
6300 whole_archive_flag_spec=
6301 fi
6302 fi
6303 else
6304 # PORTME fill in a description of your system's linker (not GNU ld)
6305 case $host_os in
6306 aix3*)
6307 allow_undefined_flag=unsupported
6308 always_export_symbols=yes
6309 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'
6310 # Note: this linker hardcodes the directories in LIBPATH if there
6311 # are no directories specified by -L.
6312 hardcode_minus_L=yes
6313 if test "$GCC" = yes && test -z "$link_static_flag"; then
6314 # Neither direct hardcoding nor static linking is supported with a
6315 # broken collect2.
6316 hardcode_direct=unsupported
6317 fi
6318 ;;
6319
6320 aix4* | aix5*)
6321 if test "$host_cpu" = ia64; then
6322 # On IA64, the linker does run time linking by default, so we don't
6323 # have to do anything special.
6324 aix_use_runtimelinking=no
6325 exp_sym_flag='-Bexport'
6326 no_entry_flag=""
6327 else
6328 # If we're using GNU nm, then we don't want the "-C" option.
6329 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6330 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6331 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'
6332 else
6333 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'
6334 fi
6335 aix_use_runtimelinking=no
6336
6337 # Test if we are trying to use run time linking or normal
6338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6339 # need to do runtime linking.
6340 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6341 for ld_flag in $LDFLAGS; do
6342 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6343 aix_use_runtimelinking=yes
6344 break
6345 fi
6346 done
6347 esac
6348
6349 exp_sym_flag='-bexport'
6350 no_entry_flag='-bnoentry'
6351 fi
6352
6353 # When large executables or shared objects are built, AIX ld can
6354 # have problems creating the table of contents. If linking a library
6355 # or program results in "error TOC overflow" add -mminimal-toc to
6356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6358
6359 archive_cmds=''
6360 hardcode_direct=yes
6361 hardcode_libdir_separator=':'
6362 link_all_deplibs=yes
6363
6364 if test "$GCC" = yes; then
6365 case $host_os in aix4.012|aix4.012.*)
6366 # We only want to do this on AIX 4.2 and lower, the check
6367 # below for broken collect2 doesn't work under 4.3+
6368 collect2name=`${CC} -print-prog-name=collect2`
6369 if test -f "$collect2name" && \
6370 strings "$collect2name" | grep resolve_lib_name >/dev/null
6371 then
6372 # We have reworked collect2
6373 hardcode_direct=yes
6374 else
6375 # We have old collect2
6376 hardcode_direct=unsupported
6377 # It fails to find uninstalled libraries when the uninstalled
6378 # path is not listed in the libpath. Setting hardcode_minus_L
6379 # to unsupported forces relinking
6380 hardcode_minus_L=yes
6381 hardcode_libdir_flag_spec='-L$libdir'
6382 hardcode_libdir_separator=
6383 fi
6384 esac
6385 shared_flag='-shared'
6386 else
6387 # not using gcc
6388 if test "$host_cpu" = ia64; then
6389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6390 # chokes on -Wl,-G. The following line is correct:
6391 shared_flag='-G'
6392 else
6393 if test "$aix_use_runtimelinking" = yes; then
6394 shared_flag='${wl}-G'
6395 else
6396 shared_flag='${wl}-bM:SRE'
6397 fi
6398 fi
6399 fi
6400
6401 # It seems that -bexpall does not export symbols beginning with
6402 # underscore (_), so it is better to generate a list of symbols to export.
6403 always_export_symbols=yes
6404 if test "$aix_use_runtimelinking" = yes; then
6405 # Warning - without using the other runtime loading flags (-brtl),
6406 # -berok will link without error, but may produce a broken library.
6407 allow_undefined_flag='-berok'
6408 # Determine the default libpath from the value encoded in an empty executable.
6409 cat >conftest.$ac_ext <<_ACEOF
6410/* confdefs.h. */
6411_ACEOF
6412cat confdefs.h >>conftest.$ac_ext
6413cat >>conftest.$ac_ext <<_ACEOF
6414/* end confdefs.h. */
6415
6416int
6417main ()
6418{
6419
6420 ;
6421 return 0;
6422}
6423_ACEOF
6424rm -f conftest.$ac_objext conftest$ac_exeext
6425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag"
6434 || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try='test -s conftest$ac_exeext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446
6447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6448}'`
6449# Check for a 64-bit object if we didn't find anything.
6450if 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; }
6451}'`; fi
6452else
6453 echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
6455
6456fi
6457rm -f conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6460
6461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6462 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6463 else
6464 if test "$host_cpu" = ia64; then
6465 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6466 allow_undefined_flag="-z nodefs"
6467 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6468 else
6469 # Determine the default libpath from the value encoded in an empty executable.
6470 cat >conftest.$ac_ext <<_ACEOF
6471/* confdefs.h. */
6472_ACEOF
6473cat confdefs.h >>conftest.$ac_ext
6474cat >>conftest.$ac_ext <<_ACEOF
6475/* end confdefs.h. */
6476
6477int
6478main ()
6479{
6480
6481 ;
6482 return 0;
6483}
6484_ACEOF
6485rm -f conftest.$ac_objext conftest$ac_exeext
6486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487 (eval $ac_link) 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -z "$ac_c_werror_flag"
6495 || test ! -s conftest.err'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try='test -s conftest$ac_exeext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 (eval $ac_try) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6507
6508aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6509}'`
6510# Check for a 64-bit object if we didn't find anything.
6511if 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; }
6512}'`; fi
6513else
6514 echo "$as_me: failed program was:" >&5
6515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517fi
6518rm -f conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6521
6522 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6523 # Warning - without using the other run time loading flags,
6524 # -berok will link without error, but may produce a broken library.
6525 no_undefined_flag=' ${wl}-bernotok'
6526 allow_undefined_flag=' ${wl}-berok'
6527 # -bexpall does not export symbols beginning with underscore (_)
6528 always_export_symbols=yes
6529 # Exported symbols can be pulled into shared objects from archives
6530 whole_archive_flag_spec=' '
6531 archive_cmds_need_lc=yes
6532 # This is similar to how AIX traditionally builds it's shared libraries.
6533 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6534 fi
6535 fi
6536 ;;
6537
6538 amigaos*)
6539 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)'
6540 hardcode_libdir_flag_spec='-L$libdir'
6541 hardcode_minus_L=yes
6542 # see comment about different semantics on the GNU ld section
6543 ld_shlibs=no
6544 ;;
6545
6546 bsdi4*)
6547 export_dynamic_flag_spec=-rdynamic
6548 ;;
6549
6550 cygwin* | mingw* | pw32*)
6551 # When not using gcc, we currently assume that we are using
6552 # Microsoft Visual C++.
6553 # hardcode_libdir_flag_spec is actually meaningless, as there is
6554 # no search path for DLLs.
6555 hardcode_libdir_flag_spec=' '
6556 allow_undefined_flag=unsupported
6557 # Tell ltmain to make .lib files, not .a files.
6558 libext=lib
6559 # Tell ltmain to make .dll files, not .so files.
6560 shrext_cmds=".dll"
6561 # FIXME: Setting linknames here is a bad hack.
6562 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6563 # The linker will automatically build a .lib file if we build a DLL.
6564 old_archive_From_new_cmds='true'
6565 # FIXME: Should let the user specify the lib program.
6566 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6567 fix_srcfile_path='`cygpath -w "$srcfile"`'
6568 enable_shared_with_static_runtimes=yes
6569 ;;
6570
6571 darwin* | rhapsody*)
6572 if test "$GXX" = yes ; then
6573 archive_cmds_need_lc=no
6574 case "$host_os" in
6575 rhapsody* | darwin1.[012])
6576 allow_undefined_flag='-undefined suppress'
6577 ;;
6578 *) # Darwin 1.3 on
6579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6580 allow_undefined_flag='-flat_namespace -undefined suppress'
6581 else
6582 case ${MACOSX_DEPLOYMENT_TARGET} in
6583 10.[012])
6584 allow_undefined_flag='-flat_namespace -undefined suppress'
6585 ;;
6586 10.*)
6587 allow_undefined_flag='-undefined dynamic_lookup'
6588 ;;
6589 esac
6590 fi
6591 ;;
6592 esac
6593 lt_int_apple_cc_single_mod=no
6594 output_verbose_link_cmd='echo'
6595 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6596 lt_int_apple_cc_single_mod=yes
6597 fi
6598 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6599 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6600 else
6601 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6602 fi
6603 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6605 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6606 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6607 else
6608 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6609 fi
6610 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}'
6611 hardcode_direct=no
6612 hardcode_automatic=yes
6613 hardcode_shlibpath_var=unsupported
6614 whole_archive_flag_spec='-all_load $convenience'
6615 link_all_deplibs=yes
6616 else
6617 ld_shlibs=no
6618 fi
6619 ;;
6620
6621 dgux*)
6622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6623 hardcode_libdir_flag_spec='-L$libdir'
6624 hardcode_shlibpath_var=no
6625 ;;
6626
6627 freebsd1*)
6628 ld_shlibs=no
6629 ;;
6630
6631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6632 # support. Future versions do this automatically, but an explicit c++rt0.o
6633 # does not break anything, and helps significantly (at the cost of a little
6634 # extra space).
6635 freebsd2.2*)
6636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6637 hardcode_libdir_flag_spec='-R$libdir'
6638 hardcode_direct=yes
6639 hardcode_shlibpath_var=no
6640 ;;
6641
6642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6643 freebsd2*)
6644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6645 hardcode_direct=yes
6646 hardcode_minus_L=yes
6647 hardcode_shlibpath_var=no
6648 ;;
6649
6650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6651 freebsd* | kfreebsd*-gnu)
6652 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6653 hardcode_libdir_flag_spec='-R$libdir'
6654 hardcode_direct=yes
6655 hardcode_shlibpath_var=no
6656 ;;
6657
6658 hpux9*)
6659 if test "$GCC" = yes; then
6660 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'
6661 else
6662 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'
6663 fi
6664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6665 hardcode_libdir_separator=:
6666 hardcode_direct=yes
6667
6668 # hardcode_minus_L: Not really in the search PATH,
6669 # but as the default location of the library.
6670 hardcode_minus_L=yes
6671 export_dynamic_flag_spec='${wl}-E'
6672 ;;
6673
6674 hpux10* | hpux11*)
6675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6676 case "$host_cpu" in
6677 hppa*64*|ia64*)
6678 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6679 ;;
6680 *)
6681 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6682 ;;
6683 esac
6684 else
6685 case "$host_cpu" in
6686 hppa*64*|ia64*)
6687 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6688 ;;
6689 *)
6690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6691 ;;
6692 esac
6693 fi
6694 if test "$with_gnu_ld" = no; then
6695 case "$host_cpu" in
6696 hppa*64*)
6697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6698 hardcode_libdir_flag_spec_ld='+b $libdir'
6699 hardcode_libdir_separator=:
6700 hardcode_direct=no
6701 hardcode_shlibpath_var=no
6702 ;;
6703 ia64*)
6704 hardcode_libdir_flag_spec='-L$libdir'
6705 hardcode_direct=no
6706 hardcode_shlibpath_var=no
6707
6708 # hardcode_minus_L: Not really in the search PATH,
6709 # but as the default location of the library.
6710 hardcode_minus_L=yes
6711 ;;
6712 *)
6713 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6714 hardcode_libdir_separator=:
6715 hardcode_direct=yes
6716 export_dynamic_flag_spec='${wl}-E'
6717
6718 # hardcode_minus_L: Not really in the search PATH,
6719 # but as the default location of the library.
6720 hardcode_minus_L=yes
6721 ;;
6722 esac
6723 fi
6724 ;;
6725
6726 irix5* | irix6* | nonstopux*)
6727 if test "$GCC" = yes; then
6728 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'
6729 else
6730 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'
6731 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6732 fi
6733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6734 hardcode_libdir_separator=:
6735 link_all_deplibs=yes
6736 ;;
6737
6738 netbsd*)
6739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6741 else
6742 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6743 fi
6744 hardcode_libdir_flag_spec='-R$libdir'
6745 hardcode_direct=yes
6746 hardcode_shlibpath_var=no
6747 ;;
6748
6749 newsos6)
6750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6751 hardcode_direct=yes
6752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6753 hardcode_libdir_separator=:
6754 hardcode_shlibpath_var=no
6755 ;;
6756
6757 openbsd*)
6758 hardcode_direct=yes
6759 hardcode_shlibpath_var=no
6760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6763 export_dynamic_flag_spec='${wl}-E'
6764 else
6765 case $host_os in
6766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6768 hardcode_libdir_flag_spec='-R$libdir'
6769 ;;
6770 *)
6771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6773 ;;
6774 esac
6775 fi
6776 ;;
6777
6778 os2*)
6779 hardcode_libdir_flag_spec='-L$libdir'
6780 hardcode_minus_L=yes
6781 allow_undefined_flag=unsupported
6782 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'
6783 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6784 ;;
6785
6786 osf3*)
6787 if test "$GCC" = yes; then
6788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6789 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'
6790 else
6791 allow_undefined_flag=' -expect_unresolved \*'
6792 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'
6793 fi
6794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6795 hardcode_libdir_separator=:
6796 ;;
6797
6798 osf4* | osf5*) # as osf3* with the addition of -msym flag
6799 if test "$GCC" = yes; then
6800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6801 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'
6802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6803 else
6804 allow_undefined_flag=' -expect_unresolved \*'
6805 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'
6806 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6807 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6808
6809 # Both c and cxx compiler support -rpath directly
6810 hardcode_libdir_flag_spec='-rpath $libdir'
6811 fi
6812 hardcode_libdir_separator=:
6813 ;;
6814
6815 sco3.2v5*)
6816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6817 hardcode_shlibpath_var=no
6818 export_dynamic_flag_spec='${wl}-Bexport'
6819 runpath_var=LD_RUN_PATH
6820 hardcode_runpath_var=yes
6821 ;;
6822
6823 solaris*)
6824 no_undefined_flag=' -z text'
6825 if test "$GCC" = yes; then
6826 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6827 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6828 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6829 else
6830 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6831 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6833 fi
6834 hardcode_libdir_flag_spec='-R$libdir'
6835 hardcode_shlibpath_var=no
6836 case $host_os in
6837 solaris2.[0-5] | solaris2.[0-5].*) ;;
6838 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6839 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6840 esac
6841 link_all_deplibs=yes
6842 ;;
6843
6844 sunos4*)
6845 if test "x$host_vendor" = xsequent; then
6846 # Use $CC to link under sequent, because it throws in some extra .o
6847 # files that make .init and .fini sections work.
6848 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6849 else
6850 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6851 fi
6852 hardcode_libdir_flag_spec='-L$libdir'
6853 hardcode_direct=yes
6854 hardcode_minus_L=yes
6855 hardcode_shlibpath_var=no
6856 ;;
6857
6858 sysv4)
6859 case $host_vendor in
6860 sni)
6861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6862 hardcode_direct=yes # is this really true???
6863 ;;
6864 siemens)
6865 ## LD is ld it makes a PLAMLIB
6866 ## CC just makes a GrossModule.
6867 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6868 reload_cmds='$CC -r -o $output$reload_objs'
6869 hardcode_direct=no
6870 ;;
6871 motorola)
6872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6873 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6874 ;;
6875 esac
6876 runpath_var='LD_RUN_PATH'
6877 hardcode_shlibpath_var=no
6878 ;;
6879
6880 sysv4.3*)
6881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6882 hardcode_shlibpath_var=no
6883 export_dynamic_flag_spec='-Bexport'
6884 ;;
6885
6886 sysv4*MP*)
6887 if test -d /usr/nec; then
6888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6889 hardcode_shlibpath_var=no
6890 runpath_var=LD_RUN_PATH
6891 hardcode_runpath_var=yes
6892 ld_shlibs=yes
6893 fi
6894 ;;
6895
6896 sysv4.2uw2*)
6897 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6898 hardcode_direct=yes
6899 hardcode_minus_L=no
6900 hardcode_shlibpath_var=no
6901 hardcode_runpath_var=yes
6902 runpath_var=LD_RUN_PATH
6903 ;;
6904
6905 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6906 no_undefined_flag='${wl}-z ${wl}text'
6907 if test "$GCC" = yes; then
6908 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6909 else
6910 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6911 fi
6912 runpath_var='LD_RUN_PATH'
6913 hardcode_shlibpath_var=no
6914 ;;
6915
6916 sysv5*)
6917 no_undefined_flag=' -z text'
6918 # $CC -shared without GNU ld will not create a library from C++
6919 # object files and a static libstdc++, better avoid it by now
6920 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6923 hardcode_libdir_flag_spec=
6924 hardcode_shlibpath_var=no
6925 runpath_var='LD_RUN_PATH'
6926 ;;
6927
6928 uts4*)
6929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6930 hardcode_libdir_flag_spec='-L$libdir'
6931 hardcode_shlibpath_var=no
6932 ;;
6933
6934 *)
6935 ld_shlibs=no
6936 ;;
6937 esac
6938 fi
6939
6940echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6941echo "${ECHO_T}$ld_shlibs" >&6
6942test "$ld_shlibs" = no && can_build_shared=no
6943
6944variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6945if test "$GCC" = yes; then
6946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6947fi
6948
6949#
6950# Do we need to explicitly link libc?
6951#
6952case "x$archive_cmds_need_lc" in
6953x|xyes)
6954 # Assume -lc should be added
6955 archive_cmds_need_lc=yes
6956
6957 if test "$enable_shared" = yes && test "$GCC" = yes; then
6958 case $archive_cmds in
6959 *'~'*)
6960 # FIXME: we may have to deal with multi-command sequences.
6961 ;;
6962 '$CC '*)
6963 # Test whether the compiler implicitly links with -lc since on some
6964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6965 # to ld, don't add -lc before -lgcc.
6966 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6967echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6968 $rm conftest*
6969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6970
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } 2>conftest.err; then
6976 soname=conftest
6977 lib=conftest
6978 libobjs=conftest.$ac_objext
6979 deplibs=
6980 wl=$lt_prog_compiler_wl
6981 compiler_flags=-v
6982 linker_flags=-v
6983 verstring=
6984 output_objdir=.
6985 libname=conftest
6986 lt_save_allow_undefined_flag=$allow_undefined_flag
6987 allow_undefined_flag=
6988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6989 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }
6993 then
6994 archive_cmds_need_lc=no
6995 else
6996 archive_cmds_need_lc=yes
6997 fi
6998 allow_undefined_flag=$lt_save_allow_undefined_flag
6999 else
7000 cat conftest.err 1>&5
7001 fi
7002 $rm conftest*
7003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7004echo "${ECHO_T}$archive_cmds_need_lc" >&6
7005 ;;
7006 esac
7007 fi
7008 ;;
7009esac
7010
7011echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7012echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7013library_names_spec=
7014libname_spec='lib$name'
7015soname_spec=
7016shrext_cmds=".so"
7017postinstall_cmds=
7018postuninstall_cmds=
7019finish_cmds=
7020finish_eval=
7021shlibpath_var=
7022shlibpath_overrides_runpath=unknown
7023version_type=none
7024dynamic_linker="$host_os ld.so"
7025sys_lib_dlsearch_path_spec="/lib /usr/lib"
7026if test "$GCC" = yes; then
7027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7028 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7029 # if the path contains ";" then we assume it to be the separator
7030 # otherwise default to the standard path separator (i.e. ":") - it is
7031 # assumed that no part of a normal pathname contains ";" but that should
7032 # okay in the real world where ";" in dirpaths is itself problematic.
7033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7034 else
7035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7036 fi
7037else
7038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7039fi
7040need_lib_prefix=unknown
7041hardcode_into_libs=no
7042
7043# when you set need_version to no, make sure it does not cause -set_version
7044# flags to be left without arguments
7045need_version=unknown
7046
7047case $host_os in
7048aix3*)
7049 version_type=linux
7050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7051 shlibpath_var=LIBPATH
7052
7053 # AIX 3 has no versioning support, so we append a major version to the name.
7054 soname_spec='${libname}${release}${shared_ext}$major'
7055 ;;
7056
7057aix4* | aix5*)
7058 version_type=linux
7059 need_lib_prefix=no
7060 need_version=no
7061 hardcode_into_libs=yes
7062 if test "$host_cpu" = ia64; then
7063 # AIX 5 supports IA64
7064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7065 shlibpath_var=LD_LIBRARY_PATH
7066 else
7067 # With GCC up to 2.95.x, collect2 would create an import file
7068 # for dependence libraries. The import file would start with
7069 # the line `#! .'. This would cause the generated library to
7070 # depend on `.', always an invalid library. This was fixed in
7071 # development snapshots of GCC prior to 3.0.
7072 case $host_os in
7073 aix4 | aix4.[01] | aix4.[01].*)
7074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7075 echo ' yes '
7076 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7077 :
7078 else
7079 can_build_shared=no
7080 fi
7081 ;;
7082 esac
7083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7084 # soname into executable. Probably we can add versioning support to
7085 # collect2, so additional links can be useful in future.
7086 if test "$aix_use_runtimelinking" = yes; then
7087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7088 # instead of lib<name>.a to let people know that these are not
7089 # typical AIX shared libraries.
7090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7091 else
7092 # We preserve .a as extension for shared libraries through AIX4.2
7093 # and later when we are not doing run time linking.
7094 library_names_spec='${libname}${release}.a $libname.a'
7095 soname_spec='${libname}${release}${shared_ext}$major'
7096 fi
7097 shlibpath_var=LIBPATH
7098 fi
7099 ;;
7100
7101amigaos*)
7102 library_names_spec='$libname.ixlibrary $libname.a'
7103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7104 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'
7105 ;;
7106
7107beos*)
7108 library_names_spec='${libname}${shared_ext}'
7109 dynamic_linker="$host_os ld.so"
7110 shlibpath_var=LIBRARY_PATH
7111 ;;
7112
7113bsdi4*)
7114 version_type=linux
7115 need_version=no
7116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7117 soname_spec='${libname}${release}${shared_ext}$major'
7118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7119 shlibpath_var=LD_LIBRARY_PATH
7120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7122 # the default ld.so.conf also contains /usr/contrib/lib and
7123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7124 # libtool to hard-code these into programs
7125 ;;
7126
7127cygwin* | mingw* | pw32*)
7128 version_type=windows
7129 shrext_cmds=".dll"
7130 need_version=no
7131 need_lib_prefix=no
7132
7133 case $GCC,$host_os in
7134 yes,cygwin* | yes,mingw* | yes,pw32*)
7135 library_names_spec='$libname.dll.a'
7136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7137 postinstall_cmds='base_file=`basename \${file}`~
7138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7139 dldir=$destdir/`dirname \$dlpath`~
7140 test -d \$dldir || mkdir -p \$dldir~
7141 $install_prog $dir/$dlname \$dldir/$dlname'
7142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7143 dlpath=$dir/\$dldll~
7144 $rm \$dlpath'
7145 shlibpath_overrides_runpath=yes
7146
7147 case $host_os in
7148 cygwin*)
7149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7151 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7152 ;;
7153 mingw*)
7154 # MinGW DLLs use traditional 'lib' prefix
7155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7157 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7158 # It is most probably a Windows format PATH printed by
7159 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7160 # path with ; separators, and with drive letters. We can handle the
7161 # drive letters (cygwin fileutils understands them), so leave them,
7162 # especially as we might pass files found there to a mingw objdump,
7163 # which wouldn't understand a cygwinified path. Ahh.
7164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7165 else
7166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7167 fi
7168 ;;
7169 pw32*)
7170 # pw32 DLLs use 'pw' prefix rather than 'lib'
7171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7172 ;;
7173 esac
7174 ;;
7175
7176 *)
7177 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7178 ;;
7179 esac
7180 dynamic_linker='Win32 ld.exe'
7181 # FIXME: first we should search . and the directory the executable is in
7182 shlibpath_var=PATH
7183 ;;
7184
7185darwin* | rhapsody*)
7186 dynamic_linker="$host_os dyld"
7187 version_type=darwin
7188 need_lib_prefix=no
7189 need_version=no
7190 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7191 soname_spec='${libname}${release}${major}$shared_ext'
7192 shlibpath_overrides_runpath=yes
7193 shlibpath_var=DYLD_LIBRARY_PATH
7194 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7195 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7196 if test "$GCC" = yes; then
7197 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"`
7198 else
7199 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7200 fi
7201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7202 ;;
7203
7204dgux*)
7205 version_type=linux
7206 need_lib_prefix=no
7207 need_version=no
7208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7209 soname_spec='${libname}${release}${shared_ext}$major'
7210 shlibpath_var=LD_LIBRARY_PATH
7211 ;;
7212
7213freebsd1*)
7214 dynamic_linker=no
7215 ;;
7216
7217kfreebsd*-gnu)
7218 version_type=linux
7219 need_lib_prefix=no
7220 need_version=no
7221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7222 soname_spec='${libname}${release}${shared_ext}$major'
7223 shlibpath_var=LD_LIBRARY_PATH
7224 shlibpath_overrides_runpath=no
7225 hardcode_into_libs=yes
7226 dynamic_linker='GNU ld.so'
7227 ;;
7228
7229freebsd*)
7230 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7231 version_type=freebsd-$objformat
7232 case $version_type in
7233 freebsd-elf*)
7234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7235 need_version=no
7236 need_lib_prefix=no
7237 ;;
7238 freebsd-*)
7239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7240 need_version=yes
7241 ;;
7242 esac
7243 shlibpath_var=LD_LIBRARY_PATH
7244 case $host_os in
7245 freebsd2*)
7246 shlibpath_overrides_runpath=yes
7247 ;;
7248 freebsd3.01* | freebsdelf3.01*)
7249 shlibpath_overrides_runpath=yes
7250 hardcode_into_libs=yes
7251 ;;
7252 *) # from 3.2 on
7253 shlibpath_overrides_runpath=no
7254 hardcode_into_libs=yes
7255 ;;
7256 esac
7257 ;;
7258
7259gnu*)
7260 version_type=linux
7261 need_lib_prefix=no
7262 need_version=no
7263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7264 soname_spec='${libname}${release}${shared_ext}$major'
7265 shlibpath_var=LD_LIBRARY_PATH
7266 hardcode_into_libs=yes
7267 ;;
7268
7269hpux9* | hpux10* | hpux11*)
7270 # Give a soname corresponding to the major version so that dld.sl refuses to
7271 # link against other versions.
7272 version_type=sunos
7273 need_lib_prefix=no
7274 need_version=no
7275 case "$host_cpu" in
7276 ia64*)
7277 shrext_cmds='.so'
7278 hardcode_into_libs=yes
7279 dynamic_linker="$host_os dld.so"
7280 shlibpath_var=LD_LIBRARY_PATH
7281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7283 soname_spec='${libname}${release}${shared_ext}$major'
7284 if test "X$HPUX_IA64_MODE" = X32; then
7285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7286 else
7287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7288 fi
7289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7290 ;;
7291 hppa*64*)
7292 shrext_cmds='.sl'
7293 hardcode_into_libs=yes
7294 dynamic_linker="$host_os dld.sl"
7295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7298 soname_spec='${libname}${release}${shared_ext}$major'
7299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7301 ;;
7302 *)
7303 shrext_cmds='.sl'
7304 dynamic_linker="$host_os dld.sl"
7305 shlibpath_var=SHLIB_PATH
7306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7308 soname_spec='${libname}${release}${shared_ext}$major'
7309 ;;
7310 esac
7311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7312 postinstall_cmds='chmod 555 $lib'
7313 ;;
7314
7315irix5* | irix6* | nonstopux*)
7316 case $host_os in
7317 nonstopux*) version_type=nonstopux ;;
7318 *)
7319 if test "$lt_cv_prog_gnu_ld" = yes; then
7320 version_type=linux
7321 else
7322 version_type=irix
7323 fi ;;
7324 esac
7325 need_lib_prefix=no
7326 need_version=no
7327 soname_spec='${libname}${release}${shared_ext}$major'
7328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7329 case $host_os in
7330 irix5* | nonstopux*)
7331 libsuff= shlibsuff=
7332 ;;
7333 *)
7334 case $LD in # libtool.m4 will add one of these switches to LD
7335 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7336 libsuff= shlibsuff= libmagic=32-bit;;
7337 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7338 libsuff=32 shlibsuff=N32 libmagic=N32;;
7339 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7340 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7341 *) libsuff= shlibsuff= libmagic=never-match;;
7342 esac
7343 ;;
7344 esac
7345 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7346 shlibpath_overrides_runpath=no
7347 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7348 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7349 hardcode_into_libs=yes
7350 ;;
7351
7352# No shared lib support for Linux oldld, aout, or coff.
7353linux*oldld* | linux*aout* | linux*coff*)
7354 dynamic_linker=no
7355 ;;
7356
7357# This must be Linux ELF.
7358linux*)
7359 version_type=linux
7360 need_lib_prefix=no
7361 need_version=no
7362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7363 soname_spec='${libname}${release}${shared_ext}$major'
7364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7365 shlibpath_var=LD_LIBRARY_PATH
7366 shlibpath_overrides_runpath=no
7367 # This implies no fast_install, which is unacceptable.
7368 # Some rework will be needed to allow for fast_install
7369 # before this can be enabled.
7370 hardcode_into_libs=yes
7371
7372 # find out which ABI we are using
7373 libsuff=
7374 case "$host_cpu" in
7375 x86_64*|s390x*|powerpc64*)
7376 echo '#line 7376 "configure"' > conftest.$ac_ext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 (eval $ac_compile) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; then
7382 case `/usr/bin/file conftest.$ac_objext` in
7383 *64-bit*)
7384 libsuff=64
7385 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7386 ;;
7387 esac
7388 fi
7389 rm -rf conftest*
7390 ;;
7391 esac
7392
7393 # Append ld.so.conf contents to the search path
7394 if test -f /etc/ld.so.conf; then
7395 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7396 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7397 fi
7398
7399 # We used to test for /lib/ld.so.1 and disable shared libraries on
7400 # powerpc, because MkLinux only supported shared libraries with the
7401 # GNU dynamic linker. Since this was broken with cross compilers,
7402 # most powerpc-linux boxes support dynamic linking these days and
7403 # people can always --disable-shared, the test was removed, and we
7404 # assume the GNU/Linux dynamic linker is in use.
7405 dynamic_linker='GNU/Linux ld.so'
7406 ;;
7407
7408knetbsd*-gnu)
7409 version_type=linux
7410 need_lib_prefix=no
7411 need_version=no
7412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7413 soname_spec='${libname}${release}${shared_ext}$major'
7414 shlibpath_var=LD_LIBRARY_PATH
7415 shlibpath_overrides_runpath=no
7416 hardcode_into_libs=yes
7417 dynamic_linker='GNU ld.so'
7418 ;;
7419
7420netbsd*)
7421 version_type=sunos
7422 need_lib_prefix=no
7423 need_version=no
7424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7427 dynamic_linker='NetBSD (a.out) ld.so'
7428 else
7429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7430 soname_spec='${libname}${release}${shared_ext}$major'
7431 dynamic_linker='NetBSD ld.elf_so'
7432 fi
7433 shlibpath_var=LD_LIBRARY_PATH
7434 shlibpath_overrides_runpath=yes
7435 hardcode_into_libs=yes
7436 ;;
7437
7438newsos6)
7439 version_type=linux
7440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7441 shlibpath_var=LD_LIBRARY_PATH
7442 shlibpath_overrides_runpath=yes
7443 ;;
7444
7445nto-qnx*)
7446 version_type=linux
7447 need_lib_prefix=no
7448 need_version=no
7449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450 soname_spec='${libname}${release}${shared_ext}$major'
7451 shlibpath_var=LD_LIBRARY_PATH
7452 shlibpath_overrides_runpath=yes
7453 ;;
7454
7455openbsd*)
7456 version_type=sunos
7457 need_lib_prefix=no
7458 need_version=yes
7459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7461 shlibpath_var=LD_LIBRARY_PATH
7462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7463 case $host_os in
7464 openbsd2.[89] | openbsd2.[89].*)
7465 shlibpath_overrides_runpath=no
7466 ;;
7467 *)
7468 shlibpath_overrides_runpath=yes
7469 ;;
7470 esac
7471 else
7472 shlibpath_overrides_runpath=yes
7473 fi
7474 ;;
7475
7476os2*)
7477 libname_spec='$name'
7478 shrext_cmds=".dll"
7479 need_lib_prefix=no
7480 library_names_spec='$libname${shared_ext} $libname.a'
7481 dynamic_linker='OS/2 ld.exe'
7482 shlibpath_var=LIBPATH
7483 ;;
7484
7485osf3* | osf4* | osf5*)
7486 version_type=osf
7487 need_lib_prefix=no
7488 need_version=no
7489 soname_spec='${libname}${release}${shared_ext}$major'
7490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7491 shlibpath_var=LD_LIBRARY_PATH
7492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7494 ;;
7495
7496sco3.2v5*)
7497 version_type=osf
7498 soname_spec='${libname}${release}${shared_ext}$major'
7499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7500 shlibpath_var=LD_LIBRARY_PATH
7501 ;;
7502
7503solaris*)
7504 version_type=linux
7505 need_lib_prefix=no
7506 need_version=no
7507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7508 soname_spec='${libname}${release}${shared_ext}$major'
7509 shlibpath_var=LD_LIBRARY_PATH
7510 shlibpath_overrides_runpath=yes
7511 hardcode_into_libs=yes
7512 # ldd complains unless libraries are executable
7513 postinstall_cmds='chmod +x $lib'
7514 ;;
7515
7516sunos4*)
7517 version_type=sunos
7518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7520 shlibpath_var=LD_LIBRARY_PATH
7521 shlibpath_overrides_runpath=yes
7522 if test "$with_gnu_ld" = yes; then
7523 need_lib_prefix=no
7524 fi
7525 need_version=yes
7526 ;;
7527
7528sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7529 version_type=linux
7530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7531 soname_spec='${libname}${release}${shared_ext}$major'
7532 shlibpath_var=LD_LIBRARY_PATH
7533 case $host_vendor in
7534 sni)
7535 shlibpath_overrides_runpath=no
7536 need_lib_prefix=no
7537 export_dynamic_flag_spec='${wl}-Blargedynsym'
7538 runpath_var=LD_RUN_PATH
7539 ;;
7540 siemens)
7541 need_lib_prefix=no
7542 ;;
7543 motorola)
7544 need_lib_prefix=no
7545 need_version=no
7546 shlibpath_overrides_runpath=no
7547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7548 ;;
7549 esac
7550 ;;
7551
7552sysv4*MP*)
7553 if test -d /usr/nec ;then
7554 version_type=linux
7555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7556 soname_spec='$libname${shared_ext}.$major'
7557 shlibpath_var=LD_LIBRARY_PATH
7558 fi
7559 ;;
7560
7561uts4*)
7562 version_type=linux
7563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564 soname_spec='${libname}${release}${shared_ext}$major'
7565 shlibpath_var=LD_LIBRARY_PATH
7566 ;;
7567
7568*)
7569 dynamic_linker=no
7570 ;;
7571esac
7572echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7573echo "${ECHO_T}$dynamic_linker" >&6
7574test "$dynamic_linker" = no && can_build_shared=no
7575
7576echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7577echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7578hardcode_action=
7579if test -n "$hardcode_libdir_flag_spec" || \
7580 test -n "$runpath_var " || \
7581 test "X$hardcode_automatic"="Xyes" ; then
7582
7583 # We can hardcode non-existant directories.
7584 if test "$hardcode_direct" != no &&
7585 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7586 # have to relink, otherwise we might link with an installed library
7587 # when we should be linking with a yet-to-be-installed one
7588 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7589 test "$hardcode_minus_L" != no; then
7590 # Linking always hardcodes the temporary library directory.
7591 hardcode_action=relink
7592 else
7593 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7594 hardcode_action=immediate
7595 fi
7596else
7597 # We cannot hardcode anything, or else we can only hardcode existing
7598 # directories.
7599 hardcode_action=unsupported
7600fi
7601echo "$as_me:$LINENO: result: $hardcode_action" >&5
7602echo "${ECHO_T}$hardcode_action" >&6
7603
7604if test "$hardcode_action" = relink; then
7605 # Fast installation is not supported
7606 enable_fast_install=no
7607elif test "$shlibpath_overrides_runpath" = yes ||
7608 test "$enable_shared" = no; then
7609 # Fast installation is not necessary
7610 enable_fast_install=needless
7611fi
7612
7613striplib=
7614old_striplib=
7615echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7616echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7617if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7620 echo "$as_me:$LINENO: result: yes" >&5
7621echo "${ECHO_T}yes" >&6
7622else
7623# FIXME - insert some real tests, host_os isn't really good enough
7624 case $host_os in
7625 darwin*)
7626 if test -n "$STRIP" ; then
7627 striplib="$STRIP -x"
7628 echo "$as_me:$LINENO: result: yes" >&5
7629echo "${ECHO_T}yes" >&6
7630 else
7631 echo "$as_me:$LINENO: result: no" >&5
7632echo "${ECHO_T}no" >&6
7633fi
7634 ;;
7635 *)
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 ;;
7639 esac
7640fi
7641
7642if test "x$enable_dlopen" != xyes; then
7643 enable_dlopen=unknown
7644 enable_dlopen_self=unknown
7645 enable_dlopen_self_static=unknown
7646else
7647 lt_cv_dlopen=no
7648 lt_cv_dlopen_libs=
7649
7650 case $host_os in
7651 beos*)
7652 lt_cv_dlopen="load_add_on"
7653 lt_cv_dlopen_libs=
7654 lt_cv_dlopen_self=yes
7655 ;;
7656
7657 mingw* | pw32*)
7658 lt_cv_dlopen="LoadLibrary"
7659 lt_cv_dlopen_libs=
7660 ;;
7661
7662 cygwin*)
7663 lt_cv_dlopen="dlopen"
7664 lt_cv_dlopen_libs=
7665 ;;
7666
7667 darwin*)
7668 # if libdl is installed we need to link against it
7669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7670echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7671if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674 ac_check_lib_save_LIBS=$LIBS
7675LIBS="-ldl $LIBS"
7676cat >conftest.$ac_ext <<_ACEOF
7677/* confdefs.h. */
7678_ACEOF
7679cat confdefs.h >>conftest.$ac_ext
7680cat >>conftest.$ac_ext <<_ACEOF
7681/* end confdefs.h. */
7682
7683/* Override any gcc2 internal prototype to avoid an error. */
7684#ifdef __cplusplus
7685extern "C"
7686#endif
7687/* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7689char dlopen ();
7690int
7691main ()
7692{
7693dlopen ();
7694 ;
7695 return 0;
7696}
7697_ACEOF
7698rm -f conftest.$ac_objext conftest$ac_exeext
7699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7700 (eval $ac_link) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest$ac_exeext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_lib_dl_dlopen=yes
7721else
7722 echo "$as_me: failed program was:" >&5
7723sed 's/^/| /' conftest.$ac_ext >&5
7724
7725ac_cv_lib_dl_dlopen=no
7726fi
7727rm -f conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
7729LIBS=$ac_check_lib_save_LIBS
7730fi
7731echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7732echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7733if test $ac_cv_lib_dl_dlopen = yes; then
7734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7735else
7736
7737 lt_cv_dlopen="dyld"
7738 lt_cv_dlopen_libs=
7739 lt_cv_dlopen_self=yes
7740
7741fi
7742
7743 ;;
7744
7745 *)
7746 echo "$as_me:$LINENO: checking for shl_load" >&5
7747echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7748if test "${ac_cv_func_shl_load+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751 cat >conftest.$ac_ext <<_ACEOF
7752/* confdefs.h. */
7753_ACEOF
7754cat confdefs.h >>conftest.$ac_ext
7755cat >>conftest.$ac_ext <<_ACEOF
7756/* end confdefs.h. */
7757/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7759#define shl_load innocuous_shl_load
7760
7761/* System header to define __stub macros and hopefully few prototypes,
7762 which can conflict with char shl_load (); below.
7763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7764 <limits.h> exists even on freestanding compilers. */
7765
7766#ifdef __STDC__
7767# include <limits.h>
7768#else
7769# include <assert.h>
7770#endif
7771
7772#undef shl_load
7773
7774/* Override any gcc2 internal prototype to avoid an error. */
7775#ifdef __cplusplus
7776extern "C"
7777{
7778#endif
7779/* We use char because int might match the return type of a gcc2
7780 builtin and then its argument prototype would still apply. */
7781char shl_load ();
7782/* The GNU C library defines this for functions which it implements
7783 to always fail with ENOSYS. Some functions are actually named
7784 something starting with __ and the normal name is an alias. */
7785#if defined (__stub_shl_load) || defined (__stub___shl_load)
7786choke me
7787#else
7788char (*f) () = shl_load;
7789#endif
7790#ifdef __cplusplus
7791}
7792#endif
7793
7794int
7795main ()
7796{
7797return f != shl_load;
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802rm -f conftest.$ac_objext conftest$ac_exeext
7803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804 (eval $ac_link) 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } &&
7811 { ac_try='test -z "$ac_c_werror_flag"
7812 || test ! -s conftest.err'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 (eval $ac_try) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; } &&
7818 { ac_try='test -s conftest$ac_exeext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 ac_cv_func_shl_load=yes
7825else
7826 echo "$as_me: failed program was:" >&5
7827sed 's/^/| /' conftest.$ac_ext >&5
7828
7829ac_cv_func_shl_load=no
7830fi
7831rm -f conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext conftest.$ac_ext
7833fi
7834echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7835echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7836if test $ac_cv_func_shl_load = yes; then
7837 lt_cv_dlopen="shl_load"
7838else
7839 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7840echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7841if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844 ac_check_lib_save_LIBS=$LIBS
7845LIBS="-ldld $LIBS"
7846cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h. */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h. */
7852
7853/* Override any gcc2 internal prototype to avoid an error. */
7854#ifdef __cplusplus
7855extern "C"
7856#endif
7857/* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7859char shl_load ();
7860int
7861main ()
7862{
7863shl_load ();
7864 ;
7865 return 0;
7866}
7867_ACEOF
7868rm -f conftest.$ac_objext conftest$ac_exeext
7869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870 (eval $ac_link) 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag"
7878 || test ! -s conftest.err'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_cv_lib_dld_shl_load=yes
7891else
7892 echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895ac_cv_lib_dld_shl_load=no
7896fi
7897rm -f conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7899LIBS=$ac_check_lib_save_LIBS
7900fi
7901echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7902echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7903if test $ac_cv_lib_dld_shl_load = yes; then
7904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7905else
7906 echo "$as_me:$LINENO: checking for dlopen" >&5
7907echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7908if test "${ac_cv_func_dlopen+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 cat >conftest.$ac_ext <<_ACEOF
7912/* confdefs.h. */
7913_ACEOF
7914cat confdefs.h >>conftest.$ac_ext
7915cat >>conftest.$ac_ext <<_ACEOF
7916/* end confdefs.h. */
7917/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7919#define dlopen innocuous_dlopen
7920
7921/* System header to define __stub macros and hopefully few prototypes,
7922 which can conflict with char dlopen (); below.
7923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7924 <limits.h> exists even on freestanding compilers. */
7925
7926#ifdef __STDC__
7927# include <limits.h>
7928#else
7929# include <assert.h>
7930#endif
7931
7932#undef dlopen
7933
7934/* Override any gcc2 internal prototype to avoid an error. */
7935#ifdef __cplusplus
7936extern "C"
7937{
7938#endif
7939/* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7941char dlopen ();
7942/* The GNU C library defines this for functions which it implements
7943 to always fail with ENOSYS. Some functions are actually named
7944 something starting with __ and the normal name is an alias. */
7945#if defined (__stub_dlopen) || defined (__stub___dlopen)
7946choke me
7947#else
7948char (*f) () = dlopen;
7949#endif
7950#ifdef __cplusplus
7951}
7952#endif
7953
7954int
7955main ()
7956{
7957return f != dlopen;
7958 ;
7959 return 0;
7960}
7961_ACEOF
7962rm -f conftest.$ac_objext conftest$ac_exeext
7963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag"
7972 || test ! -s conftest.err'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_func_dlopen=yes
7985else
7986 echo "$as_me: failed program was:" >&5
7987sed 's/^/| /' conftest.$ac_ext >&5
7988
7989ac_cv_func_dlopen=no
7990fi
7991rm -f conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993fi
7994echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7995echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7996if test $ac_cv_func_dlopen = yes; then
7997 lt_cv_dlopen="dlopen"
7998else
7999 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8000echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8001if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003else
8004 ac_check_lib_save_LIBS=$LIBS
8005LIBS="-ldl $LIBS"
8006cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012
8013/* Override any gcc2 internal prototype to avoid an error. */
8014#ifdef __cplusplus
8015extern "C"
8016#endif
8017/* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8019char dlopen ();
8020int
8021main ()
8022{
8023dlopen ();
8024 ;
8025 return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext conftest$ac_exeext
8029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag"
8038 || test ! -s conftest.err'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 (eval $ac_try) 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 ac_cv_lib_dl_dlopen=yes
8051else
8052 echo "$as_me: failed program was:" >&5
8053sed 's/^/| /' conftest.$ac_ext >&5
8054
8055ac_cv_lib_dl_dlopen=no
8056fi
8057rm -f conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059LIBS=$ac_check_lib_save_LIBS
8060fi
8061echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8062echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8063if test $ac_cv_lib_dl_dlopen = yes; then
8064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8065else
8066 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8067echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8068if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071 ac_check_lib_save_LIBS=$LIBS
8072LIBS="-lsvld $LIBS"
8073cat >conftest.$ac_ext <<_ACEOF
8074/* confdefs.h. */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h. */
8079
8080/* Override any gcc2 internal prototype to avoid an error. */
8081#ifdef __cplusplus
8082extern "C"
8083#endif
8084/* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */
8086char dlopen ();
8087int
8088main ()
8089{
8090dlopen ();
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext conftest$ac_exeext
8096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097 (eval $ac_link) 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag"
8105 || test ! -s conftest.err'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 (eval $ac_try) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 ac_cv_lib_svld_dlopen=yes
8118else
8119 echo "$as_me: failed program was:" >&5
8120sed 's/^/| /' conftest.$ac_ext >&5
8121
8122ac_cv_lib_svld_dlopen=no
8123fi
8124rm -f conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126LIBS=$ac_check_lib_save_LIBS
8127fi
8128echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8129echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8130if test $ac_cv_lib_svld_dlopen = yes; then
8131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8132else
8133 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8134echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8135if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138 ac_check_lib_save_LIBS=$LIBS
8139LIBS="-ldld $LIBS"
8140cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h. */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */
8146
8147/* Override any gcc2 internal prototype to avoid an error. */
8148#ifdef __cplusplus
8149extern "C"
8150#endif
8151/* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8153char dld_link ();
8154int
8155main ()
8156{
8157dld_link ();
8158 ;
8159 return 0;
8160}
8161_ACEOF
8162rm -f conftest.$ac_objext conftest$ac_exeext
8163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag"
8172 || test ! -s conftest.err'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 ac_cv_lib_dld_dld_link=yes
8185else
8186 echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189ac_cv_lib_dld_dld_link=no
8190fi
8191rm -f conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193LIBS=$ac_check_lib_save_LIBS
8194fi
8195echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8196echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8197if test $ac_cv_lib_dld_dld_link = yes; then
8198 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8199fi
8200
8201
8202fi
8203
8204
8205fi
8206
8207
8208fi
8209
8210
8211fi
8212
8213
8214fi
8215
8216 ;;
8217 esac
8218
8219 if test "x$lt_cv_dlopen" != xno; then
8220 enable_dlopen=yes
8221 else
8222 enable_dlopen=no
8223 fi
8224
8225 case $lt_cv_dlopen in
8226 dlopen)
8227 save_CPPFLAGS="$CPPFLAGS"
8228 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8229
8230 save_LDFLAGS="$LDFLAGS"
8231 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8232
8233 save_LIBS="$LIBS"
8234 LIBS="$lt_cv_dlopen_libs $LIBS"
8235
8236 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8237echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8238if test "${lt_cv_dlopen_self+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241 if test "$cross_compiling" = yes; then :
8242 lt_cv_dlopen_self=cross
8243else
8244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8245 lt_status=$lt_dlunknown
8246 cat > conftest.$ac_ext <<EOF
8247#line 8247 "configure"
8248#include "confdefs.h"
8249
8250#if HAVE_DLFCN_H
8251#include <dlfcn.h>
8252#endif
8253
8254#include <stdio.h>
8255
8256#ifdef RTLD_GLOBAL
8257# define LT_DLGLOBAL RTLD_GLOBAL
8258#else
8259# ifdef DL_GLOBAL
8260# define LT_DLGLOBAL DL_GLOBAL
8261# else
8262# define LT_DLGLOBAL 0
8263# endif
8264#endif
8265
8266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8267 find out it does not work in some platform. */
8268#ifndef LT_DLLAZY_OR_NOW
8269# ifdef RTLD_LAZY
8270# define LT_DLLAZY_OR_NOW RTLD_LAZY
8271# else
8272# ifdef DL_LAZY
8273# define LT_DLLAZY_OR_NOW DL_LAZY
8274# else
8275# ifdef RTLD_NOW
8276# define LT_DLLAZY_OR_NOW RTLD_NOW
8277# else
8278# ifdef DL_NOW
8279# define LT_DLLAZY_OR_NOW DL_NOW
8280# else
8281# define LT_DLLAZY_OR_NOW 0
8282# endif
8283# endif
8284# endif
8285# endif
8286#endif
8287
8288#ifdef __cplusplus
8289extern "C" void exit (int);
8290#endif
8291
8292void fnord() { int i=42;}
8293int main ()
8294{
8295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8296 int status = $lt_dlunknown;
8297
8298 if (self)
8299 {
8300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8302 /* dlclose (self); */
8303 }
8304
8305 exit (status);
8306}
8307EOF
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8313 (./conftest; exit; ) 2>/dev/null
8314 lt_status=$?
8315 case x$lt_status in
8316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8318 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8319 esac
8320 else :
8321 # compilation failed
8322 lt_cv_dlopen_self=no
8323 fi
8324fi
8325rm -fr conftest*
8326
8327
8328fi
8329echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8330echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8331
8332 if test "x$lt_cv_dlopen_self" = xyes; then
8333 LDFLAGS="$LDFLAGS $link_static_flag"
8334 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8335echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8336if test "${lt_cv_dlopen_self_static+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338else
8339 if test "$cross_compiling" = yes; then :
8340 lt_cv_dlopen_self_static=cross
8341else
8342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8343 lt_status=$lt_dlunknown
8344 cat > conftest.$ac_ext <<EOF
8345#line 8345 "configure"
8346#include "confdefs.h"
8347
8348#if HAVE_DLFCN_H
8349#include <dlfcn.h>
8350#endif
8351
8352#include <stdio.h>
8353
8354#ifdef RTLD_GLOBAL
8355# define LT_DLGLOBAL RTLD_GLOBAL
8356#else
8357# ifdef DL_GLOBAL
8358# define LT_DLGLOBAL DL_GLOBAL
8359# else
8360# define LT_DLGLOBAL 0
8361# endif
8362#endif
8363
8364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8365 find out it does not work in some platform. */
8366#ifndef LT_DLLAZY_OR_NOW
8367# ifdef RTLD_LAZY
8368# define LT_DLLAZY_OR_NOW RTLD_LAZY
8369# else
8370# ifdef DL_LAZY
8371# define LT_DLLAZY_OR_NOW DL_LAZY
8372# else
8373# ifdef RTLD_NOW
8374# define LT_DLLAZY_OR_NOW RTLD_NOW
8375# else
8376# ifdef DL_NOW
8377# define LT_DLLAZY_OR_NOW DL_NOW
8378# else
8379# define LT_DLLAZY_OR_NOW 0
8380# endif
8381# endif
8382# endif
8383# endif
8384#endif
8385
8386#ifdef __cplusplus
8387extern "C" void exit (int);
8388#endif
8389
8390void fnord() { int i=42;}
8391int main ()
8392{
8393 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8394 int status = $lt_dlunknown;
8395
8396 if (self)
8397 {
8398 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8399 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8400 /* dlclose (self); */
8401 }
8402
8403 exit (status);
8404}
8405EOF
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8411 (./conftest; exit; ) 2>/dev/null
8412 lt_status=$?
8413 case x$lt_status in
8414 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8415 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8416 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8417 esac
8418 else :
8419 # compilation failed
8420 lt_cv_dlopen_self_static=no
8421 fi
8422fi
8423rm -fr conftest*
8424
8425
8426fi
8427echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8428echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8429 fi
8430
8431 CPPFLAGS="$save_CPPFLAGS"
8432 LDFLAGS="$save_LDFLAGS"
8433 LIBS="$save_LIBS"
8434 ;;
8435 esac
8436
8437 case $lt_cv_dlopen_self in
8438 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8439 *) enable_dlopen_self=unknown ;;
8440 esac
8441
8442 case $lt_cv_dlopen_self_static in
8443 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8444 *) enable_dlopen_self_static=unknown ;;
8445 esac
8446fi
8447
8448
8449# Report which librarie types wil actually be built
8450echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8451echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8452echo "$as_me:$LINENO: result: $can_build_shared" >&5
8453echo "${ECHO_T}$can_build_shared" >&6
8454
8455echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8456echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8457test "$can_build_shared" = "no" && enable_shared=no
8458
8459# On AIX, shared libraries and static libraries use the same namespace, and
8460# are all built from PIC.
8461case "$host_os" in
8462aix3*)
8463 test "$enable_shared" = yes && enable_static=no
8464 if test -n "$RANLIB"; then
8465 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8466 postinstall_cmds='$RANLIB $lib'
8467 fi
8468 ;;
8469
8470aix4* | aix5*)
8471 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8472 test "$enable_shared" = yes && enable_static=no
8473 fi
8474 ;;
8475 darwin* | rhapsody*)
8476 if test "$GCC" = yes; then
8477 archive_cmds_need_lc=no
8478 case "$host_os" in
8479 rhapsody* | darwin1.[012])
8480 allow_undefined_flag='-undefined suppress'
8481 ;;
8482 *) # Darwin 1.3 on
8483 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8484 allow_undefined_flag='-flat_namespace -undefined suppress'
8485 else
8486 case ${MACOSX_DEPLOYMENT_TARGET} in
8487 10.[012])
8488 allow_undefined_flag='-flat_namespace -undefined suppress'
8489 ;;
8490 10.*)
8491 allow_undefined_flag='-undefined dynamic_lookup'
8492 ;;
8493 esac
8494 fi
8495 ;;
8496 esac
8497 output_verbose_link_cmd='echo'
8498 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8499 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8501 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}'
8502 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}'
8503 hardcode_direct=no
8504 hardcode_automatic=yes
8505 hardcode_shlibpath_var=unsupported
8506 whole_archive_flag_spec='-all_load $convenience'
8507 link_all_deplibs=yes
8508 else
8509 ld_shlibs=no
8510 fi
8511 ;;
8512esac
8513echo "$as_me:$LINENO: result: $enable_shared" >&5
8514echo "${ECHO_T}$enable_shared" >&6
8515
8516echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8517echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8518# Make sure either enable_shared or enable_static is yes.
8519test "$enable_shared" = yes || enable_static=yes
8520echo "$as_me:$LINENO: result: $enable_static" >&5
8521echo "${ECHO_T}$enable_static" >&6
8522
8523# The else clause should only fire when bootstrapping the
8524# libtool distribution, otherwise you forgot to ship ltmain.sh
8525# with your package, and you will get complaints that there are
8526# no rules to generate ltmain.sh.
8527if test -f "$ltmain"; then
8528 # See if we are running on zsh, and set the options which allow our commands through
8529 # without removal of \ escapes.
8530 if test -n "${ZSH_VERSION+set}" ; then
8531 setopt NO_GLOB_SUBST
8532 fi
8533 # Now quote all the things that may contain metacharacters while being
8534 # careful not to overquote the AC_SUBSTed values. We take copies of the
8535 # variables and quote the copies for generation of the libtool script.
8536 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8537 SED SHELL STRIP \
8538 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8539 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8540 deplibs_check_method reload_flag reload_cmds need_locks \
8541 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8542 lt_cv_sys_global_symbol_to_c_name_address \
8543 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8544 old_postinstall_cmds old_postuninstall_cmds \
8545 compiler \
8546 CC \
8547 LD \
8548 lt_prog_compiler_wl \
8549 lt_prog_compiler_pic \
8550 lt_prog_compiler_static \
8551 lt_prog_compiler_no_builtin_flag \
8552 export_dynamic_flag_spec \
8553 thread_safe_flag_spec \
8554 whole_archive_flag_spec \
8555 enable_shared_with_static_runtimes \
8556 old_archive_cmds \
8557 old_archive_from_new_cmds \
8558 predep_objects \
8559 postdep_objects \
8560 predeps \
8561 postdeps \
8562 compiler_lib_search_path \
8563 archive_cmds \
8564 archive_expsym_cmds \
8565 postinstall_cmds \
8566 postuninstall_cmds \
8567 old_archive_from_expsyms_cmds \
8568 allow_undefined_flag \
8569 no_undefined_flag \
8570 export_symbols_cmds \
8571 hardcode_libdir_flag_spec \
8572 hardcode_libdir_flag_spec_ld \
8573 hardcode_libdir_separator \
8574 hardcode_automatic \
8575 module_cmds \
8576 module_expsym_cmds \
8577 lt_cv_prog_compiler_c_o \
8578 exclude_expsyms \
8579 include_expsyms; do
8580
8581 case $var in
8582 old_archive_cmds | \
8583 old_archive_from_new_cmds | \
8584 archive_cmds | \
8585 archive_expsym_cmds | \
8586 module_cmds | \
8587 module_expsym_cmds | \
8588 old_archive_from_expsyms_cmds | \
8589 export_symbols_cmds | \
8590 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8591 postinstall_cmds | postuninstall_cmds | \
8592 old_postinstall_cmds | old_postuninstall_cmds | \
8593 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8594 # Double-quote double-evaled strings.
8595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8596 ;;
8597 *)
8598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8599 ;;
8600 esac
8601 done
8602
8603 case $lt_echo in
8604 *'\$0 --fallback-echo"')
8605 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8606 ;;
8607 esac
8608
8609cfgfile="${ofile}T"
8610 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8611 $rm -f "$cfgfile"
8612 { echo "$as_me:$LINENO: creating $ofile" >&5
8613echo "$as_me: creating $ofile" >&6;}
8614
8615 cat <<__EOF__ >> "$cfgfile"
8616#! $SHELL
8617
8618# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8619# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8620# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8621#
8622# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8623# Free Software Foundation, Inc.
8624#
8625# This file is part of GNU Libtool:
8626# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8627#
8628# This program is free software; you can redistribute it and/or modify
8629# it under the terms of the GNU General Public License as published by
8630# the Free Software Foundation; either version 2 of the License, or
8631# (at your option) any later version.
8632#
8633# This program is distributed in the hope that it will be useful, but
8634# WITHOUT ANY WARRANTY; without even the implied warranty of
8635# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8636# General Public License for more details.
8637#
8638# You should have received a copy of the GNU General Public License
8639# along with this program; if not, write to the Free Software
8640# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8641#
8642# As a special exception to the GNU General Public License, if you
8643# distribute this file as part of a program that contains a
8644# configuration script generated by Autoconf, you may include it under
8645# the same distribution terms that you use for the rest of that program.
8646
8647# A sed program that does not truncate output.
8648SED=$lt_SED
8649
8650# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8651Xsed="$SED -e s/^X//"
8652
8653# The HP-UX ksh and POSIX shell print the target directory to stdout
8654# if CDPATH is set.
8655if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8656
8657# The names of the tagged configurations supported by this script.
8658available_tags=
8659
8660# ### BEGIN LIBTOOL CONFIG
8661
8662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8663
8664# Shell to use when invoking shell scripts.
8665SHELL=$lt_SHELL
8666
8667# Whether or not to build shared libraries.
8668build_libtool_libs=$enable_shared
8669
8670# Whether or not to build static libraries.
8671build_old_libs=$enable_static
8672
8673# Whether or not to add -lc for building shared libraries.
8674build_libtool_need_lc=$archive_cmds_need_lc
8675
8676# Whether or not to disallow shared libs when runtime libs are static
8677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8678
8679# Whether or not to optimize for fast installation.
8680fast_install=$enable_fast_install
8681
8682# The host system.
8683host_alias=$host_alias
8684host=$host
8685
8686# An echo program that does not interpret backslashes.
8687echo=$lt_echo
8688
8689# The archiver.
8690AR=$lt_AR
8691AR_FLAGS=$lt_AR_FLAGS
8692
8693# A C compiler.
8694LTCC=$lt_LTCC
8695
8696# A language-specific compiler.
8697CC=$lt_compiler
8698
8699# Is the compiler the GNU C compiler?
8700with_gcc=$GCC
8701
8702# An ERE matcher.
8703EGREP=$lt_EGREP
8704
8705# The linker used to build libraries.
8706LD=$lt_LD
8707
8708# Whether we need hard or soft links.
8709LN_S=$lt_LN_S
8710
8711# A BSD-compatible nm program.
8712NM=$lt_NM
8713
8714# A symbol stripping program
8715STRIP=$lt_STRIP
8716
8717# Used to examine libraries when file_magic_cmd begins "file"
8718MAGIC_CMD=$MAGIC_CMD
8719
8720# Used on cygwin: DLL creation program.
8721DLLTOOL="$DLLTOOL"
8722
8723# Used on cygwin: object dumper.
8724OBJDUMP="$OBJDUMP"
8725
8726# Used on cygwin: assembler.
8727AS="$AS"
8728
8729# The name of the directory that contains temporary libtool files.
8730objdir=$objdir
8731
8732# How to create reloadable object files.
8733reload_flag=$lt_reload_flag
8734reload_cmds=$lt_reload_cmds
8735
8736# How to pass a linker flag through the compiler.
8737wl=$lt_lt_prog_compiler_wl
8738
8739# Object file suffix (normally "o").
8740objext="$ac_objext"
8741
8742# Old archive suffix (normally "a").
8743libext="$libext"
8744
8745# Shared library suffix (normally ".so").
8746shrext_cmds='$shrext_cmds'
8747
8748# Executable file suffix (normally "").
8749exeext="$exeext"
8750
8751# Additional compiler flags for building library objects.
8752pic_flag=$lt_lt_prog_compiler_pic
8753pic_mode=$pic_mode
8754
8755# What is the maximum length of a command?
8756max_cmd_len=$lt_cv_sys_max_cmd_len
8757
8758# Does compiler simultaneously support -c and -o options?
8759compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8760
8761# Must we lock files when doing compilation ?
8762need_locks=$lt_need_locks
8763
8764# Do we need the lib prefix for modules?
8765need_lib_prefix=$need_lib_prefix
8766
8767# Do we need a version for libraries?
8768need_version=$need_version
8769
8770# Whether dlopen is supported.
8771dlopen_support=$enable_dlopen
8772
8773# Whether dlopen of programs is supported.
8774dlopen_self=$enable_dlopen_self
8775
8776# Whether dlopen of statically linked programs is supported.
8777dlopen_self_static=$enable_dlopen_self_static
8778
8779# Compiler flag to prevent dynamic linking.
8780link_static_flag=$lt_lt_prog_compiler_static
8781
8782# Compiler flag to turn off builtin functions.
8783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8784
8785# Compiler flag to allow reflexive dlopens.
8786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8787
8788# Compiler flag to generate shared objects directly from archives.
8789whole_archive_flag_spec=$lt_whole_archive_flag_spec
8790
8791# Compiler flag to generate thread-safe objects.
8792thread_safe_flag_spec=$lt_thread_safe_flag_spec
8793
8794# Library versioning type.
8795version_type=$version_type
8796
8797# Format of library name prefix.
8798libname_spec=$lt_libname_spec
8799
8800# List of archive names. First name is the real one, the rest are links.
8801# The last name is the one that the linker finds with -lNAME.
8802library_names_spec=$lt_library_names_spec
8803
8804# The coded name of the library, if different from the real name.
8805soname_spec=$lt_soname_spec
8806
8807# Commands used to build and install an old-style archive.
8808RANLIB=$lt_RANLIB
8809old_archive_cmds=$lt_old_archive_cmds
8810old_postinstall_cmds=$lt_old_postinstall_cmds
8811old_postuninstall_cmds=$lt_old_postuninstall_cmds
8812
8813# Create an old-style archive from a shared archive.
8814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8815
8816# Create a temporary old-style archive to link instead of a shared archive.
8817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8818
8819# Commands used to build and install a shared archive.
8820archive_cmds=$lt_archive_cmds
8821archive_expsym_cmds=$lt_archive_expsym_cmds
8822postinstall_cmds=$lt_postinstall_cmds
8823postuninstall_cmds=$lt_postuninstall_cmds
8824
8825# Commands used to build a loadable module (assumed same as above if empty)
8826module_cmds=$lt_module_cmds
8827module_expsym_cmds=$lt_module_expsym_cmds
8828
8829# Commands to strip libraries.
8830old_striplib=$lt_old_striplib
8831striplib=$lt_striplib
8832
8833# Dependencies to place before the objects being linked to create a
8834# shared library.
8835predep_objects=$lt_predep_objects
8836
8837# Dependencies to place after the objects being linked to create a
8838# shared library.
8839postdep_objects=$lt_postdep_objects
8840
8841# Dependencies to place before the objects being linked to create a
8842# shared library.
8843predeps=$lt_predeps
8844
8845# Dependencies to place after the objects being linked to create a
8846# shared library.
8847postdeps=$lt_postdeps
8848
8849# The library search path used internally by the compiler when linking
8850# a shared library.
8851compiler_lib_search_path=$lt_compiler_lib_search_path
8852
8853# Method to check whether dependent libraries are shared objects.
8854deplibs_check_method=$lt_deplibs_check_method
8855
8856# Command to use when deplibs_check_method == file_magic.
8857file_magic_cmd=$lt_file_magic_cmd
8858
8859# Flag that allows shared libraries with undefined symbols to be built.
8860allow_undefined_flag=$lt_allow_undefined_flag
8861
8862# Flag that forces no undefined symbols.
8863no_undefined_flag=$lt_no_undefined_flag
8864
8865# Commands used to finish a libtool library installation in a directory.
8866finish_cmds=$lt_finish_cmds
8867
8868# Same as above, but a single script fragment to be evaled but not shown.
8869finish_eval=$lt_finish_eval
8870
8871# Take the output of nm and produce a listing of raw symbols and C names.
8872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8873
8874# Transform the output of nm in a proper C declaration
8875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8876
8877# Transform the output of nm in a C name address pair
8878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8879
8880# This is the shared library runtime path variable.
8881runpath_var=$runpath_var
8882
8883# This is the shared library path variable.
8884shlibpath_var=$shlibpath_var
8885
8886# Is shlibpath searched before the hard-coded library search path?
8887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8888
8889# How to hardcode a shared library path into an executable.
8890hardcode_action=$hardcode_action
8891
8892# Whether we should hardcode library paths into libraries.
8893hardcode_into_libs=$hardcode_into_libs
8894
8895# Flag to hardcode \$libdir into a binary during linking.
8896# This must work even if \$libdir does not exist.
8897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8898
8899# If ld is used when linking, flag to hardcode \$libdir into
8900# a binary during linking. This must work even if \$libdir does
8901# not exist.
8902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8903
8904# Whether we need a single -rpath flag with a separated argument.
8905hardcode_libdir_separator=$lt_hardcode_libdir_separator
8906
8907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8908# resulting binary.
8909hardcode_direct=$hardcode_direct
8910
8911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8912# resulting binary.
8913hardcode_minus_L=$hardcode_minus_L
8914
8915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8916# the resulting binary.
8917hardcode_shlibpath_var=$hardcode_shlibpath_var
8918
8919# Set to yes if building a shared library automatically hardcodes DIR into the library
8920# and all subsequent libraries and executables linked against it.
8921hardcode_automatic=$hardcode_automatic
8922
8923# Variables whose values should be saved in libtool wrapper scripts and
8924# restored at relink time.
8925variables_saved_for_relink="$variables_saved_for_relink"
8926
8927# Whether libtool must link a program against all its dependency libraries.
8928link_all_deplibs=$link_all_deplibs
8929
8930# Compile-time system search path for libraries
8931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8932
8933# Run-time system search path for libraries
8934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8935
8936# Fix the shell variable \$srcfile for the compiler.
8937fix_srcfile_path="$fix_srcfile_path"
8938
8939# Set to yes if exported symbols are required.
8940always_export_symbols=$always_export_symbols
8941
8942# The commands to list exported symbols.
8943export_symbols_cmds=$lt_export_symbols_cmds
8944
8945# The commands to extract the exported symbol list from a shared archive.
8946extract_expsyms_cmds=$lt_extract_expsyms_cmds
8947
8948# Symbols that should not be listed in the preloaded symbols.
8949exclude_expsyms=$lt_exclude_expsyms
8950
8951# Symbols that must always be exported.
8952include_expsyms=$lt_include_expsyms
8953
8954# ### END LIBTOOL CONFIG
8955
8956__EOF__
8957
8958
8959 case $host_os in
8960 aix3*)
8961 cat <<\EOF >> "$cfgfile"
8962
8963# AIX sometimes has problems with the GCC collect2 program. For some
8964# reason, if we set the COLLECT_NAMES environment variable, the problems
8965# vanish in a puff of smoke.
8966if test "X${COLLECT_NAMES+set}" != Xset; then
8967 COLLECT_NAMES=
8968 export COLLECT_NAMES
8969fi
8970EOF
8971 ;;
8972 esac
8973
8974 # We use sed instead of cat because bash on DJGPP gets confused if
8975 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8976 # text mode, it properly converts lines to CR/LF. This bash problem
8977 # is reportedly fixed, but why not run on old versions too?
8978 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8979
8980 mv -f "$cfgfile" "$ofile" || \
8981 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8982 chmod +x "$ofile"
8983
8984else
8985 # If there is no Makefile yet, we rely on a make rule to execute
8986 # `config.status --recheck' to rerun these tests and create the
8987 # libtool script then.
8988 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8989 if test -f "$ltmain_in"; then
8990 test -f Makefile && make "$ltmain"
8991 fi
8992fi
8993
8994
8995ac_ext=c
8996ac_cpp='$CPP $CPPFLAGS'
8997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000
9001CC="$lt_save_CC"
9002
9003
9004# Check whether --with-tags or --without-tags was given.
9005if test "${with_tags+set}" = set; then
9006 withval="$with_tags"
9007 tagnames="$withval"
9008fi;
9009
9010if test -f "$ltmain" && test -n "$tagnames"; then
9011 if test ! -f "${ofile}"; then
9012 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9013echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9014 fi
9015
9016 if test -z "$LTCC"; then
9017 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9018 if test -z "$LTCC"; then
9019 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9020echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9021 else
9022 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9023echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9024 fi
9025 fi
9026
9027 # Extract list of available tagged configurations in $ofile.
9028 # Note that this assumes the entire list is on one line.
9029 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9030
9031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032 for tagname in $tagnames; do
9033 IFS="$lt_save_ifs"
9034 # Check whether tagname contains only valid characters
9035 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9036 "") ;;
9037 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9038echo "$as_me: error: invalid tag name: $tagname" >&2;}
9039 { (exit 1); exit 1; }; }
9040 ;;
9041 esac
9042
9043 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9044 then
9045 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9046echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9047 { (exit 1); exit 1; }; }
9048 fi
9049
9050 # Update the list of available tags.
9051 if test -n "$tagname"; then
9052 echo appending configuration tag \"$tagname\" to $ofile
9053
9054 case $tagname in
9055 CXX)
9056 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9057 ac_ext=cc
9058ac_cpp='$CXXCPP $CPPFLAGS'
9059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9062
9063
9064
9065
9066archive_cmds_need_lc_CXX=no
9067allow_undefined_flag_CXX=
9068always_export_symbols_CXX=no
9069archive_expsym_cmds_CXX=
9070export_dynamic_flag_spec_CXX=
9071hardcode_direct_CXX=no
9072hardcode_libdir_flag_spec_CXX=
9073hardcode_libdir_flag_spec_ld_CXX=
9074hardcode_libdir_separator_CXX=
9075hardcode_minus_L_CXX=no
9076hardcode_automatic_CXX=no
9077module_cmds_CXX=
9078module_expsym_cmds_CXX=
9079link_all_deplibs_CXX=unknown
9080old_archive_cmds_CXX=$old_archive_cmds
9081no_undefined_flag_CXX=
9082whole_archive_flag_spec_CXX=
9083enable_shared_with_static_runtimes_CXX=no
9084
9085# Dependencies to place before and after the object being linked:
9086predep_objects_CXX=
9087postdep_objects_CXX=
9088predeps_CXX=
9089postdeps_CXX=
9090compiler_lib_search_path_CXX=
9091
9092# Source file extension for C++ test sources.
9093ac_ext=cc
9094
9095# Object file extension for compiled C++ test sources.
9096objext=o
9097objext_CXX=$objext
9098
9099# Code to be used in simple compile tests
9100lt_simple_compile_test_code="int some_variable = 0;\n"
9101
9102# Code to be used in simple link tests
9103lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9104
9105# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9106
9107# If no C compiler was specified, use CC.
9108LTCC=${LTCC-"$CC"}
9109
9110# Allow CC to be a program name with arguments.
9111compiler=$CC
9112
9113
9114# Allow CC to be a program name with arguments.
9115lt_save_CC=$CC
9116lt_save_LD=$LD
9117lt_save_GCC=$GCC
9118GCC=$GXX
9119lt_save_with_gnu_ld=$with_gnu_ld
9120lt_save_path_LD=$lt_cv_path_LD
9121if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9122 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9123else
9124 unset lt_cv_prog_gnu_ld
9125fi
9126if test -n "${lt_cv_path_LDCXX+set}"; then
9127 lt_cv_path_LD=$lt_cv_path_LDCXX
9128else
9129 unset lt_cv_path_LD
9130fi
9131test -z "${LDCXX+set}" || LD=$LDCXX
9132CC=${CXX-"c++"}
9133compiler=$CC
9134compiler_CXX=$CC
9135cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9136
9137# We don't want -fno-exception wen compiling C++ code, so set the
9138# no_builtin_flag separately
9139if test "$GXX" = yes; then
9140 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9141else
9142 lt_prog_compiler_no_builtin_flag_CXX=
9143fi
9144
9145if test "$GXX" = yes; then
9146 # Set up default GNU C++ configuration
9147
9148
9149# Check whether --with-gnu-ld or --without-gnu-ld was given.
9150if test "${with_gnu_ld+set}" = set; then
9151 withval="$with_gnu_ld"
9152 test "$withval" = no || with_gnu_ld=yes
9153else
9154 with_gnu_ld=no
9155fi;
9156ac_prog=ld
9157if test "$GCC" = yes; then
9158 # Check if gcc -print-prog-name=ld gives a path.
9159 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9160echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9161 case $host in
9162 *-*-mingw*)
9163 # gcc leaves a trailing carriage return which upsets mingw
9164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9165 *)
9166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9167 esac
9168 case $ac_prog in
9169 # Accept absolute paths.
9170 [\\/]* | ?:[\\/]*)
9171 re_direlt='/[^/][^/]*/\.\./'
9172 # Canonicalize the pathname of ld
9173 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9174 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9175 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9176 done
9177 test -z "$LD" && LD="$ac_prog"
9178 ;;
9179 "")
9180 # If it fails, then pretend we aren't using GCC.
9181 ac_prog=ld
9182 ;;
9183 *)
9184 # If it is relative, then search for the first ld in PATH.
9185 with_gnu_ld=unknown
9186 ;;
9187 esac
9188elif test "$with_gnu_ld" = yes; then
9189 echo "$as_me:$LINENO: checking for GNU ld" >&5
9190echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9191else
9192 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9193echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9194fi
9195if test "${lt_cv_path_LD+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198 if test -z "$LD"; then
9199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9200 for ac_dir in $PATH; do
9201 IFS="$lt_save_ifs"
9202 test -z "$ac_dir" && ac_dir=.
9203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9204 lt_cv_path_LD="$ac_dir/$ac_prog"
9205 # Check to see if the program is GNU ld. I'd rather use --version,
9206 # but apparently some GNU ld's only accept -v.
9207 # Break only if it was the GNU/non-GNU ld that we prefer.
9208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9209 *GNU* | *'with BFD'*)
9210 test "$with_gnu_ld" != no && break
9211 ;;
9212 *)
9213 test "$with_gnu_ld" != yes && break
9214 ;;
9215 esac
9216 fi
9217 done
9218 IFS="$lt_save_ifs"
9219else
9220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9221fi
9222fi
9223
9224LD="$lt_cv_path_LD"
9225if test -n "$LD"; then
9226 echo "$as_me:$LINENO: result: $LD" >&5
9227echo "${ECHO_T}$LD" >&6
9228else
9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
9231fi
9232test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9233echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9234 { (exit 1); exit 1; }; }
9235echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9236echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9237if test "${lt_cv_prog_gnu_ld+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239else
9240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9241case `$LD -v 2>&1 </dev/null` in
9242*GNU* | *'with BFD'*)
9243 lt_cv_prog_gnu_ld=yes
9244 ;;
9245*)
9246 lt_cv_prog_gnu_ld=no
9247 ;;
9248esac
9249fi
9250echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9251echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9252with_gnu_ld=$lt_cv_prog_gnu_ld
9253
9254
9255
9256 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9257 # archiving commands below assume that GNU ld is being used.
9258 if test "$with_gnu_ld" = yes; then
9259 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 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'
9261
9262 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9263 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9264
9265 # If archive_cmds runs LD, not CC, wlarc should be empty
9266 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9267 # investigate it a little bit more. (MM)
9268 wlarc='${wl}'
9269
9270 # ancient GNU ld didn't support --whole-archive et. al.
9271 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9272 grep 'no-whole-archive' > /dev/null; then
9273 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9274 else
9275 whole_archive_flag_spec_CXX=
9276 fi
9277 else
9278 with_gnu_ld=no
9279 wlarc=
9280
9281 # A generic and very simple default shared library creation
9282 # command for GNU C++ for the case where it uses the native
9283 # linker, instead of GNU ld. If possible, this setting should
9284 # overridden to take advantage of the native linker features on
9285 # the platform it is being used on.
9286 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9287 fi
9288
9289 # Commands to make compiler produce verbose output that lists
9290 # what "hidden" libraries, object files and flags are used when
9291 # linking a shared library.
9292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9293
9294else
9295 GXX=no
9296 with_gnu_ld=no
9297 wlarc=
9298fi
9299
9300# PORTME: fill in a description of your system's C++ link characteristics
9301echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9302echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9303ld_shlibs_CXX=yes
9304case $host_os in
9305 aix3*)
9306 # FIXME: insert proper C++ library support
9307 ld_shlibs_CXX=no
9308 ;;
9309 aix4* | aix5*)
9310 if test "$host_cpu" = ia64; then
9311 # On IA64, the linker does run time linking by default, so we don't
9312 # have to do anything special.
9313 aix_use_runtimelinking=no
9314 exp_sym_flag='-Bexport'
9315 no_entry_flag=""
9316 else
9317 aix_use_runtimelinking=no
9318
9319 # Test if we are trying to use run time linking or normal
9320 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9321 # need to do runtime linking.
9322 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9323 for ld_flag in $LDFLAGS; do
9324 case $ld_flag in
9325 *-brtl*)
9326 aix_use_runtimelinking=yes
9327 break
9328 ;;
9329 esac
9330 done
9331 esac
9332
9333 exp_sym_flag='-bexport'
9334 no_entry_flag='-bnoentry'
9335 fi
9336
9337 # When large executables or shared objects are built, AIX ld can
9338 # have problems creating the table of contents. If linking a library
9339 # or program results in "error TOC overflow" add -mminimal-toc to
9340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9342
9343 archive_cmds_CXX=''
9344 hardcode_direct_CXX=yes
9345 hardcode_libdir_separator_CXX=':'
9346 link_all_deplibs_CXX=yes
9347
9348 if test "$GXX" = yes; then
9349 case $host_os in aix4.012|aix4.012.*)
9350 # We only want to do this on AIX 4.2 and lower, the check
9351 # below for broken collect2 doesn't work under 4.3+
9352 collect2name=`${CC} -print-prog-name=collect2`
9353 if test -f "$collect2name" && \
9354 strings "$collect2name" | grep resolve_lib_name >/dev/null
9355 then
9356 # We have reworked collect2
9357 hardcode_direct_CXX=yes
9358 else
9359 # We have old collect2
9360 hardcode_direct_CXX=unsupported
9361 # It fails to find uninstalled libraries when the uninstalled
9362 # path is not listed in the libpath. Setting hardcode_minus_L
9363 # to unsupported forces relinking
9364 hardcode_minus_L_CXX=yes
9365 hardcode_libdir_flag_spec_CXX='-L$libdir'
9366 hardcode_libdir_separator_CXX=
9367 fi
9368 esac
9369 shared_flag='-shared'
9370 else
9371 # not using gcc
9372 if test "$host_cpu" = ia64; then
9373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9374 # chokes on -Wl,-G. The following line is correct:
9375 shared_flag='-G'
9376 else
9377 if test "$aix_use_runtimelinking" = yes; then
9378 shared_flag='${wl}-G'
9379 else
9380 shared_flag='${wl}-bM:SRE'
9381 fi
9382 fi
9383 fi
9384
9385 # It seems that -bexpall does not export symbols beginning with
9386 # underscore (_), so it is better to generate a list of symbols to export.
9387 always_export_symbols_CXX=yes
9388 if test "$aix_use_runtimelinking" = yes; then
9389 # Warning - without using the other runtime loading flags (-brtl),
9390 # -berok will link without error, but may produce a broken library.
9391 allow_undefined_flag_CXX='-berok'
9392 # Determine the default libpath from the value encoded in an empty executable.
9393 cat >conftest.$ac_ext <<_ACEOF
9394/* confdefs.h. */
9395_ACEOF
9396cat confdefs.h >>conftest.$ac_ext
9397cat >>conftest.$ac_ext <<_ACEOF
9398/* end confdefs.h. */
9399
9400int
9401main ()
9402{
9403
9404 ;
9405 return 0;
9406}
9407_ACEOF
9408rm -f conftest.$ac_objext conftest$ac_exeext
9409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410 (eval $ac_link) 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -z "$ac_cxx_werror_flag"
9418 || test ! -s conftest.err'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; } &&
9424 { ac_try='test -s conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430
9431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9432}'`
9433# Check for a 64-bit object if we didn't find anything.
9434if 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; }
9435}'`; fi
9436else
9437 echo "$as_me: failed program was:" >&5
9438sed 's/^/| /' conftest.$ac_ext >&5
9439
9440fi
9441rm -f conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9444
9445 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9446
9447 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9448 else
9449 if test "$host_cpu" = ia64; then
9450 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9451 allow_undefined_flag_CXX="-z nodefs"
9452 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9453 else
9454 # Determine the default libpath from the value encoded in an empty executable.
9455 cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h. */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
9460/* end confdefs.h. */
9461
9462int
9463main ()
9464{
9465
9466 ;
9467 return 0;
9468}
9469_ACEOF
9470rm -f conftest.$ac_objext conftest$ac_exeext
9471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_cxx_werror_flag"
9480 || test ! -s conftest.err'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest$ac_exeext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492
9493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9494}'`
9495# Check for a 64-bit object if we didn't find anything.
9496if 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; }
9497}'`; fi
9498else
9499 echo "$as_me: failed program was:" >&5
9500sed 's/^/| /' conftest.$ac_ext >&5
9501
9502fi
9503rm -f conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9506
9507 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9508 # Warning - without using the other run time loading flags,
9509 # -berok will link without error, but may produce a broken library.
9510 no_undefined_flag_CXX=' ${wl}-bernotok'
9511 allow_undefined_flag_CXX=' ${wl}-berok'
9512 # -bexpall does not export symbols beginning with underscore (_)
9513 always_export_symbols_CXX=yes
9514 # Exported symbols can be pulled into shared objects from archives
9515 whole_archive_flag_spec_CXX=' '
9516 archive_cmds_need_lc_CXX=yes
9517 # This is similar to how AIX traditionally builds it's shared libraries.
9518 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9519 fi
9520 fi
9521 ;;
9522 chorus*)
9523 case $cc_basename in
9524 *)
9525 # FIXME: insert proper C++ library support
9526 ld_shlibs_CXX=no
9527 ;;
9528 esac
9529 ;;
9530
9531 cygwin* | mingw* | pw32*)
9532 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9533 # as there is no search path for DLLs.
9534 hardcode_libdir_flag_spec_CXX='-L$libdir'
9535 allow_undefined_flag_CXX=unsupported
9536 always_export_symbols_CXX=no
9537 enable_shared_with_static_runtimes_CXX=yes
9538
9539 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9540 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9541 # If the export-symbols file already is a .def file (1st line
9542 # is EXPORTS), use it as is; otherwise, prepend...
9543 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9544 cp $export_symbols $output_objdir/$soname.def;
9545 else
9546 echo EXPORTS > $output_objdir/$soname.def;
9547 cat $export_symbols >> $output_objdir/$soname.def;
9548 fi~
9549 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9550 else
9551 ld_shlibs_CXX=no
9552 fi
9553 ;;
9554
9555 darwin* | rhapsody*)
9556 if test "$GXX" = yes; then
9557 archive_cmds_need_lc_CXX=no
9558 case "$host_os" in
9559 rhapsody* | darwin1.[012])
9560 allow_undefined_flag_CXX='-undefined suppress'
9561 ;;
9562 *) # Darwin 1.3 on
9563 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9564 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9565 else
9566 case ${MACOSX_DEPLOYMENT_TARGET} in
9567 10.[012])
9568 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9569 ;;
9570 10.*)
9571 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9572 ;;
9573 esac
9574 fi
9575 ;;
9576 esac
9577 lt_int_apple_cc_single_mod=no
9578 output_verbose_link_cmd='echo'
9579 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9580 lt_int_apple_cc_single_mod=yes
9581 fi
9582 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9583 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9584 else
9585 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9586 fi
9587 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9588
9589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9590 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9591 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}'
9592 else
9593 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9594 fi
9595 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}'
9596 hardcode_direct_CXX=no
9597 hardcode_automatic_CXX=yes
9598 hardcode_shlibpath_var_CXX=unsupported
9599 whole_archive_flag_spec_CXX='-all_load $convenience'
9600 link_all_deplibs_CXX=yes
9601 else
9602 ld_shlibs_CXX=no
9603 fi
9604 ;;
9605
9606 dgux*)
9607 case $cc_basename in
9608 ec++)
9609 # FIXME: insert proper C++ library support
9610 ld_shlibs_CXX=no
9611 ;;
9612 ghcx)
9613 # Green Hills C++ Compiler
9614 # FIXME: insert proper C++ library support
9615 ld_shlibs_CXX=no
9616 ;;
9617 *)
9618 # FIXME: insert proper C++ library support
9619 ld_shlibs_CXX=no
9620 ;;
9621 esac
9622 ;;
9623 freebsd12*)
9624 # C++ shared libraries reported to be fairly broken before switch to ELF
9625 ld_shlibs_CXX=no
9626 ;;
9627 freebsd-elf*)
9628 archive_cmds_need_lc_CXX=no
9629 ;;
9630 freebsd* | kfreebsd*-gnu)
9631 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9632 # conventions
9633 ld_shlibs_CXX=yes
9634 ;;
9635 gnu*)
9636 ;;
9637 hpux9*)
9638 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9639 hardcode_libdir_separator_CXX=:
9640 export_dynamic_flag_spec_CXX='${wl}-E'
9641 hardcode_direct_CXX=yes
9642 hardcode_minus_L_CXX=yes # Not in the search PATH,
9643 # but as the default
9644 # location of the library.
9645
9646 case $cc_basename in
9647 CC)
9648 # FIXME: insert proper C++ library support
9649 ld_shlibs_CXX=no
9650 ;;
9651 aCC)
9652 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'
9653 # Commands to make compiler produce verbose output that lists
9654 # what "hidden" libraries, object files and flags are used when
9655 # linking a shared library.
9656 #
9657 # There doesn't appear to be a way to prevent this compiler from
9658 # explicitly linking system object files so we need to strip them
9659 # from the output so that they don't get included in the library
9660 # dependencies.
9661 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'
9662 ;;
9663 *)
9664 if test "$GXX" = yes; then
9665 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'
9666 else
9667 # FIXME: insert proper C++ library support
9668 ld_shlibs_CXX=no
9669 fi
9670 ;;
9671 esac
9672 ;;
9673 hpux10*|hpux11*)
9674 if test $with_gnu_ld = no; then
9675 case "$host_cpu" in
9676 hppa*64*)
9677 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9678 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9679 hardcode_libdir_separator_CXX=:
9680 ;;
9681 ia64*)
9682 hardcode_libdir_flag_spec_CXX='-L$libdir'
9683 ;;
9684 *)
9685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9686 hardcode_libdir_separator_CXX=:
9687 export_dynamic_flag_spec_CXX='${wl}-E'
9688 ;;
9689 esac
9690 fi
9691 case "$host_cpu" in
9692 hppa*64*)
9693 hardcode_direct_CXX=no
9694 hardcode_shlibpath_var_CXX=no
9695 ;;
9696 ia64*)
9697 hardcode_direct_CXX=no
9698 hardcode_shlibpath_var_CXX=no
9699 hardcode_minus_L_CXX=yes # Not in the search PATH,
9700 # but as the default
9701 # location of the library.
9702 ;;
9703 *)
9704 hardcode_direct_CXX=yes
9705 hardcode_minus_L_CXX=yes # Not in the search PATH,
9706 # but as the default
9707 # location of the library.
9708 ;;
9709 esac
9710
9711 case $cc_basename in
9712 CC)
9713 # FIXME: insert proper C++ library support
9714 ld_shlibs_CXX=no
9715 ;;
9716 aCC)
9717 case "$host_cpu" in
9718 hppa*64*|ia64*)
9719 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9720 ;;
9721 *)
9722 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9723 ;;
9724 esac
9725 # Commands to make compiler produce verbose output that lists
9726 # what "hidden" libraries, object files and flags are used when
9727 # linking a shared library.
9728 #
9729 # There doesn't appear to be a way to prevent this compiler from
9730 # explicitly linking system object files so we need to strip them
9731 # from the output so that they don't get included in the library
9732 # dependencies.
9733 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'
9734 ;;
9735 *)
9736 if test "$GXX" = yes; then
9737 if test $with_gnu_ld = no; then
9738 case "$host_cpu" in
9739 ia64*|hppa*64*)
9740 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9741 ;;
9742 *)
9743 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'
9744 ;;
9745 esac
9746 fi
9747 else
9748 # FIXME: insert proper C++ library support
9749 ld_shlibs_CXX=no
9750 fi
9751 ;;
9752 esac
9753 ;;
9754 irix5* | irix6*)
9755 case $cc_basename in
9756 CC)
9757 # SGI C++
9758 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9759
9760 # Archives containing C++ object files must be created using
9761 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9762 # necessary to make sure instantiated templates are included
9763 # in the archive.
9764 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9765 ;;
9766 *)
9767 if test "$GXX" = yes; then
9768 if test "$with_gnu_ld" = no; then
9769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9770 else
9771 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'
9772 fi
9773 fi
9774 link_all_deplibs_CXX=yes
9775 ;;
9776 esac
9777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9778 hardcode_libdir_separator_CXX=:
9779 ;;
9780 linux*)
9781 case $cc_basename in
9782 KCC)
9783 # Kuck and Associates, Inc. (KAI) C++ Compiler
9784
9785 # KCC will only create a shared library if the output file
9786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9787 # to its proper name (with version) after linking.
9788 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'
9789 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'
9790 # Commands to make compiler produce verbose output that lists
9791 # what "hidden" libraries, object files and flags are used when
9792 # linking a shared library.
9793 #
9794 # There doesn't appear to be a way to prevent this compiler from
9795 # explicitly linking system object files so we need to strip them
9796 # from the output so that they don't get included in the library
9797 # dependencies.
9798 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'
9799
9800 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9802
9803 # Archives containing C++ object files must be created using
9804 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9805 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9806 ;;
9807 icpc)
9808 # Intel C++
9809 with_gnu_ld=yes
9810 archive_cmds_need_lc_CXX=no
9811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812 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'
9813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9815 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9816 ;;
9817 cxx)
9818 # Compaq C++
9819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820 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'
9821
9822 runpath_var=LD_RUN_PATH
9823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9824 hardcode_libdir_separator_CXX=:
9825
9826 # Commands to make compiler produce verbose output that lists
9827 # what "hidden" libraries, object files and flags are used when
9828 # linking a shared library.
9829 #
9830 # There doesn't appear to be a way to prevent this compiler from
9831 # explicitly linking system object files so we need to strip them
9832 # from the output so that they don't get included in the library
9833 # dependencies.
9834 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'
9835 ;;
9836 esac
9837 ;;
9838 lynxos*)
9839 # FIXME: insert proper C++ library support
9840 ld_shlibs_CXX=no
9841 ;;
9842 m88k*)
9843 # FIXME: insert proper C++ library support
9844 ld_shlibs_CXX=no
9845 ;;
9846 mvs*)
9847 case $cc_basename in
9848 cxx)
9849 # FIXME: insert proper C++ library support
9850 ld_shlibs_CXX=no
9851 ;;
9852 *)
9853 # FIXME: insert proper C++ library support
9854 ld_shlibs_CXX=no
9855 ;;
9856 esac
9857 ;;
9858 netbsd*)
9859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9860 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9861 wlarc=
9862 hardcode_libdir_flag_spec_CXX='-R$libdir'
9863 hardcode_direct_CXX=yes
9864 hardcode_shlibpath_var_CXX=no
9865 fi
9866 # Workaround some broken pre-1.5 toolchains
9867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9868 ;;
9869 osf3*)
9870 case $cc_basename in
9871 KCC)
9872 # Kuck and Associates, Inc. (KAI) C++ Compiler
9873
9874 # KCC will only create a shared library if the output file
9875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9876 # to its proper name (with version) after linking.
9877 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'
9878
9879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9880 hardcode_libdir_separator_CXX=:
9881
9882 # Archives containing C++ object files must be created using
9883 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9884 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9885
9886 ;;
9887 RCC)
9888 # Rational C++ 2.4.1
9889 # FIXME: insert proper C++ library support
9890 ld_shlibs_CXX=no
9891 ;;
9892 cxx)
9893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9894 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9895
9896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator_CXX=:
9898
9899 # Commands to make compiler produce verbose output that lists
9900 # what "hidden" libraries, object files and flags are used when
9901 # linking a shared library.
9902 #
9903 # There doesn't appear to be a way to prevent this compiler from
9904 # explicitly linking system object files so we need to strip them
9905 # from the output so that they don't get included in the library
9906 # dependencies.
9907 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'
9908 ;;
9909 *)
9910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9911 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9912 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9913
9914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9915 hardcode_libdir_separator_CXX=:
9916
9917 # Commands to make compiler produce verbose output that lists
9918 # what "hidden" libraries, object files and flags are used when
9919 # linking a shared library.
9920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9921
9922 else
9923 # FIXME: insert proper C++ library support
9924 ld_shlibs_CXX=no
9925 fi
9926 ;;
9927 esac
9928 ;;
9929 osf4* | osf5*)
9930 case $cc_basename in
9931 KCC)
9932 # Kuck and Associates, Inc. (KAI) C++ Compiler
9933
9934 # KCC will only create a shared library if the output file
9935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9936 # to its proper name (with version) after linking.
9937 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'
9938
9939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9940 hardcode_libdir_separator_CXX=:
9941
9942 # Archives containing C++ object files must be created using
9943 # the KAI C++ compiler.
9944 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9945 ;;
9946 RCC)
9947 # Rational C++ 2.4.1
9948 # FIXME: insert proper C++ library support
9949 ld_shlibs_CXX=no
9950 ;;
9951 cxx)
9952 allow_undefined_flag_CXX=' -expect_unresolved \*'
9953 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9954 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9955 echo "-hidden">> $lib.exp~
9956 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9957 $rm $lib.exp'
9958
9959 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9960 hardcode_libdir_separator_CXX=:
9961
9962 # Commands to make compiler produce verbose output that lists
9963 # what "hidden" libraries, object files and flags are used when
9964 # linking a shared library.
9965 #
9966 # There doesn't appear to be a way to prevent this compiler from
9967 # explicitly linking system object files so we need to strip them
9968 # from the output so that they don't get included in the library
9969 # dependencies.
9970 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'
9971 ;;
9972 *)
9973 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9975 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9976
9977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9978 hardcode_libdir_separator_CXX=:
9979
9980 # Commands to make compiler produce verbose output that lists
9981 # what "hidden" libraries, object files and flags are used when
9982 # linking a shared library.
9983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9984
9985 else
9986 # FIXME: insert proper C++ library support
9987 ld_shlibs_CXX=no
9988 fi
9989 ;;
9990 esac
9991 ;;
9992 psos*)
9993 # FIXME: insert proper C++ library support
9994 ld_shlibs_CXX=no
9995 ;;
9996 sco*)
9997 archive_cmds_need_lc_CXX=no
9998 case $cc_basename in
9999 CC)
10000 # FIXME: insert proper C++ library support
10001 ld_shlibs_CXX=no
10002 ;;
10003 *)
10004 # FIXME: insert proper C++ library support
10005 ld_shlibs_CXX=no
10006 ;;
10007 esac
10008 ;;
10009 sunos4*)
10010 case $cc_basename in
10011 CC)
10012 # Sun C++ 4.x
10013 # FIXME: insert proper C++ library support
10014 ld_shlibs_CXX=no
10015 ;;
10016 lcc)
10017 # Lucid
10018 # FIXME: insert proper C++ library support
10019 ld_shlibs_CXX=no
10020 ;;
10021 *)
10022 # FIXME: insert proper C++ library support
10023 ld_shlibs_CXX=no
10024 ;;
10025 esac
10026 ;;
10027 solaris*)
10028 case $cc_basename in
10029 CC)
10030 # Sun C++ 4.2, 5.x and Centerline C++
10031 no_undefined_flag_CXX=' -zdefs'
10032 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10033 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10034 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10035
10036 hardcode_libdir_flag_spec_CXX='-R$libdir'
10037 hardcode_shlibpath_var_CXX=no
10038 case $host_os in
10039 solaris2.0-5 | solaris2.0-5.*) ;;
10040 *)
10041 # The C++ compiler is used as linker so we must use $wl
10042 # flag to pass the commands to the underlying system
10043 # linker.
10044 # Supported since Solaris 2.6 (maybe 2.5.1?)
10045 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10046 ;;
10047 esac
10048 link_all_deplibs_CXX=yes
10049
10050 # Commands to make compiler produce verbose output that lists
10051 # what "hidden" libraries, object files and flags are used when
10052 # linking a shared library.
10053 #
10054 # There doesn't appear to be a way to prevent this compiler from
10055 # explicitly linking system object files so we need to strip them
10056 # from the output so that they don't get included in the library
10057 # dependencies.
10058 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10059
10060 # Archives containing C++ object files must be created using
10061 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10062 # necessary to make sure instantiated templates are included
10063 # in the archive.
10064 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10065 ;;
10066 gcx)
10067 # Green Hills C++ Compiler
10068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10069
10070 # The C++ compiler must be used to create the archive.
10071 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10072 ;;
10073 *)
10074 # GNU C++ compiler with Solaris linker
10075 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10076 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10077 if $CC --version | grep -v '^2\.7' > /dev/null; then
10078 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10079 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10080 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10081
10082 # Commands to make compiler produce verbose output that lists
10083 # what "hidden" libraries, object files and flags are used when
10084 # linking a shared library.
10085 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10086 else
10087 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10088 # platform.
10089 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10090 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10091 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10092
10093 # Commands to make compiler produce verbose output that lists
10094 # what "hidden" libraries, object files and flags are used when
10095 # linking a shared library.
10096 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10097 fi
10098
10099 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10100 fi
10101 ;;
10102 esac
10103 ;;
10104 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10105 archive_cmds_need_lc_CXX=no
10106 ;;
10107 tandem*)
10108 case $cc_basename in
10109 NCC)
10110 # NonStop-UX NCC 3.20
10111 # FIXME: insert proper C++ library support
10112 ld_shlibs_CXX=no
10113 ;;
10114 *)
10115 # FIXME: insert proper C++ library support
10116 ld_shlibs_CXX=no
10117 ;;
10118 esac
10119 ;;
10120 vxworks*)
10121 # FIXME: insert proper C++ library support
10122 ld_shlibs_CXX=no
10123 ;;
10124 *)
10125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10127 ;;
10128esac
10129echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10130echo "${ECHO_T}$ld_shlibs_CXX" >&6
10131test "$ld_shlibs_CXX" = no && can_build_shared=no
10132
10133GCC_CXX="$GXX"
10134LD_CXX="$LD"
10135
10136
10137cat > conftest.$ac_ext <<EOF
10138class Foo
10139{
10140public:
10141 Foo (void) { a = 0; }
10142private:
10143 int a;
10144};
10145EOF
10146
10147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10148 (eval $ac_compile) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; then
10152 # Parse the compiler output and extract the necessary
10153 # objects, libraries and library flags.
10154
10155 # Sentinel used to keep track of whether or not we are before
10156 # the conftest object file.
10157 pre_test_object_deps_done=no
10158
10159 # The `*' in the case matches for architectures that use `case' in
10160 # $output_verbose_cmd can trigger glob expansion during the loop
10161 # eval without this substitution.
10162 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10163
10164 for p in `eval $output_verbose_link_cmd`; do
10165 case $p in
10166
10167 -L* | -R* | -l*)
10168 # Some compilers place space between "-{L,R}" and the path.
10169 # Remove the space.
10170 if test $p = "-L" \
10171 || test $p = "-R"; then
10172 prev=$p
10173 continue
10174 else
10175 prev=
10176 fi
10177
10178 if test "$pre_test_object_deps_done" = no; then
10179 case $p in
10180 -L* | -R*)
10181 # Internal compiler library paths should come after those
10182 # provided the user. The postdeps already come after the
10183 # user supplied libs so there is no need to process them.
10184 if test -z "$compiler_lib_search_path_CXX"; then
10185 compiler_lib_search_path_CXX="${prev}${p}"
10186 else
10187 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10188 fi
10189 ;;
10190 # The "-l" case would never come before the object being
10191 # linked, so don't bother handling this case.
10192 esac
10193 else
10194 if test -z "$postdeps_CXX"; then
10195 postdeps_CXX="${prev}${p}"
10196 else
10197 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10198 fi
10199 fi
10200 ;;
10201
10202 *.$objext)
10203 # This assumes that the test object file only shows up
10204 # once in the compiler output.
10205 if test "$p" = "conftest.$objext"; then
10206 pre_test_object_deps_done=yes
10207 continue
10208 fi
10209
10210 if test "$pre_test_object_deps_done" = no; then
10211 if test -z "$predep_objects_CXX"; then
10212 predep_objects_CXX="$p"
10213 else
10214 predep_objects_CXX="$predep_objects_CXX $p"
10215 fi
10216 else
10217 if test -z "$postdep_objects_CXX"; then
10218 postdep_objects_CXX="$p"
10219 else
10220 postdep_objects_CXX="$postdep_objects_CXX $p"
10221 fi
10222 fi
10223 ;;
10224
10225 *) ;; # Ignore the rest.
10226
10227 esac
10228 done
10229
10230 # Clean up.
10231 rm -f a.out a.exe
10232else
10233 echo "libtool.m4: error: problem compiling CXX test program"
10234fi
10235
10236$rm -f confest.$objext
10237
10238case " $postdeps_CXX " in
10239*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10240esac
10241
10242lt_prog_compiler_wl_CXX=
10243lt_prog_compiler_pic_CXX=
10244lt_prog_compiler_static_CXX=
10245
10246echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10247echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10248
10249 # C++ specific cases for pic, static, wl, etc.
10250 if test "$GXX" = yes; then
10251 lt_prog_compiler_wl_CXX='-Wl,'
10252 lt_prog_compiler_static_CXX='-static'
10253
10254 case $host_os in
10255 aix*)
10256 # All AIX code is PIC.
10257 if test "$host_cpu" = ia64; then
10258 # AIX 5 now supports IA64 processor
10259 lt_prog_compiler_static_CXX='-Bstatic'
10260 fi
10261 ;;
10262 amigaos*)
10263 # FIXME: we need at least 68020 code to build shared libraries, but
10264 # adding the `-m68020' flag to GCC prevents building anything better,
10265 # like `-m68040'.
10266 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10267 ;;
10268 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10269 # PIC is the default for these OSes.
10270 ;;
10271 mingw* | os2* | pw32*)
10272 # This hack is so that the source file can tell whether it is being
10273 # built for inclusion in a dll (and should export symbols for example).
10274 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10275 ;;
10276 darwin* | rhapsody*)
10277 # PIC is the default on this platform
10278 # Common symbols not allowed in MH_DYLIB files
10279 lt_prog_compiler_pic_CXX='-fno-common'
10280 ;;
10281 *djgpp*)
10282 # DJGPP does not support shared libraries at all
10283 lt_prog_compiler_pic_CXX=
10284 ;;
10285 sysv4*MP*)
10286 if test -d /usr/nec; then
10287 lt_prog_compiler_pic_CXX=-Kconform_pic
10288 fi
10289 ;;
10290 hpux*)
10291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10292 # not for PA HP-UX.
10293 case "$host_cpu" in
10294 hppa*64*|ia64*)
10295 ;;
10296 *)
10297 lt_prog_compiler_pic_CXX='-fPIC'
10298 ;;
10299 esac
10300 ;;
10301 *)
10302 lt_prog_compiler_pic_CXX='-fPIC'
10303 ;;
10304 esac
10305 else
10306 case $host_os in
10307 aix4* | aix5*)
10308 # All AIX code is PIC.
10309 if test "$host_cpu" = ia64; then
10310 # AIX 5 now supports IA64 processor
10311 lt_prog_compiler_static_CXX='-Bstatic'
10312 else
10313 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10314 fi
10315 ;;
10316 chorus*)
10317 case $cc_basename in
10318 cxch68)
10319 # Green Hills C++ Compiler
10320 # _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"
10321 ;;
10322 esac
10323 ;;
10324 dgux*)
10325 case $cc_basename in
10326 ec++)
10327 lt_prog_compiler_pic_CXX='-KPIC'
10328 ;;
10329 ghcx)
10330 # Green Hills C++ Compiler
10331 lt_prog_compiler_pic_CXX='-pic'
10332 ;;
10333 *)
10334 ;;
10335 esac
10336 ;;
10337 freebsd* | kfreebsd*-gnu)
10338 # FreeBSD uses GNU C++
10339 ;;
10340 hpux9* | hpux10* | hpux11*)
10341 case $cc_basename in
10342 CC)
10343 lt_prog_compiler_wl_CXX='-Wl,'
10344 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10345 if test "$host_cpu" != ia64; then
10346 lt_prog_compiler_pic_CXX='+Z'
10347 fi
10348 ;;
10349 aCC)
10350 lt_prog_compiler_wl_CXX='-Wl,'
10351 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10352 case "$host_cpu" in
10353 hppa*64*|ia64*)
10354 # +Z the default
10355 ;;
10356 *)
10357 lt_prog_compiler_pic_CXX='+Z'
10358 ;;
10359 esac
10360 ;;
10361 *)
10362 ;;
10363 esac
10364 ;;
10365 irix5* | irix6* | nonstopux*)
10366 case $cc_basename in
10367 CC)
10368 lt_prog_compiler_wl_CXX='-Wl,'
10369 lt_prog_compiler_static_CXX='-non_shared'
10370 # CC pic flag -KPIC is the default.
10371 ;;
10372 *)
10373 ;;
10374 esac
10375 ;;
10376 linux*)
10377 case $cc_basename in
10378 KCC)
10379 # KAI C++ Compiler
10380 lt_prog_compiler_wl_CXX='--backend -Wl,'
10381 lt_prog_compiler_pic_CXX='-fPIC'
10382 ;;
10383 icpc)
10384 # Intel C++
10385 lt_prog_compiler_wl_CXX='-Wl,'
10386 lt_prog_compiler_pic_CXX='-KPIC'
10387 lt_prog_compiler_static_CXX='-static'
10388 ;;
10389 cxx)
10390 # Compaq C++
10391 # Make sure the PIC flag is empty. It appears that all Alpha
10392 # Linux and Compaq Tru64 Unix objects are PIC.
10393 lt_prog_compiler_pic_CXX=
10394 lt_prog_compiler_static_CXX='-non_shared'
10395 ;;
10396 *)
10397 ;;
10398 esac
10399 ;;
10400 lynxos*)
10401 ;;
10402 m88k*)
10403 ;;
10404 mvs*)
10405 case $cc_basename in
10406 cxx)
10407 lt_prog_compiler_pic_CXX='-W c,exportall'
10408 ;;
10409 *)
10410 ;;
10411 esac
10412 ;;
10413 netbsd*)
10414 ;;
10415 osf3* | osf4* | osf5*)
10416 case $cc_basename in
10417 KCC)
10418 lt_prog_compiler_wl_CXX='--backend -Wl,'
10419 ;;
10420 RCC)
10421 # Rational C++ 2.4.1
10422 lt_prog_compiler_pic_CXX='-pic'
10423 ;;
10424 cxx)
10425 # Digital/Compaq C++
10426 lt_prog_compiler_wl_CXX='-Wl,'
10427 # Make sure the PIC flag is empty. It appears that all Alpha
10428 # Linux and Compaq Tru64 Unix objects are PIC.
10429 lt_prog_compiler_pic_CXX=
10430 lt_prog_compiler_static_CXX='-non_shared'
10431 ;;
10432 *)
10433 ;;
10434 esac
10435 ;;
10436 psos*)
10437 ;;
10438 sco*)
10439 case $cc_basename in
10440 CC)
10441 lt_prog_compiler_pic_CXX='-fPIC'
10442 ;;
10443 *)
10444 ;;
10445 esac
10446 ;;
10447 solaris*)
10448 case $cc_basename in
10449 CC)
10450 # Sun C++ 4.2, 5.x and Centerline C++
10451 lt_prog_compiler_pic_CXX='-KPIC'
10452 lt_prog_compiler_static_CXX='-Bstatic'
10453 lt_prog_compiler_wl_CXX='-Qoption ld '
10454 ;;
10455 gcx)
10456 # Green Hills C++ Compiler
10457 lt_prog_compiler_pic_CXX='-PIC'
10458 ;;
10459 *)
10460 ;;
10461 esac
10462 ;;
10463 sunos4*)
10464 case $cc_basename in
10465 CC)
10466 # Sun C++ 4.x
10467 lt_prog_compiler_pic_CXX='-pic'
10468 lt_prog_compiler_static_CXX='-Bstatic'
10469 ;;
10470 lcc)
10471 # Lucid
10472 lt_prog_compiler_pic_CXX='-pic'
10473 ;;
10474 *)
10475 ;;
10476 esac
10477 ;;
10478 tandem*)
10479 case $cc_basename in
10480 NCC)
10481 # NonStop-UX NCC 3.20
10482 lt_prog_compiler_pic_CXX='-KPIC'
10483 ;;
10484 *)
10485 ;;
10486 esac
10487 ;;
10488 unixware*)
10489 ;;
10490 vxworks*)
10491 ;;
10492 *)
10493 lt_prog_compiler_can_build_shared_CXX=no
10494 ;;
10495 esac
10496 fi
10497
10498echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10499echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10500
10501#
10502# Check to make sure the PIC flag actually works.
10503#
10504if test -n "$lt_prog_compiler_pic_CXX"; then
10505
10506echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10507echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10508if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511 lt_prog_compiler_pic_works_CXX=no
10512 ac_outfile=conftest.$ac_objext
10513 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10514 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10515 # Insert the option either (1) after the last *FLAGS variable, or
10516 # (2) before a word containing "conftest.", or (3) at the end.
10517 # Note that $ac_compile itself does not contain backslashes and begins
10518 # with a dollar sign (not a hyphen), so the echo should work correctly.
10519 # The option is referenced via a variable to avoid confusing sed.
10520 lt_compile=`echo "$ac_compile" | $SED \
10521 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10523 -e 's:$: $lt_compiler_flag:'`
10524 (eval echo "\"\$as_me:10524: $lt_compile\"" >&5)
10525 (eval "$lt_compile" 2>conftest.err)
10526 ac_status=$?
10527 cat conftest.err >&5
10528 echo "$as_me:10528: \$? = $ac_status" >&5
10529 if (exit $ac_status) && test -s "$ac_outfile"; then
10530 # The compiler can only warn and ignore the option if not recognized
10531 # So say no if there are warnings
10532 if test ! -s conftest.err; then
10533 lt_prog_compiler_pic_works_CXX=yes
10534 fi
10535 fi
10536 $rm conftest*
10537
10538fi
10539echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10540echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10541
10542if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10543 case $lt_prog_compiler_pic_CXX in
10544 "" | " "*) ;;
10545 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10546 esac
10547else
10548 lt_prog_compiler_pic_CXX=
10549 lt_prog_compiler_can_build_shared_CXX=no
10550fi
10551
10552fi
10553case "$host_os" in
10554 # For platforms which do not support PIC, -DPIC is meaningless:
10555 *djgpp*)
10556 lt_prog_compiler_pic_CXX=
10557 ;;
10558 *)
10559 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10560 ;;
10561esac
10562
10563echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10564echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10565if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 lt_cv_prog_compiler_c_o_CXX=no
10569 $rm -r conftest 2>/dev/null
10570 mkdir conftest
10571 cd conftest
10572 mkdir out
10573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10574
10575 lt_compiler_flag="-o out/conftest2.$ac_objext"
10576 # Insert the option either (1) after the last *FLAGS variable, or
10577 # (2) before a word containing "conftest.", or (3) at the end.
10578 # Note that $ac_compile itself does not contain backslashes and begins
10579 # with a dollar sign (not a hyphen), so the echo should work correctly.
10580 lt_compile=`echo "$ac_compile" | $SED \
10581 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10583 -e 's:$: $lt_compiler_flag:'`
10584 (eval echo "\"\$as_me:10584: $lt_compile\"" >&5)
10585 (eval "$lt_compile" 2>out/conftest.err)
10586 ac_status=$?
10587 cat out/conftest.err >&5
10588 echo "$as_me:10588: \$? = $ac_status" >&5
10589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10590 then
10591 # The compiler can only warn and ignore the option if not recognized
10592 # So say no if there are warnings
10593 if test ! -s out/conftest.err; then
10594 lt_cv_prog_compiler_c_o_CXX=yes
10595 fi
10596 fi
10597 chmod u+w .
10598 $rm conftest*
10599 # SGI C++ compiler will create directory out/ii_files/ for
10600 # template instantiation
10601 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10602 $rm out/* && rmdir out
10603 cd ..
10604 rmdir conftest
10605 $rm conftest*
10606
10607fi
10608echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10609echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10610
10611
10612hard_links="nottested"
10613if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10614 # do not overwrite the value of need_locks provided by the user
10615 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10616echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10617 hard_links=yes
10618 $rm conftest*
10619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10620 touch conftest.a
10621 ln conftest.a conftest.b 2>&5 || hard_links=no
10622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10623 echo "$as_me:$LINENO: result: $hard_links" >&5
10624echo "${ECHO_T}$hard_links" >&6
10625 if test "$hard_links" = no; then
10626 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10627echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10628 need_locks=warn
10629 fi
10630else
10631 need_locks=no
10632fi
10633
10634echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10635echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10636
10637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10638 case $host_os in
10639 aix4* | aix5*)
10640 # If we're using GNU nm, then we don't want the "-C" option.
10641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10642 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10643 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'
10644 else
10645 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'
10646 fi
10647 ;;
10648 pw32*)
10649 export_symbols_cmds_CXX="$ltdll_cmds"
10650 ;;
10651 cygwin* | mingw*)
10652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10653 ;;
10654 *)
10655 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10656 ;;
10657 esac
10658
10659echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10660echo "${ECHO_T}$ld_shlibs_CXX" >&6
10661test "$ld_shlibs_CXX" = no && can_build_shared=no
10662
10663variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10664if test "$GCC" = yes; then
10665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10666fi
10667
10668#
10669# Do we need to explicitly link libc?
10670#
10671case "x$archive_cmds_need_lc_CXX" in
10672x|xyes)
10673 # Assume -lc should be added
10674 archive_cmds_need_lc_CXX=yes
10675
10676 if test "$enable_shared" = yes && test "$GCC" = yes; then
10677 case $archive_cmds_CXX in
10678 *'~'*)
10679 # FIXME: we may have to deal with multi-command sequences.
10680 ;;
10681 '$CC '*)
10682 # Test whether the compiler implicitly links with -lc since on some
10683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10684 # to ld, don't add -lc before -lgcc.
10685 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10686echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10687 $rm conftest*
10688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10689
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691 (eval $ac_compile) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } 2>conftest.err; then
10695 soname=conftest
10696 lib=conftest
10697 libobjs=conftest.$ac_objext
10698 deplibs=
10699 wl=$lt_prog_compiler_wl_CXX
10700 compiler_flags=-v
10701 linker_flags=-v
10702 verstring=
10703 output_objdir=.
10704 libname=conftest
10705 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10706 allow_undefined_flag_CXX=
10707 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10708 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }
10712 then
10713 archive_cmds_need_lc_CXX=no
10714 else
10715 archive_cmds_need_lc_CXX=yes
10716 fi
10717 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10718 else
10719 cat conftest.err 1>&5
10720 fi
10721 $rm conftest*
10722 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10723echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10724 ;;
10725 esac
10726 fi
10727 ;;
10728esac
10729
10730echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10731echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10732library_names_spec=
10733libname_spec='lib$name'
10734soname_spec=
10735shrext_cmds=".so"
10736postinstall_cmds=
10737postuninstall_cmds=
10738finish_cmds=
10739finish_eval=
10740shlibpath_var=
10741shlibpath_overrides_runpath=unknown
10742version_type=none
10743dynamic_linker="$host_os ld.so"
10744sys_lib_dlsearch_path_spec="/lib /usr/lib"
10745if test "$GCC" = yes; then
10746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10747 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10748 # if the path contains ";" then we assume it to be the separator
10749 # otherwise default to the standard path separator (i.e. ":") - it is
10750 # assumed that no part of a normal pathname contains ";" but that should
10751 # okay in the real world where ";" in dirpaths is itself problematic.
10752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10753 else
10754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10755 fi
10756else
10757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10758fi
10759need_lib_prefix=unknown
10760hardcode_into_libs=no
10761
10762# when you set need_version to no, make sure it does not cause -set_version
10763# flags to be left without arguments
10764need_version=unknown
10765
10766case $host_os in
10767aix3*)
10768 version_type=linux
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10770 shlibpath_var=LIBPATH
10771
10772 # AIX 3 has no versioning support, so we append a major version to the name.
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 ;;
10775
10776aix4* | aix5*)
10777 version_type=linux
10778 need_lib_prefix=no
10779 need_version=no
10780 hardcode_into_libs=yes
10781 if test "$host_cpu" = ia64; then
10782 # AIX 5 supports IA64
10783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 else
10786 # With GCC up to 2.95.x, collect2 would create an import file
10787 # for dependence libraries. The import file would start with
10788 # the line `#! .'. This would cause the generated library to
10789 # depend on `.', always an invalid library. This was fixed in
10790 # development snapshots of GCC prior to 3.0.
10791 case $host_os in
10792 aix4 | aix4.[01] | aix4.[01].*)
10793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10794 echo ' yes '
10795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10796 :
10797 else
10798 can_build_shared=no
10799 fi
10800 ;;
10801 esac
10802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10803 # soname into executable. Probably we can add versioning support to
10804 # collect2, so additional links can be useful in future.
10805 if test "$aix_use_runtimelinking" = yes; then
10806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10807 # instead of lib<name>.a to let people know that these are not
10808 # typical AIX shared libraries.
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 else
10811 # We preserve .a as extension for shared libraries through AIX4.2
10812 # and later when we are not doing run time linking.
10813 library_names_spec='${libname}${release}.a $libname.a'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 fi
10816 shlibpath_var=LIBPATH
10817 fi
10818 ;;
10819
10820amigaos*)
10821 library_names_spec='$libname.ixlibrary $libname.a'
10822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10823 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'
10824 ;;
10825
10826beos*)
10827 library_names_spec='${libname}${shared_ext}'
10828 dynamic_linker="$host_os ld.so"
10829 shlibpath_var=LIBRARY_PATH
10830 ;;
10831
10832bsdi4*)
10833 version_type=linux
10834 need_version=no
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10841 # the default ld.so.conf also contains /usr/contrib/lib and
10842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10843 # libtool to hard-code these into programs
10844 ;;
10845
10846cygwin* | mingw* | pw32*)
10847 version_type=windows
10848 shrext_cmds=".dll"
10849 need_version=no
10850 need_lib_prefix=no
10851
10852 case $GCC,$host_os in
10853 yes,cygwin* | yes,mingw* | yes,pw32*)
10854 library_names_spec='$libname.dll.a'
10855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10856 postinstall_cmds='base_file=`basename \${file}`~
10857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10858 dldir=$destdir/`dirname \$dlpath`~
10859 test -d \$dldir || mkdir -p \$dldir~
10860 $install_prog $dir/$dlname \$dldir/$dlname'
10861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10862 dlpath=$dir/\$dldll~
10863 $rm \$dlpath'
10864 shlibpath_overrides_runpath=yes
10865
10866 case $host_os in
10867 cygwin*)
10868 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10869 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10870 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10871 ;;
10872 mingw*)
10873 # MinGW DLLs use traditional 'lib' prefix
10874 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10876 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10877 # It is most probably a Windows format PATH printed by
10878 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10879 # path with ; separators, and with drive letters. We can handle the
10880 # drive letters (cygwin fileutils understands them), so leave them,
10881 # especially as we might pass files found there to a mingw objdump,
10882 # which wouldn't understand a cygwinified path. Ahh.
10883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10884 else
10885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10886 fi
10887 ;;
10888 pw32*)
10889 # pw32 DLLs use 'pw' prefix rather than 'lib'
10890 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10891 ;;
10892 esac
10893 ;;
10894
10895 *)
10896 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10897 ;;
10898 esac
10899 dynamic_linker='Win32 ld.exe'
10900 # FIXME: first we should search . and the directory the executable is in
10901 shlibpath_var=PATH
10902 ;;
10903
10904darwin* | rhapsody*)
10905 dynamic_linker="$host_os dyld"
10906 version_type=darwin
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10910 soname_spec='${libname}${release}${major}$shared_ext'
10911 shlibpath_overrides_runpath=yes
10912 shlibpath_var=DYLD_LIBRARY_PATH
10913 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10914 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10915 if test "$GCC" = yes; then
10916 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"`
10917 else
10918 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10919 fi
10920 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10921 ;;
10922
10923dgux*)
10924 version_type=linux
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 ;;
10931
10932freebsd1*)
10933 dynamic_linker=no
10934 ;;
10935
10936kfreebsd*-gnu)
10937 version_type=linux
10938 need_lib_prefix=no
10939 need_version=no
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10945 dynamic_linker='GNU ld.so'
10946 ;;
10947
10948freebsd*)
10949 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10950 version_type=freebsd-$objformat
10951 case $version_type in
10952 freebsd-elf*)
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10954 need_version=no
10955 need_lib_prefix=no
10956 ;;
10957 freebsd-*)
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10959 need_version=yes
10960 ;;
10961 esac
10962 shlibpath_var=LD_LIBRARY_PATH
10963 case $host_os in
10964 freebsd2*)
10965 shlibpath_overrides_runpath=yes
10966 ;;
10967 freebsd3.01* | freebsdelf3.01*)
10968 shlibpath_overrides_runpath=yes
10969 hardcode_into_libs=yes
10970 ;;
10971 *) # from 3.2 on
10972 shlibpath_overrides_runpath=no
10973 hardcode_into_libs=yes
10974 ;;
10975 esac
10976 ;;
10977
10978gnu*)
10979 version_type=linux
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 hardcode_into_libs=yes
10986 ;;
10987
10988hpux9* | hpux10* | hpux11*)
10989 # Give a soname corresponding to the major version so that dld.sl refuses to
10990 # link against other versions.
10991 version_type=sunos
10992 need_lib_prefix=no
10993 need_version=no
10994 case "$host_cpu" in
10995 ia64*)
10996 shrext_cmds='.so'
10997 hardcode_into_libs=yes
10998 dynamic_linker="$host_os dld.so"
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 if test "X$HPUX_IA64_MODE" = X32; then
11004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11005 else
11006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11007 fi
11008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11009 ;;
11010 hppa*64*)
11011 shrext_cmds='.sl'
11012 hardcode_into_libs=yes
11013 dynamic_linker="$host_os dld.sl"
11014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11020 ;;
11021 *)
11022 shrext_cmds='.sl'
11023 dynamic_linker="$host_os dld.sl"
11024 shlibpath_var=SHLIB_PATH
11025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 ;;
11029 esac
11030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11031 postinstall_cmds='chmod 555 $lib'
11032 ;;
11033
11034irix5* | irix6* | nonstopux*)
11035 case $host_os in
11036 nonstopux*) version_type=nonstopux ;;
11037 *)
11038 if test "$lt_cv_prog_gnu_ld" = yes; then
11039 version_type=linux
11040 else
11041 version_type=irix
11042 fi ;;
11043 esac
11044 need_lib_prefix=no
11045 need_version=no
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11048 case $host_os in
11049 irix5* | nonstopux*)
11050 libsuff= shlibsuff=
11051 ;;
11052 *)
11053 case $LD in # libtool.m4 will add one of these switches to LD
11054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11055 libsuff= shlibsuff= libmagic=32-bit;;
11056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11057 libsuff=32 shlibsuff=N32 libmagic=N32;;
11058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11060 *) libsuff= shlibsuff= libmagic=never-match;;
11061 esac
11062 ;;
11063 esac
11064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11065 shlibpath_overrides_runpath=no
11066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11068 hardcode_into_libs=yes
11069 ;;
11070
11071# No shared lib support for Linux oldld, aout, or coff.
11072linux*oldld* | linux*aout* | linux*coff*)
11073 dynamic_linker=no
11074 ;;
11075
11076# This must be Linux ELF.
11077linux*)
11078 version_type=linux
11079 need_lib_prefix=no
11080 need_version=no
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 shlibpath_overrides_runpath=no
11086 # This implies no fast_install, which is unacceptable.
11087 # Some rework will be needed to allow for fast_install
11088 # before this can be enabled.
11089 hardcode_into_libs=yes
11090
11091 # find out which ABI we are using
11092 libsuff=
11093 case "$host_cpu" in
11094 x86_64*|s390x*|powerpc64*)
11095 echo '#line 11095 "configure"' > conftest.$ac_ext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; then
11101 case `/usr/bin/file conftest.$ac_objext` in
11102 *64-bit*)
11103 libsuff=64
11104 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11105 ;;
11106 esac
11107 fi
11108 rm -rf conftest*
11109 ;;
11110 esac
11111
11112 # Append ld.so.conf contents to the search path
11113 if test -f /etc/ld.so.conf; then
11114 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11115 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11116 fi
11117
11118 # We used to test for /lib/ld.so.1 and disable shared libraries on
11119 # powerpc, because MkLinux only supported shared libraries with the
11120 # GNU dynamic linker. Since this was broken with cross compilers,
11121 # most powerpc-linux boxes support dynamic linking these days and
11122 # people can always --disable-shared, the test was removed, and we
11123 # assume the GNU/Linux dynamic linker is in use.
11124 dynamic_linker='GNU/Linux ld.so'
11125 ;;
11126
11127knetbsd*-gnu)
11128 version_type=linux
11129 need_lib_prefix=no
11130 need_version=no
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11136 dynamic_linker='GNU ld.so'
11137 ;;
11138
11139netbsd*)
11140 version_type=sunos
11141 need_lib_prefix=no
11142 need_version=no
11143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11146 dynamic_linker='NetBSD (a.out) ld.so'
11147 else
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 dynamic_linker='NetBSD ld.elf_so'
11151 fi
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes
11154 hardcode_into_libs=yes
11155 ;;
11156
11157newsos6)
11158 version_type=linux
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes
11162 ;;
11163
11164nto-qnx*)
11165 version_type=linux
11166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 ;;
11173
11174openbsd*)
11175 version_type=sunos
11176 need_lib_prefix=no
11177 need_version=yes
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11182 case $host_os in
11183 openbsd2.[89] | openbsd2.[89].*)
11184 shlibpath_overrides_runpath=no
11185 ;;
11186 *)
11187 shlibpath_overrides_runpath=yes
11188 ;;
11189 esac
11190 else
11191 shlibpath_overrides_runpath=yes
11192 fi
11193 ;;
11194
11195os2*)
11196 libname_spec='$name'
11197 shrext_cmds=".dll"
11198 need_lib_prefix=no
11199 library_names_spec='$libname${shared_ext} $libname.a'
11200 dynamic_linker='OS/2 ld.exe'
11201 shlibpath_var=LIBPATH
11202 ;;
11203
11204osf3* | osf4* | osf5*)
11205 version_type=osf
11206 need_lib_prefix=no
11207 need_version=no
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11213 ;;
11214
11215sco3.2v5*)
11216 version_type=osf
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 ;;
11221
11222solaris*)
11223 version_type=linux
11224 need_lib_prefix=no
11225 need_version=no
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 shlibpath_overrides_runpath=yes
11230 hardcode_into_libs=yes
11231 # ldd complains unless libraries are executable
11232 postinstall_cmds='chmod +x $lib'
11233 ;;
11234
11235sunos4*)
11236 version_type=sunos
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes
11241 if test "$with_gnu_ld" = yes; then
11242 need_lib_prefix=no
11243 fi
11244 need_version=yes
11245 ;;
11246
11247sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11248 version_type=linux
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 case $host_vendor in
11253 sni)
11254 shlibpath_overrides_runpath=no
11255 need_lib_prefix=no
11256 export_dynamic_flag_spec='${wl}-Blargedynsym'
11257 runpath_var=LD_RUN_PATH
11258 ;;
11259 siemens)
11260 need_lib_prefix=no
11261 ;;
11262 motorola)
11263 need_lib_prefix=no
11264 need_version=no
11265 shlibpath_overrides_runpath=no
11266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11267 ;;
11268 esac
11269 ;;
11270
11271sysv4*MP*)
11272 if test -d /usr/nec ;then
11273 version_type=linux
11274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11275 soname_spec='$libname${shared_ext}.$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 fi
11278 ;;
11279
11280uts4*)
11281 version_type=linux
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 ;;
11286
11287*)
11288 dynamic_linker=no
11289 ;;
11290esac
11291echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11292echo "${ECHO_T}$dynamic_linker" >&6
11293test "$dynamic_linker" = no && can_build_shared=no
11294
11295echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11296echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11297hardcode_action_CXX=
11298if test -n "$hardcode_libdir_flag_spec_CXX" || \
11299 test -n "$runpath_var CXX" || \
11300 test "X$hardcode_automatic_CXX"="Xyes" ; then
11301
11302 # We can hardcode non-existant directories.
11303 if test "$hardcode_direct_CXX" != no &&
11304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11305 # have to relink, otherwise we might link with an installed library
11306 # when we should be linking with a yet-to-be-installed one
11307 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11308 test "$hardcode_minus_L_CXX" != no; then
11309 # Linking always hardcodes the temporary library directory.
11310 hardcode_action_CXX=relink
11311 else
11312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11313 hardcode_action_CXX=immediate
11314 fi
11315else
11316 # We cannot hardcode anything, or else we can only hardcode existing
11317 # directories.
11318 hardcode_action_CXX=unsupported
11319fi
11320echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11321echo "${ECHO_T}$hardcode_action_CXX" >&6
11322
11323if test "$hardcode_action_CXX" = relink; then
11324 # Fast installation is not supported
11325 enable_fast_install=no
11326elif test "$shlibpath_overrides_runpath" = yes ||
11327 test "$enable_shared" = no; then
11328 # Fast installation is not necessary
11329 enable_fast_install=needless
11330fi
11331
11332striplib=
11333old_striplib=
11334echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11335echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11336if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11337 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11338 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11339 echo "$as_me:$LINENO: result: yes" >&5
11340echo "${ECHO_T}yes" >&6
11341else
11342# FIXME - insert some real tests, host_os isn't really good enough
11343 case $host_os in
11344 darwin*)
11345 if test -n "$STRIP" ; then
11346 striplib="$STRIP -x"
11347 echo "$as_me:$LINENO: result: yes" >&5
11348echo "${ECHO_T}yes" >&6
11349 else
11350 echo "$as_me:$LINENO: result: no" >&5
11351echo "${ECHO_T}no" >&6
11352fi
11353 ;;
11354 *)
11355 echo "$as_me:$LINENO: result: no" >&5
11356echo "${ECHO_T}no" >&6
11357 ;;
11358 esac
11359fi
11360
11361if test "x$enable_dlopen" != xyes; then
11362 enable_dlopen=unknown
11363 enable_dlopen_self=unknown
11364 enable_dlopen_self_static=unknown
11365else
11366 lt_cv_dlopen=no
11367 lt_cv_dlopen_libs=
11368
11369 case $host_os in
11370 beos*)
11371 lt_cv_dlopen="load_add_on"
11372 lt_cv_dlopen_libs=
11373 lt_cv_dlopen_self=yes
11374 ;;
11375
11376 mingw* | pw32*)
11377 lt_cv_dlopen="LoadLibrary"
11378 lt_cv_dlopen_libs=
11379 ;;
11380
11381 cygwin*)
11382 lt_cv_dlopen="dlopen"
11383 lt_cv_dlopen_libs=
11384 ;;
11385
11386 darwin*)
11387 # if libdl is installed we need to link against it
11388 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11389echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11390if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392else
11393 ac_check_lib_save_LIBS=$LIBS
11394LIBS="-ldl $LIBS"
11395cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
11401
11402/* Override any gcc2 internal prototype to avoid an error. */
11403#ifdef __cplusplus
11404extern "C"
11405#endif
11406/* We use char because int might match the return type of a gcc2
11407 builtin and then its argument prototype would still apply. */
11408char dlopen ();
11409int
11410main ()
11411{
11412dlopen ();
11413 ;
11414 return 0;
11415}
11416_ACEOF
11417rm -f conftest.$ac_objext conftest$ac_exeext
11418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11419 (eval $ac_link) 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_cxx_werror_flag"
11427 || test ! -s conftest.err'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 ac_cv_lib_dl_dlopen=yes
11440else
11441 echo "$as_me: failed program was:" >&5
11442sed 's/^/| /' conftest.$ac_ext >&5
11443
11444ac_cv_lib_dl_dlopen=no
11445fi
11446rm -f conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448LIBS=$ac_check_lib_save_LIBS
11449fi
11450echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11452if test $ac_cv_lib_dl_dlopen = yes; then
11453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11454else
11455
11456 lt_cv_dlopen="dyld"
11457 lt_cv_dlopen_libs=
11458 lt_cv_dlopen_self=yes
11459
11460fi
11461
11462 ;;
11463
11464 *)
11465 echo "$as_me:$LINENO: checking for shl_load" >&5
11466echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11467if test "${ac_cv_func_shl_load+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469else
11470 cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h. */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11478#define shl_load innocuous_shl_load
11479
11480/* System header to define __stub macros and hopefully few prototypes,
11481 which can conflict with char shl_load (); below.
11482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11483 <limits.h> exists even on freestanding compilers. */
11484
11485#ifdef __STDC__
11486# include <limits.h>
11487#else
11488# include <assert.h>
11489#endif
11490
11491#undef shl_load
11492
11493/* Override any gcc2 internal prototype to avoid an error. */
11494#ifdef __cplusplus
11495extern "C"
11496{
11497#endif
11498/* We use char because int might match the return type of a gcc2
11499 builtin and then its argument prototype would still apply. */
11500char shl_load ();
11501/* The GNU C library defines this for functions which it implements
11502 to always fail with ENOSYS. Some functions are actually named
11503 something starting with __ and the normal name is an alias. */
11504#if defined (__stub_shl_load) || defined (__stub___shl_load)
11505choke me
11506#else
11507char (*f) () = shl_load;
11508#endif
11509#ifdef __cplusplus
11510}
11511#endif
11512
11513int
11514main ()
11515{
11516return f != shl_load;
11517 ;
11518 return 0;
11519}
11520_ACEOF
11521rm -f conftest.$ac_objext conftest$ac_exeext
11522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11523 (eval $ac_link) 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
11530 { ac_try='test -z "$ac_cxx_werror_flag"
11531 || test ! -s conftest.err'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest$ac_exeext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 ac_cv_func_shl_load=yes
11544else
11545 echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548ac_cv_func_shl_load=no
11549fi
11550rm -f conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552fi
11553echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11554echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11555if test $ac_cv_func_shl_load = yes; then
11556 lt_cv_dlopen="shl_load"
11557else
11558 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11559echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11560if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 ac_check_lib_save_LIBS=$LIBS
11564LIBS="-ldld $LIBS"
11565cat >conftest.$ac_ext <<_ACEOF
11566/* confdefs.h. */
11567_ACEOF
11568cat confdefs.h >>conftest.$ac_ext
11569cat >>conftest.$ac_ext <<_ACEOF
11570/* end confdefs.h. */
11571
11572/* Override any gcc2 internal prototype to avoid an error. */
11573#ifdef __cplusplus
11574extern "C"
11575#endif
11576/* We use char because int might match the return type of a gcc2
11577 builtin and then its argument prototype would still apply. */
11578char shl_load ();
11579int
11580main ()
11581{
11582shl_load ();
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext conftest$ac_exeext
11588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589 (eval $ac_link) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_cxx_werror_flag"
11597 || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest$ac_exeext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_cv_lib_dld_shl_load=yes
11610else
11611 echo "$as_me: failed program was:" >&5
11612sed 's/^/| /' conftest.$ac_ext >&5
11613
11614ac_cv_lib_dld_shl_load=no
11615fi
11616rm -f conftest.err conftest.$ac_objext \
11617 conftest$ac_exeext conftest.$ac_ext
11618LIBS=$ac_check_lib_save_LIBS
11619fi
11620echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11621echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11622if test $ac_cv_lib_dld_shl_load = yes; then
11623 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11624else
11625 echo "$as_me:$LINENO: checking for dlopen" >&5
11626echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11627if test "${ac_cv_func_dlopen+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630 cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11638#define dlopen innocuous_dlopen
11639
11640/* System header to define __stub macros and hopefully few prototypes,
11641 which can conflict with char dlopen (); below.
11642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11643 <limits.h> exists even on freestanding compilers. */
11644
11645#ifdef __STDC__
11646# include <limits.h>
11647#else
11648# include <assert.h>
11649#endif
11650
11651#undef dlopen
11652
11653/* Override any gcc2 internal prototype to avoid an error. */
11654#ifdef __cplusplus
11655extern "C"
11656{
11657#endif
11658/* We use char because int might match the return type of a gcc2
11659 builtin and then its argument prototype would still apply. */
11660char dlopen ();
11661/* The GNU C library defines this for functions which it implements
11662 to always fail with ENOSYS. Some functions are actually named
11663 something starting with __ and the normal name is an alias. */
11664#if defined (__stub_dlopen) || defined (__stub___dlopen)
11665choke me
11666#else
11667char (*f) () = dlopen;
11668#endif
11669#ifdef __cplusplus
11670}
11671#endif
11672
11673int
11674main ()
11675{
11676return f != dlopen;
11677 ;
11678 return 0;
11679}
11680_ACEOF
11681rm -f conftest.$ac_objext conftest$ac_exeext
11682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683 (eval $ac_link) 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_cxx_werror_flag"
11691 || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_func_dlopen=yes
11704else
11705 echo "$as_me: failed program was:" >&5
11706sed 's/^/| /' conftest.$ac_ext >&5
11707
11708ac_cv_func_dlopen=no
11709fi
11710rm -f conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712fi
11713echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11714echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11715if test $ac_cv_func_dlopen = yes; then
11716 lt_cv_dlopen="dlopen"
11717else
11718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11720if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 ac_check_lib_save_LIBS=$LIBS
11724LIBS="-ldl $LIBS"
11725cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
11731
11732/* Override any gcc2 internal prototype to avoid an error. */
11733#ifdef __cplusplus
11734extern "C"
11735#endif
11736/* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11738char dlopen ();
11739int
11740main ()
11741{
11742dlopen ();
11743 ;
11744 return 0;
11745}
11746_ACEOF
11747rm -f conftest.$ac_objext conftest$ac_exeext
11748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_cxx_werror_flag"
11757 || test ! -s conftest.err'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_lib_dl_dlopen=yes
11770else
11771 echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
11774ac_cv_lib_dl_dlopen=no
11775fi
11776rm -f conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778LIBS=$ac_check_lib_save_LIBS
11779fi
11780echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11781echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11782if test $ac_cv_lib_dl_dlopen = yes; then
11783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11784else
11785 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11786echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11787if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789else
11790 ac_check_lib_save_LIBS=$LIBS
11791LIBS="-lsvld $LIBS"
11792cat >conftest.$ac_ext <<_ACEOF
11793/* confdefs.h. */
11794_ACEOF
11795cat confdefs.h >>conftest.$ac_ext
11796cat >>conftest.$ac_ext <<_ACEOF
11797/* end confdefs.h. */
11798
11799/* Override any gcc2 internal prototype to avoid an error. */
11800#ifdef __cplusplus
11801extern "C"
11802#endif
11803/* We use char because int might match the return type of a gcc2
11804 builtin and then its argument prototype would still apply. */
11805char dlopen ();
11806int
11807main ()
11808{
11809dlopen ();
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext conftest$ac_exeext
11815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816 (eval $ac_link) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_cxx_werror_flag"
11824 || test ! -s conftest.err'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 ac_cv_lib_svld_dlopen=yes
11837else
11838 echo "$as_me: failed program was:" >&5
11839sed 's/^/| /' conftest.$ac_ext >&5
11840
11841ac_cv_lib_svld_dlopen=no
11842fi
11843rm -f conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11845LIBS=$ac_check_lib_save_LIBS
11846fi
11847echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11848echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11849if test $ac_cv_lib_svld_dlopen = yes; then
11850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11851else
11852 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11853echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11854if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 ac_check_lib_save_LIBS=$LIBS
11858LIBS="-ldld $LIBS"
11859cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865
11866/* Override any gcc2 internal prototype to avoid an error. */
11867#ifdef __cplusplus
11868extern "C"
11869#endif
11870/* We use char because int might match the return type of a gcc2
11871 builtin and then its argument prototype would still apply. */
11872char dld_link ();
11873int
11874main ()
11875{
11876dld_link ();
11877 ;
11878 return 0;
11879}
11880_ACEOF
11881rm -f conftest.$ac_objext conftest$ac_exeext
11882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883 (eval $ac_link) 2>conftest.er1
11884 ac_status=$?
11885 grep -v '^ *+' conftest.er1 >conftest.err
11886 rm -f conftest.er1
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -z "$ac_cxx_werror_flag"
11891 || test ! -s conftest.err'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest$ac_exeext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 ac_cv_lib_dld_dld_link=yes
11904else
11905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
11908ac_cv_lib_dld_dld_link=no
11909fi
11910rm -f conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912LIBS=$ac_check_lib_save_LIBS
11913fi
11914echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11915echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11916if test $ac_cv_lib_dld_dld_link = yes; then
11917 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11918fi
11919
11920
11921fi
11922
11923
11924fi
11925
11926
11927fi
11928
11929
11930fi
11931
11932
11933fi
11934
11935 ;;
11936 esac
11937
11938 if test "x$lt_cv_dlopen" != xno; then
11939 enable_dlopen=yes
11940 else
11941 enable_dlopen=no
11942 fi
11943
11944 case $lt_cv_dlopen in
11945 dlopen)
11946 save_CPPFLAGS="$CPPFLAGS"
11947 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11948
11949 save_LDFLAGS="$LDFLAGS"
11950 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11951
11952 save_LIBS="$LIBS"
11953 LIBS="$lt_cv_dlopen_libs $LIBS"
11954
11955 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11956echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11957if test "${lt_cv_dlopen_self+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959else
11960 if test "$cross_compiling" = yes; then :
11961 lt_cv_dlopen_self=cross
11962else
11963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11964 lt_status=$lt_dlunknown
11965 cat > conftest.$ac_ext <<EOF
11966#line 11966 "configure"
11967#include "confdefs.h"
11968
11969#if HAVE_DLFCN_H
11970#include <dlfcn.h>
11971#endif
11972
11973#include <stdio.h>
11974
11975#ifdef RTLD_GLOBAL
11976# define LT_DLGLOBAL RTLD_GLOBAL
11977#else
11978# ifdef DL_GLOBAL
11979# define LT_DLGLOBAL DL_GLOBAL
11980# else
11981# define LT_DLGLOBAL 0
11982# endif
11983#endif
11984
11985/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11986 find out it does not work in some platform. */
11987#ifndef LT_DLLAZY_OR_NOW
11988# ifdef RTLD_LAZY
11989# define LT_DLLAZY_OR_NOW RTLD_LAZY
11990# else
11991# ifdef DL_LAZY
11992# define LT_DLLAZY_OR_NOW DL_LAZY
11993# else
11994# ifdef RTLD_NOW
11995# define LT_DLLAZY_OR_NOW RTLD_NOW
11996# else
11997# ifdef DL_NOW
11998# define LT_DLLAZY_OR_NOW DL_NOW
11999# else
12000# define LT_DLLAZY_OR_NOW 0
12001# endif
12002# endif
12003# endif
12004# endif
12005#endif
12006
12007#ifdef __cplusplus
12008extern "C" void exit (int);
12009#endif
12010
12011void fnord() { int i=42;}
12012int main ()
12013{
12014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12015 int status = $lt_dlunknown;
12016
12017 if (self)
12018 {
12019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12021 /* dlclose (self); */
12022 }
12023
12024 exit (status);
12025}
12026EOF
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12032 (./conftest; exit; ) 2>/dev/null
12033 lt_status=$?
12034 case x$lt_status in
12035 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12036 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12037 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12038 esac
12039 else :
12040 # compilation failed
12041 lt_cv_dlopen_self=no
12042 fi
12043fi
12044rm -fr conftest*
12045
12046
12047fi
12048echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12049echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12050
12051 if test "x$lt_cv_dlopen_self" = xyes; then
12052 LDFLAGS="$LDFLAGS $link_static_flag"
12053 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12054echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12055if test "${lt_cv_dlopen_self_static+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 if test "$cross_compiling" = yes; then :
12059 lt_cv_dlopen_self_static=cross
12060else
12061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12062 lt_status=$lt_dlunknown
12063 cat > conftest.$ac_ext <<EOF
12064#line 12064 "configure"
12065#include "confdefs.h"
12066
12067#if HAVE_DLFCN_H
12068#include <dlfcn.h>
12069#endif
12070
12071#include <stdio.h>
12072
12073#ifdef RTLD_GLOBAL
12074# define LT_DLGLOBAL RTLD_GLOBAL
12075#else
12076# ifdef DL_GLOBAL
12077# define LT_DLGLOBAL DL_GLOBAL
12078# else
12079# define LT_DLGLOBAL 0
12080# endif
12081#endif
12082
12083/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12084 find out it does not work in some platform. */
12085#ifndef LT_DLLAZY_OR_NOW
12086# ifdef RTLD_LAZY
12087# define LT_DLLAZY_OR_NOW RTLD_LAZY
12088# else
12089# ifdef DL_LAZY
12090# define LT_DLLAZY_OR_NOW DL_LAZY
12091# else
12092# ifdef RTLD_NOW
12093# define LT_DLLAZY_OR_NOW RTLD_NOW
12094# else
12095# ifdef DL_NOW
12096# define LT_DLLAZY_OR_NOW DL_NOW
12097# else
12098# define LT_DLLAZY_OR_NOW 0
12099# endif
12100# endif
12101# endif
12102# endif
12103#endif
12104
12105#ifdef __cplusplus
12106extern "C" void exit (int);
12107#endif
12108
12109void fnord() { int i=42;}
12110int main ()
12111{
12112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12113 int status = $lt_dlunknown;
12114
12115 if (self)
12116 {
12117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12118 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12119 /* dlclose (self); */
12120 }
12121
12122 exit (status);
12123}
12124EOF
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12130 (./conftest; exit; ) 2>/dev/null
12131 lt_status=$?
12132 case x$lt_status in
12133 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12134 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12135 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12136 esac
12137 else :
12138 # compilation failed
12139 lt_cv_dlopen_self_static=no
12140 fi
12141fi
12142rm -fr conftest*
12143
12144
12145fi
12146echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12147echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12148 fi
12149
12150 CPPFLAGS="$save_CPPFLAGS"
12151 LDFLAGS="$save_LDFLAGS"
12152 LIBS="$save_LIBS"
12153 ;;
12154 esac
12155
12156 case $lt_cv_dlopen_self in
12157 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12158 *) enable_dlopen_self=unknown ;;
12159 esac
12160
12161 case $lt_cv_dlopen_self_static in
12162 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12163 *) enable_dlopen_self_static=unknown ;;
12164 esac
12165fi
12166
12167
12168# The else clause should only fire when bootstrapping the
12169# libtool distribution, otherwise you forgot to ship ltmain.sh
12170# with your package, and you will get complaints that there are
12171# no rules to generate ltmain.sh.
12172if test -f "$ltmain"; then
12173 # See if we are running on zsh, and set the options which allow our commands through
12174 # without removal of \ escapes.
12175 if test -n "${ZSH_VERSION+set}" ; then
12176 setopt NO_GLOB_SUBST
12177 fi
12178 # Now quote all the things that may contain metacharacters while being
12179 # careful not to overquote the AC_SUBSTed values. We take copies of the
12180 # variables and quote the copies for generation of the libtool script.
12181 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12182 SED SHELL STRIP \
12183 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12184 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12185 deplibs_check_method reload_flag reload_cmds need_locks \
12186 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12187 lt_cv_sys_global_symbol_to_c_name_address \
12188 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12189 old_postinstall_cmds old_postuninstall_cmds \
12190 compiler_CXX \
12191 CC_CXX \
12192 LD_CXX \
12193 lt_prog_compiler_wl_CXX \
12194 lt_prog_compiler_pic_CXX \
12195 lt_prog_compiler_static_CXX \
12196 lt_prog_compiler_no_builtin_flag_CXX \
12197 export_dynamic_flag_spec_CXX \
12198 thread_safe_flag_spec_CXX \
12199 whole_archive_flag_spec_CXX \
12200 enable_shared_with_static_runtimes_CXX \
12201 old_archive_cmds_CXX \
12202 old_archive_from_new_cmds_CXX \
12203 predep_objects_CXX \
12204 postdep_objects_CXX \
12205 predeps_CXX \
12206 postdeps_CXX \
12207 compiler_lib_search_path_CXX \
12208 archive_cmds_CXX \
12209 archive_expsym_cmds_CXX \
12210 postinstall_cmds_CXX \
12211 postuninstall_cmds_CXX \
12212 old_archive_from_expsyms_cmds_CXX \
12213 allow_undefined_flag_CXX \
12214 no_undefined_flag_CXX \
12215 export_symbols_cmds_CXX \
12216 hardcode_libdir_flag_spec_CXX \
12217 hardcode_libdir_flag_spec_ld_CXX \
12218 hardcode_libdir_separator_CXX \
12219 hardcode_automatic_CXX \
12220 module_cmds_CXX \
12221 module_expsym_cmds_CXX \
12222 lt_cv_prog_compiler_c_o_CXX \
12223 exclude_expsyms_CXX \
12224 include_expsyms_CXX; do
12225
12226 case $var in
12227 old_archive_cmds_CXX | \
12228 old_archive_from_new_cmds_CXX | \
12229 archive_cmds_CXX | \
12230 archive_expsym_cmds_CXX | \
12231 module_cmds_CXX | \
12232 module_expsym_cmds_CXX | \
12233 old_archive_from_expsyms_cmds_CXX | \
12234 export_symbols_cmds_CXX | \
12235 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12236 postinstall_cmds | postuninstall_cmds | \
12237 old_postinstall_cmds | old_postuninstall_cmds | \
12238 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12239 # Double-quote double-evaled strings.
12240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12241 ;;
12242 *)
12243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12244 ;;
12245 esac
12246 done
12247
12248 case $lt_echo in
12249 *'\$0 --fallback-echo"')
12250 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12251 ;;
12252 esac
12253
12254cfgfile="$ofile"
12255
12256 cat <<__EOF__ >> "$cfgfile"
12257# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12258
12259# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12260
12261# Shell to use when invoking shell scripts.
12262SHELL=$lt_SHELL
12263
12264# Whether or not to build shared libraries.
12265build_libtool_libs=$enable_shared
12266
12267# Whether or not to build static libraries.
12268build_old_libs=$enable_static
12269
12270# Whether or not to add -lc for building shared libraries.
12271build_libtool_need_lc=$archive_cmds_need_lc_CXX
12272
12273# Whether or not to disallow shared libs when runtime libs are static
12274allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12275
12276# Whether or not to optimize for fast installation.
12277fast_install=$enable_fast_install
12278
12279# The host system.
12280host_alias=$host_alias
12281host=$host
12282
12283# An echo program that does not interpret backslashes.
12284echo=$lt_echo
12285
12286# The archiver.
12287AR=$lt_AR
12288AR_FLAGS=$lt_AR_FLAGS
12289
12290# A C compiler.
12291LTCC=$lt_LTCC
12292
12293# A language-specific compiler.
12294CC=$lt_compiler_CXX
12295
12296# Is the compiler the GNU C compiler?
12297with_gcc=$GCC_CXX
12298
12299# An ERE matcher.
12300EGREP=$lt_EGREP
12301
12302# The linker used to build libraries.
12303LD=$lt_LD_CXX
12304
12305# Whether we need hard or soft links.
12306LN_S=$lt_LN_S
12307
12308# A BSD-compatible nm program.
12309NM=$lt_NM
12310
12311# A symbol stripping program
12312STRIP=$lt_STRIP
12313
12314# Used to examine libraries when file_magic_cmd begins "file"
12315MAGIC_CMD=$MAGIC_CMD
12316
12317# Used on cygwin: DLL creation program.
12318DLLTOOL="$DLLTOOL"
12319
12320# Used on cygwin: object dumper.
12321OBJDUMP="$OBJDUMP"
12322
12323# Used on cygwin: assembler.
12324AS="$AS"
12325
12326# The name of the directory that contains temporary libtool files.
12327objdir=$objdir
12328
12329# How to create reloadable object files.
12330reload_flag=$lt_reload_flag
12331reload_cmds=$lt_reload_cmds
12332
12333# How to pass a linker flag through the compiler.
12334wl=$lt_lt_prog_compiler_wl_CXX
12335
12336# Object file suffix (normally "o").
12337objext="$ac_objext"
12338
12339# Old archive suffix (normally "a").
12340libext="$libext"
12341
12342# Shared library suffix (normally ".so").
12343shrext_cmds='$shrext_cmds'
12344
12345# Executable file suffix (normally "").
12346exeext="$exeext"
12347
12348# Additional compiler flags for building library objects.
12349pic_flag=$lt_lt_prog_compiler_pic_CXX
12350pic_mode=$pic_mode
12351
12352# What is the maximum length of a command?
12353max_cmd_len=$lt_cv_sys_max_cmd_len
12354
12355# Does compiler simultaneously support -c and -o options?
12356compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12357
12358# Must we lock files when doing compilation ?
12359need_locks=$lt_need_locks
12360
12361# Do we need the lib prefix for modules?
12362need_lib_prefix=$need_lib_prefix
12363
12364# Do we need a version for libraries?
12365need_version=$need_version
12366
12367# Whether dlopen is supported.
12368dlopen_support=$enable_dlopen
12369
12370# Whether dlopen of programs is supported.
12371dlopen_self=$enable_dlopen_self
12372
12373# Whether dlopen of statically linked programs is supported.
12374dlopen_self_static=$enable_dlopen_self_static
12375
12376# Compiler flag to prevent dynamic linking.
12377link_static_flag=$lt_lt_prog_compiler_static_CXX
12378
12379# Compiler flag to turn off builtin functions.
12380no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12381
12382# Compiler flag to allow reflexive dlopens.
12383export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12384
12385# Compiler flag to generate shared objects directly from archives.
12386whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12387
12388# Compiler flag to generate thread-safe objects.
12389thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12390
12391# Library versioning type.
12392version_type=$version_type
12393
12394# Format of library name prefix.
12395libname_spec=$lt_libname_spec
12396
12397# List of archive names. First name is the real one, the rest are links.
12398# The last name is the one that the linker finds with -lNAME.
12399library_names_spec=$lt_library_names_spec
12400
12401# The coded name of the library, if different from the real name.
12402soname_spec=$lt_soname_spec
12403
12404# Commands used to build and install an old-style archive.
12405RANLIB=$lt_RANLIB
12406old_archive_cmds=$lt_old_archive_cmds_CXX
12407old_postinstall_cmds=$lt_old_postinstall_cmds
12408old_postuninstall_cmds=$lt_old_postuninstall_cmds
12409
12410# Create an old-style archive from a shared archive.
12411old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12412
12413# Create a temporary old-style archive to link instead of a shared archive.
12414old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12415
12416# Commands used to build and install a shared archive.
12417archive_cmds=$lt_archive_cmds_CXX
12418archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12419postinstall_cmds=$lt_postinstall_cmds
12420postuninstall_cmds=$lt_postuninstall_cmds
12421
12422# Commands used to build a loadable module (assumed same as above if empty)
12423module_cmds=$lt_module_cmds_CXX
12424module_expsym_cmds=$lt_module_expsym_cmds_CXX
12425
12426# Commands to strip libraries.
12427old_striplib=$lt_old_striplib
12428striplib=$lt_striplib
12429
12430# Dependencies to place before the objects being linked to create a
12431# shared library.
12432predep_objects=$lt_predep_objects_CXX
12433
12434# Dependencies to place after the objects being linked to create a
12435# shared library.
12436postdep_objects=$lt_postdep_objects_CXX
12437
12438# Dependencies to place before the objects being linked to create a
12439# shared library.
12440predeps=$lt_predeps_CXX
12441
12442# Dependencies to place after the objects being linked to create a
12443# shared library.
12444postdeps=$lt_postdeps_CXX
12445
12446# The library search path used internally by the compiler when linking
12447# a shared library.
12448compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12449
12450# Method to check whether dependent libraries are shared objects.
12451deplibs_check_method=$lt_deplibs_check_method
12452
12453# Command to use when deplibs_check_method == file_magic.
12454file_magic_cmd=$lt_file_magic_cmd
12455
12456# Flag that allows shared libraries with undefined symbols to be built.
12457allow_undefined_flag=$lt_allow_undefined_flag_CXX
12458
12459# Flag that forces no undefined symbols.
12460no_undefined_flag=$lt_no_undefined_flag_CXX
12461
12462# Commands used to finish a libtool library installation in a directory.
12463finish_cmds=$lt_finish_cmds
12464
12465# Same as above, but a single script fragment to be evaled but not shown.
12466finish_eval=$lt_finish_eval
12467
12468# Take the output of nm and produce a listing of raw symbols and C names.
12469global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12470
12471# Transform the output of nm in a proper C declaration
12472global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12473
12474# Transform the output of nm in a C name address pair
12475global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12476
12477# This is the shared library runtime path variable.
12478runpath_var=$runpath_var
12479
12480# This is the shared library path variable.
12481shlibpath_var=$shlibpath_var
12482
12483# Is shlibpath searched before the hard-coded library search path?
12484shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12485
12486# How to hardcode a shared library path into an executable.
12487hardcode_action=$hardcode_action_CXX
12488
12489# Whether we should hardcode library paths into libraries.
12490hardcode_into_libs=$hardcode_into_libs
12491
12492# Flag to hardcode \$libdir into a binary during linking.
12493# This must work even if \$libdir does not exist.
12494hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12495
12496# If ld is used when linking, flag to hardcode \$libdir into
12497# a binary during linking. This must work even if \$libdir does
12498# not exist.
12499hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12500
12501# Whether we need a single -rpath flag with a separated argument.
12502hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12503
12504# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12505# resulting binary.
12506hardcode_direct=$hardcode_direct_CXX
12507
12508# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12509# resulting binary.
12510hardcode_minus_L=$hardcode_minus_L_CXX
12511
12512# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12513# the resulting binary.
12514hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12515
12516# Set to yes if building a shared library automatically hardcodes DIR into the library
12517# and all subsequent libraries and executables linked against it.
12518hardcode_automatic=$hardcode_automatic_CXX
12519
12520# Variables whose values should be saved in libtool wrapper scripts and
12521# restored at relink time.
12522variables_saved_for_relink="$variables_saved_for_relink"
12523
12524# Whether libtool must link a program against all its dependency libraries.
12525link_all_deplibs=$link_all_deplibs_CXX
12526
12527# Compile-time system search path for libraries
12528sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12529
12530# Run-time system search path for libraries
12531sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12532
12533# Fix the shell variable \$srcfile for the compiler.
12534fix_srcfile_path="$fix_srcfile_path_CXX"
12535
12536# Set to yes if exported symbols are required.
12537always_export_symbols=$always_export_symbols_CXX
12538
12539# The commands to list exported symbols.
12540export_symbols_cmds=$lt_export_symbols_cmds_CXX
12541
12542# The commands to extract the exported symbol list from a shared archive.
12543extract_expsyms_cmds=$lt_extract_expsyms_cmds
12544
12545# Symbols that should not be listed in the preloaded symbols.
12546exclude_expsyms=$lt_exclude_expsyms_CXX
12547
12548# Symbols that must always be exported.
12549include_expsyms=$lt_include_expsyms_CXX
12550
12551# ### END LIBTOOL TAG CONFIG: $tagname
12552
12553__EOF__
12554
12555
12556else
12557 # If there is no Makefile yet, we rely on a make rule to execute
12558 # `config.status --recheck' to rerun these tests and create the
12559 # libtool script then.
12560 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12561 if test -f "$ltmain_in"; then
12562 test -f Makefile && make "$ltmain"
12563 fi
12564fi
12565
12566
12567ac_ext=c
12568ac_cpp='$CPP $CPPFLAGS'
12569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571ac_compiler_gnu=$ac_cv_c_compiler_gnu
12572
12573CC=$lt_save_CC
12574LDCXX=$LD
12575LD=$lt_save_LD
12576GCC=$lt_save_GCC
12577with_gnu_ldcxx=$with_gnu_ld
12578with_gnu_ld=$lt_save_with_gnu_ld
12579lt_cv_path_LDCXX=$lt_cv_path_LD
12580lt_cv_path_LD=$lt_save_path_LD
12581lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12582lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12583
12584 else
12585 tagname=""
12586 fi
12587 ;;
12588
12589 F77)
12590 if test -n "$F77" && test "X$F77" != "Xno"; then
12591
12592ac_ext=f
12593ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12594ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12595ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12596
12597
12598archive_cmds_need_lc_F77=no
12599allow_undefined_flag_F77=
12600always_export_symbols_F77=no
12601archive_expsym_cmds_F77=
12602export_dynamic_flag_spec_F77=
12603hardcode_direct_F77=no
12604hardcode_libdir_flag_spec_F77=
12605hardcode_libdir_flag_spec_ld_F77=
12606hardcode_libdir_separator_F77=
12607hardcode_minus_L_F77=no
12608hardcode_automatic_F77=no
12609module_cmds_F77=
12610module_expsym_cmds_F77=
12611link_all_deplibs_F77=unknown
12612old_archive_cmds_F77=$old_archive_cmds
12613no_undefined_flag_F77=
12614whole_archive_flag_spec_F77=
12615enable_shared_with_static_runtimes_F77=no
12616
12617# Source file extension for f77 test sources.
12618ac_ext=f
12619
12620# Object file extension for compiled f77 test sources.
12621objext=o
12622objext_F77=$objext
12623
12624# Code to be used in simple compile tests
12625lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12626
12627# Code to be used in simple link tests
12628lt_simple_link_test_code=" program t\n end\n"
12629
12630# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12631
12632# If no C compiler was specified, use CC.
12633LTCC=${LTCC-"$CC"}
12634
12635# Allow CC to be a program name with arguments.
12636compiler=$CC
12637
12638
12639# Allow CC to be a program name with arguments.
12640lt_save_CC="$CC"
12641CC=${F77-"f77"}
12642compiler=$CC
12643compiler_F77=$CC
12644cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12645
12646echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12647echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12648echo "$as_me:$LINENO: result: $can_build_shared" >&5
12649echo "${ECHO_T}$can_build_shared" >&6
12650
12651echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12652echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12653test "$can_build_shared" = "no" && enable_shared=no
12654
12655# On AIX, shared libraries and static libraries use the same namespace, and
12656# are all built from PIC.
12657case "$host_os" in
12658aix3*)
12659 test "$enable_shared" = yes && enable_static=no
12660 if test -n "$RANLIB"; then
12661 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12662 postinstall_cmds='$RANLIB $lib'
12663 fi
12664 ;;
12665aix4* | aix5*)
12666 test "$enable_shared" = yes && enable_static=no
12667 ;;
12668esac
12669echo "$as_me:$LINENO: result: $enable_shared" >&5
12670echo "${ECHO_T}$enable_shared" >&6
12671
12672echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12673echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12674# Make sure either enable_shared or enable_static is yes.
12675test "$enable_shared" = yes || enable_static=yes
12676echo "$as_me:$LINENO: result: $enable_static" >&5
12677echo "${ECHO_T}$enable_static" >&6
12678
12679test "$ld_shlibs_F77" = no && can_build_shared=no
12680
12681GCC_F77="$G77"
12682LD_F77="$LD"
12683
12684lt_prog_compiler_wl_F77=
12685lt_prog_compiler_pic_F77=
12686lt_prog_compiler_static_F77=
12687
12688echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12689echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12690
12691 if test "$GCC" = yes; then
12692 lt_prog_compiler_wl_F77='-Wl,'
12693 lt_prog_compiler_static_F77='-static'
12694
12695 case $host_os in
12696 aix*)
12697 # All AIX code is PIC.
12698 if test "$host_cpu" = ia64; then
12699 # AIX 5 now supports IA64 processor
12700 lt_prog_compiler_static_F77='-Bstatic'
12701 fi
12702 ;;
12703
12704 amigaos*)
12705 # FIXME: we need at least 68020 code to build shared libraries, but
12706 # adding the `-m68020' flag to GCC prevents building anything better,
12707 # like `-m68040'.
12708 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12709 ;;
12710
12711 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12712 # PIC is the default for these OSes.
12713 ;;
12714
12715 mingw* | pw32* | os2*)
12716 # This hack is so that the source file can tell whether it is being
12717 # built for inclusion in a dll (and should export symbols for example).
12718 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12719 ;;
12720
12721 darwin* | rhapsody*)
12722 # PIC is the default on this platform
12723 # Common symbols not allowed in MH_DYLIB files
12724 lt_prog_compiler_pic_F77='-fno-common'
12725 ;;
12726
12727 msdosdjgpp*)
12728 # Just because we use GCC doesn't mean we suddenly get shared libraries
12729 # on systems that don't support them.
12730 lt_prog_compiler_can_build_shared_F77=no
12731 enable_shared=no
12732 ;;
12733
12734 sysv4*MP*)
12735 if test -d /usr/nec; then
12736 lt_prog_compiler_pic_F77=-Kconform_pic
12737 fi
12738 ;;
12739
12740 hpux*)
12741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12742 # not for PA HP-UX.
12743 case "$host_cpu" in
12744 hppa*64*|ia64*)
12745 # +Z the default
12746 ;;
12747 *)
12748 lt_prog_compiler_pic_F77='-fPIC'
12749 ;;
12750 esac
12751 ;;
12752
12753 *)
12754 lt_prog_compiler_pic_F77='-fPIC'
12755 ;;
12756 esac
12757 else
12758 # PORTME Check for flag to pass linker flags through the system compiler.
12759 case $host_os in
12760 aix*)
12761 lt_prog_compiler_wl_F77='-Wl,'
12762 if test "$host_cpu" = ia64; then
12763 # AIX 5 now supports IA64 processor
12764 lt_prog_compiler_static_F77='-Bstatic'
12765 else
12766 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12767 fi
12768 ;;
12769
12770 mingw* | pw32* | os2*)
12771 # This hack is so that the source file can tell whether it is being
12772 # built for inclusion in a dll (and should export symbols for example).
12773 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12774 ;;
12775
12776 hpux9* | hpux10* | hpux11*)
12777 lt_prog_compiler_wl_F77='-Wl,'
12778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12779 # not for PA HP-UX.
12780 case "$host_cpu" in
12781 hppa*64*|ia64*)
12782 # +Z the default
12783 ;;
12784 *)
12785 lt_prog_compiler_pic_F77='+Z'
12786 ;;
12787 esac
12788 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12789 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12790 ;;
12791
12792 irix5* | irix6* | nonstopux*)
12793 lt_prog_compiler_wl_F77='-Wl,'
12794 # PIC (with -KPIC) is the default.
12795 lt_prog_compiler_static_F77='-non_shared'
12796 ;;
12797
12798 newsos6)
12799 lt_prog_compiler_pic_F77='-KPIC'
12800 lt_prog_compiler_static_F77='-Bstatic'
12801 ;;
12802
12803 linux*)
12804 case $CC in
12805 icc* | ecc*)
12806 lt_prog_compiler_wl_F77='-Wl,'
12807 lt_prog_compiler_pic_F77='-KPIC'
12808 lt_prog_compiler_static_F77='-static'
12809 ;;
12810 ccc*)
12811 lt_prog_compiler_wl_F77='-Wl,'
12812 # All Alpha code is PIC.
12813 lt_prog_compiler_static_F77='-non_shared'
12814 ;;
12815 esac
12816 ;;
12817
12818 osf3* | osf4* | osf5*)
12819 lt_prog_compiler_wl_F77='-Wl,'
12820 # All OSF/1 code is PIC.
12821 lt_prog_compiler_static_F77='-non_shared'
12822 ;;
12823
12824 sco3.2v5*)
12825 lt_prog_compiler_pic_F77='-Kpic'
12826 lt_prog_compiler_static_F77='-dn'
12827 ;;
12828
12829 solaris*)
12830 lt_prog_compiler_wl_F77='-Wl,'
12831 lt_prog_compiler_pic_F77='-KPIC'
12832 lt_prog_compiler_static_F77='-Bstatic'
12833 ;;
12834
12835 sunos4*)
12836 lt_prog_compiler_wl_F77='-Qoption ld '
12837 lt_prog_compiler_pic_F77='-PIC'
12838 lt_prog_compiler_static_F77='-Bstatic'
12839 ;;
12840
12841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12842 lt_prog_compiler_wl_F77='-Wl,'
12843 lt_prog_compiler_pic_F77='-KPIC'
12844 lt_prog_compiler_static_F77='-Bstatic'
12845 ;;
12846
12847 sysv4*MP*)
12848 if test -d /usr/nec ;then
12849 lt_prog_compiler_pic_F77='-Kconform_pic'
12850 lt_prog_compiler_static_F77='-Bstatic'
12851 fi
12852 ;;
12853
12854 uts4*)
12855 lt_prog_compiler_pic_F77='-pic'
12856 lt_prog_compiler_static_F77='-Bstatic'
12857 ;;
12858
12859 *)
12860 lt_prog_compiler_can_build_shared_F77=no
12861 ;;
12862 esac
12863 fi
12864
12865echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12866echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12867
12868#
12869# Check to make sure the PIC flag actually works.
12870#
12871if test -n "$lt_prog_compiler_pic_F77"; then
12872
12873echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12874echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12875if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878 lt_prog_compiler_pic_works_F77=no
12879 ac_outfile=conftest.$ac_objext
12880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12881 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12882 # Insert the option either (1) after the last *FLAGS variable, or
12883 # (2) before a word containing "conftest.", or (3) at the end.
12884 # Note that $ac_compile itself does not contain backslashes and begins
12885 # with a dollar sign (not a hyphen), so the echo should work correctly.
12886 # The option is referenced via a variable to avoid confusing sed.
12887 lt_compile=`echo "$ac_compile" | $SED \
12888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12890 -e 's:$: $lt_compiler_flag:'`
12891 (eval echo "\"\$as_me:12891: $lt_compile\"" >&5)
12892 (eval "$lt_compile" 2>conftest.err)
12893 ac_status=$?
12894 cat conftest.err >&5
12895 echo "$as_me:12895: \$? = $ac_status" >&5
12896 if (exit $ac_status) && test -s "$ac_outfile"; then
12897 # The compiler can only warn and ignore the option if not recognized
12898 # So say no if there are warnings
12899 if test ! -s conftest.err; then
12900 lt_prog_compiler_pic_works_F77=yes
12901 fi
12902 fi
12903 $rm conftest*
12904
12905fi
12906echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12907echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12908
12909if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12910 case $lt_prog_compiler_pic_F77 in
12911 "" | " "*) ;;
12912 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12913 esac
12914else
12915 lt_prog_compiler_pic_F77=
12916 lt_prog_compiler_can_build_shared_F77=no
12917fi
12918
12919fi
12920case "$host_os" in
12921 # For platforms which do not support PIC, -DPIC is meaningless:
12922 *djgpp*)
12923 lt_prog_compiler_pic_F77=
12924 ;;
12925 *)
12926 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12927 ;;
12928esac
12929
12930echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12931echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12932if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934else
12935 lt_cv_prog_compiler_c_o_F77=no
12936 $rm -r conftest 2>/dev/null
12937 mkdir conftest
12938 cd conftest
12939 mkdir out
12940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12941
12942 lt_compiler_flag="-o out/conftest2.$ac_objext"
12943 # Insert the option either (1) after the last *FLAGS variable, or
12944 # (2) before a word containing "conftest.", or (3) at the end.
12945 # Note that $ac_compile itself does not contain backslashes and begins
12946 # with a dollar sign (not a hyphen), so the echo should work correctly.
12947 lt_compile=`echo "$ac_compile" | $SED \
12948 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12950 -e 's:$: $lt_compiler_flag:'`
12951 (eval echo "\"\$as_me:12951: $lt_compile\"" >&5)
12952 (eval "$lt_compile" 2>out/conftest.err)
12953 ac_status=$?
12954 cat out/conftest.err >&5
12955 echo "$as_me:12955: \$? = $ac_status" >&5
12956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12957 then
12958 # The compiler can only warn and ignore the option if not recognized
12959 # So say no if there are warnings
12960 if test ! -s out/conftest.err; then
12961 lt_cv_prog_compiler_c_o_F77=yes
12962 fi
12963 fi
12964 chmod u+w .
12965 $rm conftest*
12966 # SGI C++ compiler will create directory out/ii_files/ for
12967 # template instantiation
12968 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12969 $rm out/* && rmdir out
12970 cd ..
12971 rmdir conftest
12972 $rm conftest*
12973
12974fi
12975echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12976echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12977
12978
12979hard_links="nottested"
12980if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12981 # do not overwrite the value of need_locks provided by the user
12982 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12983echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12984 hard_links=yes
12985 $rm conftest*
12986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12987 touch conftest.a
12988 ln conftest.a conftest.b 2>&5 || hard_links=no
12989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12990 echo "$as_me:$LINENO: result: $hard_links" >&5
12991echo "${ECHO_T}$hard_links" >&6
12992 if test "$hard_links" = no; then
12993 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12994echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12995 need_locks=warn
12996 fi
12997else
12998 need_locks=no
12999fi
13000
13001echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13002echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13003
13004 runpath_var=
13005 allow_undefined_flag_F77=
13006 enable_shared_with_static_runtimes_F77=no
13007 archive_cmds_F77=
13008 archive_expsym_cmds_F77=
13009 old_archive_From_new_cmds_F77=
13010 old_archive_from_expsyms_cmds_F77=
13011 export_dynamic_flag_spec_F77=
13012 whole_archive_flag_spec_F77=
13013 thread_safe_flag_spec_F77=
13014 hardcode_libdir_flag_spec_F77=
13015 hardcode_libdir_flag_spec_ld_F77=
13016 hardcode_libdir_separator_F77=
13017 hardcode_direct_F77=no
13018 hardcode_minus_L_F77=no
13019 hardcode_shlibpath_var_F77=unsupported
13020 link_all_deplibs_F77=unknown
13021 hardcode_automatic_F77=no
13022 module_cmds_F77=
13023 module_expsym_cmds_F77=
13024 always_export_symbols_F77=no
13025 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13026 # include_expsyms should be a list of space-separated symbols to be *always*
13027 # included in the symbol list
13028 include_expsyms_F77=
13029 # exclude_expsyms can be an extended regexp of symbols to exclude
13030 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13031 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13032 # as well as any symbol that contains `d'.
13033 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13034 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13035 # platforms (ab)use it in PIC code, but their linkers get confused if
13036 # the symbol is explicitly referenced. Since portable code cannot
13037 # rely on this symbol name, it's probably fine to never include it in
13038 # preloaded symbol tables.
13039 extract_expsyms_cmds=
13040
13041 case $host_os in
13042 cygwin* | mingw* | pw32*)
13043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13044 # When not using gcc, we currently assume that we are using
13045 # Microsoft Visual C++.
13046 if test "$GCC" != yes; then
13047 with_gnu_ld=no
13048 fi
13049 ;;
13050 openbsd*)
13051 with_gnu_ld=no
13052 ;;
13053 esac
13054
13055 ld_shlibs_F77=yes
13056 if test "$with_gnu_ld" = yes; then
13057 # If archive_cmds runs LD, not CC, wlarc should be empty
13058 wlarc='${wl}'
13059
13060 # See if GNU ld supports shared libraries.
13061 case $host_os in
13062 aix3* | aix4* | aix5*)
13063 # On AIX/PPC, the GNU linker is very broken
13064 if test "$host_cpu" != ia64; then
13065 ld_shlibs_F77=no
13066 cat <<EOF 1>&2
13067
13068*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13069*** to be unable to reliably create shared libraries on AIX.
13070*** Therefore, libtool is disabling shared libraries support. If you
13071*** really care for shared libraries, you may want to modify your PATH
13072*** so that a non-GNU linker is found, and then restart.
13073
13074EOF
13075 fi
13076 ;;
13077
13078 amigaos*)
13079 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)'
13080 hardcode_libdir_flag_spec_F77='-L$libdir'
13081 hardcode_minus_L_F77=yes
13082
13083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13084 # that the semantics of dynamic libraries on AmigaOS, at least up
13085 # to version 4, is to share data among multiple programs linked
13086 # with the same dynamic library. Since this doesn't match the
13087 # behavior of shared libraries on other platforms, we can't use
13088 # them.
13089 ld_shlibs_F77=no
13090 ;;
13091
13092 beos*)
13093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13094 allow_undefined_flag_F77=unsupported
13095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13096 # support --undefined. This deserves some investigation. FIXME
13097 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098 else
13099 ld_shlibs_F77=no
13100 fi
13101 ;;
13102
13103 cygwin* | mingw* | pw32*)
13104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13105 # as there is no search path for DLLs.
13106 hardcode_libdir_flag_spec_F77='-L$libdir'
13107 allow_undefined_flag_F77=unsupported
13108 always_export_symbols_F77=no
13109 enable_shared_with_static_runtimes_F77=yes
13110 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13111
13112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13113 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13114 # If the export-symbols file already is a .def file (1st line
13115 # is EXPORTS), use it as is; otherwise, prepend...
13116 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13117 cp $export_symbols $output_objdir/$soname.def;
13118 else
13119 echo EXPORTS > $output_objdir/$soname.def;
13120 cat $export_symbols >> $output_objdir/$soname.def;
13121 fi~
13122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13123 else
13124 ld_shlibs=no
13125 fi
13126 ;;
13127
13128 netbsd*)
13129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13130 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13131 wlarc=
13132 else
13133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13135 fi
13136 ;;
13137
13138 solaris* | sysv5*)
13139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13140 ld_shlibs_F77=no
13141 cat <<EOF 1>&2
13142
13143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13144*** create shared libraries on Solaris systems. Therefore, libtool
13145*** is disabling shared libraries support. We urge you to upgrade GNU
13146*** binutils to release 2.9.1 or newer. Another option is to modify
13147*** your PATH or compiler configuration so that the native linker is
13148*** used, and then restart.
13149
13150EOF
13151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13154 else
13155 ld_shlibs_F77=no
13156 fi
13157 ;;
13158
13159 sunos4*)
13160 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13161 wlarc=
13162 hardcode_direct_F77=yes
13163 hardcode_shlibpath_var_F77=no
13164 ;;
13165
13166 linux*)
13167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13168 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169 archive_cmds_F77="$tmp_archive_cmds"
13170 supports_anon_versioning=no
13171 case `$LD -v 2>/dev/null` in
13172 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13173 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13174 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13175 *\ 2.11.*) ;; # other 2.11 versions
13176 *) supports_anon_versioning=yes ;;
13177 esac
13178 if test $supports_anon_versioning = yes; then
13179 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13180cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13181$echo "local: *; };" >> $output_objdir/$libname.ver~
13182 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13183 else
13184 archive_expsym_cmds_F77="$tmp_archive_cmds"
13185 fi
13186 else
13187 ld_shlibs_F77=no
13188 fi
13189 ;;
13190
13191 *)
13192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13193 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13195 else
13196 ld_shlibs_F77=no
13197 fi
13198 ;;
13199 esac
13200
13201 if test "$ld_shlibs_F77" = yes; then
13202 runpath_var=LD_RUN_PATH
13203 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13204 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13205 # ancient GNU ld didn't support --whole-archive et. al.
13206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13207 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13208 else
13209 whole_archive_flag_spec_F77=
13210 fi
13211 fi
13212 else
13213 # PORTME fill in a description of your system's linker (not GNU ld)
13214 case $host_os in
13215 aix3*)
13216 allow_undefined_flag_F77=unsupported
13217 always_export_symbols_F77=yes
13218 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'
13219 # Note: this linker hardcodes the directories in LIBPATH if there
13220 # are no directories specified by -L.
13221 hardcode_minus_L_F77=yes
13222 if test "$GCC" = yes && test -z "$link_static_flag"; then
13223 # Neither direct hardcoding nor static linking is supported with a
13224 # broken collect2.
13225 hardcode_direct_F77=unsupported
13226 fi
13227 ;;
13228
13229 aix4* | aix5*)
13230 if test "$host_cpu" = ia64; then
13231 # On IA64, the linker does run time linking by default, so we don't
13232 # have to do anything special.
13233 aix_use_runtimelinking=no
13234 exp_sym_flag='-Bexport'
13235 no_entry_flag=""
13236 else
13237 # If we're using GNU nm, then we don't want the "-C" option.
13238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13240 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'
13241 else
13242 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'
13243 fi
13244 aix_use_runtimelinking=no
13245
13246 # Test if we are trying to use run time linking or normal
13247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13248 # need to do runtime linking.
13249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13250 for ld_flag in $LDFLAGS; do
13251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13252 aix_use_runtimelinking=yes
13253 break
13254 fi
13255 done
13256 esac
13257
13258 exp_sym_flag='-bexport'
13259 no_entry_flag='-bnoentry'
13260 fi
13261
13262 # When large executables or shared objects are built, AIX ld can
13263 # have problems creating the table of contents. If linking a library
13264 # or program results in "error TOC overflow" add -mminimal-toc to
13265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13267
13268 archive_cmds_F77=''
13269 hardcode_direct_F77=yes
13270 hardcode_libdir_separator_F77=':'
13271 link_all_deplibs_F77=yes
13272
13273 if test "$GCC" = yes; then
13274 case $host_os in aix4.012|aix4.012.*)
13275 # We only want to do this on AIX 4.2 and lower, the check
13276 # below for broken collect2 doesn't work under 4.3+
13277 collect2name=`${CC} -print-prog-name=collect2`
13278 if test -f "$collect2name" && \
13279 strings "$collect2name" | grep resolve_lib_name >/dev/null
13280 then
13281 # We have reworked collect2
13282 hardcode_direct_F77=yes
13283 else
13284 # We have old collect2
13285 hardcode_direct_F77=unsupported
13286 # It fails to find uninstalled libraries when the uninstalled
13287 # path is not listed in the libpath. Setting hardcode_minus_L
13288 # to unsupported forces relinking
13289 hardcode_minus_L_F77=yes
13290 hardcode_libdir_flag_spec_F77='-L$libdir'
13291 hardcode_libdir_separator_F77=
13292 fi
13293 esac
13294 shared_flag='-shared'
13295 else
13296 # not using gcc
13297 if test "$host_cpu" = ia64; then
13298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299 # chokes on -Wl,-G. The following line is correct:
13300 shared_flag='-G'
13301 else
13302 if test "$aix_use_runtimelinking" = yes; then
13303 shared_flag='${wl}-G'
13304 else
13305 shared_flag='${wl}-bM:SRE'
13306 fi
13307 fi
13308 fi
13309
13310 # It seems that -bexpall does not export symbols beginning with
13311 # underscore (_), so it is better to generate a list of symbols to export.
13312 always_export_symbols_F77=yes
13313 if test "$aix_use_runtimelinking" = yes; then
13314 # Warning - without using the other runtime loading flags (-brtl),
13315 # -berok will link without error, but may produce a broken library.
13316 allow_undefined_flag_F77='-berok'
13317 # Determine the default libpath from the value encoded in an empty executable.
13318 cat >conftest.$ac_ext <<_ACEOF
13319 program main
13320
13321 end
13322_ACEOF
13323rm -f conftest.$ac_objext conftest$ac_exeext
13324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325 (eval $ac_link) 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_f77_werror_flag"
13333 || test ! -s conftest.err'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest$ac_exeext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345
13346aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13347}'`
13348# Check for a 64-bit object if we didn't find anything.
13349if 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; }
13350}'`; fi
13351else
13352 echo "$as_me: failed program was:" >&5
13353sed 's/^/| /' conftest.$ac_ext >&5
13354
13355fi
13356rm -f conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13359
13360 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13361 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13362 else
13363 if test "$host_cpu" = ia64; then
13364 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13365 allow_undefined_flag_F77="-z nodefs"
13366 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13367 else
13368 # Determine the default libpath from the value encoded in an empty executable.
13369 cat >conftest.$ac_ext <<_ACEOF
13370 program main
13371
13372 end
13373_ACEOF
13374rm -f conftest.$ac_objext conftest$ac_exeext
13375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13376 (eval $ac_link) 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_f77_werror_flag"
13384 || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396
13397aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13398}'`
13399# Check for a 64-bit object if we didn't find anything.
13400if 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; }
13401}'`; fi
13402else
13403 echo "$as_me: failed program was:" >&5
13404sed 's/^/| /' conftest.$ac_ext >&5
13405
13406fi
13407rm -f conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13410
13411 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13412 # Warning - without using the other run time loading flags,
13413 # -berok will link without error, but may produce a broken library.
13414 no_undefined_flag_F77=' ${wl}-bernotok'
13415 allow_undefined_flag_F77=' ${wl}-berok'
13416 # -bexpall does not export symbols beginning with underscore (_)
13417 always_export_symbols_F77=yes
13418 # Exported symbols can be pulled into shared objects from archives
13419 whole_archive_flag_spec_F77=' '
13420 archive_cmds_need_lc_F77=yes
13421 # This is similar to how AIX traditionally builds it's shared libraries.
13422 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13423 fi
13424 fi
13425 ;;
13426
13427 amigaos*)
13428 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)'
13429 hardcode_libdir_flag_spec_F77='-L$libdir'
13430 hardcode_minus_L_F77=yes
13431 # see comment about different semantics on the GNU ld section
13432 ld_shlibs_F77=no
13433 ;;
13434
13435 bsdi4*)
13436 export_dynamic_flag_spec_F77=-rdynamic
13437 ;;
13438
13439 cygwin* | mingw* | pw32*)
13440 # When not using gcc, we currently assume that we are using
13441 # Microsoft Visual C++.
13442 # hardcode_libdir_flag_spec is actually meaningless, as there is
13443 # no search path for DLLs.
13444 hardcode_libdir_flag_spec_F77=' '
13445 allow_undefined_flag_F77=unsupported
13446 # Tell ltmain to make .lib files, not .a files.
13447 libext=lib
13448 # Tell ltmain to make .dll files, not .so files.
13449 shrext_cmds=".dll"
13450 # FIXME: Setting linknames here is a bad hack.
13451 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13452 # The linker will automatically build a .lib file if we build a DLL.
13453 old_archive_From_new_cmds_F77='true'
13454 # FIXME: Should let the user specify the lib program.
13455 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13456 fix_srcfile_path='`cygpath -w "$srcfile"`'
13457 enable_shared_with_static_runtimes_F77=yes
13458 ;;
13459
13460 darwin* | rhapsody*)
13461 if test "$GXX" = yes ; then
13462 archive_cmds_need_lc_F77=no
13463 case "$host_os" in
13464 rhapsody* | darwin1.[012])
13465 allow_undefined_flag_F77='-undefined suppress'
13466 ;;
13467 *) # Darwin 1.3 on
13468 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13469 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13470 else
13471 case ${MACOSX_DEPLOYMENT_TARGET} in
13472 10.[012])
13473 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13474 ;;
13475 10.*)
13476 allow_undefined_flag_F77='-undefined dynamic_lookup'
13477 ;;
13478 esac
13479 fi
13480 ;;
13481 esac
13482 lt_int_apple_cc_single_mod=no
13483 output_verbose_link_cmd='echo'
13484 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13485 lt_int_apple_cc_single_mod=yes
13486 fi
13487 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13488 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13489 else
13490 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13491 fi
13492 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13494 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13495 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13496 else
13497 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13498 fi
13499 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}'
13500 hardcode_direct_F77=no
13501 hardcode_automatic_F77=yes
13502 hardcode_shlibpath_var_F77=unsupported
13503 whole_archive_flag_spec_F77='-all_load $convenience'
13504 link_all_deplibs_F77=yes
13505 else
13506 ld_shlibs_F77=no
13507 fi
13508 ;;
13509
13510 dgux*)
13511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13512 hardcode_libdir_flag_spec_F77='-L$libdir'
13513 hardcode_shlibpath_var_F77=no
13514 ;;
13515
13516 freebsd1*)
13517 ld_shlibs_F77=no
13518 ;;
13519
13520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13521 # support. Future versions do this automatically, but an explicit c++rt0.o
13522 # does not break anything, and helps significantly (at the cost of a little
13523 # extra space).
13524 freebsd2.2*)
13525 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13526 hardcode_libdir_flag_spec_F77='-R$libdir'
13527 hardcode_direct_F77=yes
13528 hardcode_shlibpath_var_F77=no
13529 ;;
13530
13531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13532 freebsd2*)
13533 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13534 hardcode_direct_F77=yes
13535 hardcode_minus_L_F77=yes
13536 hardcode_shlibpath_var_F77=no
13537 ;;
13538
13539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13540 freebsd* | kfreebsd*-gnu)
13541 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13542 hardcode_libdir_flag_spec_F77='-R$libdir'
13543 hardcode_direct_F77=yes
13544 hardcode_shlibpath_var_F77=no
13545 ;;
13546
13547 hpux9*)
13548 if test "$GCC" = yes; then
13549 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'
13550 else
13551 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'
13552 fi
13553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13554 hardcode_libdir_separator_F77=:
13555 hardcode_direct_F77=yes
13556
13557 # hardcode_minus_L: Not really in the search PATH,
13558 # but as the default location of the library.
13559 hardcode_minus_L_F77=yes
13560 export_dynamic_flag_spec_F77='${wl}-E'
13561 ;;
13562
13563 hpux10* | hpux11*)
13564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13565 case "$host_cpu" in
13566 hppa*64*|ia64*)
13567 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13568 ;;
13569 *)
13570 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13571 ;;
13572 esac
13573 else
13574 case "$host_cpu" in
13575 hppa*64*|ia64*)
13576 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13577 ;;
13578 *)
13579 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13580 ;;
13581 esac
13582 fi
13583 if test "$with_gnu_ld" = no; then
13584 case "$host_cpu" in
13585 hppa*64*)
13586 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13587 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13588 hardcode_libdir_separator_F77=:
13589 hardcode_direct_F77=no
13590 hardcode_shlibpath_var_F77=no
13591 ;;
13592 ia64*)
13593 hardcode_libdir_flag_spec_F77='-L$libdir'
13594 hardcode_direct_F77=no
13595 hardcode_shlibpath_var_F77=no
13596
13597 # hardcode_minus_L: Not really in the search PATH,
13598 # but as the default location of the library.
13599 hardcode_minus_L_F77=yes
13600 ;;
13601 *)
13602 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13603 hardcode_libdir_separator_F77=:
13604 hardcode_direct_F77=yes
13605 export_dynamic_flag_spec_F77='${wl}-E'
13606
13607 # hardcode_minus_L: Not really in the search PATH,
13608 # but as the default location of the library.
13609 hardcode_minus_L_F77=yes
13610 ;;
13611 esac
13612 fi
13613 ;;
13614
13615 irix5* | irix6* | nonstopux*)
13616 if test "$GCC" = yes; then
13617 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'
13618 else
13619 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'
13620 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13621 fi
13622 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13623 hardcode_libdir_separator_F77=:
13624 link_all_deplibs_F77=yes
13625 ;;
13626
13627 netbsd*)
13628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13630 else
13631 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13632 fi
13633 hardcode_libdir_flag_spec_F77='-R$libdir'
13634 hardcode_direct_F77=yes
13635 hardcode_shlibpath_var_F77=no
13636 ;;
13637
13638 newsos6)
13639 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13640 hardcode_direct_F77=yes
13641 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13642 hardcode_libdir_separator_F77=:
13643 hardcode_shlibpath_var_F77=no
13644 ;;
13645
13646 openbsd*)
13647 hardcode_direct_F77=yes
13648 hardcode_shlibpath_var_F77=no
13649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13650 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13652 export_dynamic_flag_spec_F77='${wl}-E'
13653 else
13654 case $host_os in
13655 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13656 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13657 hardcode_libdir_flag_spec_F77='-R$libdir'
13658 ;;
13659 *)
13660 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13661 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13662 ;;
13663 esac
13664 fi
13665 ;;
13666
13667 os2*)
13668 hardcode_libdir_flag_spec_F77='-L$libdir'
13669 hardcode_minus_L_F77=yes
13670 allow_undefined_flag_F77=unsupported
13671 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'
13672 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13673 ;;
13674
13675 osf3*)
13676 if test "$GCC" = yes; then
13677 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13678 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'
13679 else
13680 allow_undefined_flag_F77=' -expect_unresolved \*'
13681 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'
13682 fi
13683 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13684 hardcode_libdir_separator_F77=:
13685 ;;
13686
13687 osf4* | osf5*) # as osf3* with the addition of -msym flag
13688 if test "$GCC" = yes; then
13689 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13690 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'
13691 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13692 else
13693 allow_undefined_flag_F77=' -expect_unresolved \*'
13694 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'
13695 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~
13696 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13697
13698 # Both c and cxx compiler support -rpath directly
13699 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13700 fi
13701 hardcode_libdir_separator_F77=:
13702 ;;
13703
13704 sco3.2v5*)
13705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13706 hardcode_shlibpath_var_F77=no
13707 export_dynamic_flag_spec_F77='${wl}-Bexport'
13708 runpath_var=LD_RUN_PATH
13709 hardcode_runpath_var=yes
13710 ;;
13711
13712 solaris*)
13713 no_undefined_flag_F77=' -z text'
13714 if test "$GCC" = yes; then
13715 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13717 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13718 else
13719 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13720 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13722 fi
13723 hardcode_libdir_flag_spec_F77='-R$libdir'
13724 hardcode_shlibpath_var_F77=no
13725 case $host_os in
13726 solaris2.[0-5] | solaris2.[0-5].*) ;;
13727 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13728 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13729 esac
13730 link_all_deplibs_F77=yes
13731 ;;
13732
13733 sunos4*)
13734 if test "x$host_vendor" = xsequent; then
13735 # Use $CC to link under sequent, because it throws in some extra .o
13736 # files that make .init and .fini sections work.
13737 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13738 else
13739 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13740 fi
13741 hardcode_libdir_flag_spec_F77='-L$libdir'
13742 hardcode_direct_F77=yes
13743 hardcode_minus_L_F77=yes
13744 hardcode_shlibpath_var_F77=no
13745 ;;
13746
13747 sysv4)
13748 case $host_vendor in
13749 sni)
13750 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13751 hardcode_direct_F77=yes # is this really true???
13752 ;;
13753 siemens)
13754 ## LD is ld it makes a PLAMLIB
13755 ## CC just makes a GrossModule.
13756 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13757 reload_cmds_F77='$CC -r -o $output$reload_objs'
13758 hardcode_direct_F77=no
13759 ;;
13760 motorola)
13761 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13762 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13763 ;;
13764 esac
13765 runpath_var='LD_RUN_PATH'
13766 hardcode_shlibpath_var_F77=no
13767 ;;
13768
13769 sysv4.3*)
13770 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_shlibpath_var_F77=no
13772 export_dynamic_flag_spec_F77='-Bexport'
13773 ;;
13774
13775 sysv4*MP*)
13776 if test -d /usr/nec; then
13777 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_shlibpath_var_F77=no
13779 runpath_var=LD_RUN_PATH
13780 hardcode_runpath_var=yes
13781 ld_shlibs_F77=yes
13782 fi
13783 ;;
13784
13785 sysv4.2uw2*)
13786 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_direct_F77=yes
13788 hardcode_minus_L_F77=no
13789 hardcode_shlibpath_var_F77=no
13790 hardcode_runpath_var=yes
13791 runpath_var=LD_RUN_PATH
13792 ;;
13793
13794 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13795 no_undefined_flag_F77='${wl}-z ${wl}text'
13796 if test "$GCC" = yes; then
13797 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 else
13799 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 fi
13801 runpath_var='LD_RUN_PATH'
13802 hardcode_shlibpath_var_F77=no
13803 ;;
13804
13805 sysv5*)
13806 no_undefined_flag_F77=' -z text'
13807 # $CC -shared without GNU ld will not create a library from C++
13808 # object files and a static libstdc++, better avoid it by now
13809 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13810 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13811 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13812 hardcode_libdir_flag_spec_F77=
13813 hardcode_shlibpath_var_F77=no
13814 runpath_var='LD_RUN_PATH'
13815 ;;
13816
13817 uts4*)
13818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 hardcode_libdir_flag_spec_F77='-L$libdir'
13820 hardcode_shlibpath_var_F77=no
13821 ;;
13822
13823 *)
13824 ld_shlibs_F77=no
13825 ;;
13826 esac
13827 fi
13828
13829echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13830echo "${ECHO_T}$ld_shlibs_F77" >&6
13831test "$ld_shlibs_F77" = no && can_build_shared=no
13832
13833variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13834if test "$GCC" = yes; then
13835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13836fi
13837
13838#
13839# Do we need to explicitly link libc?
13840#
13841case "x$archive_cmds_need_lc_F77" in
13842x|xyes)
13843 # Assume -lc should be added
13844 archive_cmds_need_lc_F77=yes
13845
13846 if test "$enable_shared" = yes && test "$GCC" = yes; then
13847 case $archive_cmds_F77 in
13848 *'~'*)
13849 # FIXME: we may have to deal with multi-command sequences.
13850 ;;
13851 '$CC '*)
13852 # Test whether the compiler implicitly links with -lc since on some
13853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13854 # to ld, don't add -lc before -lgcc.
13855 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13856echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13857 $rm conftest*
13858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13859
13860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13861 (eval $ac_compile) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } 2>conftest.err; then
13865 soname=conftest
13866 lib=conftest
13867 libobjs=conftest.$ac_objext
13868 deplibs=
13869 wl=$lt_prog_compiler_wl_F77
13870 compiler_flags=-v
13871 linker_flags=-v
13872 verstring=
13873 output_objdir=.
13874 libname=conftest
13875 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13876 allow_undefined_flag_F77=
13877 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13878 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }
13882 then
13883 archive_cmds_need_lc_F77=no
13884 else
13885 archive_cmds_need_lc_F77=yes
13886 fi
13887 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13888 else
13889 cat conftest.err 1>&5
13890 fi
13891 $rm conftest*
13892 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13893echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13894 ;;
13895 esac
13896 fi
13897 ;;
13898esac
13899
13900echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13901echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13902library_names_spec=
13903libname_spec='lib$name'
13904soname_spec=
13905shrext_cmds=".so"
13906postinstall_cmds=
13907postuninstall_cmds=
13908finish_cmds=
13909finish_eval=
13910shlibpath_var=
13911shlibpath_overrides_runpath=unknown
13912version_type=none
13913dynamic_linker="$host_os ld.so"
13914sys_lib_dlsearch_path_spec="/lib /usr/lib"
13915if test "$GCC" = yes; then
13916 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13917 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13918 # if the path contains ";" then we assume it to be the separator
13919 # otherwise default to the standard path separator (i.e. ":") - it is
13920 # assumed that no part of a normal pathname contains ";" but that should
13921 # okay in the real world where ";" in dirpaths is itself problematic.
13922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13923 else
13924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13925 fi
13926else
13927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13928fi
13929need_lib_prefix=unknown
13930hardcode_into_libs=no
13931
13932# when you set need_version to no, make sure it does not cause -set_version
13933# flags to be left without arguments
13934need_version=unknown
13935
13936case $host_os in
13937aix3*)
13938 version_type=linux
13939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13940 shlibpath_var=LIBPATH
13941
13942 # AIX 3 has no versioning support, so we append a major version to the name.
13943 soname_spec='${libname}${release}${shared_ext}$major'
13944 ;;
13945
13946aix4* | aix5*)
13947 version_type=linux
13948 need_lib_prefix=no
13949 need_version=no
13950 hardcode_into_libs=yes
13951 if test "$host_cpu" = ia64; then
13952 # AIX 5 supports IA64
13953 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13954 shlibpath_var=LD_LIBRARY_PATH
13955 else
13956 # With GCC up to 2.95.x, collect2 would create an import file
13957 # for dependence libraries. The import file would start with
13958 # the line `#! .'. This would cause the generated library to
13959 # depend on `.', always an invalid library. This was fixed in
13960 # development snapshots of GCC prior to 3.0.
13961 case $host_os in
13962 aix4 | aix4.[01] | aix4.[01].*)
13963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13964 echo ' yes '
13965 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13966 :
13967 else
13968 can_build_shared=no
13969 fi
13970 ;;
13971 esac
13972 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13973 # soname into executable. Probably we can add versioning support to
13974 # collect2, so additional links can be useful in future.
13975 if test "$aix_use_runtimelinking" = yes; then
13976 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13977 # instead of lib<name>.a to let people know that these are not
13978 # typical AIX shared libraries.
13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980 else
13981 # We preserve .a as extension for shared libraries through AIX4.2
13982 # and later when we are not doing run time linking.
13983 library_names_spec='${libname}${release}.a $libname.a'
13984 soname_spec='${libname}${release}${shared_ext}$major'
13985 fi
13986 shlibpath_var=LIBPATH
13987 fi
13988 ;;
13989
13990amigaos*)
13991 library_names_spec='$libname.ixlibrary $libname.a'
13992 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13993 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'
13994 ;;
13995
13996beos*)
13997 library_names_spec='${libname}${shared_ext}'
13998 dynamic_linker="$host_os ld.so"
13999 shlibpath_var=LIBRARY_PATH
14000 ;;
14001
14002bsdi4*)
14003 version_type=linux
14004 need_version=no
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 soname_spec='${libname}${release}${shared_ext}$major'
14007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14008 shlibpath_var=LD_LIBRARY_PATH
14009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14011 # the default ld.so.conf also contains /usr/contrib/lib and
14012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14013 # libtool to hard-code these into programs
14014 ;;
14015
14016cygwin* | mingw* | pw32*)
14017 version_type=windows
14018 shrext_cmds=".dll"
14019 need_version=no
14020 need_lib_prefix=no
14021
14022 case $GCC,$host_os in
14023 yes,cygwin* | yes,mingw* | yes,pw32*)
14024 library_names_spec='$libname.dll.a'
14025 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14026 postinstall_cmds='base_file=`basename \${file}`~
14027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14028 dldir=$destdir/`dirname \$dlpath`~
14029 test -d \$dldir || mkdir -p \$dldir~
14030 $install_prog $dir/$dlname \$dldir/$dlname'
14031 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14032 dlpath=$dir/\$dldll~
14033 $rm \$dlpath'
14034 shlibpath_overrides_runpath=yes
14035
14036 case $host_os in
14037 cygwin*)
14038 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14039 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14040 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14041 ;;
14042 mingw*)
14043 # MinGW DLLs use traditional 'lib' prefix
14044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14046 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14047 # It is most probably a Windows format PATH printed by
14048 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14049 # path with ; separators, and with drive letters. We can handle the
14050 # drive letters (cygwin fileutils understands them), so leave them,
14051 # especially as we might pass files found there to a mingw objdump,
14052 # which wouldn't understand a cygwinified path. Ahh.
14053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14054 else
14055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14056 fi
14057 ;;
14058 pw32*)
14059 # pw32 DLLs use 'pw' prefix rather than 'lib'
14060 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14061 ;;
14062 esac
14063 ;;
14064
14065 *)
14066 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14067 ;;
14068 esac
14069 dynamic_linker='Win32 ld.exe'
14070 # FIXME: first we should search . and the directory the executable is in
14071 shlibpath_var=PATH
14072 ;;
14073
14074darwin* | rhapsody*)
14075 dynamic_linker="$host_os dyld"
14076 version_type=darwin
14077 need_lib_prefix=no
14078 need_version=no
14079 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14080 soname_spec='${libname}${release}${major}$shared_ext'
14081 shlibpath_overrides_runpath=yes
14082 shlibpath_var=DYLD_LIBRARY_PATH
14083 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14084 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14085 if test "$GCC" = yes; then
14086 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"`
14087 else
14088 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14089 fi
14090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14091 ;;
14092
14093dgux*)
14094 version_type=linux
14095 need_lib_prefix=no
14096 need_version=no
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14098 soname_spec='${libname}${release}${shared_ext}$major'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 ;;
14101
14102freebsd1*)
14103 dynamic_linker=no
14104 ;;
14105
14106kfreebsd*-gnu)
14107 version_type=linux
14108 need_lib_prefix=no
14109 need_version=no
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 shlibpath_overrides_runpath=no
14114 hardcode_into_libs=yes
14115 dynamic_linker='GNU ld.so'
14116 ;;
14117
14118freebsd*)
14119 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14120 version_type=freebsd-$objformat
14121 case $version_type in
14122 freebsd-elf*)
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14124 need_version=no
14125 need_lib_prefix=no
14126 ;;
14127 freebsd-*)
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14129 need_version=yes
14130 ;;
14131 esac
14132 shlibpath_var=LD_LIBRARY_PATH
14133 case $host_os in
14134 freebsd2*)
14135 shlibpath_overrides_runpath=yes
14136 ;;
14137 freebsd3.01* | freebsdelf3.01*)
14138 shlibpath_overrides_runpath=yes
14139 hardcode_into_libs=yes
14140 ;;
14141 *) # from 3.2 on
14142 shlibpath_overrides_runpath=no
14143 hardcode_into_libs=yes
14144 ;;
14145 esac
14146 ;;
14147
14148gnu*)
14149 version_type=linux
14150 need_lib_prefix=no
14151 need_version=no
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 hardcode_into_libs=yes
14156 ;;
14157
14158hpux9* | hpux10* | hpux11*)
14159 # Give a soname corresponding to the major version so that dld.sl refuses to
14160 # link against other versions.
14161 version_type=sunos
14162 need_lib_prefix=no
14163 need_version=no
14164 case "$host_cpu" in
14165 ia64*)
14166 shrext_cmds='.so'
14167 hardcode_into_libs=yes
14168 dynamic_linker="$host_os dld.so"
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 if test "X$HPUX_IA64_MODE" = X32; then
14174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14175 else
14176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14177 fi
14178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14179 ;;
14180 hppa*64*)
14181 shrext_cmds='.sl'
14182 hardcode_into_libs=yes
14183 dynamic_linker="$host_os dld.sl"
14184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14190 ;;
14191 *)
14192 shrext_cmds='.sl'
14193 dynamic_linker="$host_os dld.sl"
14194 shlibpath_var=SHLIB_PATH
14195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 soname_spec='${libname}${release}${shared_ext}$major'
14198 ;;
14199 esac
14200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14201 postinstall_cmds='chmod 555 $lib'
14202 ;;
14203
14204irix5* | irix6* | nonstopux*)
14205 case $host_os in
14206 nonstopux*) version_type=nonstopux ;;
14207 *)
14208 if test "$lt_cv_prog_gnu_ld" = yes; then
14209 version_type=linux
14210 else
14211 version_type=irix
14212 fi ;;
14213 esac
14214 need_lib_prefix=no
14215 need_version=no
14216 soname_spec='${libname}${release}${shared_ext}$major'
14217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14218 case $host_os in
14219 irix5* | nonstopux*)
14220 libsuff= shlibsuff=
14221 ;;
14222 *)
14223 case $LD in # libtool.m4 will add one of these switches to LD
14224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14225 libsuff= shlibsuff= libmagic=32-bit;;
14226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14227 libsuff=32 shlibsuff=N32 libmagic=N32;;
14228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14230 *) libsuff= shlibsuff= libmagic=never-match;;
14231 esac
14232 ;;
14233 esac
14234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14235 shlibpath_overrides_runpath=no
14236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14238 hardcode_into_libs=yes
14239 ;;
14240
14241# No shared lib support for Linux oldld, aout, or coff.
14242linux*oldld* | linux*aout* | linux*coff*)
14243 dynamic_linker=no
14244 ;;
14245
14246# This must be Linux ELF.
14247linux*)
14248 version_type=linux
14249 need_lib_prefix=no
14250 need_version=no
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=no
14256 # This implies no fast_install, which is unacceptable.
14257 # Some rework will be needed to allow for fast_install
14258 # before this can be enabled.
14259 hardcode_into_libs=yes
14260
14261 # find out which ABI we are using
14262 libsuff=
14263 case "$host_cpu" in
14264 x86_64*|s390x*|powerpc64*)
14265 echo '#line 14265 "configure"' > conftest.$ac_ext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; then
14271 case `/usr/bin/file conftest.$ac_objext` in
14272 *64-bit*)
14273 libsuff=64
14274 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14275 ;;
14276 esac
14277 fi
14278 rm -rf conftest*
14279 ;;
14280 esac
14281
14282 # Append ld.so.conf contents to the search path
14283 if test -f /etc/ld.so.conf; then
14284 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14285 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14286 fi
14287
14288 # We used to test for /lib/ld.so.1 and disable shared libraries on
14289 # powerpc, because MkLinux only supported shared libraries with the
14290 # GNU dynamic linker. Since this was broken with cross compilers,
14291 # most powerpc-linux boxes support dynamic linking these days and
14292 # people can always --disable-shared, the test was removed, and we
14293 # assume the GNU/Linux dynamic linker is in use.
14294 dynamic_linker='GNU/Linux ld.so'
14295 ;;
14296
14297knetbsd*-gnu)
14298 version_type=linux
14299 need_lib_prefix=no
14300 need_version=no
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 shlibpath_overrides_runpath=no
14305 hardcode_into_libs=yes
14306 dynamic_linker='GNU ld.so'
14307 ;;
14308
14309netbsd*)
14310 version_type=sunos
14311 need_lib_prefix=no
14312 need_version=no
14313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14316 dynamic_linker='NetBSD (a.out) ld.so'
14317 else
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 dynamic_linker='NetBSD ld.elf_so'
14321 fi
14322 shlibpath_var=LD_LIBRARY_PATH
14323 shlibpath_overrides_runpath=yes
14324 hardcode_into_libs=yes
14325 ;;
14326
14327newsos6)
14328 version_type=linux
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330 shlibpath_var=LD_LIBRARY_PATH
14331 shlibpath_overrides_runpath=yes
14332 ;;
14333
14334nto-qnx*)
14335 version_type=linux
14336 need_lib_prefix=no
14337 need_version=no
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 shlibpath_var=LD_LIBRARY_PATH
14341 shlibpath_overrides_runpath=yes
14342 ;;
14343
14344openbsd*)
14345 version_type=sunos
14346 need_lib_prefix=no
14347 need_version=yes
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14352 case $host_os in
14353 openbsd2.[89] | openbsd2.[89].*)
14354 shlibpath_overrides_runpath=no
14355 ;;
14356 *)
14357 shlibpath_overrides_runpath=yes
14358 ;;
14359 esac
14360 else
14361 shlibpath_overrides_runpath=yes
14362 fi
14363 ;;
14364
14365os2*)
14366 libname_spec='$name'
14367 shrext_cmds=".dll"
14368 need_lib_prefix=no
14369 library_names_spec='$libname${shared_ext} $libname.a'
14370 dynamic_linker='OS/2 ld.exe'
14371 shlibpath_var=LIBPATH
14372 ;;
14373
14374osf3* | osf4* | osf5*)
14375 version_type=osf
14376 need_lib_prefix=no
14377 need_version=no
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 shlibpath_var=LD_LIBRARY_PATH
14381 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14382 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14383 ;;
14384
14385sco3.2v5*)
14386 version_type=osf
14387 soname_spec='${libname}${release}${shared_ext}$major'
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 ;;
14391
14392solaris*)
14393 version_type=linux
14394 need_lib_prefix=no
14395 need_version=no
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 shlibpath_var=LD_LIBRARY_PATH
14399 shlibpath_overrides_runpath=yes
14400 hardcode_into_libs=yes
14401 # ldd complains unless libraries are executable
14402 postinstall_cmds='chmod +x $lib'
14403 ;;
14404
14405sunos4*)
14406 version_type=sunos
14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14409 shlibpath_var=LD_LIBRARY_PATH
14410 shlibpath_overrides_runpath=yes
14411 if test "$with_gnu_ld" = yes; then
14412 need_lib_prefix=no
14413 fi
14414 need_version=yes
14415 ;;
14416
14417sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14418 version_type=linux
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 shlibpath_var=LD_LIBRARY_PATH
14422 case $host_vendor in
14423 sni)
14424 shlibpath_overrides_runpath=no
14425 need_lib_prefix=no
14426 export_dynamic_flag_spec='${wl}-Blargedynsym'
14427 runpath_var=LD_RUN_PATH
14428 ;;
14429 siemens)
14430 need_lib_prefix=no
14431 ;;
14432 motorola)
14433 need_lib_prefix=no
14434 need_version=no
14435 shlibpath_overrides_runpath=no
14436 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14437 ;;
14438 esac
14439 ;;
14440
14441sysv4*MP*)
14442 if test -d /usr/nec ;then
14443 version_type=linux
14444 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14445 soname_spec='$libname${shared_ext}.$major'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 fi
14448 ;;
14449
14450uts4*)
14451 version_type=linux
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 ;;
14456
14457*)
14458 dynamic_linker=no
14459 ;;
14460esac
14461echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14462echo "${ECHO_T}$dynamic_linker" >&6
14463test "$dynamic_linker" = no && can_build_shared=no
14464
14465echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14466echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14467hardcode_action_F77=
14468if test -n "$hardcode_libdir_flag_spec_F77" || \
14469 test -n "$runpath_var F77" || \
14470 test "X$hardcode_automatic_F77"="Xyes" ; then
14471
14472 # We can hardcode non-existant directories.
14473 if test "$hardcode_direct_F77" != no &&
14474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14475 # have to relink, otherwise we might link with an installed library
14476 # when we should be linking with a yet-to-be-installed one
14477 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14478 test "$hardcode_minus_L_F77" != no; then
14479 # Linking always hardcodes the temporary library directory.
14480 hardcode_action_F77=relink
14481 else
14482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14483 hardcode_action_F77=immediate
14484 fi
14485else
14486 # We cannot hardcode anything, or else we can only hardcode existing
14487 # directories.
14488 hardcode_action_F77=unsupported
14489fi
14490echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14491echo "${ECHO_T}$hardcode_action_F77" >&6
14492
14493if test "$hardcode_action_F77" = relink; then
14494 # Fast installation is not supported
14495 enable_fast_install=no
14496elif test "$shlibpath_overrides_runpath" = yes ||
14497 test "$enable_shared" = no; then
14498 # Fast installation is not necessary
14499 enable_fast_install=needless
14500fi
14501
14502striplib=
14503old_striplib=
14504echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14505echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14506if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14507 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14508 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14509 echo "$as_me:$LINENO: result: yes" >&5
14510echo "${ECHO_T}yes" >&6
14511else
14512# FIXME - insert some real tests, host_os isn't really good enough
14513 case $host_os in
14514 darwin*)
14515 if test -n "$STRIP" ; then
14516 striplib="$STRIP -x"
14517 echo "$as_me:$LINENO: result: yes" >&5
14518echo "${ECHO_T}yes" >&6
14519 else
14520 echo "$as_me:$LINENO: result: no" >&5
14521echo "${ECHO_T}no" >&6
14522fi
14523 ;;
14524 *)
14525 echo "$as_me:$LINENO: result: no" >&5
14526echo "${ECHO_T}no" >&6
14527 ;;
14528 esac
14529fi
14530
14531
14532
14533# The else clause should only fire when bootstrapping the
14534# libtool distribution, otherwise you forgot to ship ltmain.sh
14535# with your package, and you will get complaints that there are
14536# no rules to generate ltmain.sh.
14537if test -f "$ltmain"; then
14538 # See if we are running on zsh, and set the options which allow our commands through
14539 # without removal of \ escapes.
14540 if test -n "${ZSH_VERSION+set}" ; then
14541 setopt NO_GLOB_SUBST
14542 fi
14543 # Now quote all the things that may contain metacharacters while being
14544 # careful not to overquote the AC_SUBSTed values. We take copies of the
14545 # variables and quote the copies for generation of the libtool script.
14546 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14547 SED SHELL STRIP \
14548 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14549 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14550 deplibs_check_method reload_flag reload_cmds need_locks \
14551 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14552 lt_cv_sys_global_symbol_to_c_name_address \
14553 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14554 old_postinstall_cmds old_postuninstall_cmds \
14555 compiler_F77 \
14556 CC_F77 \
14557 LD_F77 \
14558 lt_prog_compiler_wl_F77 \
14559 lt_prog_compiler_pic_F77 \
14560 lt_prog_compiler_static_F77 \
14561 lt_prog_compiler_no_builtin_flag_F77 \
14562 export_dynamic_flag_spec_F77 \
14563 thread_safe_flag_spec_F77 \
14564 whole_archive_flag_spec_F77 \
14565 enable_shared_with_static_runtimes_F77 \
14566 old_archive_cmds_F77 \
14567 old_archive_from_new_cmds_F77 \
14568 predep_objects_F77 \
14569 postdep_objects_F77 \
14570 predeps_F77 \
14571 postdeps_F77 \
14572 compiler_lib_search_path_F77 \
14573 archive_cmds_F77 \
14574 archive_expsym_cmds_F77 \
14575 postinstall_cmds_F77 \
14576 postuninstall_cmds_F77 \
14577 old_archive_from_expsyms_cmds_F77 \
14578 allow_undefined_flag_F77 \
14579 no_undefined_flag_F77 \
14580 export_symbols_cmds_F77 \
14581 hardcode_libdir_flag_spec_F77 \
14582 hardcode_libdir_flag_spec_ld_F77 \
14583 hardcode_libdir_separator_F77 \
14584 hardcode_automatic_F77 \
14585 module_cmds_F77 \
14586 module_expsym_cmds_F77 \
14587 lt_cv_prog_compiler_c_o_F77 \
14588 exclude_expsyms_F77 \
14589 include_expsyms_F77; do
14590
14591 case $var in
14592 old_archive_cmds_F77 | \
14593 old_archive_from_new_cmds_F77 | \
14594 archive_cmds_F77 | \
14595 archive_expsym_cmds_F77 | \
14596 module_cmds_F77 | \
14597 module_expsym_cmds_F77 | \
14598 old_archive_from_expsyms_cmds_F77 | \
14599 export_symbols_cmds_F77 | \
14600 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14601 postinstall_cmds | postuninstall_cmds | \
14602 old_postinstall_cmds | old_postuninstall_cmds | \
14603 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14604 # Double-quote double-evaled strings.
14605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14606 ;;
14607 *)
14608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14609 ;;
14610 esac
14611 done
14612
14613 case $lt_echo in
14614 *'\$0 --fallback-echo"')
14615 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14616 ;;
14617 esac
14618
14619cfgfile="$ofile"
14620
14621 cat <<__EOF__ >> "$cfgfile"
14622# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14623
14624# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14625
14626# Shell to use when invoking shell scripts.
14627SHELL=$lt_SHELL
14628
14629# Whether or not to build shared libraries.
14630build_libtool_libs=$enable_shared
14631
14632# Whether or not to build static libraries.
14633build_old_libs=$enable_static
14634
14635# Whether or not to add -lc for building shared libraries.
14636build_libtool_need_lc=$archive_cmds_need_lc_F77
14637
14638# Whether or not to disallow shared libs when runtime libs are static
14639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14640
14641# Whether or not to optimize for fast installation.
14642fast_install=$enable_fast_install
14643
14644# The host system.
14645host_alias=$host_alias
14646host=$host
14647
14648# An echo program that does not interpret backslashes.
14649echo=$lt_echo
14650
14651# The archiver.
14652AR=$lt_AR
14653AR_FLAGS=$lt_AR_FLAGS
14654
14655# A C compiler.
14656LTCC=$lt_LTCC
14657
14658# A language-specific compiler.
14659CC=$lt_compiler_F77
14660
14661# Is the compiler the GNU C compiler?
14662with_gcc=$GCC_F77
14663
14664# An ERE matcher.
14665EGREP=$lt_EGREP
14666
14667# The linker used to build libraries.
14668LD=$lt_LD_F77
14669
14670# Whether we need hard or soft links.
14671LN_S=$lt_LN_S
14672
14673# A BSD-compatible nm program.
14674NM=$lt_NM
14675
14676# A symbol stripping program
14677STRIP=$lt_STRIP
14678
14679# Used to examine libraries when file_magic_cmd begins "file"
14680MAGIC_CMD=$MAGIC_CMD
14681
14682# Used on cygwin: DLL creation program.
14683DLLTOOL="$DLLTOOL"
14684
14685# Used on cygwin: object dumper.
14686OBJDUMP="$OBJDUMP"
14687
14688# Used on cygwin: assembler.
14689AS="$AS"
14690
14691# The name of the directory that contains temporary libtool files.
14692objdir=$objdir
14693
14694# How to create reloadable object files.
14695reload_flag=$lt_reload_flag
14696reload_cmds=$lt_reload_cmds
14697
14698# How to pass a linker flag through the compiler.
14699wl=$lt_lt_prog_compiler_wl_F77
14700
14701# Object file suffix (normally "o").
14702objext="$ac_objext"
14703
14704# Old archive suffix (normally "a").
14705libext="$libext"
14706
14707# Shared library suffix (normally ".so").
14708shrext_cmds='$shrext_cmds'
14709
14710# Executable file suffix (normally "").
14711exeext="$exeext"
14712
14713# Additional compiler flags for building library objects.
14714pic_flag=$lt_lt_prog_compiler_pic_F77
14715pic_mode=$pic_mode
14716
14717# What is the maximum length of a command?
14718max_cmd_len=$lt_cv_sys_max_cmd_len
14719
14720# Does compiler simultaneously support -c and -o options?
14721compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14722
14723# Must we lock files when doing compilation ?
14724need_locks=$lt_need_locks
14725
14726# Do we need the lib prefix for modules?
14727need_lib_prefix=$need_lib_prefix
14728
14729# Do we need a version for libraries?
14730need_version=$need_version
14731
14732# Whether dlopen is supported.
14733dlopen_support=$enable_dlopen
14734
14735# Whether dlopen of programs is supported.
14736dlopen_self=$enable_dlopen_self
14737
14738# Whether dlopen of statically linked programs is supported.
14739dlopen_self_static=$enable_dlopen_self_static
14740
14741# Compiler flag to prevent dynamic linking.
14742link_static_flag=$lt_lt_prog_compiler_static_F77
14743
14744# Compiler flag to turn off builtin functions.
14745no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14746
14747# Compiler flag to allow reflexive dlopens.
14748export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14749
14750# Compiler flag to generate shared objects directly from archives.
14751whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14752
14753# Compiler flag to generate thread-safe objects.
14754thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14755
14756# Library versioning type.
14757version_type=$version_type
14758
14759# Format of library name prefix.
14760libname_spec=$lt_libname_spec
14761
14762# List of archive names. First name is the real one, the rest are links.
14763# The last name is the one that the linker finds with -lNAME.
14764library_names_spec=$lt_library_names_spec
14765
14766# The coded name of the library, if different from the real name.
14767soname_spec=$lt_soname_spec
14768
14769# Commands used to build and install an old-style archive.
14770RANLIB=$lt_RANLIB
14771old_archive_cmds=$lt_old_archive_cmds_F77
14772old_postinstall_cmds=$lt_old_postinstall_cmds
14773old_postuninstall_cmds=$lt_old_postuninstall_cmds
14774
14775# Create an old-style archive from a shared archive.
14776old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14777
14778# Create a temporary old-style archive to link instead of a shared archive.
14779old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14780
14781# Commands used to build and install a shared archive.
14782archive_cmds=$lt_archive_cmds_F77
14783archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14784postinstall_cmds=$lt_postinstall_cmds
14785postuninstall_cmds=$lt_postuninstall_cmds
14786
14787# Commands used to build a loadable module (assumed same as above if empty)
14788module_cmds=$lt_module_cmds_F77
14789module_expsym_cmds=$lt_module_expsym_cmds_F77
14790
14791# Commands to strip libraries.
14792old_striplib=$lt_old_striplib
14793striplib=$lt_striplib
14794
14795# Dependencies to place before the objects being linked to create a
14796# shared library.
14797predep_objects=$lt_predep_objects_F77
14798
14799# Dependencies to place after the objects being linked to create a
14800# shared library.
14801postdep_objects=$lt_postdep_objects_F77
14802
14803# Dependencies to place before the objects being linked to create a
14804# shared library.
14805predeps=$lt_predeps_F77
14806
14807# Dependencies to place after the objects being linked to create a
14808# shared library.
14809postdeps=$lt_postdeps_F77
14810
14811# The library search path used internally by the compiler when linking
14812# a shared library.
14813compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14814
14815# Method to check whether dependent libraries are shared objects.
14816deplibs_check_method=$lt_deplibs_check_method
14817
14818# Command to use when deplibs_check_method == file_magic.
14819file_magic_cmd=$lt_file_magic_cmd
14820
14821# Flag that allows shared libraries with undefined symbols to be built.
14822allow_undefined_flag=$lt_allow_undefined_flag_F77
14823
14824# Flag that forces no undefined symbols.
14825no_undefined_flag=$lt_no_undefined_flag_F77
14826
14827# Commands used to finish a libtool library installation in a directory.
14828finish_cmds=$lt_finish_cmds
14829
14830# Same as above, but a single script fragment to be evaled but not shown.
14831finish_eval=$lt_finish_eval
14832
14833# Take the output of nm and produce a listing of raw symbols and C names.
14834global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14835
14836# Transform the output of nm in a proper C declaration
14837global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14838
14839# Transform the output of nm in a C name address pair
14840global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14841
14842# This is the shared library runtime path variable.
14843runpath_var=$runpath_var
14844
14845# This is the shared library path variable.
14846shlibpath_var=$shlibpath_var
14847
14848# Is shlibpath searched before the hard-coded library search path?
14849shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14850
14851# How to hardcode a shared library path into an executable.
14852hardcode_action=$hardcode_action_F77
14853
14854# Whether we should hardcode library paths into libraries.
14855hardcode_into_libs=$hardcode_into_libs
14856
14857# Flag to hardcode \$libdir into a binary during linking.
14858# This must work even if \$libdir does not exist.
14859hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14860
14861# If ld is used when linking, flag to hardcode \$libdir into
14862# a binary during linking. This must work even if \$libdir does
14863# not exist.
14864hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14865
14866# Whether we need a single -rpath flag with a separated argument.
14867hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14868
14869# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14870# resulting binary.
14871hardcode_direct=$hardcode_direct_F77
14872
14873# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14874# resulting binary.
14875hardcode_minus_L=$hardcode_minus_L_F77
14876
14877# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14878# the resulting binary.
14879hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14880
14881# Set to yes if building a shared library automatically hardcodes DIR into the library
14882# and all subsequent libraries and executables linked against it.
14883hardcode_automatic=$hardcode_automatic_F77
14884
14885# Variables whose values should be saved in libtool wrapper scripts and
14886# restored at relink time.
14887variables_saved_for_relink="$variables_saved_for_relink"
14888
14889# Whether libtool must link a program against all its dependency libraries.
14890link_all_deplibs=$link_all_deplibs_F77
14891
14892# Compile-time system search path for libraries
14893sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14894
14895# Run-time system search path for libraries
14896sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14897
14898# Fix the shell variable \$srcfile for the compiler.
14899fix_srcfile_path="$fix_srcfile_path_F77"
14900
14901# Set to yes if exported symbols are required.
14902always_export_symbols=$always_export_symbols_F77
14903
14904# The commands to list exported symbols.
14905export_symbols_cmds=$lt_export_symbols_cmds_F77
14906
14907# The commands to extract the exported symbol list from a shared archive.
14908extract_expsyms_cmds=$lt_extract_expsyms_cmds
14909
14910# Symbols that should not be listed in the preloaded symbols.
14911exclude_expsyms=$lt_exclude_expsyms_F77
14912
14913# Symbols that must always be exported.
14914include_expsyms=$lt_include_expsyms_F77
14915
14916# ### END LIBTOOL TAG CONFIG: $tagname
14917
14918__EOF__
14919
14920
14921else
14922 # If there is no Makefile yet, we rely on a make rule to execute
14923 # `config.status --recheck' to rerun these tests and create the
14924 # libtool script then.
14925 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14926 if test -f "$ltmain_in"; then
14927 test -f Makefile && make "$ltmain"
14928 fi
14929fi
14930
14931
14932ac_ext=c
14933ac_cpp='$CPP $CPPFLAGS'
14934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14936ac_compiler_gnu=$ac_cv_c_compiler_gnu
14937
14938CC="$lt_save_CC"
14939
14940 else
14941 tagname=""
14942 fi
14943 ;;
14944
14945 GCJ)
14946 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14947
14948
14949
14950# Source file extension for Java test sources.
14951ac_ext=java
14952
14953# Object file extension for compiled Java test sources.
14954objext=o
14955objext_GCJ=$objext
14956
14957# Code to be used in simple compile tests
14958lt_simple_compile_test_code="class foo {}\n"
14959
14960# Code to be used in simple link tests
14961lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14962
14963# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14964
14965# If no C compiler was specified, use CC.
14966LTCC=${LTCC-"$CC"}
14967
14968# Allow CC to be a program name with arguments.
14969compiler=$CC
14970
14971
14972# Allow CC to be a program name with arguments.
14973lt_save_CC="$CC"
14974CC=${GCJ-"gcj"}
14975compiler=$CC
14976compiler_GCJ=$CC
14977
14978# GCJ did not exist at the time GCC didn't implicitly link libc in.
14979archive_cmds_need_lc_GCJ=no
14980
14981
14982lt_prog_compiler_no_builtin_flag_GCJ=
14983
14984if test "$GCC" = yes; then
14985 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14986
14987
14988echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14989echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14990if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992else
14993 lt_cv_prog_compiler_rtti_exceptions=no
14994 ac_outfile=conftest.$ac_objext
14995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14996 lt_compiler_flag="-fno-rtti -fno-exceptions"
14997 # Insert the option either (1) after the last *FLAGS variable, or
14998 # (2) before a word containing "conftest.", or (3) at the end.
14999 # Note that $ac_compile itself does not contain backslashes and begins
15000 # with a dollar sign (not a hyphen), so the echo should work correctly.
15001 # The option is referenced via a variable to avoid confusing sed.
15002 lt_compile=`echo "$ac_compile" | $SED \
15003 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15005 -e 's:$: $lt_compiler_flag:'`
15006 (eval echo "\"\$as_me:15006: $lt_compile\"" >&5)
15007 (eval "$lt_compile" 2>conftest.err)
15008 ac_status=$?
15009 cat conftest.err >&5
15010 echo "$as_me:15010: \$? = $ac_status" >&5
15011 if (exit $ac_status) && test -s "$ac_outfile"; then
15012 # The compiler can only warn and ignore the option if not recognized
15013 # So say no if there are warnings
15014 if test ! -s conftest.err; then
15015 lt_cv_prog_compiler_rtti_exceptions=yes
15016 fi
15017 fi
15018 $rm conftest*
15019
15020fi
15021echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15022echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15023
15024if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15025 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15026else
15027 :
15028fi
15029
15030fi
15031
15032lt_prog_compiler_wl_GCJ=
15033lt_prog_compiler_pic_GCJ=
15034lt_prog_compiler_static_GCJ=
15035
15036echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15037echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15038
15039 if test "$GCC" = yes; then
15040 lt_prog_compiler_wl_GCJ='-Wl,'
15041 lt_prog_compiler_static_GCJ='-static'
15042
15043 case $host_os in
15044 aix*)
15045 # All AIX code is PIC.
15046 if test "$host_cpu" = ia64; then
15047 # AIX 5 now supports IA64 processor
15048 lt_prog_compiler_static_GCJ='-Bstatic'
15049 fi
15050 ;;
15051
15052 amigaos*)
15053 # FIXME: we need at least 68020 code to build shared libraries, but
15054 # adding the `-m68020' flag to GCC prevents building anything better,
15055 # like `-m68040'.
15056 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15057 ;;
15058
15059 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15060 # PIC is the default for these OSes.
15061 ;;
15062
15063 mingw* | pw32* | os2*)
15064 # This hack is so that the source file can tell whether it is being
15065 # built for inclusion in a dll (and should export symbols for example).
15066 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15067 ;;
15068
15069 darwin* | rhapsody*)
15070 # PIC is the default on this platform
15071 # Common symbols not allowed in MH_DYLIB files
15072 lt_prog_compiler_pic_GCJ='-fno-common'
15073 ;;
15074
15075 msdosdjgpp*)
15076 # Just because we use GCC doesn't mean we suddenly get shared libraries
15077 # on systems that don't support them.
15078 lt_prog_compiler_can_build_shared_GCJ=no
15079 enable_shared=no
15080 ;;
15081
15082 sysv4*MP*)
15083 if test -d /usr/nec; then
15084 lt_prog_compiler_pic_GCJ=-Kconform_pic
15085 fi
15086 ;;
15087
15088 hpux*)
15089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15090 # not for PA HP-UX.
15091 case "$host_cpu" in
15092 hppa*64*|ia64*)
15093 # +Z the default
15094 ;;
15095 *)
15096 lt_prog_compiler_pic_GCJ='-fPIC'
15097 ;;
15098 esac
15099 ;;
15100
15101 *)
15102 lt_prog_compiler_pic_GCJ='-fPIC'
15103 ;;
15104 esac
15105 else
15106 # PORTME Check for flag to pass linker flags through the system compiler.
15107 case $host_os in
15108 aix*)
15109 lt_prog_compiler_wl_GCJ='-Wl,'
15110 if test "$host_cpu" = ia64; then
15111 # AIX 5 now supports IA64 processor
15112 lt_prog_compiler_static_GCJ='-Bstatic'
15113 else
15114 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15115 fi
15116 ;;
15117
15118 mingw* | pw32* | os2*)
15119 # This hack is so that the source file can tell whether it is being
15120 # built for inclusion in a dll (and should export symbols for example).
15121 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15122 ;;
15123
15124 hpux9* | hpux10* | hpux11*)
15125 lt_prog_compiler_wl_GCJ='-Wl,'
15126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15127 # not for PA HP-UX.
15128 case "$host_cpu" in
15129 hppa*64*|ia64*)
15130 # +Z the default
15131 ;;
15132 *)
15133 lt_prog_compiler_pic_GCJ='+Z'
15134 ;;
15135 esac
15136 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15137 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15138 ;;
15139
15140 irix5* | irix6* | nonstopux*)
15141 lt_prog_compiler_wl_GCJ='-Wl,'
15142 # PIC (with -KPIC) is the default.
15143 lt_prog_compiler_static_GCJ='-non_shared'
15144 ;;
15145
15146 newsos6)
15147 lt_prog_compiler_pic_GCJ='-KPIC'
15148 lt_prog_compiler_static_GCJ='-Bstatic'
15149 ;;
15150
15151 linux*)
15152 case $CC in
15153 icc* | ecc*)
15154 lt_prog_compiler_wl_GCJ='-Wl,'
15155 lt_prog_compiler_pic_GCJ='-KPIC'
15156 lt_prog_compiler_static_GCJ='-static'
15157 ;;
15158 ccc*)
15159 lt_prog_compiler_wl_GCJ='-Wl,'
15160 # All Alpha code is PIC.
15161 lt_prog_compiler_static_GCJ='-non_shared'
15162 ;;
15163 esac
15164 ;;
15165
15166 osf3* | osf4* | osf5*)
15167 lt_prog_compiler_wl_GCJ='-Wl,'
15168 # All OSF/1 code is PIC.
15169 lt_prog_compiler_static_GCJ='-non_shared'
15170 ;;
15171
15172 sco3.2v5*)
15173 lt_prog_compiler_pic_GCJ='-Kpic'
15174 lt_prog_compiler_static_GCJ='-dn'
15175 ;;
15176
15177 solaris*)
15178 lt_prog_compiler_wl_GCJ='-Wl,'
15179 lt_prog_compiler_pic_GCJ='-KPIC'
15180 lt_prog_compiler_static_GCJ='-Bstatic'
15181 ;;
15182
15183 sunos4*)
15184 lt_prog_compiler_wl_GCJ='-Qoption ld '
15185 lt_prog_compiler_pic_GCJ='-PIC'
15186 lt_prog_compiler_static_GCJ='-Bstatic'
15187 ;;
15188
15189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15190 lt_prog_compiler_wl_GCJ='-Wl,'
15191 lt_prog_compiler_pic_GCJ='-KPIC'
15192 lt_prog_compiler_static_GCJ='-Bstatic'
15193 ;;
15194
15195 sysv4*MP*)
15196 if test -d /usr/nec ;then
15197 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15198 lt_prog_compiler_static_GCJ='-Bstatic'
15199 fi
15200 ;;
15201
15202 uts4*)
15203 lt_prog_compiler_pic_GCJ='-pic'
15204 lt_prog_compiler_static_GCJ='-Bstatic'
15205 ;;
15206
15207 *)
15208 lt_prog_compiler_can_build_shared_GCJ=no
15209 ;;
15210 esac
15211 fi
15212
15213echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15214echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15215
15216#
15217# Check to make sure the PIC flag actually works.
15218#
15219if test -n "$lt_prog_compiler_pic_GCJ"; then
15220
15221echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15222echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15223if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225else
15226 lt_prog_compiler_pic_works_GCJ=no
15227 ac_outfile=conftest.$ac_objext
15228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15229 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15230 # Insert the option either (1) after the last *FLAGS variable, or
15231 # (2) before a word containing "conftest.", or (3) at the end.
15232 # Note that $ac_compile itself does not contain backslashes and begins
15233 # with a dollar sign (not a hyphen), so the echo should work correctly.
15234 # The option is referenced via a variable to avoid confusing sed.
15235 lt_compile=`echo "$ac_compile" | $SED \
15236 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15238 -e 's:$: $lt_compiler_flag:'`
15239 (eval echo "\"\$as_me:15239: $lt_compile\"" >&5)
15240 (eval "$lt_compile" 2>conftest.err)
15241 ac_status=$?
15242 cat conftest.err >&5
15243 echo "$as_me:15243: \$? = $ac_status" >&5
15244 if (exit $ac_status) && test -s "$ac_outfile"; then
15245 # The compiler can only warn and ignore the option if not recognized
15246 # So say no if there are warnings
15247 if test ! -s conftest.err; then
15248 lt_prog_compiler_pic_works_GCJ=yes
15249 fi
15250 fi
15251 $rm conftest*
15252
15253fi
15254echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15255echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15256
15257if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15258 case $lt_prog_compiler_pic_GCJ in
15259 "" | " "*) ;;
15260 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15261 esac
15262else
15263 lt_prog_compiler_pic_GCJ=
15264 lt_prog_compiler_can_build_shared_GCJ=no
15265fi
15266
15267fi
15268case "$host_os" in
15269 # For platforms which do not support PIC, -DPIC is meaningless:
15270 *djgpp*)
15271 lt_prog_compiler_pic_GCJ=
15272 ;;
15273 *)
15274 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15275 ;;
15276esac
15277
15278echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15279echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15280if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282else
15283 lt_cv_prog_compiler_c_o_GCJ=no
15284 $rm -r conftest 2>/dev/null
15285 mkdir conftest
15286 cd conftest
15287 mkdir out
15288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15289
15290 lt_compiler_flag="-o out/conftest2.$ac_objext"
15291 # Insert the option either (1) after the last *FLAGS variable, or
15292 # (2) before a word containing "conftest.", or (3) at the end.
15293 # Note that $ac_compile itself does not contain backslashes and begins
15294 # with a dollar sign (not a hyphen), so the echo should work correctly.
15295 lt_compile=`echo "$ac_compile" | $SED \
15296 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15298 -e 's:$: $lt_compiler_flag:'`
15299 (eval echo "\"\$as_me:15299: $lt_compile\"" >&5)
15300 (eval "$lt_compile" 2>out/conftest.err)
15301 ac_status=$?
15302 cat out/conftest.err >&5
15303 echo "$as_me:15303: \$? = $ac_status" >&5
15304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15305 then
15306 # The compiler can only warn and ignore the option if not recognized
15307 # So say no if there are warnings
15308 if test ! -s out/conftest.err; then
15309 lt_cv_prog_compiler_c_o_GCJ=yes
15310 fi
15311 fi
15312 chmod u+w .
15313 $rm conftest*
15314 # SGI C++ compiler will create directory out/ii_files/ for
15315 # template instantiation
15316 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15317 $rm out/* && rmdir out
15318 cd ..
15319 rmdir conftest
15320 $rm conftest*
15321
15322fi
15323echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15324echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15325
15326
15327hard_links="nottested"
15328if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15329 # do not overwrite the value of need_locks provided by the user
15330 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15331echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15332 hard_links=yes
15333 $rm conftest*
15334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15335 touch conftest.a
15336 ln conftest.a conftest.b 2>&5 || hard_links=no
15337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15338 echo "$as_me:$LINENO: result: $hard_links" >&5
15339echo "${ECHO_T}$hard_links" >&6
15340 if test "$hard_links" = no; then
15341 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15342echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15343 need_locks=warn
15344 fi
15345else
15346 need_locks=no
15347fi
15348
15349echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15350echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15351
15352 runpath_var=
15353 allow_undefined_flag_GCJ=
15354 enable_shared_with_static_runtimes_GCJ=no
15355 archive_cmds_GCJ=
15356 archive_expsym_cmds_GCJ=
15357 old_archive_From_new_cmds_GCJ=
15358 old_archive_from_expsyms_cmds_GCJ=
15359 export_dynamic_flag_spec_GCJ=
15360 whole_archive_flag_spec_GCJ=
15361 thread_safe_flag_spec_GCJ=
15362 hardcode_libdir_flag_spec_GCJ=
15363 hardcode_libdir_flag_spec_ld_GCJ=
15364 hardcode_libdir_separator_GCJ=
15365 hardcode_direct_GCJ=no
15366 hardcode_minus_L_GCJ=no
15367 hardcode_shlibpath_var_GCJ=unsupported
15368 link_all_deplibs_GCJ=unknown
15369 hardcode_automatic_GCJ=no
15370 module_cmds_GCJ=
15371 module_expsym_cmds_GCJ=
15372 always_export_symbols_GCJ=no
15373 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15374 # include_expsyms should be a list of space-separated symbols to be *always*
15375 # included in the symbol list
15376 include_expsyms_GCJ=
15377 # exclude_expsyms can be an extended regexp of symbols to exclude
15378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15380 # as well as any symbol that contains `d'.
15381 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15383 # platforms (ab)use it in PIC code, but their linkers get confused if
15384 # the symbol is explicitly referenced. Since portable code cannot
15385 # rely on this symbol name, it's probably fine to never include it in
15386 # preloaded symbol tables.
15387 extract_expsyms_cmds=
15388
15389 case $host_os in
15390 cygwin* | mingw* | pw32*)
15391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15392 # When not using gcc, we currently assume that we are using
15393 # Microsoft Visual C++.
15394 if test "$GCC" != yes; then
15395 with_gnu_ld=no
15396 fi
15397 ;;
15398 openbsd*)
15399 with_gnu_ld=no
15400 ;;
15401 esac
15402
15403 ld_shlibs_GCJ=yes
15404 if test "$with_gnu_ld" = yes; then
15405 # If archive_cmds runs LD, not CC, wlarc should be empty
15406 wlarc='${wl}'
15407
15408 # See if GNU ld supports shared libraries.
15409 case $host_os in
15410 aix3* | aix4* | aix5*)
15411 # On AIX/PPC, the GNU linker is very broken
15412 if test "$host_cpu" != ia64; then
15413 ld_shlibs_GCJ=no
15414 cat <<EOF 1>&2
15415
15416*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15417*** to be unable to reliably create shared libraries on AIX.
15418*** Therefore, libtool is disabling shared libraries support. If you
15419*** really care for shared libraries, you may want to modify your PATH
15420*** so that a non-GNU linker is found, and then restart.
15421
15422EOF
15423 fi
15424 ;;
15425
15426 amigaos*)
15427 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)'
15428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15429 hardcode_minus_L_GCJ=yes
15430
15431 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15432 # that the semantics of dynamic libraries on AmigaOS, at least up
15433 # to version 4, is to share data among multiple programs linked
15434 # with the same dynamic library. Since this doesn't match the
15435 # behavior of shared libraries on other platforms, we can't use
15436 # them.
15437 ld_shlibs_GCJ=no
15438 ;;
15439
15440 beos*)
15441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15442 allow_undefined_flag_GCJ=unsupported
15443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15444 # support --undefined. This deserves some investigation. FIXME
15445 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15446 else
15447 ld_shlibs_GCJ=no
15448 fi
15449 ;;
15450
15451 cygwin* | mingw* | pw32*)
15452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15453 # as there is no search path for DLLs.
15454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15455 allow_undefined_flag_GCJ=unsupported
15456 always_export_symbols_GCJ=no
15457 enable_shared_with_static_runtimes_GCJ=yes
15458 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15459
15460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15462 # If the export-symbols file already is a .def file (1st line
15463 # is EXPORTS), use it as is; otherwise, prepend...
15464 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15465 cp $export_symbols $output_objdir/$soname.def;
15466 else
15467 echo EXPORTS > $output_objdir/$soname.def;
15468 cat $export_symbols >> $output_objdir/$soname.def;
15469 fi~
15470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15471 else
15472 ld_shlibs=no
15473 fi
15474 ;;
15475
15476 netbsd*)
15477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15478 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15479 wlarc=
15480 else
15481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15483 fi
15484 ;;
15485
15486 solaris* | sysv5*)
15487 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15488 ld_shlibs_GCJ=no
15489 cat <<EOF 1>&2
15490
15491*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15492*** create shared libraries on Solaris systems. Therefore, libtool
15493*** is disabling shared libraries support. We urge you to upgrade GNU
15494*** binutils to release 2.9.1 or newer. Another option is to modify
15495*** your PATH or compiler configuration so that the native linker is
15496*** used, and then restart.
15497
15498EOF
15499 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15502 else
15503 ld_shlibs_GCJ=no
15504 fi
15505 ;;
15506
15507 sunos4*)
15508 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15509 wlarc=
15510 hardcode_direct_GCJ=yes
15511 hardcode_shlibpath_var_GCJ=no
15512 ;;
15513
15514 linux*)
15515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15516 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517 archive_cmds_GCJ="$tmp_archive_cmds"
15518 supports_anon_versioning=no
15519 case `$LD -v 2>/dev/null` in
15520 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15521 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15522 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15523 *\ 2.11.*) ;; # other 2.11 versions
15524 *) supports_anon_versioning=yes ;;
15525 esac
15526 if test $supports_anon_versioning = yes; then
15527 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15528cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15529$echo "local: *; };" >> $output_objdir/$libname.ver~
15530 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15531 else
15532 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15533 fi
15534 else
15535 ld_shlibs_GCJ=no
15536 fi
15537 ;;
15538
15539 *)
15540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15541 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15542 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15543 else
15544 ld_shlibs_GCJ=no
15545 fi
15546 ;;
15547 esac
15548
15549 if test "$ld_shlibs_GCJ" = yes; then
15550 runpath_var=LD_RUN_PATH
15551 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15552 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15553 # ancient GNU ld didn't support --whole-archive et. al.
15554 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15555 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15556 else
15557 whole_archive_flag_spec_GCJ=
15558 fi
15559 fi
15560 else
15561 # PORTME fill in a description of your system's linker (not GNU ld)
15562 case $host_os in
15563 aix3*)
15564 allow_undefined_flag_GCJ=unsupported
15565 always_export_symbols_GCJ=yes
15566 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'
15567 # Note: this linker hardcodes the directories in LIBPATH if there
15568 # are no directories specified by -L.
15569 hardcode_minus_L_GCJ=yes
15570 if test "$GCC" = yes && test -z "$link_static_flag"; then
15571 # Neither direct hardcoding nor static linking is supported with a
15572 # broken collect2.
15573 hardcode_direct_GCJ=unsupported
15574 fi
15575 ;;
15576
15577 aix4* | aix5*)
15578 if test "$host_cpu" = ia64; then
15579 # On IA64, the linker does run time linking by default, so we don't
15580 # have to do anything special.
15581 aix_use_runtimelinking=no
15582 exp_sym_flag='-Bexport'
15583 no_entry_flag=""
15584 else
15585 # If we're using GNU nm, then we don't want the "-C" option.
15586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15588 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'
15589 else
15590 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'
15591 fi
15592 aix_use_runtimelinking=no
15593
15594 # Test if we are trying to use run time linking or normal
15595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15596 # need to do runtime linking.
15597 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15598 for ld_flag in $LDFLAGS; do
15599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15600 aix_use_runtimelinking=yes
15601 break
15602 fi
15603 done
15604 esac
15605
15606 exp_sym_flag='-bexport'
15607 no_entry_flag='-bnoentry'
15608 fi
15609
15610 # When large executables or shared objects are built, AIX ld can
15611 # have problems creating the table of contents. If linking a library
15612 # or program results in "error TOC overflow" add -mminimal-toc to
15613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15615
15616 archive_cmds_GCJ=''
15617 hardcode_direct_GCJ=yes
15618 hardcode_libdir_separator_GCJ=':'
15619 link_all_deplibs_GCJ=yes
15620
15621 if test "$GCC" = yes; then
15622 case $host_os in aix4.012|aix4.012.*)
15623 # We only want to do this on AIX 4.2 and lower, the check
15624 # below for broken collect2 doesn't work under 4.3+
15625 collect2name=`${CC} -print-prog-name=collect2`
15626 if test -f "$collect2name" && \
15627 strings "$collect2name" | grep resolve_lib_name >/dev/null
15628 then
15629 # We have reworked collect2
15630 hardcode_direct_GCJ=yes
15631 else
15632 # We have old collect2
15633 hardcode_direct_GCJ=unsupported
15634 # It fails to find uninstalled libraries when the uninstalled
15635 # path is not listed in the libpath. Setting hardcode_minus_L
15636 # to unsupported forces relinking
15637 hardcode_minus_L_GCJ=yes
15638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15639 hardcode_libdir_separator_GCJ=
15640 fi
15641 esac
15642 shared_flag='-shared'
15643 else
15644 # not using gcc
15645 if test "$host_cpu" = ia64; then
15646 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15647 # chokes on -Wl,-G. The following line is correct:
15648 shared_flag='-G'
15649 else
15650 if test "$aix_use_runtimelinking" = yes; then
15651 shared_flag='${wl}-G'
15652 else
15653 shared_flag='${wl}-bM:SRE'
15654 fi
15655 fi
15656 fi
15657
15658 # It seems that -bexpall does not export symbols beginning with
15659 # underscore (_), so it is better to generate a list of symbols to export.
15660 always_export_symbols_GCJ=yes
15661 if test "$aix_use_runtimelinking" = yes; then
15662 # Warning - without using the other runtime loading flags (-brtl),
15663 # -berok will link without error, but may produce a broken library.
15664 allow_undefined_flag_GCJ='-berok'
15665 # Determine the default libpath from the value encoded in an empty executable.
15666 cat >conftest.$ac_ext <<_ACEOF
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
15672
15673int
15674main ()
15675{
15676
15677 ;
15678 return 0;
15679}
15680_ACEOF
15681rm -f conftest.$ac_objext conftest$ac_exeext
15682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15683 (eval $ac_link) 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } &&
15690 { ac_try='test -z "$ac_c_werror_flag"
15691 || test ! -s conftest.err'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest$ac_exeext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703
15704aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15705}'`
15706# Check for a 64-bit object if we didn't find anything.
15707if 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; }
15708}'`; fi
15709else
15710 echo "$as_me: failed program was:" >&5
15711sed 's/^/| /' conftest.$ac_ext >&5
15712
15713fi
15714rm -f conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15717
15718 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15719 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15720 else
15721 if test "$host_cpu" = ia64; then
15722 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15723 allow_undefined_flag_GCJ="-z nodefs"
15724 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15725 else
15726 # Determine the default libpath from the value encoded in an empty executable.
15727 cat >conftest.$ac_ext <<_ACEOF
15728/* confdefs.h. */
15729_ACEOF
15730cat confdefs.h >>conftest.$ac_ext
15731cat >>conftest.$ac_ext <<_ACEOF
15732/* end confdefs.h. */
15733
15734int
15735main ()
15736{
15737
15738 ;
15739 return 0;
15740}
15741_ACEOF
15742rm -f conftest.$ac_objext conftest$ac_exeext
15743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15744 (eval $ac_link) 2>conftest.er1
15745 ac_status=$?
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest$ac_exeext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764
15765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15766}'`
15767# Check for a 64-bit object if we didn't find anything.
15768if 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; }
15769}'`; fi
15770else
15771 echo "$as_me: failed program was:" >&5
15772sed 's/^/| /' conftest.$ac_ext >&5
15773
15774fi
15775rm -f conftest.err conftest.$ac_objext \
15776 conftest$ac_exeext conftest.$ac_ext
15777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15778
15779 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15780 # Warning - without using the other run time loading flags,
15781 # -berok will link without error, but may produce a broken library.
15782 no_undefined_flag_GCJ=' ${wl}-bernotok'
15783 allow_undefined_flag_GCJ=' ${wl}-berok'
15784 # -bexpall does not export symbols beginning with underscore (_)
15785 always_export_symbols_GCJ=yes
15786 # Exported symbols can be pulled into shared objects from archives
15787 whole_archive_flag_spec_GCJ=' '
15788 archive_cmds_need_lc_GCJ=yes
15789 # This is similar to how AIX traditionally builds it's shared libraries.
15790 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15791 fi
15792 fi
15793 ;;
15794
15795 amigaos*)
15796 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)'
15797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15798 hardcode_minus_L_GCJ=yes
15799 # see comment about different semantics on the GNU ld section
15800 ld_shlibs_GCJ=no
15801 ;;
15802
15803 bsdi4*)
15804 export_dynamic_flag_spec_GCJ=-rdynamic
15805 ;;
15806
15807 cygwin* | mingw* | pw32*)
15808 # When not using gcc, we currently assume that we are using
15809 # Microsoft Visual C++.
15810 # hardcode_libdir_flag_spec is actually meaningless, as there is
15811 # no search path for DLLs.
15812 hardcode_libdir_flag_spec_GCJ=' '
15813 allow_undefined_flag_GCJ=unsupported
15814 # Tell ltmain to make .lib files, not .a files.
15815 libext=lib
15816 # Tell ltmain to make .dll files, not .so files.
15817 shrext_cmds=".dll"
15818 # FIXME: Setting linknames here is a bad hack.
15819 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15820 # The linker will automatically build a .lib file if we build a DLL.
15821 old_archive_From_new_cmds_GCJ='true'
15822 # FIXME: Should let the user specify the lib program.
15823 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15824 fix_srcfile_path='`cygpath -w "$srcfile"`'
15825 enable_shared_with_static_runtimes_GCJ=yes
15826 ;;
15827
15828 darwin* | rhapsody*)
15829 if test "$GXX" = yes ; then
15830 archive_cmds_need_lc_GCJ=no
15831 case "$host_os" in
15832 rhapsody* | darwin1.[012])
15833 allow_undefined_flag_GCJ='-undefined suppress'
15834 ;;
15835 *) # Darwin 1.3 on
15836 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15837 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15838 else
15839 case ${MACOSX_DEPLOYMENT_TARGET} in
15840 10.[012])
15841 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15842 ;;
15843 10.*)
15844 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15845 ;;
15846 esac
15847 fi
15848 ;;
15849 esac
15850 lt_int_apple_cc_single_mod=no
15851 output_verbose_link_cmd='echo'
15852 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15853 lt_int_apple_cc_single_mod=yes
15854 fi
15855 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15856 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15857 else
15858 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15859 fi
15860 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15862 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15863 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15864 else
15865 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15866 fi
15867 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}'
15868 hardcode_direct_GCJ=no
15869 hardcode_automatic_GCJ=yes
15870 hardcode_shlibpath_var_GCJ=unsupported
15871 whole_archive_flag_spec_GCJ='-all_load $convenience'
15872 link_all_deplibs_GCJ=yes
15873 else
15874 ld_shlibs_GCJ=no
15875 fi
15876 ;;
15877
15878 dgux*)
15879 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15881 hardcode_shlibpath_var_GCJ=no
15882 ;;
15883
15884 freebsd1*)
15885 ld_shlibs_GCJ=no
15886 ;;
15887
15888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15889 # support. Future versions do this automatically, but an explicit c++rt0.o
15890 # does not break anything, and helps significantly (at the cost of a little
15891 # extra space).
15892 freebsd2.2*)
15893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15895 hardcode_direct_GCJ=yes
15896 hardcode_shlibpath_var_GCJ=no
15897 ;;
15898
15899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15900 freebsd2*)
15901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15902 hardcode_direct_GCJ=yes
15903 hardcode_minus_L_GCJ=yes
15904 hardcode_shlibpath_var_GCJ=no
15905 ;;
15906
15907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15908 freebsd* | kfreebsd*-gnu)
15909 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15911 hardcode_direct_GCJ=yes
15912 hardcode_shlibpath_var_GCJ=no
15913 ;;
15914
15915 hpux9*)
15916 if test "$GCC" = yes; then
15917 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'
15918 else
15919 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'
15920 fi
15921 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15922 hardcode_libdir_separator_GCJ=:
15923 hardcode_direct_GCJ=yes
15924
15925 # hardcode_minus_L: Not really in the search PATH,
15926 # but as the default location of the library.
15927 hardcode_minus_L_GCJ=yes
15928 export_dynamic_flag_spec_GCJ='${wl}-E'
15929 ;;
15930
15931 hpux10* | hpux11*)
15932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15933 case "$host_cpu" in
15934 hppa*64*|ia64*)
15935 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15936 ;;
15937 *)
15938 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15939 ;;
15940 esac
15941 else
15942 case "$host_cpu" in
15943 hppa*64*|ia64*)
15944 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15945 ;;
15946 *)
15947 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15948 ;;
15949 esac
15950 fi
15951 if test "$with_gnu_ld" = no; then
15952 case "$host_cpu" in
15953 hppa*64*)
15954 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15955 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15956 hardcode_libdir_separator_GCJ=:
15957 hardcode_direct_GCJ=no
15958 hardcode_shlibpath_var_GCJ=no
15959 ;;
15960 ia64*)
15961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15962 hardcode_direct_GCJ=no
15963 hardcode_shlibpath_var_GCJ=no
15964
15965 # hardcode_minus_L: Not really in the search PATH,
15966 # but as the default location of the library.
15967 hardcode_minus_L_GCJ=yes
15968 ;;
15969 *)
15970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15971 hardcode_libdir_separator_GCJ=:
15972 hardcode_direct_GCJ=yes
15973 export_dynamic_flag_spec_GCJ='${wl}-E'
15974
15975 # hardcode_minus_L: Not really in the search PATH,
15976 # but as the default location of the library.
15977 hardcode_minus_L_GCJ=yes
15978 ;;
15979 esac
15980 fi
15981 ;;
15982
15983 irix5* | irix6* | nonstopux*)
15984 if test "$GCC" = yes; then
15985 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'
15986 else
15987 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'
15988 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15989 fi
15990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15991 hardcode_libdir_separator_GCJ=:
15992 link_all_deplibs_GCJ=yes
15993 ;;
15994
15995 netbsd*)
15996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15998 else
15999 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16000 fi
16001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16002 hardcode_direct_GCJ=yes
16003 hardcode_shlibpath_var_GCJ=no
16004 ;;
16005
16006 newsos6)
16007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008 hardcode_direct_GCJ=yes
16009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16010 hardcode_libdir_separator_GCJ=:
16011 hardcode_shlibpath_var_GCJ=no
16012 ;;
16013
16014 openbsd*)
16015 hardcode_direct_GCJ=yes
16016 hardcode_shlibpath_var_GCJ=no
16017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16018 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16020 export_dynamic_flag_spec_GCJ='${wl}-E'
16021 else
16022 case $host_os in
16023 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16024 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16026 ;;
16027 *)
16028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16030 ;;
16031 esac
16032 fi
16033 ;;
16034
16035 os2*)
16036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16037 hardcode_minus_L_GCJ=yes
16038 allow_undefined_flag_GCJ=unsupported
16039 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'
16040 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16041 ;;
16042
16043 osf3*)
16044 if test "$GCC" = yes; then
16045 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16046 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'
16047 else
16048 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16049 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'
16050 fi
16051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16052 hardcode_libdir_separator_GCJ=:
16053 ;;
16054
16055 osf4* | osf5*) # as osf3* with the addition of -msym flag
16056 if test "$GCC" = yes; then
16057 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16058 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'
16059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16060 else
16061 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16062 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'
16063 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~
16064 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16065
16066 # Both c and cxx compiler support -rpath directly
16067 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16068 fi
16069 hardcode_libdir_separator_GCJ=:
16070 ;;
16071
16072 sco3.2v5*)
16073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074 hardcode_shlibpath_var_GCJ=no
16075 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16076 runpath_var=LD_RUN_PATH
16077 hardcode_runpath_var=yes
16078 ;;
16079
16080 solaris*)
16081 no_undefined_flag_GCJ=' -z text'
16082 if test "$GCC" = yes; then
16083 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16084 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16085 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16086 else
16087 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16090 fi
16091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16092 hardcode_shlibpath_var_GCJ=no
16093 case $host_os in
16094 solaris2.[0-5] | solaris2.[0-5].*) ;;
16095 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16096 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16097 esac
16098 link_all_deplibs_GCJ=yes
16099 ;;
16100
16101 sunos4*)
16102 if test "x$host_vendor" = xsequent; then
16103 # Use $CC to link under sequent, because it throws in some extra .o
16104 # files that make .init and .fini sections work.
16105 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16106 else
16107 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16108 fi
16109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16110 hardcode_direct_GCJ=yes
16111 hardcode_minus_L_GCJ=yes
16112 hardcode_shlibpath_var_GCJ=no
16113 ;;
16114
16115 sysv4)
16116 case $host_vendor in
16117 sni)
16118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_direct_GCJ=yes # is this really true???
16120 ;;
16121 siemens)
16122 ## LD is ld it makes a PLAMLIB
16123 ## CC just makes a GrossModule.
16124 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16125 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16126 hardcode_direct_GCJ=no
16127 ;;
16128 motorola)
16129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16131 ;;
16132 esac
16133 runpath_var='LD_RUN_PATH'
16134 hardcode_shlibpath_var_GCJ=no
16135 ;;
16136
16137 sysv4.3*)
16138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16139 hardcode_shlibpath_var_GCJ=no
16140 export_dynamic_flag_spec_GCJ='-Bexport'
16141 ;;
16142
16143 sysv4*MP*)
16144 if test -d /usr/nec; then
16145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146 hardcode_shlibpath_var_GCJ=no
16147 runpath_var=LD_RUN_PATH
16148 hardcode_runpath_var=yes
16149 ld_shlibs_GCJ=yes
16150 fi
16151 ;;
16152
16153 sysv4.2uw2*)
16154 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16155 hardcode_direct_GCJ=yes
16156 hardcode_minus_L_GCJ=no
16157 hardcode_shlibpath_var_GCJ=no
16158 hardcode_runpath_var=yes
16159 runpath_var=LD_RUN_PATH
16160 ;;
16161
16162 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16163 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16164 if test "$GCC" = yes; then
16165 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 else
16167 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 fi
16169 runpath_var='LD_RUN_PATH'
16170 hardcode_shlibpath_var_GCJ=no
16171 ;;
16172
16173 sysv5*)
16174 no_undefined_flag_GCJ=' -z text'
16175 # $CC -shared without GNU ld will not create a library from C++
16176 # object files and a static libstdc++, better avoid it by now
16177 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16178 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16180 hardcode_libdir_flag_spec_GCJ=
16181 hardcode_shlibpath_var_GCJ=no
16182 runpath_var='LD_RUN_PATH'
16183 ;;
16184
16185 uts4*)
16186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188 hardcode_shlibpath_var_GCJ=no
16189 ;;
16190
16191 *)
16192 ld_shlibs_GCJ=no
16193 ;;
16194 esac
16195 fi
16196
16197echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16198echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16199test "$ld_shlibs_GCJ" = no && can_build_shared=no
16200
16201variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16202if test "$GCC" = yes; then
16203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16204fi
16205
16206#
16207# Do we need to explicitly link libc?
16208#
16209case "x$archive_cmds_need_lc_GCJ" in
16210x|xyes)
16211 # Assume -lc should be added
16212 archive_cmds_need_lc_GCJ=yes
16213
16214 if test "$enable_shared" = yes && test "$GCC" = yes; then
16215 case $archive_cmds_GCJ in
16216 *'~'*)
16217 # FIXME: we may have to deal with multi-command sequences.
16218 ;;
16219 '$CC '*)
16220 # Test whether the compiler implicitly links with -lc since on some
16221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16222 # to ld, don't add -lc before -lgcc.
16223 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16224echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16225 $rm conftest*
16226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16227
16228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16229 (eval $ac_compile) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } 2>conftest.err; then
16233 soname=conftest
16234 lib=conftest
16235 libobjs=conftest.$ac_objext
16236 deplibs=
16237 wl=$lt_prog_compiler_wl_GCJ
16238 compiler_flags=-v
16239 linker_flags=-v
16240 verstring=
16241 output_objdir=.
16242 libname=conftest
16243 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16244 allow_undefined_flag_GCJ=
16245 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16246 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }
16250 then
16251 archive_cmds_need_lc_GCJ=no
16252 else
16253 archive_cmds_need_lc_GCJ=yes
16254 fi
16255 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16256 else
16257 cat conftest.err 1>&5
16258 fi
16259 $rm conftest*
16260 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16261echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16262 ;;
16263 esac
16264 fi
16265 ;;
16266esac
16267
16268echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16269echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16270library_names_spec=
16271libname_spec='lib$name'
16272soname_spec=
16273shrext_cmds=".so"
16274postinstall_cmds=
16275postuninstall_cmds=
16276finish_cmds=
16277finish_eval=
16278shlibpath_var=
16279shlibpath_overrides_runpath=unknown
16280version_type=none
16281dynamic_linker="$host_os ld.so"
16282sys_lib_dlsearch_path_spec="/lib /usr/lib"
16283if test "$GCC" = yes; then
16284 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16285 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16286 # if the path contains ";" then we assume it to be the separator
16287 # otherwise default to the standard path separator (i.e. ":") - it is
16288 # assumed that no part of a normal pathname contains ";" but that should
16289 # okay in the real world where ";" in dirpaths is itself problematic.
16290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16291 else
16292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16293 fi
16294else
16295 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16296fi
16297need_lib_prefix=unknown
16298hardcode_into_libs=no
16299
16300# when you set need_version to no, make sure it does not cause -set_version
16301# flags to be left without arguments
16302need_version=unknown
16303
16304case $host_os in
16305aix3*)
16306 version_type=linux
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16308 shlibpath_var=LIBPATH
16309
16310 # AIX 3 has no versioning support, so we append a major version to the name.
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 ;;
16313
16314aix4* | aix5*)
16315 version_type=linux
16316 need_lib_prefix=no
16317 need_version=no
16318 hardcode_into_libs=yes
16319 if test "$host_cpu" = ia64; then
16320 # AIX 5 supports IA64
16321 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 else
16324 # With GCC up to 2.95.x, collect2 would create an import file
16325 # for dependence libraries. The import file would start with
16326 # the line `#! .'. This would cause the generated library to
16327 # depend on `.', always an invalid library. This was fixed in
16328 # development snapshots of GCC prior to 3.0.
16329 case $host_os in
16330 aix4 | aix4.[01] | aix4.[01].*)
16331 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16332 echo ' yes '
16333 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16334 :
16335 else
16336 can_build_shared=no
16337 fi
16338 ;;
16339 esac
16340 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16341 # soname into executable. Probably we can add versioning support to
16342 # collect2, so additional links can be useful in future.
16343 if test "$aix_use_runtimelinking" = yes; then
16344 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16345 # instead of lib<name>.a to let people know that these are not
16346 # typical AIX shared libraries.
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 else
16349 # We preserve .a as extension for shared libraries through AIX4.2
16350 # and later when we are not doing run time linking.
16351 library_names_spec='${libname}${release}.a $libname.a'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 fi
16354 shlibpath_var=LIBPATH
16355 fi
16356 ;;
16357
16358amigaos*)
16359 library_names_spec='$libname.ixlibrary $libname.a'
16360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16361 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'
16362 ;;
16363
16364beos*)
16365 library_names_spec='${libname}${shared_ext}'
16366 dynamic_linker="$host_os ld.so"
16367 shlibpath_var=LIBRARY_PATH
16368 ;;
16369
16370bsdi4*)
16371 version_type=linux
16372 need_version=no
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16376 shlibpath_var=LD_LIBRARY_PATH
16377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16379 # the default ld.so.conf also contains /usr/contrib/lib and
16380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16381 # libtool to hard-code these into programs
16382 ;;
16383
16384cygwin* | mingw* | pw32*)
16385 version_type=windows
16386 shrext_cmds=".dll"
16387 need_version=no
16388 need_lib_prefix=no
16389
16390 case $GCC,$host_os in
16391 yes,cygwin* | yes,mingw* | yes,pw32*)
16392 library_names_spec='$libname.dll.a'
16393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16394 postinstall_cmds='base_file=`basename \${file}`~
16395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16396 dldir=$destdir/`dirname \$dlpath`~
16397 test -d \$dldir || mkdir -p \$dldir~
16398 $install_prog $dir/$dlname \$dldir/$dlname'
16399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16400 dlpath=$dir/\$dldll~
16401 $rm \$dlpath'
16402 shlibpath_overrides_runpath=yes
16403
16404 case $host_os in
16405 cygwin*)
16406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16409 ;;
16410 mingw*)
16411 # MinGW DLLs use traditional 'lib' prefix
16412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16415 # It is most probably a Windows format PATH printed by
16416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16417 # path with ; separators, and with drive letters. We can handle the
16418 # drive letters (cygwin fileutils understands them), so leave them,
16419 # especially as we might pass files found there to a mingw objdump,
16420 # which wouldn't understand a cygwinified path. Ahh.
16421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16422 else
16423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16424 fi
16425 ;;
16426 pw32*)
16427 # pw32 DLLs use 'pw' prefix rather than 'lib'
16428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16429 ;;
16430 esac
16431 ;;
16432
16433 *)
16434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16435 ;;
16436 esac
16437 dynamic_linker='Win32 ld.exe'
16438 # FIXME: first we should search . and the directory the executable is in
16439 shlibpath_var=PATH
16440 ;;
16441
16442darwin* | rhapsody*)
16443 dynamic_linker="$host_os dyld"
16444 version_type=darwin
16445 need_lib_prefix=no
16446 need_version=no
16447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16448 soname_spec='${libname}${release}${major}$shared_ext'
16449 shlibpath_overrides_runpath=yes
16450 shlibpath_var=DYLD_LIBRARY_PATH
16451 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16453 if test "$GCC" = yes; then
16454 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"`
16455 else
16456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16457 fi
16458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16459 ;;
16460
16461dgux*)
16462 version_type=linux
16463 need_lib_prefix=no
16464 need_version=no
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16466 soname_spec='${libname}${release}${shared_ext}$major'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 ;;
16469
16470freebsd1*)
16471 dynamic_linker=no
16472 ;;
16473
16474kfreebsd*-gnu)
16475 version_type=linux
16476 need_lib_prefix=no
16477 need_version=no
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=no
16482 hardcode_into_libs=yes
16483 dynamic_linker='GNU ld.so'
16484 ;;
16485
16486freebsd*)
16487 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16488 version_type=freebsd-$objformat
16489 case $version_type in
16490 freebsd-elf*)
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16492 need_version=no
16493 need_lib_prefix=no
16494 ;;
16495 freebsd-*)
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16497 need_version=yes
16498 ;;
16499 esac
16500 shlibpath_var=LD_LIBRARY_PATH
16501 case $host_os in
16502 freebsd2*)
16503 shlibpath_overrides_runpath=yes
16504 ;;
16505 freebsd3.01* | freebsdelf3.01*)
16506 shlibpath_overrides_runpath=yes
16507 hardcode_into_libs=yes
16508 ;;
16509 *) # from 3.2 on
16510 shlibpath_overrides_runpath=no
16511 hardcode_into_libs=yes
16512 ;;
16513 esac
16514 ;;
16515
16516gnu*)
16517 version_type=linux
16518 need_lib_prefix=no
16519 need_version=no
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 hardcode_into_libs=yes
16524 ;;
16525
16526hpux9* | hpux10* | hpux11*)
16527 # Give a soname corresponding to the major version so that dld.sl refuses to
16528 # link against other versions.
16529 version_type=sunos
16530 need_lib_prefix=no
16531 need_version=no
16532 case "$host_cpu" in
16533 ia64*)
16534 shrext_cmds='.so'
16535 hardcode_into_libs=yes
16536 dynamic_linker="$host_os dld.so"
16537 shlibpath_var=LD_LIBRARY_PATH
16538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 if test "X$HPUX_IA64_MODE" = X32; then
16542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16543 else
16544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16545 fi
16546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16547 ;;
16548 hppa*64*)
16549 shrext_cmds='.sl'
16550 hardcode_into_libs=yes
16551 dynamic_linker="$host_os dld.sl"
16552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16558 ;;
16559 *)
16560 shrext_cmds='.sl'
16561 dynamic_linker="$host_os dld.sl"
16562 shlibpath_var=SHLIB_PATH
16563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 ;;
16567 esac
16568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16569 postinstall_cmds='chmod 555 $lib'
16570 ;;
16571
16572irix5* | irix6* | nonstopux*)
16573 case $host_os in
16574 nonstopux*) version_type=nonstopux ;;
16575 *)
16576 if test "$lt_cv_prog_gnu_ld" = yes; then
16577 version_type=linux
16578 else
16579 version_type=irix
16580 fi ;;
16581 esac
16582 need_lib_prefix=no
16583 need_version=no
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16586 case $host_os in
16587 irix5* | nonstopux*)
16588 libsuff= shlibsuff=
16589 ;;
16590 *)
16591 case $LD in # libtool.m4 will add one of these switches to LD
16592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16593 libsuff= shlibsuff= libmagic=32-bit;;
16594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16595 libsuff=32 shlibsuff=N32 libmagic=N32;;
16596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16598 *) libsuff= shlibsuff= libmagic=never-match;;
16599 esac
16600 ;;
16601 esac
16602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16603 shlibpath_overrides_runpath=no
16604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16606 hardcode_into_libs=yes
16607 ;;
16608
16609# No shared lib support for Linux oldld, aout, or coff.
16610linux*oldld* | linux*aout* | linux*coff*)
16611 dynamic_linker=no
16612 ;;
16613
16614# This must be Linux ELF.
16615linux*)
16616 version_type=linux
16617 need_lib_prefix=no
16618 need_version=no
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=no
16624 # This implies no fast_install, which is unacceptable.
16625 # Some rework will be needed to allow for fast_install
16626 # before this can be enabled.
16627 hardcode_into_libs=yes
16628
16629 # find out which ABI we are using
16630 libsuff=
16631 case "$host_cpu" in
16632 x86_64*|s390x*|powerpc64*)
16633 echo '#line 16633 "configure"' > conftest.$ac_ext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635 (eval $ac_compile) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; then
16639 case `/usr/bin/file conftest.$ac_objext` in
16640 *64-bit*)
16641 libsuff=64
16642 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16643 ;;
16644 esac
16645 fi
16646 rm -rf conftest*
16647 ;;
16648 esac
16649
16650 # Append ld.so.conf contents to the search path
16651 if test -f /etc/ld.so.conf; then
16652 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16653 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16654 fi
16655
16656 # We used to test for /lib/ld.so.1 and disable shared libraries on
16657 # powerpc, because MkLinux only supported shared libraries with the
16658 # GNU dynamic linker. Since this was broken with cross compilers,
16659 # most powerpc-linux boxes support dynamic linking these days and
16660 # people can always --disable-shared, the test was removed, and we
16661 # assume the GNU/Linux dynamic linker is in use.
16662 dynamic_linker='GNU/Linux ld.so'
16663 ;;
16664
16665knetbsd*-gnu)
16666 version_type=linux
16667 need_lib_prefix=no
16668 need_version=no
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16670 soname_spec='${libname}${release}${shared_ext}$major'
16671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=no
16673 hardcode_into_libs=yes
16674 dynamic_linker='GNU ld.so'
16675 ;;
16676
16677netbsd*)
16678 version_type=sunos
16679 need_lib_prefix=no
16680 need_version=no
16681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16684 dynamic_linker='NetBSD (a.out) ld.so'
16685 else
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 dynamic_linker='NetBSD ld.elf_so'
16689 fi
16690 shlibpath_var=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath=yes
16692 hardcode_into_libs=yes
16693 ;;
16694
16695newsos6)
16696 version_type=linux
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 shlibpath_var=LD_LIBRARY_PATH
16699 shlibpath_overrides_runpath=yes
16700 ;;
16701
16702nto-qnx*)
16703 version_type=linux
16704 need_lib_prefix=no
16705 need_version=no
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 soname_spec='${libname}${release}${shared_ext}$major'
16708 shlibpath_var=LD_LIBRARY_PATH
16709 shlibpath_overrides_runpath=yes
16710 ;;
16711
16712openbsd*)
16713 version_type=sunos
16714 need_lib_prefix=no
16715 need_version=yes
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16718 shlibpath_var=LD_LIBRARY_PATH
16719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16720 case $host_os in
16721 openbsd2.[89] | openbsd2.[89].*)
16722 shlibpath_overrides_runpath=no
16723 ;;
16724 *)
16725 shlibpath_overrides_runpath=yes
16726 ;;
16727 esac
16728 else
16729 shlibpath_overrides_runpath=yes
16730 fi
16731 ;;
16732
16733os2*)
16734 libname_spec='$name'
16735 shrext_cmds=".dll"
16736 need_lib_prefix=no
16737 library_names_spec='$libname${shared_ext} $libname.a'
16738 dynamic_linker='OS/2 ld.exe'
16739 shlibpath_var=LIBPATH
16740 ;;
16741
16742osf3* | osf4* | osf5*)
16743 version_type=osf
16744 need_lib_prefix=no
16745 need_version=no
16746 soname_spec='${libname}${release}${shared_ext}$major'
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 shlibpath_var=LD_LIBRARY_PATH
16749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16750 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16751 ;;
16752
16753sco3.2v5*)
16754 version_type=osf
16755 soname_spec='${libname}${release}${shared_ext}$major'
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 ;;
16759
16760solaris*)
16761 version_type=linux
16762 need_lib_prefix=no
16763 need_version=no
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765 soname_spec='${libname}${release}${shared_ext}$major'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=yes
16768 hardcode_into_libs=yes
16769 # ldd complains unless libraries are executable
16770 postinstall_cmds='chmod +x $lib'
16771 ;;
16772
16773sunos4*)
16774 version_type=sunos
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16777 shlibpath_var=LD_LIBRARY_PATH
16778 shlibpath_overrides_runpath=yes
16779 if test "$with_gnu_ld" = yes; then
16780 need_lib_prefix=no
16781 fi
16782 need_version=yes
16783 ;;
16784
16785sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16786 version_type=linux
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 case $host_vendor in
16791 sni)
16792 shlibpath_overrides_runpath=no
16793 need_lib_prefix=no
16794 export_dynamic_flag_spec='${wl}-Blargedynsym'
16795 runpath_var=LD_RUN_PATH
16796 ;;
16797 siemens)
16798 need_lib_prefix=no
16799 ;;
16800 motorola)
16801 need_lib_prefix=no
16802 need_version=no
16803 shlibpath_overrides_runpath=no
16804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16805 ;;
16806 esac
16807 ;;
16808
16809sysv4*MP*)
16810 if test -d /usr/nec ;then
16811 version_type=linux
16812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16813 soname_spec='$libname${shared_ext}.$major'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 fi
16816 ;;
16817
16818uts4*)
16819 version_type=linux
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 ;;
16824
16825*)
16826 dynamic_linker=no
16827 ;;
16828esac
16829echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16830echo "${ECHO_T}$dynamic_linker" >&6
16831test "$dynamic_linker" = no && can_build_shared=no
16832
16833echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16834echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16835hardcode_action_GCJ=
16836if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16837 test -n "$runpath_var GCJ" || \
16838 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16839
16840 # We can hardcode non-existant directories.
16841 if test "$hardcode_direct_GCJ" != no &&
16842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16843 # have to relink, otherwise we might link with an installed library
16844 # when we should be linking with a yet-to-be-installed one
16845 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16846 test "$hardcode_minus_L_GCJ" != no; then
16847 # Linking always hardcodes the temporary library directory.
16848 hardcode_action_GCJ=relink
16849 else
16850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16851 hardcode_action_GCJ=immediate
16852 fi
16853else
16854 # We cannot hardcode anything, or else we can only hardcode existing
16855 # directories.
16856 hardcode_action_GCJ=unsupported
16857fi
16858echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16859echo "${ECHO_T}$hardcode_action_GCJ" >&6
16860
16861if test "$hardcode_action_GCJ" = relink; then
16862 # Fast installation is not supported
16863 enable_fast_install=no
16864elif test "$shlibpath_overrides_runpath" = yes ||
16865 test "$enable_shared" = no; then
16866 # Fast installation is not necessary
16867 enable_fast_install=needless
16868fi
16869
16870striplib=
16871old_striplib=
16872echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16873echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16874if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16877 echo "$as_me:$LINENO: result: yes" >&5
16878echo "${ECHO_T}yes" >&6
16879else
16880# FIXME - insert some real tests, host_os isn't really good enough
16881 case $host_os in
16882 darwin*)
16883 if test -n "$STRIP" ; then
16884 striplib="$STRIP -x"
16885 echo "$as_me:$LINENO: result: yes" >&5
16886echo "${ECHO_T}yes" >&6
16887 else
16888 echo "$as_me:$LINENO: result: no" >&5
16889echo "${ECHO_T}no" >&6
16890fi
16891 ;;
16892 *)
16893 echo "$as_me:$LINENO: result: no" >&5
16894echo "${ECHO_T}no" >&6
16895 ;;
16896 esac
16897fi
16898
16899if test "x$enable_dlopen" != xyes; then
16900 enable_dlopen=unknown
16901 enable_dlopen_self=unknown
16902 enable_dlopen_self_static=unknown
16903else
16904 lt_cv_dlopen=no
16905 lt_cv_dlopen_libs=
16906
16907 case $host_os in
16908 beos*)
16909 lt_cv_dlopen="load_add_on"
16910 lt_cv_dlopen_libs=
16911 lt_cv_dlopen_self=yes
16912 ;;
16913
16914 mingw* | pw32*)
16915 lt_cv_dlopen="LoadLibrary"
16916 lt_cv_dlopen_libs=
16917 ;;
16918
16919 cygwin*)
16920 lt_cv_dlopen="dlopen"
16921 lt_cv_dlopen_libs=
16922 ;;
16923
16924 darwin*)
16925 # if libdl is installed we need to link against it
16926 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16927echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16928if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930else
16931 ac_check_lib_save_LIBS=$LIBS
16932LIBS="-ldl $LIBS"
16933cat >conftest.$ac_ext <<_ACEOF
16934/* confdefs.h. */
16935_ACEOF
16936cat confdefs.h >>conftest.$ac_ext
16937cat >>conftest.$ac_ext <<_ACEOF
16938/* end confdefs.h. */
16939
16940/* Override any gcc2 internal prototype to avoid an error. */
16941#ifdef __cplusplus
16942extern "C"
16943#endif
16944/* We use char because int might match the return type of a gcc2
16945 builtin and then its argument prototype would still apply. */
16946char dlopen ();
16947int
16948main ()
16949{
16950dlopen ();
16951 ;
16952 return 0;
16953}
16954_ACEOF
16955rm -f conftest.$ac_objext conftest$ac_exeext
16956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16957 (eval $ac_link) 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -z "$ac_c_werror_flag"
16965 || test ! -s conftest.err'
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 ac_cv_lib_dl_dlopen=yes
16978else
16979 echo "$as_me: failed program was:" >&5
16980sed 's/^/| /' conftest.$ac_ext >&5
16981
16982ac_cv_lib_dl_dlopen=no
16983fi
16984rm -f conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16986LIBS=$ac_check_lib_save_LIBS
16987fi
16988echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16989echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16990if test $ac_cv_lib_dl_dlopen = yes; then
16991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16992else
16993
16994 lt_cv_dlopen="dyld"
16995 lt_cv_dlopen_libs=
16996 lt_cv_dlopen_self=yes
16997
16998fi
16999
17000 ;;
17001
17002 *)
17003 echo "$as_me:$LINENO: checking for shl_load" >&5
17004echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17005if test "${ac_cv_func_shl_load+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007else
17008 cat >conftest.$ac_ext <<_ACEOF
17009/* confdefs.h. */
17010_ACEOF
17011cat confdefs.h >>conftest.$ac_ext
17012cat >>conftest.$ac_ext <<_ACEOF
17013/* end confdefs.h. */
17014/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17016#define shl_load innocuous_shl_load
17017
17018/* System header to define __stub macros and hopefully few prototypes,
17019 which can conflict with char shl_load (); below.
17020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17021 <limits.h> exists even on freestanding compilers. */
17022
17023#ifdef __STDC__
17024# include <limits.h>
17025#else
17026# include <assert.h>
17027#endif
17028
17029#undef shl_load
17030
17031/* Override any gcc2 internal prototype to avoid an error. */
17032#ifdef __cplusplus
17033extern "C"
17034{
17035#endif
17036/* We use char because int might match the return type of a gcc2
17037 builtin and then its argument prototype would still apply. */
17038char shl_load ();
17039/* The GNU C library defines this for functions which it implements
17040 to always fail with ENOSYS. Some functions are actually named
17041 something starting with __ and the normal name is an alias. */
17042#if defined (__stub_shl_load) || defined (__stub___shl_load)
17043choke me
17044#else
17045char (*f) () = shl_load;
17046#endif
17047#ifdef __cplusplus
17048}
17049#endif
17050
17051int
17052main ()
17053{
17054return f != shl_load;
17055 ;
17056 return 0;
17057}
17058_ACEOF
17059rm -f conftest.$ac_objext conftest$ac_exeext
17060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try='test -s conftest$ac_exeext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_func_shl_load=yes
17082else
17083 echo "$as_me: failed program was:" >&5
17084sed 's/^/| /' conftest.$ac_ext >&5
17085
17086ac_cv_func_shl_load=no
17087fi
17088rm -f conftest.err conftest.$ac_objext \
17089 conftest$ac_exeext conftest.$ac_ext
17090fi
17091echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17092echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17093if test $ac_cv_func_shl_load = yes; then
17094 lt_cv_dlopen="shl_load"
17095else
17096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17097echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17098if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17100else
17101 ac_check_lib_save_LIBS=$LIBS
17102LIBS="-ldld $LIBS"
17103cat >conftest.$ac_ext <<_ACEOF
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109
17110/* Override any gcc2 internal prototype to avoid an error. */
17111#ifdef __cplusplus
17112extern "C"
17113#endif
17114/* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17116char shl_load ();
17117int
17118main ()
17119{
17120shl_load ();
17121 ;
17122 return 0;
17123}
17124_ACEOF
17125rm -f conftest.$ac_objext conftest$ac_exeext
17126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_lib_dld_shl_load=yes
17148else
17149 echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152ac_cv_lib_dld_shl_load=no
17153fi
17154rm -f conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17156LIBS=$ac_check_lib_save_LIBS
17157fi
17158echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17159echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17160if test $ac_cv_lib_dld_shl_load = yes; then
17161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17162else
17163 echo "$as_me:$LINENO: checking for dlopen" >&5
17164echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17165if test "${ac_cv_func_dlopen+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 cat >conftest.$ac_ext <<_ACEOF
17169/* confdefs.h. */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h. */
17174/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17176#define dlopen innocuous_dlopen
17177
17178/* System header to define __stub macros and hopefully few prototypes,
17179 which can conflict with char dlopen (); below.
17180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181 <limits.h> exists even on freestanding compilers. */
17182
17183#ifdef __STDC__
17184# include <limits.h>
17185#else
17186# include <assert.h>
17187#endif
17188
17189#undef dlopen
17190
17191/* Override any gcc2 internal prototype to avoid an error. */
17192#ifdef __cplusplus
17193extern "C"
17194{
17195#endif
17196/* We use char because int might match the return type of a gcc2
17197 builtin and then its argument prototype would still apply. */
17198char dlopen ();
17199/* The GNU C library defines this for functions which it implements
17200 to always fail with ENOSYS. Some functions are actually named
17201 something starting with __ and the normal name is an alias. */
17202#if defined (__stub_dlopen) || defined (__stub___dlopen)
17203choke me
17204#else
17205char (*f) () = dlopen;
17206#endif
17207#ifdef __cplusplus
17208}
17209#endif
17210
17211int
17212main ()
17213{
17214return f != dlopen;
17215 ;
17216 return 0;
17217}
17218_ACEOF
17219rm -f conftest.$ac_objext conftest$ac_exeext
17220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221 (eval $ac_link) 2>conftest.er1
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest$ac_exeext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_cv_func_dlopen=yes
17242else
17243 echo "$as_me: failed program was:" >&5
17244sed 's/^/| /' conftest.$ac_ext >&5
17245
17246ac_cv_func_dlopen=no
17247fi
17248rm -f conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17250fi
17251echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17252echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17253if test $ac_cv_func_dlopen = yes; then
17254 lt_cv_dlopen="dlopen"
17255else
17256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17257echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17258if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260else
17261 ac_check_lib_save_LIBS=$LIBS
17262LIBS="-ldl $LIBS"
17263cat >conftest.$ac_ext <<_ACEOF
17264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
17269
17270/* Override any gcc2 internal prototype to avoid an error. */
17271#ifdef __cplusplus
17272extern "C"
17273#endif
17274/* We use char because int might match the return type of a gcc2
17275 builtin and then its argument prototype would still apply. */
17276char dlopen ();
17277int
17278main ()
17279{
17280dlopen ();
17281 ;
17282 return 0;
17283}
17284_ACEOF
17285rm -f conftest.$ac_objext conftest$ac_exeext
17286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287 (eval $ac_link) 2>conftest.er1
17288 ac_status=$?
17289 grep -v '^ *+' conftest.er1 >conftest.err
17290 rm -f conftest.er1
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_c_werror_flag"
17295 || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_cv_lib_dl_dlopen=yes
17308else
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
17312ac_cv_lib_dl_dlopen=no
17313fi
17314rm -f conftest.err conftest.$ac_objext \
17315 conftest$ac_exeext conftest.$ac_ext
17316LIBS=$ac_check_lib_save_LIBS
17317fi
17318echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17319echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17320if test $ac_cv_lib_dl_dlopen = yes; then
17321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17322else
17323 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17324echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17325if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327else
17328 ac_check_lib_save_LIBS=$LIBS
17329LIBS="-lsvld $LIBS"
17330cat >conftest.$ac_ext <<_ACEOF
17331/* confdefs.h. */
17332_ACEOF
17333cat confdefs.h >>conftest.$ac_ext
17334cat >>conftest.$ac_ext <<_ACEOF
17335/* end confdefs.h. */
17336
17337/* Override any gcc2 internal prototype to avoid an error. */
17338#ifdef __cplusplus
17339extern "C"
17340#endif
17341/* We use char because int might match the return type of a gcc2
17342 builtin and then its argument prototype would still apply. */
17343char dlopen ();
17344int
17345main ()
17346{
17347dlopen ();
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext conftest$ac_exeext
17353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17354 (eval $ac_link) 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest$ac_exeext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_lib_svld_dlopen=yes
17375else
17376 echo "$as_me: failed program was:" >&5
17377sed 's/^/| /' conftest.$ac_ext >&5
17378
17379ac_cv_lib_svld_dlopen=no
17380fi
17381rm -f conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383LIBS=$ac_check_lib_save_LIBS
17384fi
17385echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17386echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17387if test $ac_cv_lib_svld_dlopen = yes; then
17388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17389else
17390 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17391echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17392if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394else
17395 ac_check_lib_save_LIBS=$LIBS
17396LIBS="-ldld $LIBS"
17397cat >conftest.$ac_ext <<_ACEOF
17398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
17403
17404/* Override any gcc2 internal prototype to avoid an error. */
17405#ifdef __cplusplus
17406extern "C"
17407#endif
17408/* We use char because int might match the return type of a gcc2
17409 builtin and then its argument prototype would still apply. */
17410char dld_link ();
17411int
17412main ()
17413{
17414dld_link ();
17415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext conftest$ac_exeext
17420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421 (eval $ac_link) 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_lib_dld_dld_link=yes
17442else
17443 echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
17446ac_cv_lib_dld_dld_link=no
17447fi
17448rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17450LIBS=$ac_check_lib_save_LIBS
17451fi
17452echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17453echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17454if test $ac_cv_lib_dld_dld_link = yes; then
17455 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17456fi
17457
17458
17459fi
17460
17461
17462fi
17463
17464
17465fi
17466
17467
17468fi
17469
17470
17471fi
17472
17473 ;;
17474 esac
17475
17476 if test "x$lt_cv_dlopen" != xno; then
17477 enable_dlopen=yes
17478 else
17479 enable_dlopen=no
17480 fi
17481
17482 case $lt_cv_dlopen in
17483 dlopen)
17484 save_CPPFLAGS="$CPPFLAGS"
17485 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17486
17487 save_LDFLAGS="$LDFLAGS"
17488 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17489
17490 save_LIBS="$LIBS"
17491 LIBS="$lt_cv_dlopen_libs $LIBS"
17492
17493 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17494echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17495if test "${lt_cv_dlopen_self+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17497else
17498 if test "$cross_compiling" = yes; then :
17499 lt_cv_dlopen_self=cross
17500else
17501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17502 lt_status=$lt_dlunknown
17503 cat > conftest.$ac_ext <<EOF
17504#line 17504 "configure"
17505#include "confdefs.h"
17506
17507#if HAVE_DLFCN_H
17508#include <dlfcn.h>
17509#endif
17510
17511#include <stdio.h>
17512
17513#ifdef RTLD_GLOBAL
17514# define LT_DLGLOBAL RTLD_GLOBAL
17515#else
17516# ifdef DL_GLOBAL
17517# define LT_DLGLOBAL DL_GLOBAL
17518# else
17519# define LT_DLGLOBAL 0
17520# endif
17521#endif
17522
17523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17524 find out it does not work in some platform. */
17525#ifndef LT_DLLAZY_OR_NOW
17526# ifdef RTLD_LAZY
17527# define LT_DLLAZY_OR_NOW RTLD_LAZY
17528# else
17529# ifdef DL_LAZY
17530# define LT_DLLAZY_OR_NOW DL_LAZY
17531# else
17532# ifdef RTLD_NOW
17533# define LT_DLLAZY_OR_NOW RTLD_NOW
17534# else
17535# ifdef DL_NOW
17536# define LT_DLLAZY_OR_NOW DL_NOW
17537# else
17538# define LT_DLLAZY_OR_NOW 0
17539# endif
17540# endif
17541# endif
17542# endif
17543#endif
17544
17545#ifdef __cplusplus
17546extern "C" void exit (int);
17547#endif
17548
17549void fnord() { int i=42;}
17550int main ()
17551{
17552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17553 int status = $lt_dlunknown;
17554
17555 if (self)
17556 {
17557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17559 /* dlclose (self); */
17560 }
17561
17562 exit (status);
17563}
17564EOF
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17570 (./conftest; exit; ) 2>/dev/null
17571 lt_status=$?
17572 case x$lt_status in
17573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17575 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17576 esac
17577 else :
17578 # compilation failed
17579 lt_cv_dlopen_self=no
17580 fi
17581fi
17582rm -fr conftest*
17583
17584
17585fi
17586echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17587echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17588
17589 if test "x$lt_cv_dlopen_self" = xyes; then
17590 LDFLAGS="$LDFLAGS $link_static_flag"
17591 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17592echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17593if test "${lt_cv_dlopen_self_static+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17595else
17596 if test "$cross_compiling" = yes; then :
17597 lt_cv_dlopen_self_static=cross
17598else
17599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17600 lt_status=$lt_dlunknown
17601 cat > conftest.$ac_ext <<EOF
17602#line 17602 "configure"
17603#include "confdefs.h"
17604
17605#if HAVE_DLFCN_H
17606#include <dlfcn.h>
17607#endif
17608
17609#include <stdio.h>
17610
17611#ifdef RTLD_GLOBAL
17612# define LT_DLGLOBAL RTLD_GLOBAL
17613#else
17614# ifdef DL_GLOBAL
17615# define LT_DLGLOBAL DL_GLOBAL
17616# else
17617# define LT_DLGLOBAL 0
17618# endif
17619#endif
17620
17621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17622 find out it does not work in some platform. */
17623#ifndef LT_DLLAZY_OR_NOW
17624# ifdef RTLD_LAZY
17625# define LT_DLLAZY_OR_NOW RTLD_LAZY
17626# else
17627# ifdef DL_LAZY
17628# define LT_DLLAZY_OR_NOW DL_LAZY
17629# else
17630# ifdef RTLD_NOW
17631# define LT_DLLAZY_OR_NOW RTLD_NOW
17632# else
17633# ifdef DL_NOW
17634# define LT_DLLAZY_OR_NOW DL_NOW
17635# else
17636# define LT_DLLAZY_OR_NOW 0
17637# endif
17638# endif
17639# endif
17640# endif
17641#endif
17642
17643#ifdef __cplusplus
17644extern "C" void exit (int);
17645#endif
17646
17647void fnord() { int i=42;}
17648int main ()
17649{
17650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17651 int status = $lt_dlunknown;
17652
17653 if (self)
17654 {
17655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17657 /* dlclose (self); */
17658 }
17659
17660 exit (status);
17661}
17662EOF
17663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17664 (eval $ac_link) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17668 (./conftest; exit; ) 2>/dev/null
17669 lt_status=$?
17670 case x$lt_status in
17671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17673 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17674 esac
17675 else :
17676 # compilation failed
17677 lt_cv_dlopen_self_static=no
17678 fi
17679fi
17680rm -fr conftest*
17681
17682
17683fi
17684echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17685echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17686 fi
17687
17688 CPPFLAGS="$save_CPPFLAGS"
17689 LDFLAGS="$save_LDFLAGS"
17690 LIBS="$save_LIBS"
17691 ;;
17692 esac
17693
17694 case $lt_cv_dlopen_self in
17695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17696 *) enable_dlopen_self=unknown ;;
17697 esac
17698
17699 case $lt_cv_dlopen_self_static in
17700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17701 *) enable_dlopen_self_static=unknown ;;
17702 esac
17703fi
17704
17705
17706# The else clause should only fire when bootstrapping the
17707# libtool distribution, otherwise you forgot to ship ltmain.sh
17708# with your package, and you will get complaints that there are
17709# no rules to generate ltmain.sh.
17710if test -f "$ltmain"; then
17711 # See if we are running on zsh, and set the options which allow our commands through
17712 # without removal of \ escapes.
17713 if test -n "${ZSH_VERSION+set}" ; then
17714 setopt NO_GLOB_SUBST
17715 fi
17716 # Now quote all the things that may contain metacharacters while being
17717 # careful not to overquote the AC_SUBSTed values. We take copies of the
17718 # variables and quote the copies for generation of the libtool script.
17719 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17720 SED SHELL STRIP \
17721 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17722 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17723 deplibs_check_method reload_flag reload_cmds need_locks \
17724 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17725 lt_cv_sys_global_symbol_to_c_name_address \
17726 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17727 old_postinstall_cmds old_postuninstall_cmds \
17728 compiler_GCJ \
17729 CC_GCJ \
17730 LD_GCJ \
17731 lt_prog_compiler_wl_GCJ \
17732 lt_prog_compiler_pic_GCJ \
17733 lt_prog_compiler_static_GCJ \
17734 lt_prog_compiler_no_builtin_flag_GCJ \
17735 export_dynamic_flag_spec_GCJ \
17736 thread_safe_flag_spec_GCJ \
17737 whole_archive_flag_spec_GCJ \
17738 enable_shared_with_static_runtimes_GCJ \
17739 old_archive_cmds_GCJ \
17740 old_archive_from_new_cmds_GCJ \
17741 predep_objects_GCJ \
17742 postdep_objects_GCJ \
17743 predeps_GCJ \
17744 postdeps_GCJ \
17745 compiler_lib_search_path_GCJ \
17746 archive_cmds_GCJ \
17747 archive_expsym_cmds_GCJ \
17748 postinstall_cmds_GCJ \
17749 postuninstall_cmds_GCJ \
17750 old_archive_from_expsyms_cmds_GCJ \
17751 allow_undefined_flag_GCJ \
17752 no_undefined_flag_GCJ \
17753 export_symbols_cmds_GCJ \
17754 hardcode_libdir_flag_spec_GCJ \
17755 hardcode_libdir_flag_spec_ld_GCJ \
17756 hardcode_libdir_separator_GCJ \
17757 hardcode_automatic_GCJ \
17758 module_cmds_GCJ \
17759 module_expsym_cmds_GCJ \
17760 lt_cv_prog_compiler_c_o_GCJ \
17761 exclude_expsyms_GCJ \
17762 include_expsyms_GCJ; do
17763
17764 case $var in
17765 old_archive_cmds_GCJ | \
17766 old_archive_from_new_cmds_GCJ | \
17767 archive_cmds_GCJ | \
17768 archive_expsym_cmds_GCJ | \
17769 module_cmds_GCJ | \
17770 module_expsym_cmds_GCJ | \
17771 old_archive_from_expsyms_cmds_GCJ | \
17772 export_symbols_cmds_GCJ | \
17773 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17774 postinstall_cmds | postuninstall_cmds | \
17775 old_postinstall_cmds | old_postuninstall_cmds | \
17776 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17777 # Double-quote double-evaled strings.
17778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17779 ;;
17780 *)
17781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17782 ;;
17783 esac
17784 done
17785
17786 case $lt_echo in
17787 *'\$0 --fallback-echo"')
17788 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17789 ;;
17790 esac
17791
17792cfgfile="$ofile"
17793
17794 cat <<__EOF__ >> "$cfgfile"
17795# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17796
17797# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17798
17799# Shell to use when invoking shell scripts.
17800SHELL=$lt_SHELL
17801
17802# Whether or not to build shared libraries.
17803build_libtool_libs=$enable_shared
17804
17805# Whether or not to build static libraries.
17806build_old_libs=$enable_static
17807
17808# Whether or not to add -lc for building shared libraries.
17809build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17810
17811# Whether or not to disallow shared libs when runtime libs are static
17812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17813
17814# Whether or not to optimize for fast installation.
17815fast_install=$enable_fast_install
17816
17817# The host system.
17818host_alias=$host_alias
17819host=$host
17820
17821# An echo program that does not interpret backslashes.
17822echo=$lt_echo
17823
17824# The archiver.
17825AR=$lt_AR
17826AR_FLAGS=$lt_AR_FLAGS
17827
17828# A C compiler.
17829LTCC=$lt_LTCC
17830
17831# A language-specific compiler.
17832CC=$lt_compiler_GCJ
17833
17834# Is the compiler the GNU C compiler?
17835with_gcc=$GCC_GCJ
17836
17837# An ERE matcher.
17838EGREP=$lt_EGREP
17839
17840# The linker used to build libraries.
17841LD=$lt_LD_GCJ
17842
17843# Whether we need hard or soft links.
17844LN_S=$lt_LN_S
17845
17846# A BSD-compatible nm program.
17847NM=$lt_NM
17848
17849# A symbol stripping program
17850STRIP=$lt_STRIP
17851
17852# Used to examine libraries when file_magic_cmd begins "file"
17853MAGIC_CMD=$MAGIC_CMD
17854
17855# Used on cygwin: DLL creation program.
17856DLLTOOL="$DLLTOOL"
17857
17858# Used on cygwin: object dumper.
17859OBJDUMP="$OBJDUMP"
17860
17861# Used on cygwin: assembler.
17862AS="$AS"
17863
17864# The name of the directory that contains temporary libtool files.
17865objdir=$objdir
17866
17867# How to create reloadable object files.
17868reload_flag=$lt_reload_flag
17869reload_cmds=$lt_reload_cmds
17870
17871# How to pass a linker flag through the compiler.
17872wl=$lt_lt_prog_compiler_wl_GCJ
17873
17874# Object file suffix (normally "o").
17875objext="$ac_objext"
17876
17877# Old archive suffix (normally "a").
17878libext="$libext"
17879
17880# Shared library suffix (normally ".so").
17881shrext_cmds='$shrext_cmds'
17882
17883# Executable file suffix (normally "").
17884exeext="$exeext"
17885
17886# Additional compiler flags for building library objects.
17887pic_flag=$lt_lt_prog_compiler_pic_GCJ
17888pic_mode=$pic_mode
17889
17890# What is the maximum length of a command?
17891max_cmd_len=$lt_cv_sys_max_cmd_len
17892
17893# Does compiler simultaneously support -c and -o options?
17894compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17895
17896# Must we lock files when doing compilation ?
17897need_locks=$lt_need_locks
17898
17899# Do we need the lib prefix for modules?
17900need_lib_prefix=$need_lib_prefix
17901
17902# Do we need a version for libraries?
17903need_version=$need_version
17904
17905# Whether dlopen is supported.
17906dlopen_support=$enable_dlopen
17907
17908# Whether dlopen of programs is supported.
17909dlopen_self=$enable_dlopen_self
17910
17911# Whether dlopen of statically linked programs is supported.
17912dlopen_self_static=$enable_dlopen_self_static
17913
17914# Compiler flag to prevent dynamic linking.
17915link_static_flag=$lt_lt_prog_compiler_static_GCJ
17916
17917# Compiler flag to turn off builtin functions.
17918no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17919
17920# Compiler flag to allow reflexive dlopens.
17921export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17922
17923# Compiler flag to generate shared objects directly from archives.
17924whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17925
17926# Compiler flag to generate thread-safe objects.
17927thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17928
17929# Library versioning type.
17930version_type=$version_type
17931
17932# Format of library name prefix.
17933libname_spec=$lt_libname_spec
17934
17935# List of archive names. First name is the real one, the rest are links.
17936# The last name is the one that the linker finds with -lNAME.
17937library_names_spec=$lt_library_names_spec
17938
17939# The coded name of the library, if different from the real name.
17940soname_spec=$lt_soname_spec
17941
17942# Commands used to build and install an old-style archive.
17943RANLIB=$lt_RANLIB
17944old_archive_cmds=$lt_old_archive_cmds_GCJ
17945old_postinstall_cmds=$lt_old_postinstall_cmds
17946old_postuninstall_cmds=$lt_old_postuninstall_cmds
17947
17948# Create an old-style archive from a shared archive.
17949old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17950
17951# Create a temporary old-style archive to link instead of a shared archive.
17952old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17953
17954# Commands used to build and install a shared archive.
17955archive_cmds=$lt_archive_cmds_GCJ
17956archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17957postinstall_cmds=$lt_postinstall_cmds
17958postuninstall_cmds=$lt_postuninstall_cmds
17959
17960# Commands used to build a loadable module (assumed same as above if empty)
17961module_cmds=$lt_module_cmds_GCJ
17962module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17963
17964# Commands to strip libraries.
17965old_striplib=$lt_old_striplib
17966striplib=$lt_striplib
17967
17968# Dependencies to place before the objects being linked to create a
17969# shared library.
17970predep_objects=$lt_predep_objects_GCJ
17971
17972# Dependencies to place after the objects being linked to create a
17973# shared library.
17974postdep_objects=$lt_postdep_objects_GCJ
17975
17976# Dependencies to place before the objects being linked to create a
17977# shared library.
17978predeps=$lt_predeps_GCJ
17979
17980# Dependencies to place after the objects being linked to create a
17981# shared library.
17982postdeps=$lt_postdeps_GCJ
17983
17984# The library search path used internally by the compiler when linking
17985# a shared library.
17986compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17987
17988# Method to check whether dependent libraries are shared objects.
17989deplibs_check_method=$lt_deplibs_check_method
17990
17991# Command to use when deplibs_check_method == file_magic.
17992file_magic_cmd=$lt_file_magic_cmd
17993
17994# Flag that allows shared libraries with undefined symbols to be built.
17995allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17996
17997# Flag that forces no undefined symbols.
17998no_undefined_flag=$lt_no_undefined_flag_GCJ
17999
18000# Commands used to finish a libtool library installation in a directory.
18001finish_cmds=$lt_finish_cmds
18002
18003# Same as above, but a single script fragment to be evaled but not shown.
18004finish_eval=$lt_finish_eval
18005
18006# Take the output of nm and produce a listing of raw symbols and C names.
18007global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18008
18009# Transform the output of nm in a proper C declaration
18010global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18011
18012# Transform the output of nm in a C name address pair
18013global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18014
18015# This is the shared library runtime path variable.
18016runpath_var=$runpath_var
18017
18018# This is the shared library path variable.
18019shlibpath_var=$shlibpath_var
18020
18021# Is shlibpath searched before the hard-coded library search path?
18022shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18023
18024# How to hardcode a shared library path into an executable.
18025hardcode_action=$hardcode_action_GCJ
18026
18027# Whether we should hardcode library paths into libraries.
18028hardcode_into_libs=$hardcode_into_libs
18029
18030# Flag to hardcode \$libdir into a binary during linking.
18031# This must work even if \$libdir does not exist.
18032hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18033
18034# If ld is used when linking, flag to hardcode \$libdir into
18035# a binary during linking. This must work even if \$libdir does
18036# not exist.
18037hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18038
18039# Whether we need a single -rpath flag with a separated argument.
18040hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18041
18042# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18043# resulting binary.
18044hardcode_direct=$hardcode_direct_GCJ
18045
18046# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18047# resulting binary.
18048hardcode_minus_L=$hardcode_minus_L_GCJ
18049
18050# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18051# the resulting binary.
18052hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18053
18054# Set to yes if building a shared library automatically hardcodes DIR into the library
18055# and all subsequent libraries and executables linked against it.
18056hardcode_automatic=$hardcode_automatic_GCJ
18057
18058# Variables whose values should be saved in libtool wrapper scripts and
18059# restored at relink time.
18060variables_saved_for_relink="$variables_saved_for_relink"
18061
18062# Whether libtool must link a program against all its dependency libraries.
18063link_all_deplibs=$link_all_deplibs_GCJ
18064
18065# Compile-time system search path for libraries
18066sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18067
18068# Run-time system search path for libraries
18069sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18070
18071# Fix the shell variable \$srcfile for the compiler.
18072fix_srcfile_path="$fix_srcfile_path_GCJ"
18073
18074# Set to yes if exported symbols are required.
18075always_export_symbols=$always_export_symbols_GCJ
18076
18077# The commands to list exported symbols.
18078export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18079
18080# The commands to extract the exported symbol list from a shared archive.
18081extract_expsyms_cmds=$lt_extract_expsyms_cmds
18082
18083# Symbols that should not be listed in the preloaded symbols.
18084exclude_expsyms=$lt_exclude_expsyms_GCJ
18085
18086# Symbols that must always be exported.
18087include_expsyms=$lt_include_expsyms_GCJ
18088
18089# ### END LIBTOOL TAG CONFIG: $tagname
18090
18091__EOF__
18092
18093
18094else
18095 # If there is no Makefile yet, we rely on a make rule to execute
18096 # `config.status --recheck' to rerun these tests and create the
18097 # libtool script then.
18098 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18099 if test -f "$ltmain_in"; then
18100 test -f Makefile && make "$ltmain"
18101 fi
18102fi
18103
18104
18105ac_ext=c
18106ac_cpp='$CPP $CPPFLAGS'
18107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109ac_compiler_gnu=$ac_cv_c_compiler_gnu
18110
18111CC="$lt_save_CC"
18112
18113 else
18114 tagname=""
18115 fi
18116 ;;
18117
18118 RC)
18119
18120
18121
18122# Source file extension for RC test sources.
18123ac_ext=rc
18124
18125# Object file extension for compiled RC test sources.
18126objext=o
18127objext_RC=$objext
18128
18129# Code to be used in simple compile tests
18130lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18131
18132# Code to be used in simple link tests
18133lt_simple_link_test_code="$lt_simple_compile_test_code"
18134
18135# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18136
18137# If no C compiler was specified, use CC.
18138LTCC=${LTCC-"$CC"}
18139
18140# Allow CC to be a program name with arguments.
18141compiler=$CC
18142
18143
18144# Allow CC to be a program name with arguments.
18145lt_save_CC="$CC"
18146CC=${RC-"windres"}
18147compiler=$CC
18148compiler_RC=$CC
18149lt_cv_prog_compiler_c_o_RC=yes
18150
18151# The else clause should only fire when bootstrapping the
18152# libtool distribution, otherwise you forgot to ship ltmain.sh
18153# with your package, and you will get complaints that there are
18154# no rules to generate ltmain.sh.
18155if test -f "$ltmain"; then
18156 # See if we are running on zsh, and set the options which allow our commands through
18157 # without removal of \ escapes.
18158 if test -n "${ZSH_VERSION+set}" ; then
18159 setopt NO_GLOB_SUBST
18160 fi
18161 # Now quote all the things that may contain metacharacters while being
18162 # careful not to overquote the AC_SUBSTed values. We take copies of the
18163 # variables and quote the copies for generation of the libtool script.
18164 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18165 SED SHELL STRIP \
18166 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18167 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18168 deplibs_check_method reload_flag reload_cmds need_locks \
18169 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18170 lt_cv_sys_global_symbol_to_c_name_address \
18171 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18172 old_postinstall_cmds old_postuninstall_cmds \
18173 compiler_RC \
18174 CC_RC \
18175 LD_RC \
18176 lt_prog_compiler_wl_RC \
18177 lt_prog_compiler_pic_RC \
18178 lt_prog_compiler_static_RC \
18179 lt_prog_compiler_no_builtin_flag_RC \
18180 export_dynamic_flag_spec_RC \
18181 thread_safe_flag_spec_RC \
18182 whole_archive_flag_spec_RC \
18183 enable_shared_with_static_runtimes_RC \
18184 old_archive_cmds_RC \
18185 old_archive_from_new_cmds_RC \
18186 predep_objects_RC \
18187 postdep_objects_RC \
18188 predeps_RC \
18189 postdeps_RC \
18190 compiler_lib_search_path_RC \
18191 archive_cmds_RC \
18192 archive_expsym_cmds_RC \
18193 postinstall_cmds_RC \
18194 postuninstall_cmds_RC \
18195 old_archive_from_expsyms_cmds_RC \
18196 allow_undefined_flag_RC \
18197 no_undefined_flag_RC \
18198 export_symbols_cmds_RC \
18199 hardcode_libdir_flag_spec_RC \
18200 hardcode_libdir_flag_spec_ld_RC \
18201 hardcode_libdir_separator_RC \
18202 hardcode_automatic_RC \
18203 module_cmds_RC \
18204 module_expsym_cmds_RC \
18205 lt_cv_prog_compiler_c_o_RC \
18206 exclude_expsyms_RC \
18207 include_expsyms_RC; do
18208
18209 case $var in
18210 old_archive_cmds_RC | \
18211 old_archive_from_new_cmds_RC | \
18212 archive_cmds_RC | \
18213 archive_expsym_cmds_RC | \
18214 module_cmds_RC | \
18215 module_expsym_cmds_RC | \
18216 old_archive_from_expsyms_cmds_RC | \
18217 export_symbols_cmds_RC | \
18218 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18219 postinstall_cmds | postuninstall_cmds | \
18220 old_postinstall_cmds | old_postuninstall_cmds | \
18221 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18222 # Double-quote double-evaled strings.
18223 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18224 ;;
18225 *)
18226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18227 ;;
18228 esac
18229 done
18230
18231 case $lt_echo in
18232 *'\$0 --fallback-echo"')
18233 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18234 ;;
18235 esac
18236
18237cfgfile="$ofile"
18238
18239 cat <<__EOF__ >> "$cfgfile"
18240# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18241
18242# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18243
18244# Shell to use when invoking shell scripts.
18245SHELL=$lt_SHELL
18246
18247# Whether or not to build shared libraries.
18248build_libtool_libs=$enable_shared
18249
18250# Whether or not to build static libraries.
18251build_old_libs=$enable_static
18252
18253# Whether or not to add -lc for building shared libraries.
18254build_libtool_need_lc=$archive_cmds_need_lc_RC
18255
18256# Whether or not to disallow shared libs when runtime libs are static
18257allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18258
18259# Whether or not to optimize for fast installation.
18260fast_install=$enable_fast_install
18261
18262# The host system.
18263host_alias=$host_alias
18264host=$host
18265
18266# An echo program that does not interpret backslashes.
18267echo=$lt_echo
18268
18269# The archiver.
18270AR=$lt_AR
18271AR_FLAGS=$lt_AR_FLAGS
18272
18273# A C compiler.
18274LTCC=$lt_LTCC
18275
18276# A language-specific compiler.
18277CC=$lt_compiler_RC
18278
18279# Is the compiler the GNU C compiler?
18280with_gcc=$GCC_RC
18281
18282# An ERE matcher.
18283EGREP=$lt_EGREP
18284
18285# The linker used to build libraries.
18286LD=$lt_LD_RC
18287
18288# Whether we need hard or soft links.
18289LN_S=$lt_LN_S
18290
18291# A BSD-compatible nm program.
18292NM=$lt_NM
18293
18294# A symbol stripping program
18295STRIP=$lt_STRIP
18296
18297# Used to examine libraries when file_magic_cmd begins "file"
18298MAGIC_CMD=$MAGIC_CMD
18299
18300# Used on cygwin: DLL creation program.
18301DLLTOOL="$DLLTOOL"
18302
18303# Used on cygwin: object dumper.
18304OBJDUMP="$OBJDUMP"
18305
18306# Used on cygwin: assembler.
18307AS="$AS"
18308
18309# The name of the directory that contains temporary libtool files.
18310objdir=$objdir
18311
18312# How to create reloadable object files.
18313reload_flag=$lt_reload_flag
18314reload_cmds=$lt_reload_cmds
18315
18316# How to pass a linker flag through the compiler.
18317wl=$lt_lt_prog_compiler_wl_RC
18318
18319# Object file suffix (normally "o").
18320objext="$ac_objext"
18321
18322# Old archive suffix (normally "a").
18323libext="$libext"
18324
18325# Shared library suffix (normally ".so").
18326shrext_cmds='$shrext_cmds'
18327
18328# Executable file suffix (normally "").
18329exeext="$exeext"
18330
18331# Additional compiler flags for building library objects.
18332pic_flag=$lt_lt_prog_compiler_pic_RC
18333pic_mode=$pic_mode
18334
18335# What is the maximum length of a command?
18336max_cmd_len=$lt_cv_sys_max_cmd_len
18337
18338# Does compiler simultaneously support -c and -o options?
18339compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18340
18341# Must we lock files when doing compilation ?
18342need_locks=$lt_need_locks
18343
18344# Do we need the lib prefix for modules?
18345need_lib_prefix=$need_lib_prefix
18346
18347# Do we need a version for libraries?
18348need_version=$need_version
18349
18350# Whether dlopen is supported.
18351dlopen_support=$enable_dlopen
18352
18353# Whether dlopen of programs is supported.
18354dlopen_self=$enable_dlopen_self
18355
18356# Whether dlopen of statically linked programs is supported.
18357dlopen_self_static=$enable_dlopen_self_static
18358
18359# Compiler flag to prevent dynamic linking.
18360link_static_flag=$lt_lt_prog_compiler_static_RC
18361
18362# Compiler flag to turn off builtin functions.
18363no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18364
18365# Compiler flag to allow reflexive dlopens.
18366export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18367
18368# Compiler flag to generate shared objects directly from archives.
18369whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18370
18371# Compiler flag to generate thread-safe objects.
18372thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18373
18374# Library versioning type.
18375version_type=$version_type
18376
18377# Format of library name prefix.
18378libname_spec=$lt_libname_spec
18379
18380# List of archive names. First name is the real one, the rest are links.
18381# The last name is the one that the linker finds with -lNAME.
18382library_names_spec=$lt_library_names_spec
18383
18384# The coded name of the library, if different from the real name.
18385soname_spec=$lt_soname_spec
18386
18387# Commands used to build and install an old-style archive.
18388RANLIB=$lt_RANLIB
18389old_archive_cmds=$lt_old_archive_cmds_RC
18390old_postinstall_cmds=$lt_old_postinstall_cmds
18391old_postuninstall_cmds=$lt_old_postuninstall_cmds
18392
18393# Create an old-style archive from a shared archive.
18394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18395
18396# Create a temporary old-style archive to link instead of a shared archive.
18397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18398
18399# Commands used to build and install a shared archive.
18400archive_cmds=$lt_archive_cmds_RC
18401archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18402postinstall_cmds=$lt_postinstall_cmds
18403postuninstall_cmds=$lt_postuninstall_cmds
18404
18405# Commands used to build a loadable module (assumed same as above if empty)
18406module_cmds=$lt_module_cmds_RC
18407module_expsym_cmds=$lt_module_expsym_cmds_RC
18408
18409# Commands to strip libraries.
18410old_striplib=$lt_old_striplib
18411striplib=$lt_striplib
18412
18413# Dependencies to place before the objects being linked to create a
18414# shared library.
18415predep_objects=$lt_predep_objects_RC
18416
18417# Dependencies to place after the objects being linked to create a
18418# shared library.
18419postdep_objects=$lt_postdep_objects_RC
18420
18421# Dependencies to place before the objects being linked to create a
18422# shared library.
18423predeps=$lt_predeps_RC
18424
18425# Dependencies to place after the objects being linked to create a
18426# shared library.
18427postdeps=$lt_postdeps_RC
18428
18429# The library search path used internally by the compiler when linking
18430# a shared library.
18431compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18432
18433# Method to check whether dependent libraries are shared objects.
18434deplibs_check_method=$lt_deplibs_check_method
18435
18436# Command to use when deplibs_check_method == file_magic.
18437file_magic_cmd=$lt_file_magic_cmd
18438
18439# Flag that allows shared libraries with undefined symbols to be built.
18440allow_undefined_flag=$lt_allow_undefined_flag_RC
18441
18442# Flag that forces no undefined symbols.
18443no_undefined_flag=$lt_no_undefined_flag_RC
18444
18445# Commands used to finish a libtool library installation in a directory.
18446finish_cmds=$lt_finish_cmds
18447
18448# Same as above, but a single script fragment to be evaled but not shown.
18449finish_eval=$lt_finish_eval
18450
18451# Take the output of nm and produce a listing of raw symbols and C names.
18452global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18453
18454# Transform the output of nm in a proper C declaration
18455global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18456
18457# Transform the output of nm in a C name address pair
18458global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18459
18460# This is the shared library runtime path variable.
18461runpath_var=$runpath_var
18462
18463# This is the shared library path variable.
18464shlibpath_var=$shlibpath_var
18465
18466# Is shlibpath searched before the hard-coded library search path?
18467shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18468
18469# How to hardcode a shared library path into an executable.
18470hardcode_action=$hardcode_action_RC
18471
18472# Whether we should hardcode library paths into libraries.
18473hardcode_into_libs=$hardcode_into_libs
18474
18475# Flag to hardcode \$libdir into a binary during linking.
18476# This must work even if \$libdir does not exist.
18477hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18478
18479# If ld is used when linking, flag to hardcode \$libdir into
18480# a binary during linking. This must work even if \$libdir does
18481# not exist.
18482hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18483
18484# Whether we need a single -rpath flag with a separated argument.
18485hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18486
18487# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18488# resulting binary.
18489hardcode_direct=$hardcode_direct_RC
18490
18491# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18492# resulting binary.
18493hardcode_minus_L=$hardcode_minus_L_RC
18494
18495# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18496# the resulting binary.
18497hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18498
18499# Set to yes if building a shared library automatically hardcodes DIR into the library
18500# and all subsequent libraries and executables linked against it.
18501hardcode_automatic=$hardcode_automatic_RC
18502
18503# Variables whose values should be saved in libtool wrapper scripts and
18504# restored at relink time.
18505variables_saved_for_relink="$variables_saved_for_relink"
18506
18507# Whether libtool must link a program against all its dependency libraries.
18508link_all_deplibs=$link_all_deplibs_RC
18509
18510# Compile-time system search path for libraries
18511sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18512
18513# Run-time system search path for libraries
18514sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18515
18516# Fix the shell variable \$srcfile for the compiler.
18517fix_srcfile_path="$fix_srcfile_path_RC"
18518
18519# Set to yes if exported symbols are required.
18520always_export_symbols=$always_export_symbols_RC
18521
18522# The commands to list exported symbols.
18523export_symbols_cmds=$lt_export_symbols_cmds_RC
18524
18525# The commands to extract the exported symbol list from a shared archive.
18526extract_expsyms_cmds=$lt_extract_expsyms_cmds
18527
18528# Symbols that should not be listed in the preloaded symbols.
18529exclude_expsyms=$lt_exclude_expsyms_RC
18530
18531# Symbols that must always be exported.
18532include_expsyms=$lt_include_expsyms_RC
18533
18534# ### END LIBTOOL TAG CONFIG: $tagname
18535
18536__EOF__
18537
18538
18539else
18540 # If there is no Makefile yet, we rely on a make rule to execute
18541 # `config.status --recheck' to rerun these tests and create the
18542 # libtool script then.
18543 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18544 if test -f "$ltmain_in"; then
18545 test -f Makefile && make "$ltmain"
18546 fi
18547fi
18548
18549
18550ac_ext=c
18551ac_cpp='$CPP $CPPFLAGS'
18552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554ac_compiler_gnu=$ac_cv_c_compiler_gnu
18555
18556CC="$lt_save_CC"
18557
18558 ;;
18559
18560 *)
18561 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18562echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18563 { (exit 1); exit 1; }; }
18564 ;;
18565 esac
18566
18567 # Append the new tag name to the list of available tags.
18568 if test -n "$tagname" ; then
18569 available_tags="$available_tags $tagname"
18570 fi
18571 fi
18572 done
18573 IFS="$lt_save_ifs"
18574
18575 # Now substitute the updated list of available tags.
18576 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18577 mv "${ofile}T" "$ofile"
18578 chmod +x "$ofile"
18579 else
18580 rm -f "${ofile}T"
18581 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18582echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18583 { (exit 1); exit 1; }; }
18584 fi
18585fi
18586
18587
18588
18589# This can be used to rebuild libtool when needed
18590LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18591
18592# Always use our own libtool.
18593LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18594
18595# Prevent multiple expansion
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18617echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18618set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18619if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18620 echo $ECHO_N "(cached) $ECHO_C" >&6
18621else
18622 cat >conftest.make <<\_ACEOF
18623all:
18624 @echo 'ac_maketemp="$(MAKE)"'
18625_ACEOF
18626# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18627eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18628if test -n "$ac_maketemp"; then
18629 eval ac_cv_prog_make_${ac_make}_set=yes
18630else
18631 eval ac_cv_prog_make_${ac_make}_set=no
18632fi
18633rm -f conftest.make
18634fi
18635if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18636 echo "$as_me:$LINENO: result: yes" >&5
18637echo "${ECHO_T}yes" >&6
18638 SET_MAKE=
18639else
18640 echo "$as_me:$LINENO: result: no" >&5
18641echo "${ECHO_T}no" >&6
18642 SET_MAKE="MAKE=${MAKE-make}"
18643fi
18644
18645
18646if test "$athena" = true; then
18647 enable_athena=yes
18648 prefix=/afs/.athena.mit.edu/system/moira
18649 bindir=$prefix/arch/$ATHENA_SYS/bin
18650 libdir=$prefix/arch/$ATHENA_SYS/lib
18651 sbindir=$bindir
18652
18653
18654 case $CPPFLAGS in
18655 *-I/usr/athena/include*) ;;
18656 *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
18657 esac
18658
18659
18660 case $PRO_C_INCLUDES in
18661 *INCLUDE=/usr/athena/include*) ;;
18662 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
18663 esac
18664
18665
18666
18667 case $LIBPATH in
18668 *-L/usr/athena/lib*) ;;
18669 *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
18670 esac
18671
18672fi
18673
18674# We currently just don't support changing this
18675mrbindir=/moira/bin
18676
18677
18678# Athena-local policy decisions
18679echo "$as_me:$LINENO: checking for Athena" >&5
18680echo $ECHO_N "checking for Athena... $ECHO_C" >&6
18681# Check whether --enable-athena or --disable-athena was given.
18682if test "${enable_athena+set}" = set; then
18683 enableval="$enable_athena"
18684
18685else
18686 if test "$athena" = true; then
18687 enableval=yes
18688 else
18689 enableval=no
18690 fi
18691fi;
18692echo "$as_me:$LINENO: result: $enableval" >&5
18693echo "${ECHO_T}$enableval" >&6
18694if test "$enableval" = yes; then
18695
18696 cat >>confdefs.h <<\_ACEOF
18697#define ATHENA 1
18698_ACEOF
18699
18700
18701 case $PRO_C_DEFS in
18702 *DEFINE=ATHENA*) ;;
18703 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
18704 esac
18705
18706
18707fi
18708
18709# Networking libraries
18710{ echo "$as_me:$LINENO: checking network libraries......" >&5
18711echo "$as_me: checking network libraries......" >&6;}
18712echo "$as_me:$LINENO: checking for gethostbyname" >&5
18713echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18714if test "${ac_cv_func_gethostbyname+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717 cat >conftest.$ac_ext <<_ACEOF
18718/* confdefs.h. */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h. */
18723/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18725#define gethostbyname innocuous_gethostbyname
18726
18727/* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char gethostbyname (); below.
18729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18730 <limits.h> exists even on freestanding compilers. */
18731
18732#ifdef __STDC__
18733# include <limits.h>
18734#else
18735# include <assert.h>
18736#endif
18737
18738#undef gethostbyname
18739
18740/* Override any gcc2 internal prototype to avoid an error. */
18741#ifdef __cplusplus
18742extern "C"
18743{
18744#endif
18745/* We use char because int might match the return type of a gcc2
18746 builtin and then its argument prototype would still apply. */
18747char gethostbyname ();
18748/* The GNU C library defines this for functions which it implements
18749 to always fail with ENOSYS. Some functions are actually named
18750 something starting with __ and the normal name is an alias. */
18751#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18752choke me
18753#else
18754char (*f) () = gethostbyname;
18755#endif
18756#ifdef __cplusplus
18757}
18758#endif
18759
18760int
18761main ()
18762{
18763return f != gethostbyname;
18764 ;
18765 return 0;
00274452 18766}
18767_ACEOF
18768rm -f conftest.$ac_objext conftest$ac_exeext
18769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18770 (eval $ac_link) 2>conftest.er1
18771 ac_status=$?
18772 grep -v '^ *+' conftest.er1 >conftest.err
18773 rm -f conftest.er1
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try='test -z "$ac_c_werror_flag"
18778 || test ! -s conftest.err'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest$ac_exeext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
a816420b 18790 ac_cv_func_gethostbyname=yes
00274452 18791else
18792 echo "$as_me: failed program was:" >&5
18793sed 's/^/| /' conftest.$ac_ext >&5
a96aec98 18794
a816420b 18795ac_cv_func_gethostbyname=no
a96aec98 18796fi
00274452 18797rm -f conftest.err conftest.$ac_objext \
18798 conftest$ac_exeext conftest.$ac_ext
a96aec98 18799fi
a816420b 18800echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18801echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18802if test $ac_cv_func_gethostbyname = yes; then
18803 :
cb974713 18804else
cb974713 18805
a816420b 18806echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18807echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18808if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810else
18811 ac_check_lib_save_LIBS=$LIBS
18812LIBS="-lnsl $LIBS"
18813cat >conftest.$ac_ext <<_ACEOF
18814/* confdefs.h. */
18815_ACEOF
18816cat confdefs.h >>conftest.$ac_ext
18817cat >>conftest.$ac_ext <<_ACEOF
18818/* end confdefs.h. */
cb974713 18819
a816420b 18820/* Override any gcc2 internal prototype to avoid an error. */
18821#ifdef __cplusplus
18822extern "C"
18823#endif
18824/* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826char gethostbyname ();
18827int
18828main ()
18829{
18830gethostbyname ();
18831 ;
18832 return 0;
18833}
18834_ACEOF
18835rm -f conftest.$ac_objext conftest$ac_exeext
18836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18837 (eval $ac_link) 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag"
18845 || test ! -s conftest.err'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
18851 { ac_try='test -s conftest$ac_exeext'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_lib_nsl_gethostbyname=yes
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
cb974713 18861
a816420b 18862ac_cv_lib_nsl_gethostbyname=no
18863fi
18864rm -f conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext conftest.$ac_ext
18866LIBS=$ac_check_lib_save_LIBS
18867fi
18868echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18869echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18870if test $ac_cv_lib_nsl_gethostbyname = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872#define HAVE_LIBNSL 1
18873_ACEOF
cb974713 18874
a816420b 18875 LIBS="-lnsl $LIBS"
cb974713 18876
a816420b 18877else
cb974713 18878
a816420b 18879echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
18880echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
18881if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18883else
18884 ac_check_lib_save_LIBS=$LIBS
18885LIBS="-lresolv $LIBS"
18886cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
cb974713 18892
a816420b 18893/* Override any gcc2 internal prototype to avoid an error. */
18894#ifdef __cplusplus
18895extern "C"
18896#endif
18897/* We use char because int might match the return type of a gcc2
18898 builtin and then its argument prototype would still apply. */
18899char gethostbyname ();
18900int
18901main ()
18902{
18903gethostbyname ();
18904 ;
18905 return 0;
18906}
18907_ACEOF
18908rm -f conftest.$ac_objext conftest$ac_exeext
18909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910 (eval $ac_link) 2>conftest.er1
18911 ac_status=$?
18912 grep -v '^ *+' conftest.er1 >conftest.err
18913 rm -f conftest.er1
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag"
18918 || test ! -s conftest.err'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ac_cv_lib_resolv_gethostbyname=yes
18931else
18932 echo "$as_me: failed program was:" >&5
18933sed 's/^/| /' conftest.$ac_ext >&5
cb974713 18934
a816420b 18935ac_cv_lib_resolv_gethostbyname=no
18936fi
18937rm -f conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18939LIBS=$ac_check_lib_save_LIBS
18940fi
18941echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
18942echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
18943if test $ac_cv_lib_resolv_gethostbyname = yes; then
18944 cat >>confdefs.h <<_ACEOF
18945#define HAVE_LIBRESOLV 1
18946_ACEOF
cb974713 18947
a816420b 18948 LIBS="-lresolv $LIBS"
cb974713 18949
a816420b 18950fi
cb974713 18951
a816420b 18952fi
cb974713 18953
a816420b 18954fi
cb974713 18955
a816420b 18956echo "$as_me:$LINENO: checking for socket" >&5
18957echo $ECHO_N "checking for socket... $ECHO_C" >&6
18958if test "${ac_cv_func_socket+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18960else
18961 cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967/* Define socket to an innocuous variant, in case <limits.h> declares socket.
18968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18969#define socket innocuous_socket
cb974713 18970
a816420b 18971/* System header to define __stub macros and hopefully few prototypes,
18972 which can conflict with char socket (); below.
18973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18974 <limits.h> exists even on freestanding compilers. */
cb974713 18975
a816420b 18976#ifdef __STDC__
18977# include <limits.h>
18978#else
18979# include <assert.h>
18980#endif
cb974713 18981
a816420b 18982#undef socket
cb974713 18983
a816420b 18984/* Override any gcc2 internal prototype to avoid an error. */
18985#ifdef __cplusplus
18986extern "C"
18987{
18988#endif
18989/* We use char because int might match the return type of a gcc2
18990 builtin and then its argument prototype would still apply. */
18991char socket ();
18992/* The GNU C library defines this for functions which it implements
18993 to always fail with ENOSYS. Some functions are actually named
18994 something starting with __ and the normal name is an alias. */
18995#if defined (__stub_socket) || defined (__stub___socket)
18996choke me
18997#else
18998char (*f) () = socket;
18999#endif
19000#ifdef __cplusplus
19001}
19002#endif
cb974713 19003
a816420b 19004int
19005main ()
19006{
19007return f != socket;
19008 ;
19009 return 0;
19010}
19011_ACEOF
19012rm -f conftest.$ac_objext conftest$ac_exeext
19013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014 (eval $ac_link) 2>conftest.er1
19015 ac_status=$?
19016 grep -v '^ *+' conftest.er1 >conftest.err
19017 rm -f conftest.er1
19018 cat conftest.err >&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
19021 { ac_try='test -z "$ac_c_werror_flag"
19022 || test ! -s conftest.err'
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_func_socket=yes
19035else
19036 echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
cb974713 19038
a816420b 19039ac_cv_func_socket=no
19040fi
19041rm -f conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043fi
19044echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19045echo "${ECHO_T}$ac_cv_func_socket" >&6
19046if test $ac_cv_func_socket = yes; then
19047 :
19048else
cb974713 19049
a816420b 19050echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19051echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
19052if test "${ac_cv_lib_socket_socket+set}" = set; then
00274452 19053 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 19054else
00274452 19055 ac_check_lib_save_LIBS=$LIBS
a816420b 19056LIBS="-lsocket $LIBS"
00274452 19057cat >conftest.$ac_ext <<_ACEOF
19058/* confdefs.h. */
19059_ACEOF
19060cat confdefs.h >>conftest.$ac_ext
19061cat >>conftest.$ac_ext <<_ACEOF
19062/* end confdefs.h. */
19063
ea0caf4a 19064/* Override any gcc2 internal prototype to avoid an error. */
00274452 19065#ifdef __cplusplus
19066extern "C"
19067#endif
ea0caf4a 19068/* We use char because int might match the return type of a gcc2
00274452 19069 builtin and then its argument prototype would still apply. */
a816420b 19070char socket ();
00274452 19071int
19072main ()
19073{
a816420b 19074socket ();
00274452 19075 ;
19076 return 0;
19077}
19078_ACEOF
19079rm -f conftest.$ac_objext conftest$ac_exeext
19080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest$ac_exeext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
a816420b 19101 ac_cv_lib_socket_socket=yes
00274452 19102else
19103 echo "$as_me: failed program was:" >&5
19104sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 19105
a816420b 19106ac_cv_lib_socket_socket=no
00274452 19107fi
19108rm -f conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19110LIBS=$ac_check_lib_save_LIBS
ea0caf4a 19111fi
a816420b 19112echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19113echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
19114if test $ac_cv_lib_socket_socket = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116#define HAVE_LIBSOCKET 1
19117_ACEOF
19118
19119 LIBS="-lsocket $LIBS"
19120
ea0caf4a 19121else
a816420b 19122 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19123echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
19124if test "${ac_cv_lib_socket_socket+set}" = set; then
00274452 19125 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 19126else
00274452 19127 ac_check_lib_save_LIBS=$LIBS
a816420b 19128LIBS="-lsocket -lnsl $LIBS"
00274452 19129cat >conftest.$ac_ext <<_ACEOF
19130/* confdefs.h. */
19131_ACEOF
19132cat confdefs.h >>conftest.$ac_ext
19133cat >>conftest.$ac_ext <<_ACEOF
19134/* end confdefs.h. */
19135
ea0caf4a 19136/* Override any gcc2 internal prototype to avoid an error. */
00274452 19137#ifdef __cplusplus
19138extern "C"
19139#endif
ea0caf4a 19140/* We use char because int might match the return type of a gcc2
00274452 19141 builtin and then its argument prototype would still apply. */
a816420b 19142char socket ();
00274452 19143int
19144main ()
19145{
a816420b 19146socket ();
00274452 19147 ;
19148 return 0;
19149}
19150_ACEOF
19151rm -f conftest.$ac_objext conftest$ac_exeext
19152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19153 (eval $ac_link) 2>conftest.er1
19154 ac_status=$?
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } &&
19160 { ac_try='test -z "$ac_c_werror_flag"
19161 || test ! -s conftest.err'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest$ac_exeext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
a816420b 19173 ac_cv_lib_socket_socket=yes
00274452 19174else
19175 echo "$as_me: failed program was:" >&5
19176sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 19177
a816420b 19178ac_cv_lib_socket_socket=no
00274452 19179fi
19180rm -f conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182LIBS=$ac_check_lib_save_LIBS
ea0caf4a 19183fi
a816420b 19184echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19185echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
19186if test $ac_cv_lib_socket_socket = yes; then
19187 LIBS="-lsocket -lnsl $LIBS"
ea0caf4a 19188else
a816420b 19189 :
ea0caf4a 19190fi
19191
19192fi
19193
cb974713 19194fi
ea0caf4a 19195
00274452 19196
a816420b 19197# com_err (required, but can be built)
19198echo "$as_me:$LINENO: checking for com_err" >&5
19199echo $ECHO_N "checking for com_err... $ECHO_C" >&6
19200
19201# Check whether --with-com_err or --without-com_err was given.
19202if test "${with_com_err+set}" = set; then
19203 withval="$with_com_err"
19204 echo "$as_me:$LINENO: result: $withval" >&5
19205echo "${ECHO_T}$withval" >&6
19206 if test $withval = "no"; then
19207 { { echo "$as_me:$LINENO: error: com_err is required for Moira" >&5
19208echo "$as_me: error: com_err is required for Moira" >&2;}
19209 { (exit 1); exit 1; }; }
19210 fi
19211 if test $withval != "yes"; then
cb974713 19212
19213
19214 case $CPPFLAGS in
a816420b 19215 *-I$withval/include*) ;;
19216 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
cb974713 19217 esac
19218
19219
19220 case $PRO_C_INCLUDES in
a816420b 19221 *INCLUDE=$withval/include*) ;;
19222 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
cb974713 19223 esac
19224
19225
19226
19227 case $LIBPATH in
a816420b 19228 *-L$withval/lib*) ;;
19229 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
cb974713 19230 esac
19231
a816420b 19232 fi
19233 COMPILE_ET=compile_et
ea0caf4a 19234else
a816420b 19235 echo "$as_me:$LINENO: result: util/et" >&5
19236echo "${ECHO_T}util/et" >&6
00274452 19237
19238
ea0caf4a 19239 case $CPPFLAGS in
a816420b 19240 *-I`pwd`/util/et*) ;;
19241 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
ea0caf4a 19242 esac
19243
00274452 19244
ea0caf4a 19245 case $PRO_C_INCLUDES in
a816420b 19246 *INCLUDE=`pwd`/util/et*) ;;
19247 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
ea0caf4a 19248 esac
19249
19250
00274452 19251
ea0caf4a 19252 case $LIBPATH in
a816420b 19253 *-L`pwd`/util/et*) ;;
19254 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
ea0caf4a 19255 esac
19256
a816420b 19257 COMPILE_ET=`pwd`/util/et/compile_et
00274452 19258
ea0caf4a 19259
a816420b 19260subdirs="$subdirs util/et"
ea0caf4a 19261
a816420b 19262fi;
ea0caf4a 19263
00274452 19264
00274452 19265
a816420b 19266echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
19267echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
19268if test "${ac_cv_lib_k5crypto_main+set}" = set; then
00274452 19269 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 19270else
00274452 19271 ac_check_lib_save_LIBS=$LIBS
a816420b 19272LIBS="-lk5crypto $LIBS"
00274452 19273cat >conftest.$ac_ext <<_ACEOF
19274/* confdefs.h. */
19275_ACEOF
19276cat confdefs.h >>conftest.$ac_ext
19277cat >>conftest.$ac_ext <<_ACEOF
19278/* end confdefs.h. */
19279
a816420b 19280
00274452 19281int
19282main ()
19283{
a816420b 19284main ();
00274452 19285 ;
19286 return 0;
19287}
19288_ACEOF
19289rm -f conftest.$ac_objext conftest$ac_exeext
19290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291 (eval $ac_link) 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
19298 { ac_try='test -z "$ac_c_werror_flag"
19299 || test ! -s conftest.err'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest$ac_exeext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
a816420b 19311 ac_cv_lib_k5crypto_main=yes
00274452 19312else
19313 echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 19315
a816420b 19316ac_cv_lib_k5crypto_main=no
ea0caf4a 19317fi
00274452 19318rm -f conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19320LIBS=$ac_check_lib_save_LIBS
19321fi
a816420b 19322echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
19323echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
19324if test $ac_cv_lib_k5crypto_main = yes; then
19325 crypto="k5crypto"
19326else
19327 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
19328echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
19329if test "${ac_cv_lib_crypto_main+set}" = set; then
00274452 19330 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 19331else
00274452 19332 ac_check_lib_save_LIBS=$LIBS
a816420b 19333LIBS="-lcrypto $LIBS"
00274452 19334cat >conftest.$ac_ext <<_ACEOF
19335/* confdefs.h. */
19336_ACEOF
19337cat confdefs.h >>conftest.$ac_ext
19338cat >>conftest.$ac_ext <<_ACEOF
19339/* end confdefs.h. */
19340
a816420b 19341
00274452 19342int
19343main ()
19344{
a816420b 19345main ();
00274452 19346 ;
19347 return 0;
19348}
19349_ACEOF
19350rm -f conftest.$ac_objext conftest$ac_exeext
19351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352 (eval $ac_link) 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag"
19360 || test ! -s conftest.err'
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest$ac_exeext'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
a816420b 19372 ac_cv_lib_crypto_main=yes
00274452 19373else
19374 echo "$as_me: failed program was:" >&5
19375sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 19376
a816420b 19377ac_cv_lib_crypto_main=no
00274452 19378fi
19379rm -f conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19381LIBS=$ac_check_lib_save_LIBS
ea0caf4a 19382fi
a816420b 19383echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
19384echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
19385if test $ac_cv_lib_crypto_main = yes; then
19386 crypto="crypto"
ea0caf4a 19387fi
19388
a816420b 19389fi
00274452 19390
00274452 19391
a816420b 19392# Kerberos (Kerberos 4 optional, Kerberos 5 required)
19393echo "$as_me:$LINENO: checking for Kerberos 4" >&5
19394echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
ea0caf4a 19395
a816420b 19396# Check whether --with-krb4 or --without-krb4 was given.
19397if test "${with_krb4+set}" = set; then
19398 withval="$with_krb4"
19399 krb4="$withval"
19400else
19401 krb4=no
19402fi;
19403echo "$as_me:$LINENO: result: $krb4" >&5
19404echo "${ECHO_T}$krb4" >&6
19405if test "$krb4" != no; then
19406 if test "$krb4" != yes; then
19407
19408
19409 case $CPPFLAGS in
19410 *-I$krb4/include*) ;;
19411 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
ea0caf4a 19412 esac
19413
19414
a816420b 19415 case $PRO_C_INCLUDES in
19416 *INCLUDE=$krb4/include*) ;;
19417 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
19418 esac
ea0caf4a 19419
00274452 19420
a816420b 19421 if test -d "$krb4/include/kerberosIV"; then
00274452 19422
19423
ea0caf4a 19424 case $CPPFLAGS in
a816420b 19425 *-I$krb4/include/kerberosIV*) ;;
19426 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
ea0caf4a 19427 esac
19428
00274452 19429
ea0caf4a 19430 case $PRO_C_INCLUDES in
a816420b 19431 *INCLUDE=$krb4/include/kerberosIV*) ;;
19432 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
ea0caf4a 19433 esac
19434
19435
a816420b 19436 fi
00274452 19437
ea0caf4a 19438 case $LIBPATH in
a816420b 19439 *-L$krb4/lib*) ;;
19440 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
19441 esac
19442
19443 elif test -d /usr/include/kerberosIV; then
19444
19445
19446 case $CPPFLAGS in
19447 *-I/usr/include/kerberosIV*) ;;
19448 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
19449 esac
19450
19451
19452 case $PRO_C_INCLUDES in
19453 *INCLUDE=/usr/include/kerberosIV*) ;;
19454 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
19455 esac
19456
19457
19458 fi
19459
19460 cat >>confdefs.h <<\_ACEOF
19461#define HAVE_KRB4 1
19462_ACEOF
19463
19464
19465 case $PRO_C_DEFS in
19466 *DEFINE=HAVE_KRB4*) ;;
19467 *) PRO_C_DEFS=DEFINE=HAVE_KRB4\ $PRO_C_DEFS ;;
ea0caf4a 19468 esac
19469
a816420b 19470
19471 echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
19472echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6
19473if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476 ac_check_lib_save_LIBS=$LIBS
19477LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv $LIBS"
19478cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484
19485/* Override any gcc2 internal prototype to avoid an error. */
19486#ifdef __cplusplus
19487extern "C"
19488#endif
19489/* We use char because int might match the return type of a gcc2
19490 builtin and then its argument prototype would still apply. */
19491char krb_rd_req ();
19492int
19493main ()
19494{
19495krb_rd_req ();
19496 ;
19497 return 0;
19498}
19499_ACEOF
19500rm -f conftest.$ac_objext conftest$ac_exeext
19501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19502 (eval $ac_link) 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } &&
19509 { ac_try='test -z "$ac_c_werror_flag"
19510 || test ! -s conftest.err'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest$ac_exeext'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 ac_cv_lib_krb4_krb_rd_req=yes
19523else
19524 echo "$as_me: failed program was:" >&5
19525sed 's/^/| /' conftest.$ac_ext >&5
19526
19527ac_cv_lib_krb4_krb_rd_req=no
19528fi
19529rm -f conftest.err conftest.$ac_objext \
19530 conftest$ac_exeext conftest.$ac_ext
19531LIBS=$ac_check_lib_save_LIBS
19532fi
19533echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
19534echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6
19535if test $ac_cv_lib_krb4_krb_rd_req = yes; then
19536 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv"
19537else
19538 echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
19539echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6
19540if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
00274452 19541 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 19542else
00274452 19543 ac_check_lib_save_LIBS=$LIBS
a816420b 19544LIBS="-lkrb $LIBPATH -ldes $LIBS"
00274452 19545cat >conftest.$ac_ext <<_ACEOF
19546/* confdefs.h. */
19547_ACEOF
19548cat confdefs.h >>conftest.$ac_ext
19549cat >>conftest.$ac_ext <<_ACEOF
19550/* end confdefs.h. */
19551
ea0caf4a 19552/* Override any gcc2 internal prototype to avoid an error. */
00274452 19553#ifdef __cplusplus
19554extern "C"
19555#endif
ea0caf4a 19556/* We use char because int might match the return type of a gcc2
00274452 19557 builtin and then its argument prototype would still apply. */
a816420b 19558char krb_rd_req ();
00274452 19559int
19560main ()
19561{
a816420b 19562krb_rd_req ();
00274452 19563 ;
19564 return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext conftest$ac_exeext
19568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>conftest.er1
19570 ac_status=$?
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest$ac_exeext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
a816420b 19589 ac_cv_lib_krb_krb_rd_req=yes
00274452 19590else
19591 echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 19593
a816420b 19594ac_cv_lib_krb_krb_rd_req=no
ea0caf4a 19595fi
00274452 19596rm -f conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598LIBS=$ac_check_lib_save_LIBS
19599fi
a816420b 19600echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
19601echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6
19602if test $ac_cv_lib_krb_krb_rd_req = yes; then
19603 KRB4_LIBS="-lkrb -ldes"
ea0caf4a 19604else
a816420b 19605 { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
19606echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
00274452 19607 { (exit 1); exit 1; }; }
ea0caf4a 19608fi
19609
a816420b 19610fi
ea0caf4a 19611
19612fi
19613
a816420b 19614echo "$as_me:$LINENO: checking for Kerberos 5" >&5
19615echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
00274452 19616
a816420b 19617# Check whether --with-krb5 or --without-krb5 was given.
19618if test "${with_krb5+set}" = set; then
19619 withval="$with_krb5"
19620 krb5="$withval"
33567bea 19621else
a816420b 19622 krb5=no
00274452 19623fi;
a816420b 19624echo "$as_me:$LINENO: result: $krb5" >&5
19625echo "${ECHO_T}$krb5" >&6
19626if test "$krb5" != no; then
19627 REG_SVR_DEFS=-DKRB5
19628 if test "$krb5" != yes; then
19629 REG_SVR_INCLUDES=-I$krb5/include
19630 REG_SVR_LIBS=-L$krb5/lib
00274452 19631
33567bea 19632
a816420b 19633 case $CPPFLAGS in
19634 *-I$krb5/include*) ;;
19635 *) CPPFLAGS=-I$krb5/include\ $CPPFLAGS ;;
33567bea 19636 esac
19637
19638
a816420b 19639 case $PRO_C_INCLUDES in
19640 *INCLUDE=$krb5/include*) ;;
19641 *) PRO_C_INCLUDES=INCLUDE=$krb5/include\ $PRO_C_INCLUDES ;;
cd357ef5 19642 esac
00274452 19643
00274452 19644
3595c6c0 19645
a816420b 19646 case $LIBPATH in
19647 *-L$krb5/lib*) ;;
19648 *) LIBPATH=-L$krb5/lib\ $LIBPATH ;;
3595c6c0 19649 esac
19650
9b1f5e48 19651 fi
00274452 19652
19653 cat >>confdefs.h <<\_ACEOF
a816420b 19654#define HAVE_KRB5 1
00274452 19655_ACEOF
19656
9b1f5e48 19657
9b1f5e48 19658 case $PRO_C_DEFS in
a816420b 19659 *DEFINE=HAVE_KRB5*) ;;
19660 *) PRO_C_DEFS=DEFINE=HAVE_KRB5\ $PRO_C_DEFS ;;
9b1f5e48 19661 esac
19662
19663
a816420b 19664 KRB5_LIBS="-lkrb5 -l${crypto} -lcom_err -lresolv"
19665 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -lkrb5 -l${crypto} -lresolv"
19666else
19667 REG_SVR_DEFS=-DKRB4
19668 REG_SVR_LIBS=-lkadm
9b1f5e48 19669fi
19670
19671
19672
19673
a816420b 19674# Hesiod support
19675echo "$as_me:$LINENO: checking for Hesiod" >&5
19676echo $ECHO_N "checking for Hesiod... $ECHO_C" >&6
00274452 19677
a816420b 19678# Check whether --with-hesiod or --without-hesiod was given.
19679if test "${with_hesiod+set}" = set; then
19680 withval="$with_hesiod"
19681 hesiod="$withval"
ea0caf4a 19682else
a816420b 19683 hesiod=no
00274452 19684fi;
a816420b 19685echo "$as_me:$LINENO: result: $hesiod" >&5
19686echo "${ECHO_T}$hesiod" >&6
19687if test "$hesiod" != no; then
19688 if test "$hesiod" != yes; then
19689
19690
19691 case $CPPFLAGS in
19692 *-I$hesiod/include*) ;;
19693 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
19694 esac
19695
19696
19697 case $PRO_C_INCLUDES in
19698 *INCLUDE=$hesiod/include*) ;;
19699 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
19700 esac
19701
19702
19703
19704 case $LIBPATH in
19705 *-L$hesiod/lib*) ;;
19706 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
19707 esac
19708
ea0caf4a 19709 fi
a816420b 19710 echo "$as_me:$LINENO: checking for res_send" >&5
19711echo $ECHO_N "checking for res_send... $ECHO_C" >&6
19712if test "${ac_cv_func_res_send+set}" = set; then
00274452 19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19714else
a816420b 19715 cat >conftest.$ac_ext <<_ACEOF
00274452 19716/* confdefs.h. */
19717_ACEOF
19718cat confdefs.h >>conftest.$ac_ext
19719cat >>conftest.$ac_ext <<_ACEOF
19720/* end confdefs.h. */
a816420b 19721/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19723#define res_send innocuous_res_send
19724
19725/* System header to define __stub macros and hopefully few prototypes,
19726 which can conflict with char res_send (); below.
19727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19728 <limits.h> exists even on freestanding compilers. */
19729
19730#ifdef __STDC__
19731# include <limits.h>
19732#else
19733# include <assert.h>
19734#endif
19735
19736#undef res_send
00274452 19737
ea0caf4a 19738/* Override any gcc2 internal prototype to avoid an error. */
00274452 19739#ifdef __cplusplus
19740extern "C"
a816420b 19741{
00274452 19742#endif
ea0caf4a 19743/* We use char because int might match the return type of a gcc2
00274452 19744 builtin and then its argument prototype would still apply. */
a816420b 19745char res_send ();
19746/* The GNU C library defines this for functions which it implements
19747 to always fail with ENOSYS. Some functions are actually named
19748 something starting with __ and the normal name is an alias. */
19749#if defined (__stub_res_send) || defined (__stub___res_send)
19750choke me
19751#else
19752char (*f) () = res_send;
19753#endif
19754#ifdef __cplusplus
19755}
19756#endif
19757
00274452 19758int
19759main ()
19760{
a816420b 19761return f != res_send;
00274452 19762 ;
19763 return 0;
19764}
19765_ACEOF
19766rm -f conftest.$ac_objext conftest$ac_exeext
19767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19768 (eval $ac_link) 2>conftest.er1
19769 ac_status=$?
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
19775 { ac_try='test -z "$ac_c_werror_flag"
19776 || test ! -s conftest.err'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest$ac_exeext'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
a816420b 19788 ac_cv_func_res_send=yes
00274452 19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 19792
a816420b 19793ac_cv_func_res_send=no
ea0caf4a 19794fi
00274452 19795rm -f conftest.err conftest.$ac_objext \
19796 conftest$ac_exeext conftest.$ac_ext
00274452 19797fi
a816420b 19798echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19799echo "${ECHO_T}$ac_cv_func_res_send" >&6
19800if test $ac_cv_func_res_send = yes; then
ea0caf4a 19801 :
19802else
00274452 19803
a816420b 19804echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19805echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19806if test "${ac_cv_lib_resolv_res_send+set}" = set; then
00274452 19807 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 19808else
00274452 19809 ac_check_lib_save_LIBS=$LIBS
a816420b 19810LIBS="-lresolv $LIBS"
00274452 19811cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
19817
ea0caf4a 19818/* Override any gcc2 internal prototype to avoid an error. */
00274452 19819#ifdef __cplusplus
19820extern "C"
19821#endif
ea0caf4a 19822/* We use char because int might match the return type of a gcc2
00274452 19823 builtin and then its argument prototype would still apply. */
a816420b 19824char res_send ();
00274452 19825int
19826main ()
19827{
a816420b 19828res_send ();
00274452 19829 ;
19830 return 0;
19831}
19832_ACEOF
19833rm -f conftest.$ac_objext conftest$ac_exeext
19834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835 (eval $ac_link) 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest$ac_exeext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
a816420b 19855 ac_cv_lib_resolv_res_send=yes
00274452 19856else
19857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 19859
a816420b 19860ac_cv_lib_resolv_res_send=no
00274452 19861fi
19862rm -f conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19864LIBS=$ac_check_lib_save_LIBS
ea0caf4a 19865fi
a816420b 19866echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19867echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19868if test $ac_cv_lib_resolv_res_send = yes; then
19869 cat >>confdefs.h <<_ACEOF
19870#define HAVE_LIBRESOLV 1
19871_ACEOF
19872
19873 LIBS="-lresolv $LIBS"
19874
19875fi
19876
19877fi
19878
19879 echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
19880echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6
19881if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
00274452 19882 echo $ECHO_N "(cached) $ECHO_C" >&6
ee85084d 19883else
00274452 19884 ac_check_lib_save_LIBS=$LIBS
a816420b 19885LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
00274452 19886cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892
ee85084d 19893/* Override any gcc2 internal prototype to avoid an error. */
00274452 19894#ifdef __cplusplus
19895extern "C"
19896#endif
ee85084d 19897/* We use char because int might match the return type of a gcc2
00274452 19898 builtin and then its argument prototype would still apply. */
a816420b 19899char hes_resolve ();
00274452 19900int
19901main ()
19902{
a816420b 19903hes_resolve ();
00274452 19904 ;
19905 return 0;
19906}
19907_ACEOF
19908rm -f conftest.$ac_objext conftest$ac_exeext
19909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910 (eval $ac_link) 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest$ac_exeext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
a816420b 19930 ac_cv_lib_hesiod_hes_resolve=yes
00274452 19931else
19932 echo "$as_me: failed program was:" >&5
19933sed 's/^/| /' conftest.$ac_ext >&5
ee85084d 19934
a816420b 19935ac_cv_lib_hesiod_hes_resolve=no
00274452 19936fi
19937rm -f conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19939LIBS=$ac_check_lib_save_LIBS
ee85084d 19940fi
a816420b 19941echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
19942echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6
19943if test $ac_cv_lib_hesiod_hes_resolve = yes; then
00274452 19944 :
a816420b 19945else
19946 { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
19947echo "$as_me: error: Hesiod library not found" >&2;}
19948 { (exit 1); exit 1; }; }
ea0caf4a 19949fi
19950
a816420b 19951
19952 cat >>confdefs.h <<\_ACEOF
19953#define HAVE_HESIOD 1
19954_ACEOF
19955
19956
19957 case $PRO_C_DEFS in
19958 *DEFINE=HAVE_HESIOD*) ;;
19959 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
19960 esac
19961
19962
ee85084d 19963fi
19964
a816420b 19965# Zephyr support
19966echo "$as_me:$LINENO: checking for Zephyr" >&5
19967echo $ECHO_N "checking for Zephyr... $ECHO_C" >&6
19968
19969# Check whether --with-zephyr or --without-zephyr was given.
19970if test "${with_zephyr+set}" = set; then
19971 withval="$with_zephyr"
19972 zephyr="$withval"
19973else
19974 zephyr=no
19975fi;
19976echo "$as_me:$LINENO: result: $zephyr" >&5
19977echo "${ECHO_T}$zephyr" >&6
19978if test "$zephyr" != no; then
19979 if test "$zephyr" != yes; then
19980
19981
19982 case $CPPFLAGS in
19983 *-I$zephyr/include*) ;;
19984 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
19985 esac
19986
19987
19988 case $PRO_C_INCLUDES in
19989 *INCLUDE=$zephyr/include*) ;;
19990 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
19991 esac
19992
ea0caf4a 19993
19994
a816420b 19995 case $LIBPATH in
19996 *-L$zephyr/lib*) ;;
19997 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
19998 esac
ea0caf4a 19999
a816420b 20000 fi
20001 echo "$as_me:$LINENO: checking for ZInitialize in -lzephyr" >&5
20002echo $ECHO_N "checking for ZInitialize in -lzephyr... $ECHO_C" >&6
20003if test "${ac_cv_lib_zephyr_ZInitialize+set}" = set; then
00274452 20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006 ac_check_lib_save_LIBS=$LIBS
a816420b 20007LIBS="-lzephyr $LIBPATH $KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
00274452 20008cat >conftest.$ac_ext <<_ACEOF
20009/* confdefs.h. */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
20013/* end confdefs.h. */
20014
a816420b 20015/* Override any gcc2 internal prototype to avoid an error. */
20016#ifdef __cplusplus
20017extern "C"
20018#endif
20019/* We use char because int might match the return type of a gcc2
20020 builtin and then its argument prototype would still apply. */
20021char ZInitialize ();
00274452 20022int
20023main ()
20024{
a816420b 20025ZInitialize ();
00274452 20026 ;
20027 return 0;
20028}
20029_ACEOF
20030rm -f conftest.$ac_objext conftest$ac_exeext
20031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20032 (eval $ac_link) 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest$ac_exeext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
a816420b 20052 ac_cv_lib_zephyr_ZInitialize=yes
00274452 20053else
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 20056
a816420b 20057ac_cv_lib_zephyr_ZInitialize=no
20058fi
20059rm -f conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext conftest.$ac_ext
20061LIBS=$ac_check_lib_save_LIBS
20062fi
20063echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitialize" >&5
20064echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitialize" >&6
20065if test $ac_cv_lib_zephyr_ZInitialize = yes; then
20066 :
20067else
20068 { { echo "$as_me:$LINENO: error: Zephyr library not found" >&5
20069echo "$as_me: error: Zephyr library not found" >&2;}
20070 { (exit 1); exit 1; }; }
20071fi
20072
20073
20074 cat >>confdefs.h <<\_ACEOF
20075#define HAVE_ZEPHYR 1
20076_ACEOF
20077
20078
20079 case $PRO_C_DEFS in
20080 *DEFINE=HAVE_ZEPHYR*) ;;
20081 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
20082 esac
20083
20084
20085fi
20086
20087# RSAREF support (default: build util/rsaref if present)
20088echo "$as_me:$LINENO: checking for RSAREF" >&5
20089echo $ECHO_N "checking for RSAREF... $ECHO_C" >&6
20090
20091# Check whether --with-rsaref or --without-rsaref was given.
20092if test "${with_rsaref+set}" = set; then
20093 withval="$with_rsaref"
20094 rsaref="$withval"
20095 RSAREF_CPPFLAGS="-I$rsaref/include"
20096 RSAREF_LIBS="$rsaref/lib/rsaref.a"
20097else
20098 RSAREF_SUBDIRS=reg_svr
20099 if test -d $srcdir/util/rsaref; then
20100 rsaref=$srcdir/util/rsaref
20101 RSAREF_SUBDIRS="util/rsaref reg_svr"
20102 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
20103 # autoconf can't deal with creating util/rsaref if util doesn't exist
20104 if test ! -d util; then
20105 mkdir util
20106 fi
20107 RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
20108 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
20109 RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
20110 else
20111 rsaref=no
20112 fi
20113fi;
20114echo "$as_me:$LINENO: result: $rsaref" >&5
20115echo "${ECHO_T}$rsaref" >&6
20116if test "$rsaref" != no; then
20117
20118 cat >>confdefs.h <<\_ACEOF
20119#define HAVE_RSAREF 1
20120_ACEOF
20121
20122
20123 case $PRO_C_DEFS in
20124 *DEFINE=HAVE_RSAREF*) ;;
20125 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
20126 esac
20127
20128
20129fi
20130
20131
20132
20133
20134
20135# Oracle (default: yes, if $ORACLE_HOME is set)
20136echo "$as_me:$LINENO: checking for Oracle" >&5
20137echo $ECHO_N "checking for Oracle... $ECHO_C" >&6
20138
20139# Check whether --with-oracle or --without-oracle was given.
20140if test "${with_oracle+set}" = set; then
20141 withval="$with_oracle"
20142 oracle="$withval"
20143else
20144 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
20145 oracle=$ORACLE_HOME
20146 else
20147 oracle=no
20148 fi
20149fi;
20150echo "$as_me:$LINENO: result: $oracle" >&5
20151echo "${ECHO_T}$oracle" >&6
20152if test "$oracle" != no; then
20153 echo "$as_me:$LINENO: checking Pro*C version" >&5
20154echo $ECHO_N "checking Pro*C version... $ECHO_C" >&6
20155 ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
20156 echo "$as_me:$LINENO: result: $release" >&5
20157echo "${ECHO_T}$release" >&6
20158 case $release in
20159 2.0.6.0.0)
20160 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
20161 ;;
20162 2.2.4.0.0)
20163 SQL_LIBS="-L$oracle/lib -lclntsh -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 `cat $oracle/rdbms/lib/sysliblist` -lm -lthread"
20164 ;;
20165 8.1.7.4.0)
20166 SQL_LIBS="-L$oracle/lib -lclntsh `cat $oracle/lib/sysliblist` -R$oracle/lib -laio -lm -lthread"
20167 ;;
20168 10.2.0.2.0)
20169 SQL_LIBS="-L$oracle/lib32 -lclntsh `cat $oracle/lib32/ldflags` `cat $oracle/lib32/sysliblist` -R$oracle/lib32 -laio -lposix4 -lm -lthread"
20170 ;;
20171 *)
20172 { { echo "$as_me:$LINENO: error: Unsupported Oracle release" >&5
20173echo "$as_me: error: Unsupported Oracle release" >&2;}
20174 { (exit 1); exit 1; }; }
20175 ;;
20176 esac
20177 SVRSUBDIRS='$(SVRDIRS)'
20178 SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile incremental/mailman/Makefile reg_svr/Makefile regtape/Makefile"
20179 PRO_C=$oracle/bin/proc
20180 PRO_C_OPTS=CODE=ANSI_C
20181 PRO_C_DEFS="DEFINE=_PROC_ DEFINE=__sparc $PRO_C_DEFS"
20182fi
20183
20184
20185
20186
20187
20188
20189
20190# Java support, for webmoira
20191echo "$as_me:$LINENO: checking for Java" >&5
20192echo $ECHO_N "checking for Java... $ECHO_C" >&6
20193
20194# Check whether --with-java or --without-java was given.
20195if test "${with_java+set}" = set; then
20196 withval="$with_java"
20197 java="$withval"
20198else
20199 if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
20200 java=$JAVA_HOME
20201 else
20202 java=no
20203 fi
20204fi;
20205echo "$as_me:$LINENO: result: $java" >&5
20206echo "${ECHO_T}$java" >&6
20207if test "$java" != no; then
20208 if test "$java" != yes; then
20209 JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
20210 fi
20211
20212 cat >>confdefs.h <<\_ACEOF
20213#define HAVE_JAVA 1
20214_ACEOF
20215
20216
20217 case $PRO_C_DEFS in
20218 *DEFINE=HAVE_JAVA*) ;;
20219 *) PRO_C_DEFS=DEFINE=HAVE_JAVA\ $PRO_C_DEFS ;;
20220 esac
20221
20222
20223
20224 WEBMOIRA_SUBDIRS="webmoira"
20225 WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
20226fi
20227
20228
20229
20230# LDAP support
20231echo "$as_me:$LINENO: checking for LDAP" >&5
20232echo $ECHO_N "checking for LDAP... $ECHO_C" >&6
20233
20234# Check whether --with-ldap or --without-ldap was given.
20235if test "${with_ldap+set}" = set; then
20236 withval="$with_ldap"
20237 ldap="$withval"
20238else
20239 if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
20240 ldap=$LDAP_HOME
20241 else
20242 ldap=no
20243 fi
20244fi;
20245echo "$as_me:$LINENO: result: $ldap" >&5
20246echo "${ECHO_T}$ldap" >&6
20247if test "$ldap" != no -a "$oracle" != no; then
20248 if test "$ldap" != yes; then
20249 LDAP_CPPFLAGS="-I$ldap/include"
20250 LDAP_LIBS="-L$ldap/lib"
20251 fi
20252
20253 cat >>confdefs.h <<\_ACEOF
20254#define HAVE_LDAP 1
20255_ACEOF
20256
20257
20258 case $PRO_C_DEFS in
20259 *DEFINE=HAVE_LDAP*) ;;
20260 *) PRO_C_DEFS=DEFINE=HAVE_LDAP\ $PRO_C_DEFS ;;
20261 esac
20262
20263
20264
20265 WINAD_SUBDIRS="winad ldap"
20266 WINAD_OUTPUT_FILES="incremental/winad/Makefile incremental/ldap/Makefile"
20267fi
20268
20269
20270
20271
20272# AFS support
20273echo "$as_me:$LINENO: checking for AFS" >&5
20274echo $ECHO_N "checking for AFS... $ECHO_C" >&6
20275
20276# Check whether --with-afs or --without-afs was given.
20277if test "${with_afs+set}" = set; then
20278 withval="$with_afs"
20279 afs="$withval"
ea0caf4a 20280else
a816420b 20281 afs=no
20282fi;
20283echo "$as_me:$LINENO: result: $afs" >&5
20284echo "${ECHO_T}$afs" >&6
20285if test "$afs" != no -a "$oracle" != no; then
20286 if test "$afs" != yes; then
20287 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
20288 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
20289 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
20290 AFS_DIR=$afs
20291 fi
20292 echo "$as_me:$LINENO: checking for pioctl in -lsys" >&5
20293echo $ECHO_N "checking for pioctl in -lsys... $ECHO_C" >&6
20294if test "${ac_cv_lib_sys_pioctl+set}" = set; then
00274452 20295 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 20296else
00274452 20297 ac_check_lib_save_LIBS=$LIBS
a816420b 20298LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys -lafsutil $LIBS"
00274452 20299cat >conftest.$ac_ext <<_ACEOF
20300/* confdefs.h. */
20301_ACEOF
20302cat confdefs.h >>conftest.$ac_ext
20303cat >>conftest.$ac_ext <<_ACEOF
20304/* end confdefs.h. */
20305
a816420b 20306/* Override any gcc2 internal prototype to avoid an error. */
20307#ifdef __cplusplus
20308extern "C"
20309#endif
20310/* We use char because int might match the return type of a gcc2
20311 builtin and then its argument prototype would still apply. */
20312char pioctl ();
00274452 20313int
20314main ()
20315{
a816420b 20316pioctl ();
00274452 20317 ;
20318 return 0;
20319}
20320_ACEOF
20321rm -f conftest.$ac_objext conftest$ac_exeext
20322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20323 (eval $ac_link) 2>conftest.er1
20324 ac_status=$?
20325 grep -v '^ *+' conftest.er1 >conftest.err
20326 rm -f conftest.er1
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } &&
20330 { ac_try='test -z "$ac_c_werror_flag"
20331 || test ! -s conftest.err'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; } &&
20337 { ac_try='test -s conftest$ac_exeext'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
a816420b 20343 ac_cv_lib_sys_pioctl=yes
00274452 20344else
20345 echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 20347
a816420b 20348ac_cv_lib_sys_pioctl=no
ea0caf4a 20349fi
00274452 20350rm -f conftest.err conftest.$ac_objext \
20351 conftest$ac_exeext conftest.$ac_ext
20352LIBS=$ac_check_lib_save_LIBS
20353fi
a816420b 20354echo "$as_me:$LINENO: result: $ac_cv_lib_sys_pioctl" >&5
20355echo "${ECHO_T}$ac_cv_lib_sys_pioctl" >&6
20356if test $ac_cv_lib_sys_pioctl = yes; then
20357 :
20358else
20359 { { echo "$as_me:$LINENO: error: AFS libraries not found" >&5
20360echo "$as_me: error: AFS libraries not found" >&2;}
20361 { (exit 1); exit 1; }; }
ea0caf4a 20362fi
20363
ea0caf4a 20364
a816420b 20365 cat >>confdefs.h <<\_ACEOF
20366#define HAVE_AFS 1
00274452 20367_ACEOF
00274452 20368
00274452 20369
a816420b 20370 case $PRO_C_DEFS in
20371 *DEFINE=HAVE_AFS*) ;;
20372 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
20373 esac
20374
20375
20376
20377 AFS_SUBDIRS="afs"
20378 AFS_OUTPUT_FILES="incremental/afs/Makefile"
20379 if test -d $srcdir/afssync; then
20380 AFS_SYNCDIR="afssync"
20381 AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
20382 fi
ea0caf4a 20383fi
a816420b 20384
20385
20386
20387
20388
20389
20390
20391# GNU readline
20392{ echo "$as_me:$LINENO: checking for GNU readline......" >&5
20393echo "$as_me: checking for GNU readline......" >&6;}
20394
20395# Check whether --with-readline or --without-readline was given.
20396if test "${with_readline+set}" = set; then
20397 withval="$with_readline"
20398 readline="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
20399echo "${ECHO_T}$withval" >&6
20400else
20401 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20402echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20403if test "${ac_cv_lib_readline_readline+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405else
20406 ac_check_lib_save_LIBS=$LIBS
20407LIBS="-lreadline -ltermcap $LIBS"
20408cat >conftest.$ac_ext <<_ACEOF
00274452 20409/* confdefs.h. */
20410_ACEOF
20411cat confdefs.h >>conftest.$ac_ext
20412cat >>conftest.$ac_ext <<_ACEOF
20413/* end confdefs.h. */
a816420b 20414
20415/* Override any gcc2 internal prototype to avoid an error. */
20416#ifdef __cplusplus
20417extern "C"
20418#endif
20419/* We use char because int might match the return type of a gcc2
20420 builtin and then its argument prototype would still apply. */
20421char readline ();
00274452 20422int
20423main ()
20424{
a816420b 20425readline ();
00274452 20426 ;
20427 return 0;
20428}
20429_ACEOF
20430rm -f conftest.$ac_objext conftest$ac_exeext
20431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20432 (eval $ac_link) 2>conftest.er1
20433 ac_status=$?
20434 grep -v '^ *+' conftest.er1 >conftest.err
20435 rm -f conftest.er1
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } &&
20439 { ac_try='test -z "$ac_c_werror_flag"
20440 || test ! -s conftest.err'
20441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442 (eval $ac_try) 2>&5
20443 ac_status=$?
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; } &&
20446 { ac_try='test -s conftest$ac_exeext'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
a816420b 20452 ac_cv_lib_readline_readline=yes
ea0caf4a 20453else
00274452 20454 echo "$as_me: failed program was:" >&5
20455sed 's/^/| /' conftest.$ac_ext >&5
20456
a816420b 20457ac_cv_lib_readline_readline=no
ea0caf4a 20458fi
00274452 20459rm -f conftest.err conftest.$ac_objext \
20460 conftest$ac_exeext conftest.$ac_ext
a816420b 20461LIBS=$ac_check_lib_save_LIBS
20462fi
20463echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20464echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20465if test $ac_cv_lib_readline_readline = yes; then
20466 readline=yes
20467else
20468 if test "$athena" = true; then
20469 unset ac_cv_lib_readline_readline
20470 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20471echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20472if test "${ac_cv_lib_readline_readline+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20474else
20475 ac_check_lib_save_LIBS=$LIBS
20476LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
20477cat >conftest.$ac_ext <<_ACEOF
00274452 20478/* confdefs.h. */
20479_ACEOF
20480cat confdefs.h >>conftest.$ac_ext
20481cat >>conftest.$ac_ext <<_ACEOF
20482/* end confdefs.h. */
a816420b 20483
20484/* Override any gcc2 internal prototype to avoid an error. */
20485#ifdef __cplusplus
20486extern "C"
20487#endif
20488/* We use char because int might match the return type of a gcc2
20489 builtin and then its argument prototype would still apply. */
20490char readline ();
00274452 20491int
20492main ()
20493{
a816420b 20494readline ();
00274452 20495 ;
20496 return 0;
20497}
20498_ACEOF
20499rm -f conftest.$ac_objext conftest$ac_exeext
20500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20501 (eval $ac_link) 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest$ac_exeext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
a816420b 20521 ac_cv_lib_readline_readline=yes
4753fa79 20522else
00274452 20523 echo "$as_me: failed program was:" >&5
20524sed 's/^/| /' conftest.$ac_ext >&5
20525
a816420b 20526ac_cv_lib_readline_readline=no
4753fa79 20527fi
00274452 20528rm -f conftest.err conftest.$ac_objext \
20529 conftest$ac_exeext conftest.$ac_ext
a816420b 20530LIBS=$ac_check_lib_save_LIBS
20531fi
20532echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20533echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20534if test $ac_cv_lib_readline_readline = yes; then
20535 readline=/mit/gnu
ea0caf4a 20536else
a816420b 20537 :
ea0caf4a 20538fi
20539
a816420b 20540 fi
20541fi
ea0caf4a 20542
a816420b 20543fi;
20544if test "$readline" != no; then
20545 if test "$readline" != yes; then
20546 READLINE_CPPFLAGS="-I$readline/include"
20547 READLINE_LIBS="-L$readline/lib"
20548 fi
20549 READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
20550 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
20551fi
ea0caf4a 20552
20553
20554
a816420b 20555# Curses
20556curses=curses
20557{ echo "$as_me:$LINENO: checking for curses..." >&5
20558echo "$as_me: checking for curses..." >&6;}
20559echo "$as_me:$LINENO: checking for main in -lcurses" >&5
20560echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
20561if test "${ac_cv_lib_curses_main+set}" = set; then
00274452 20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563else
a816420b 20564 ac_check_lib_save_LIBS=$LIBS
20565LIBS="-lcurses $LIBS"
20566cat >conftest.$ac_ext <<_ACEOF
00274452 20567/* confdefs.h. */
20568_ACEOF
20569cat confdefs.h >>conftest.$ac_ext
20570cat >>conftest.$ac_ext <<_ACEOF
20571/* end confdefs.h. */
ea0caf4a 20572
ea0caf4a 20573
00274452 20574int
20575main ()
20576{
a816420b 20577main ();
00274452 20578 ;
20579 return 0;
20580}
20581_ACEOF
20582rm -f conftest.$ac_objext conftest$ac_exeext
20583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20584 (eval $ac_link) 2>conftest.er1
20585 ac_status=$?
20586 grep -v '^ *+' conftest.er1 >conftest.err
20587 rm -f conftest.er1
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } &&
20591 { ac_try='test -z "$ac_c_werror_flag"
20592 || test ! -s conftest.err'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; } &&
20598 { ac_try='test -s conftest$ac_exeext'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
a816420b 20604 ac_cv_lib_curses_main=yes
ea0caf4a 20605else
00274452 20606 echo "$as_me: failed program was:" >&5
20607sed 's/^/| /' conftest.$ac_ext >&5
20608
a816420b 20609ac_cv_lib_curses_main=no
ea0caf4a 20610fi
00274452 20611rm -f conftest.err conftest.$ac_objext \
20612 conftest$ac_exeext conftest.$ac_ext
a816420b 20613LIBS=$ac_check_lib_save_LIBS
ea0caf4a 20614fi
a816420b 20615echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
20616echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
20617if test $ac_cv_lib_curses_main = yes; then
20618 :
20619else
20620 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
20621echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
20622if test "${ac_cv_lib_ncurses_main+set}" = set; then
00274452 20623 echo $ECHO_N "(cached) $ECHO_C" >&6
533bacb3 20624else
a816420b 20625 ac_check_lib_save_LIBS=$LIBS
20626LIBS="-lncurses $LIBS"
20627cat >conftest.$ac_ext <<_ACEOF
00274452 20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
533bacb3 20633
533bacb3 20634
00274452 20635int
20636main ()
20637{
a816420b 20638main ();
00274452 20639 ;
20640 return 0;
20641}
20642_ACEOF
20643rm -f conftest.$ac_objext conftest$ac_exeext
20644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20645 (eval $ac_link) 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try='test -z "$ac_c_werror_flag"
20653 || test ! -s conftest.err'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try='test -s conftest$ac_exeext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
a816420b 20665 ac_cv_lib_ncurses_main=yes
533bacb3 20666else
00274452 20667 echo "$as_me: failed program was:" >&5
20668sed 's/^/| /' conftest.$ac_ext >&5
20669
a816420b 20670ac_cv_lib_ncurses_main=no
533bacb3 20671fi
00274452 20672rm -f conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext conftest.$ac_ext
a816420b 20674LIBS=$ac_check_lib_save_LIBS
533bacb3 20675fi
a816420b 20676echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
20677echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
20678if test $ac_cv_lib_ncurses_main = yes; then
20679 curses=ncurses
533bacb3 20680fi
20681
533bacb3 20682fi
a816420b 20683
20684if test -n "$curses"; then
20685 OLDLIBS=$LIBS
20686 LIBS=-l$curses
20687 { echo "$as_me:$LINENO: checking if curses needs termcap..." >&5
20688echo "$as_me: checking if curses needs termcap..." >&6;}
20689 if test "$cross_compiling" = yes; then
20690 :
533bacb3 20691else
00274452 20692 cat >conftest.$ac_ext <<_ACEOF
20693/* confdefs.h. */
20694_ACEOF
20695cat confdefs.h >>conftest.$ac_ext
20696cat >>conftest.$ac_ext <<_ACEOF
20697/* end confdefs.h. */
a816420b 20698#include <curses.h>
20699 main(int argc, char **argv)
20700 {
20701 initscr();
20702 endwin();
20703 return 0;
20704 }
00274452 20705_ACEOF
a816420b 20706rm -f conftest$ac_exeext
20707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20708 (eval $ac_link) 2>&5
00274452 20709 ac_status=$?
00274452 20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 20711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 CURSES_LIBS="-l$curses"
533bacb3 20718else
a816420b 20719 echo "$as_me: program exited with status $ac_status" >&5
20720echo "$as_me: failed program was:" >&5
00274452 20721sed 's/^/| /' conftest.$ac_ext >&5
20722
a816420b 20723( exit $ac_status )
20724LIBS="-l$curses -ltermcap"
20725 if test "$cross_compiling" = yes; then
20726 :
20727else
00274452 20728 cat >conftest.$ac_ext <<_ACEOF
20729/* confdefs.h. */
20730_ACEOF
20731cat confdefs.h >>conftest.$ac_ext
20732cat >>conftest.$ac_ext <<_ACEOF
20733/* end confdefs.h. */
a816420b 20734#include <curses.h>
20735 main(int argc, char **argv)
20736 {
20737 initscr();
20738 endwin();
20739 return 0;
20740 }
00274452 20741_ACEOF
a816420b 20742rm -f conftest$ac_exeext
20743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20744 (eval $ac_link) 2>&5
00274452 20745 ac_status=$?
00274452 20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 20747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 CURSES_LIBS="-l$curses -ltermcap"
00274452 20754else
a816420b 20755 echo "$as_me: program exited with status $ac_status" >&5
20756echo "$as_me: failed program was:" >&5
00274452 20757sed 's/^/| /' conftest.$ac_ext >&5
20758
a816420b 20759( exit $ac_status )
20760:
533bacb3 20761fi
a816420b 20762rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
533bacb3 20763fi
533bacb3 20764fi
a816420b 20765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
533bacb3 20766fi
a816420b 20767 LIBS=$OLDLIBS
20768fi
20769if test -n "$CURSES_LIBS"; then
20770 OLDLIBS=$LIBS
20771 LIBS=$CURSES_LIBS
20772 cat >conftest.$ac_ext <<_ACEOF
00274452 20773/* confdefs.h. */
20774_ACEOF
20775cat confdefs.h >>conftest.$ac_ext
20776cat >>conftest.$ac_ext <<_ACEOF
20777/* end confdefs.h. */
a816420b 20778#include <curses.h>
20779int
20780main ()
20781{
20782WINDOW *w; getmaxx(w);
20783 ;
20784 return 0;
20785}
00274452 20786_ACEOF
a816420b 20787rm -f conftest.$ac_objext conftest$ac_exeext
20788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20789 (eval $ac_link) 2>conftest.er1
00274452 20790 ac_status=$?
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 20795 (exit $ac_status); } &&
20796 { ac_try='test -z "$ac_c_werror_flag"
20797 || test ! -s conftest.err'
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest$ac_exeext'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
00274452 20809 :
7674bbe4 20810else
00274452 20811 echo "$as_me: failed program was:" >&5
20812sed 's/^/| /' conftest.$ac_ext >&5
20813
a816420b 20814cat >conftest.$ac_ext <<_ACEOF
00274452 20815/* confdefs.h. */
20816_ACEOF
20817cat confdefs.h >>conftest.$ac_ext
20818cat >>conftest.$ac_ext <<_ACEOF
20819/* end confdefs.h. */
a816420b 20820#include <curses.h>
20821int
20822main ()
20823{
20824WINDOW *w; w->_maxx;
20825 ;
20826 return 0;
20827}
00274452 20828_ACEOF
a816420b 20829rm -f conftest.$ac_objext
20830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831 (eval $ac_compile) 2>conftest.er1
00274452 20832 ac_status=$?
20833 grep -v '^ *+' conftest.er1 >conftest.err
20834 rm -f conftest.er1
20835 cat conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 20837 (exit $ac_status); } &&
20838 { ac_try='test -z "$ac_c_werror_flag"
20839 || test ! -s conftest.err'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; } &&
20845 { ac_try='test -s conftest.$ac_objext'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
00274452 20852else
20853 echo "$as_me: failed program was:" >&5
20854sed 's/^/| /' conftest.$ac_ext >&5
20855
a816420b 20856CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
7674bbe4 20857fi
a816420b 20858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00274452 20859fi
a816420b 20860rm -f conftest.err conftest.$ac_objext \
20861 conftest$ac_exeext conftest.$ac_ext
20862 cat >conftest.$ac_ext <<_ACEOF
00274452 20863/* confdefs.h. */
20864_ACEOF
20865cat confdefs.h >>conftest.$ac_ext
20866cat >>conftest.$ac_ext <<_ACEOF
20867/* end confdefs.h. */
a816420b 20868#include <curses.h>
00274452 20869int
20870main ()
20871{
a816420b 20872newterm(NULL, NULL, NULL);
00274452 20873 ;
20874 return 0;
20875}
20876_ACEOF
a816420b 20877rm -f conftest.$ac_objext conftest$ac_exeext
20878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879 (eval $ac_link) 2>conftest.er1
00274452 20880 ac_status=$?
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
a816420b 20893 { ac_try='test -s conftest$ac_exeext'
00274452 20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
a816420b 20899 CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
00274452 20900else
20901 echo "$as_me: failed program was:" >&5
20902sed 's/^/| /' conftest.$ac_ext >&5
20903
00274452 20904fi
a816420b 20905rm -f conftest.err conftest.$ac_objext \
20906 conftest$ac_exeext conftest.$ac_ext
20907 LIBS=$OLDLIBS
20908 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
20909 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
00274452 20910else
a816420b 20911 { echo "$as_me:$LINENO: WARNING: Couldn't find -lcurses" >&5
20912echo "$as_me: WARNING: Couldn't find -lcurses" >&2;}
00274452 20913fi
00274452 20914
00274452 20915
00274452 20916
00274452 20917
00274452 20918
a816420b 20919
20920
20921
20922
20923
20924for ac_func in getusershell strlcpy strlcat uname strvis
20925do
20926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20927echo "$as_me:$LINENO: checking for $ac_func" >&5
20928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20929if eval "test \"\${$as_ac_var+set}\" = set"; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
00274452 20931else
20932 cat >conftest.$ac_ext <<_ACEOF
20933/* confdefs.h. */
20934_ACEOF
20935cat confdefs.h >>conftest.$ac_ext
20936cat >>conftest.$ac_ext <<_ACEOF
20937/* end confdefs.h. */
a816420b 20938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20940#define $ac_func innocuous_$ac_func
20941
20942/* System header to define __stub macros and hopefully few prototypes,
20943 which can conflict with char $ac_func (); below.
20944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20945 <limits.h> exists even on freestanding compilers. */
20946
20947#ifdef __STDC__
20948# include <limits.h>
00274452 20949#else
a816420b 20950# include <assert.h>
20951#endif
20952
20953#undef $ac_func
20954
20955/* Override any gcc2 internal prototype to avoid an error. */
20956#ifdef __cplusplus
20957extern "C"
20958{
20959#endif
20960/* We use char because int might match the return type of a gcc2
20961 builtin and then its argument prototype would still apply. */
20962char $ac_func ();
20963/* The GNU C library defines this for functions which it implements
20964 to always fail with ENOSYS. Some functions are actually named
20965 something starting with __ and the normal name is an alias. */
20966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20967choke me
20968#else
20969char (*f) () = $ac_func;
20970#endif
20971#ifdef __cplusplus
20972}
00274452 20973#endif
20974
00274452 20975int
20976main ()
20977{
a816420b 20978return f != $ac_func;
20979 ;
20980 return 0;
00274452 20981}
20982_ACEOF
a816420b 20983rm -f conftest.$ac_objext conftest$ac_exeext
00274452 20984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a816420b 20985 (eval $ac_link) 2>conftest.er1
00274452 20986 ac_status=$?
a816420b 20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
00274452 20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a816420b 20991 (exit $ac_status); } &&
20992 { ac_try='test -z "$ac_c_werror_flag"
20993 || test ! -s conftest.err'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest$ac_exeext'
00274452 21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
a816420b 21005 eval "$as_ac_var=yes"
00274452 21006else
a816420b 21007 echo "$as_me: failed program was:" >&5
00274452 21008sed 's/^/| /' conftest.$ac_ext >&5
21009
a816420b 21010eval "$as_ac_var=no"
00274452 21011fi
a816420b 21012rm -f conftest.err conftest.$ac_objext \
21013 conftest$ac_exeext conftest.$ac_ext
00274452 21014fi
a816420b 21015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21017if test `eval echo '${'$as_ac_var'}'` = yes; then
21018 cat >>confdefs.h <<_ACEOF
21019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
00274452 21020_ACEOF
21021
21022fi
a816420b 21023done
00274452 21024
21025
a816420b 21026echo "$as_me:$LINENO: checking for sigaction" >&5
21027echo $ECHO_N "checking for sigaction... $ECHO_C" >&6
21028if test "${ac_cv_func_sigaction+set}" = set; then
00274452 21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21030else
21031 cat >conftest.$ac_ext <<_ACEOF
21032/* confdefs.h. */
21033_ACEOF
21034cat confdefs.h >>conftest.$ac_ext
21035cat >>conftest.$ac_ext <<_ACEOF
21036/* end confdefs.h. */
a816420b 21037/* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction.
21038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21039#define sigaction innocuous_sigaction
00274452 21040
a816420b 21041/* System header to define __stub macros and hopefully few prototypes,
21042 which can conflict with char sigaction (); below.
21043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21044 <limits.h> exists even on freestanding compilers. */
21045
21046#ifdef __STDC__
21047# include <limits.h>
21048#else
21049# include <assert.h>
21050#endif
21051
21052#undef sigaction
21053
21054/* Override any gcc2 internal prototype to avoid an error. */
21055#ifdef __cplusplus
21056extern "C"
21057{
21058#endif
21059/* We use char because int might match the return type of a gcc2
21060 builtin and then its argument prototype would still apply. */
21061char sigaction ();
21062/* The GNU C library defines this for functions which it implements
21063 to always fail with ENOSYS. Some functions are actually named
21064 something starting with __ and the normal name is an alias. */
21065#if defined (__stub_sigaction) || defined (__stub___sigaction)
21066choke me
21067#else
21068char (*f) () = sigaction;
21069#endif
21070#ifdef __cplusplus
21071}
21072#endif
21073
21074int
21075main ()
21076{
21077return f != sigaction;
21078 ;
21079 return 0;
21080}
00274452 21081_ACEOF
a816420b 21082rm -f conftest.$ac_objext conftest$ac_exeext
21083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084 (eval $ac_link) 2>conftest.er1
00274452 21085 ac_status=$?
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -z "$ac_c_werror_flag"
21092 || test ! -s conftest.err'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; } &&
a816420b 21098 { ac_try='test -s conftest$ac_exeext'
00274452 21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21101 ac_status=$?
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }; then
a816420b 21104 ac_cv_func_sigaction=yes
00274452 21105else
21106 echo "$as_me: failed program was:" >&5
21107sed 's/^/| /' conftest.$ac_ext >&5
21108
a816420b 21109ac_cv_func_sigaction=no
00274452 21110fi
a816420b 21111rm -f conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
00274452 21113fi
a816420b 21114echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5
21115echo "${ECHO_T}$ac_cv_func_sigaction" >&6
21116if test $ac_cv_func_sigaction = yes; then
21117 cat >>confdefs.h <<\_ACEOF
21118#define HAVE_POSIX_SIGNALS 1
00274452 21119_ACEOF
21120
21121fi
21122
00274452 21123
21124
21125
21126for ac_header in unistd.h getopt.h
21127do
21128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129if eval "test \"\${$as_ac_Header+set}\" = set"; then
21130 echo "$as_me:$LINENO: checking for $ac_header" >&5
21131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21132if eval "test \"\${$as_ac_Header+set}\" = set"; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21134fi
21135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21137else
21138 # Is the header compilable?
21139echo "$as_me:$LINENO: checking $ac_header usability" >&5
21140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21141cat >conftest.$ac_ext <<_ACEOF
21142/* confdefs.h. */
21143_ACEOF
21144cat confdefs.h >>conftest.$ac_ext
21145cat >>conftest.$ac_ext <<_ACEOF
21146/* end confdefs.h. */
21147$ac_includes_default
21148#include <$ac_header>
21149_ACEOF
21150rm -f conftest.$ac_objext
21151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21152 (eval $ac_compile) 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest.$ac_objext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_header_compiler=yes
21173else
21174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177ac_header_compiler=no
21178fi
21179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21180echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21181echo "${ECHO_T}$ac_header_compiler" >&6
21182
21183# Is the header present?
21184echo "$as_me:$LINENO: checking $ac_header presence" >&5
21185echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21186cat >conftest.$ac_ext <<_ACEOF
21187/* confdefs.h. */
21188_ACEOF
21189cat confdefs.h >>conftest.$ac_ext
21190cat >>conftest.$ac_ext <<_ACEOF
21191/* end confdefs.h. */
21192#include <$ac_header>
21193_ACEOF
21194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21196 ac_status=$?
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } >/dev/null; then
21202 if test -s conftest.err; then
21203 ac_cpp_err=$ac_c_preproc_warn_flag
21204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21205 else
21206 ac_cpp_err=
21207 fi
21208else
21209 ac_cpp_err=yes
21210fi
21211if test -z "$ac_cpp_err"; then
21212 ac_header_preproc=yes
21213else
21214 echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217 ac_header_preproc=no
21218fi
21219rm -f conftest.err conftest.$ac_ext
21220echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21221echo "${ECHO_T}$ac_header_preproc" >&6
21222
21223# So? What about this header?
21224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21225 yes:no: )
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21227echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21229echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21230 ac_header_preproc=yes
21231 ;;
21232 no:yes:* )
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21234echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21236echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21238echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21240echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21242echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21244echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21245 (
21246 cat <<\_ASBOX
21247## ------------------------------------------ ##
21248## Report this to the AC_PACKAGE_NAME lists. ##
21249## ------------------------------------------ ##
21250_ASBOX
21251 ) |
21252 sed "s/^/$as_me: WARNING: /" >&2
21253 ;;
21254esac
21255echo "$as_me:$LINENO: checking for $ac_header" >&5
21256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21257if eval "test \"\${$as_ac_Header+set}\" = set"; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259else
21260 eval "$as_ac_Header=\$ac_header_preproc"
21261fi
21262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21264
21265fi
21266if test `eval echo '${'$as_ac_Header'}'` = yes; then
21267 cat >>confdefs.h <<_ACEOF
21268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21269_ACEOF
21270
21271fi
21272
21273done
21274
21275
21276if test "${ac_cv_header_netinet_in_h+set}" = set; then
21277 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21278echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21279if test "${ac_cv_header_netinet_in_h+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21281fi
21282echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21283echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21284else
21285 # Is the header compilable?
21286echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21287echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21288cat >conftest.$ac_ext <<_ACEOF
21289/* confdefs.h. */
21290_ACEOF
21291cat confdefs.h >>conftest.$ac_ext
21292cat >>conftest.$ac_ext <<_ACEOF
21293/* end confdefs.h. */
21294$ac_includes_default
21295#include <netinet/in.h>
21296_ACEOF
21297rm -f conftest.$ac_objext
21298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299 (eval $ac_compile) 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag"
21307 || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_header_compiler=yes
21320else
21321 echo "$as_me: failed program was:" >&5
21322sed 's/^/| /' conftest.$ac_ext >&5
21323
21324ac_header_compiler=no
21325fi
21326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21328echo "${ECHO_T}$ac_header_compiler" >&6
21329
21330# Is the header present?
21331echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21332echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21333cat >conftest.$ac_ext <<_ACEOF
21334/* confdefs.h. */
21335_ACEOF
21336cat confdefs.h >>conftest.$ac_ext
21337cat >>conftest.$ac_ext <<_ACEOF
21338/* end confdefs.h. */
21339#include <netinet/in.h>
21340_ACEOF
21341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } >/dev/null; then
21349 if test -s conftest.err; then
21350 ac_cpp_err=$ac_c_preproc_warn_flag
21351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21352 else
21353 ac_cpp_err=
21354 fi
21355else
21356 ac_cpp_err=yes
21357fi
21358if test -z "$ac_cpp_err"; then
21359 ac_header_preproc=yes
21360else
21361 echo "$as_me: failed program was:" >&5
21362sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ac_header_preproc=no
21365fi
21366rm -f conftest.err conftest.$ac_ext
21367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368echo "${ECHO_T}$ac_header_preproc" >&6
21369
21370# So? What about this header?
21371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21372 yes:no: )
21373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21374echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21376echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21377 ac_header_preproc=yes
21378 ;;
21379 no:yes:* )
21380 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21381echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21383echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21385echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21387echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21389echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21391echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21392 (
21393 cat <<\_ASBOX
21394## ------------------------------------------ ##
21395## Report this to the AC_PACKAGE_NAME lists. ##
21396## ------------------------------------------ ##
21397_ASBOX
21398 ) |
21399 sed "s/^/$as_me: WARNING: /" >&2
21400 ;;
21401esac
21402echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21403echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21404if test "${ac_cv_header_netinet_in_h+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406else
21407 ac_cv_header_netinet_in_h=$ac_header_preproc
21408fi
21409echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21410echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21411
21412fi
21413if test $ac_cv_header_netinet_in_h = yes; then
21414 cat >>confdefs.h <<\_ACEOF
21415#define HAVE_NETINET_IN_H 1
21416_ACEOF
21417
21418else
21419 no_netinet_in=yes
21420fi
21421
21422
7674bbe4 21423
21424if test "$no_netinet_in" != "yes"; then
00274452 21425 echo "$as_me:$LINENO: checking for in_addr_t defined in netinet/in.h" >&5
21426echo $ECHO_N "checking for in_addr_t defined in netinet/in.h... $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21428/* confdefs.h. */
21429_ACEOF
21430cat confdefs.h >>conftest.$ac_ext
21431cat >>conftest.$ac_ext <<_ACEOF
21432/* end confdefs.h. */
7674bbe4 21433#include <netinet/in.h>
00274452 21434
21435_ACEOF
7674bbe4 21436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
00274452 21437 $EGREP "in_addr_t" >/dev/null 2>&1; then
7674bbe4 21438 ac_cv_type_in_addr_t=yes
21439else
7674bbe4 21440 ac_cv_type_in_addr_t=no
21441fi
21442rm -f conftest*
21443
00274452 21444 echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21445echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
7674bbe4 21446fi
21447
21448if test "$ac_cv_type_in_addr_t" != "yes"; then
00274452 21449 cat >>confdefs.h <<\_ACEOF
7674bbe4 21450#define in_addr_t uint32_t
00274452 21451_ACEOF
7674bbe4 21452
21453fi
21454
ea0caf4a 21455
25f58600 21456 case $PRO_C_INCLUDES in
21457 *INCLUDE='$(srcdir)'*) ;;
21458 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
21459 esac
21460
21461
00274452 21462
ea0caf4a 21463 case $CPPFLAGS in
21464 *-I'$(SRCTOP)/include'*) ;;
21465 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
21466 esac
21467
00274452 21468
ea0caf4a 21469 case $PRO_C_INCLUDES in
21470 *INCLUDE='$(SRCTOP)/include'*) ;;
21471 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
21472 esac
21473
21474
21475
00274452 21476
25f58600 21477 case $CPPFLAGS in
21478 *-I'$(SRCTOP)/lib'*) ;;
21479 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
21480 esac
21481
00274452 21482
25f58600 21483 case $PRO_C_INCLUDES in
21484 *INCLUDE='$(SRCTOP)/lib'*) ;;
21485 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
21486 esac
21487
21488
21489
00274452 21490
ea0caf4a 21491 case $CPPFLAGS in
21492 *-I'$(BUILDTOP)/lib'*) ;;
21493 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
21494 esac
21495
00274452 21496
ea0caf4a 21497 case $PRO_C_INCLUDES in
21498 *INCLUDE='$(BUILDTOP)/lib'*) ;;
21499 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
21500 esac
21501
21502
21503
00274452 21504
ea0caf4a 21505 case $CPPFLAGS in
21506 *-I'$(BUILDTOP)/db'*) ;;
21507 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
21508 esac
21509
00274452 21510
ea0caf4a 21511 case $PRO_C_INCLUDES in
21512 *INCLUDE='$(BUILDTOP)/db'*) ;;
21513 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
21514 esac
21515
21516
9976f5e9 21517
00274452 21518
9976f5e9 21519 case $CPPFLAGS in
21520 *-I'$(srcdir)'*) ;;
21521 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
21522 esac
21523
00274452 21524
9976f5e9 21525 case $PRO_C_INCLUDES in
21526 *INCLUDE='$(srcdir)'*) ;;
21527 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
21528 esac
21529
21530
ea0caf4a 21531LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
cb974713 21532KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
7249c66a 21533KLIBS="$LIBS"
21534if test "$hesiod" != no; then
21535 KLIBS="-lhesiod $KLIBS"
21536fi
cb974713 21537KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $KLIBS"
7249c66a 21538if test "$zephyr" != no; then
21539 KLIBS="-lzephyr $KLIBS"
21540fi
42bcd2e6 21541MR_LIBDEP='$(BUILDTOP)/lib/libmoira.la'
ea0caf4a 21542
21543
42bcd2e6 21544LIBS="$MR_LIBDEP $KLIBS"
3fb6166b 21545
21546
f72fe084 21547 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile clients/Makefile clients/lib/Makefile clients/addusr/Makefile clients/blanche/Makefile clients/chfn/Makefile clients/chpobox/Makefile clients/chsh/Makefile clients/eunice/Makefile clients/mailmaint/Makefile clients/mitch/Makefile clients/moira/Makefile clients/mrcheck/Makefile clients/mrtest/Makefile clients/stanley/Makefile clients/stella/Makefile update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"
00274452 21548cat >confcache <<\_ACEOF
ea0caf4a 21549# This file is a shell script that caches the results of configure
21550# tests run on this system so they can be shared between configure
00274452 21551# scripts and configure runs, see configure's option --config-cache.
21552# It is not useful on other systems. If it contains results you don't
21553# want to keep, you may remove or edit it.
ea0caf4a 21554#
00274452 21555# config.status only pays attention to the cache file if you give it
21556# the --recheck option to rerun configure.
ea0caf4a 21557#
00274452 21558# `ac_cv_env_foo' variables (set or unset) will be overridden when
21559# loading this file, other *unset* `ac_cv_foo' will be assigned the
21560# following values.
21561
21562_ACEOF
21563
ea0caf4a 21564# The following way of writing the cache mishandles newlines in values,
21565# but we know of no workaround that is simple, portable, and efficient.
21566# So, don't put newlines in cache variables' values.
21567# Ultrix sh set writes to stderr and can't be redirected directly,
21568# and sets the high bit in the cache file unless we assign to the vars.
00274452 21569{
21570 (set) 2>&1 |
21571 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21572 *ac_space=\ *)
21573 # `set' does not quote correctly, so add quotes (double-quote
21574 # substitution turns \\\\ into \\, and sed turns \\ into \).
21575 sed -n \
21576 "s/'/'\\\\''/g;
21577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21578 ;;
21579 *)
21580 # `set' quotes correctly as required by POSIX, so do not add quotes.
21581 sed -n \
21582 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21583 ;;
21584 esac;
21585} |
21586 sed '
21587 t clear
21588 : clear
21589 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21590 t end
21591 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21592 : end' >>confcache
21593if diff $cache_file confcache >/dev/null 2>&1; then :; else
ea0caf4a 21594 if test -w $cache_file; then
00274452 21595 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21596 cat confcache >$cache_file
ea0caf4a 21597 else
21598 echo "not updating unwritable cache $cache_file"
21599 fi
21600fi
21601rm -f confcache
21602
ea0caf4a 21603test "x$prefix" = xNONE && prefix=$ac_default_prefix
21604# Let make expand exec_prefix.
21605test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21606
00274452 21607# VPATH may cause trouble with some makes, so we remove $(srcdir),
21608# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21609# trailing colons and then remove the whole line if VPATH becomes empty
21610# (actually we leave an empty line to preserve line numbers).
ea0caf4a 21611if test "x$srcdir" = x.; then
00274452 21612 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21613s/:*\$(srcdir):*/:/;
21614s/:*\${srcdir}:*/:/;
21615s/:*@srcdir@:*/:/;
21616s/^\([^=]*=[ ]*\):*/\1/;
21617s/:*$//;
21618s/^[^=]*=[ ]*$//;
21619}'
ea0caf4a 21620fi
21621
ea0caf4a 21622# Transform confdefs.h into DEFS.
21623# Protect against shell expansion while executing Makefile rules.
21624# Protect against Makefile macro expansion.
00274452 21625#
21626# If the first sed substitution is executed (which looks for macros that
21627# take arguments), then we branch to the quote section. Otherwise,
21628# look for a macro that doesn't take arguments.
21629cat >confdef2opt.sed <<\_ACEOF
21630t clear
21631: clear
21632s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
21633t quote
21634s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
21635t quote
21636d
21637: quote
21638s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
21639s,\[,\\&,g
21640s,\],\\&,g
21641s,\$,$$,g
21642p
21643_ACEOF
21644# We use echo to avoid assuming a particular line-breaking character.
21645# The extra dot is to prevent the shell from consuming trailing
21646# line-breaks from the sub-command output. A line-break within
21647# single-quotes doesn't work because, if this script is created in a
21648# platform that uses two characters for line-breaks (e.g., DOS), tr
21649# would break.
21650ac_LF_and_DOT=`echo; echo .`
21651DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21652rm -f confdef2opt.sed
21653
21654
21655ac_libobjs=
21656ac_ltlibobjs=
21657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21658 # 1. Remove the extension, and $U if already installed.
21659 ac_i=`echo "$ac_i" |
21660 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21661 # 2. Add them.
21662 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21663 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21664done
21665LIBOBJS=$ac_libobjs
ea0caf4a 21666
00274452 21667LTLIBOBJS=$ac_ltlibobjs
21668
21669
21670
21671: ${CONFIG_STATUS=./config.status}
21672ac_clean_files_save=$ac_clean_files
21673ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21674{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21675echo "$as_me: creating $CONFIG_STATUS" >&6;}
21676cat >$CONFIG_STATUS <<_ACEOF
21677#! $SHELL
21678# Generated by $as_me.
ea0caf4a 21679# Run this file to recreate the current configuration.
ea0caf4a 21680# Compiler output produced by configure, useful for debugging
00274452 21681# configure, is in config.log if it exists.
21682
21683debug=false
21684ac_cs_recheck=false
21685ac_cs_silent=false
21686SHELL=\${CONFIG_SHELL-$SHELL}
21687_ACEOF
21688
21689cat >>$CONFIG_STATUS <<\_ACEOF
21690## --------------------- ##
21691## M4sh Initialization. ##
21692## --------------------- ##
21693
21694# Be Bourne compatible
21695if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21696 emulate sh
21697 NULLCMD=:
21698 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21699 # is contrary to our usage. Disable this feature.
21700 alias -g '${1+"$@"}'='"$@"'
21701elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21702 set -o posix
21703fi
21704DUALCASE=1; export DUALCASE # for MKS sh
21705
21706# Support unset when possible.
21707if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21708 as_unset=unset
21709else
21710 as_unset=false
21711fi
ea0caf4a 21712
00274452 21713
21714# Work around bugs in pre-3.0 UWIN ksh.
21715$as_unset ENV MAIL MAILPATH
21716PS1='$ '
21717PS2='> '
21718PS4='+ '
21719
21720# NLS nuisances.
21721for as_var in \
21722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21724 LC_TELEPHONE LC_TIME
ea0caf4a 21725do
00274452 21726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21727 eval $as_var=C; export $as_var
21728 else
21729 $as_unset $as_var
21730 fi
ea0caf4a 21731done
21732
00274452 21733# Required to use basename.
21734if expr a : '\(a\)' >/dev/null 2>&1; then
21735 as_expr=expr
21736else
21737 as_expr=false
21738fi
ea0caf4a 21739
00274452 21740if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21741 as_basename=basename
21742else
21743 as_basename=false
21744fi
21745
21746
21747# Name of the executable.
21748as_me=`$as_basename "$0" ||
21749$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21750 X"$0" : 'X\(//\)$' \| \
21751 X"$0" : 'X\(/\)$' \| \
21752 . : '\(.\)' 2>/dev/null ||
21753echo X/"$0" |
21754 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21755 /^X\/\(\/\/\)$/{ s//\1/; q; }
21756 /^X\/\(\/\).*/{ s//\1/; q; }
21757 s/.*/./; q'`
21758
21759
21760# PATH needs CR, and LINENO needs CR and PATH.
21761# Avoid depending upon Character Ranges.
21762as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21763as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21764as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21765as_cr_digits='0123456789'
21766as_cr_alnum=$as_cr_Letters$as_cr_digits
21767
21768# The user is always right.
21769if test "${PATH_SEPARATOR+set}" != set; then
21770 echo "#! /bin/sh" >conf$$.sh
21771 echo "exit 0" >>conf$$.sh
21772 chmod +x conf$$.sh
21773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21774 PATH_SEPARATOR=';'
ea0caf4a 21775 else
00274452 21776 PATH_SEPARATOR=:
ea0caf4a 21777 fi
00274452 21778 rm -f conf$$.sh
21779fi
21780
21781
21782 as_lineno_1=$LINENO
21783 as_lineno_2=$LINENO
21784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21785 test "x$as_lineno_1" != "x$as_lineno_2" &&
21786 test "x$as_lineno_3" = "x$as_lineno_2" || {
21787 # Find who we are. Look in the path if we contain no path at all
21788 # relative or not.
21789 case $0 in
21790 *[\\/]* ) as_myself=$0 ;;
21791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21792for as_dir in $PATH
21793do
21794 IFS=$as_save_IFS
21795 test -z "$as_dir" && as_dir=.
21796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21797done
21798
21799 ;;
21800 esac
21801 # We did not find ourselves, most probably we were run as `sh COMMAND'
21802 # in which case we are not to be found in the path.
21803 if test "x$as_myself" = x; then
21804 as_myself=$0
21805 fi
21806 if test ! -f "$as_myself"; then
21807 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21808echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21809 { (exit 1); exit 1; }; }
ea0caf4a 21810 fi
00274452 21811 case $CONFIG_SHELL in
21812 '')
21813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21814for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21815do
21816 IFS=$as_save_IFS
21817 test -z "$as_dir" && as_dir=.
21818 for as_base in sh bash ksh sh5; do
21819 case $as_dir in
21820 /*)
21821 if ("$as_dir/$as_base" -c '
21822 as_lineno_1=$LINENO
21823 as_lineno_2=$LINENO
21824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21825 test "x$as_lineno_1" != "x$as_lineno_2" &&
21826 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21827 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21828 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21829 CONFIG_SHELL=$as_dir/$as_base
21830 export CONFIG_SHELL
21831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21832 fi;;
21833 esac
21834 done
ea0caf4a 21835done
00274452 21836;;
ea0caf4a 21837 esac
21838
00274452 21839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21840 # uniformly replaced by the line number. The first 'sed' inserts a
21841 # line-number line before each line; the second 'sed' does the real
21842 # work. The second script uses 'N' to pair each line-number line
21843 # with the numbered line, and appends trailing '-' during
21844 # substitution so that $LINENO is not a special case at line end.
21845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21847 sed '=' <$as_myself |
21848 sed '
21849 N
21850 s,$,-,
21851 : loop
21852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21853 t loop
21854 s,-$,,
21855 s,^['$as_cr_digits']*\n,,
21856 ' >$as_me.lineno &&
21857 chmod +x $as_me.lineno ||
21858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21859echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21860 { (exit 1); exit 1; }; }
21861
21862 # Don't try to exec as it changes $[0], causing all sort of problems
21863 # (the dirname of $[0] is not the place where we might find the
21864 # original and so on. Autoconf is especially sensible to this).
21865 . ./$as_me.lineno
21866 # Exit status is that of the last command.
21867 exit
21868}
21869
21870
21871case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21872 *c*,-n*) ECHO_N= ECHO_C='
21873' ECHO_T=' ' ;;
21874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21876esac
21877
21878if expr a : '\(a\)' >/dev/null 2>&1; then
21879 as_expr=expr
21880else
21881 as_expr=false
21882fi
ea0caf4a 21883
00274452 21884rm -f conf$$ conf$$.exe conf$$.file
21885echo >conf$$.file
21886if ln -s conf$$.file conf$$ 2>/dev/null; then
21887 # We could just check for DJGPP; but this test a) works b) is more generic
21888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21889 if test -f conf$$.exe; then
21890 # Don't use ln at all; we don't have any links
21891 as_ln_s='cp -p'
ea0caf4a 21892 else
00274452 21893 as_ln_s='ln -s'
ea0caf4a 21894 fi
00274452 21895elif ln conf$$.file conf$$ 2>/dev/null; then
21896 as_ln_s=ln
21897else
21898 as_ln_s='cp -p'
21899fi
21900rm -f conf$$ conf$$.exe conf$$.file
ea0caf4a 21901
00274452 21902if mkdir -p . 2>/dev/null; then
21903 as_mkdir_p=:
21904else
21905 test -d ./-p && rmdir ./-p
21906 as_mkdir_p=false
21907fi
21908
21909as_executable_p="test -f"
21910
21911# Sed expression to map a string onto a valid CPP name.
21912as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21913
21914# Sed expression to map a string onto a valid variable name.
21915as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21916
21917
21918# IFS
21919# We need space, tab and new line, in precisely that order.
21920as_nl='
21921'
21922IFS=" $as_nl"
21923
21924# CDPATH.
21925$as_unset CDPATH
21926
21927exec 6>&1
21928
21929# Open the log real soon, to keep \$[0] and so on meaningful, and to
21930# report actual input values of CONFIG_FILES etc. instead of their
21931# values after options handling. Logging --version etc. is OK.
21932exec 5>>config.log
21933{
21934 echo
21935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21936## Running $as_me. ##
21937_ASBOX
21938} >&5
21939cat >&5 <<_CSEOF
21940
21941This file was extended by $as_me, which was
21942generated by GNU Autoconf 2.59. Invocation command line was
21943
21944 CONFIG_FILES = $CONFIG_FILES
21945 CONFIG_HEADERS = $CONFIG_HEADERS
21946 CONFIG_LINKS = $CONFIG_LINKS
21947 CONFIG_COMMANDS = $CONFIG_COMMANDS
21948 $ $0 $@
21949
21950_CSEOF
21951echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21952echo >&5
21953_ACEOF
21954
21955# Files that config.status was made for.
21956if test -n "$ac_config_files"; then
21957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21958fi
21959
21960if test -n "$ac_config_headers"; then
21961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21962fi
21963
21964if test -n "$ac_config_links"; then
21965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21966fi
21967
21968if test -n "$ac_config_commands"; then
21969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21970fi
21971
21972cat >>$CONFIG_STATUS <<\_ACEOF
21973
21974ac_cs_usage="\
21975\`$as_me' instantiates files from templates according to the
21976current configuration.
21977
21978Usage: $0 [OPTIONS] [FILE]...
21979
21980 -h, --help print this help, then exit
21981 -V, --version print version number, then exit
21982 -q, --quiet do not print progress messages
21983 -d, --debug don't remove temporary files
21984 --recheck update $as_me by reconfiguring in the same conditions
21985 --file=FILE[:TEMPLATE]
21986 instantiate the configuration file FILE
21987
21988Configuration files:
21989$config_files
21990
21991Report bugs to <bug-autoconf@gnu.org>."
21992_ACEOF
21993
21994cat >>$CONFIG_STATUS <<_ACEOF
21995ac_cs_version="\\
21996config.status
21997configured by $0, generated by GNU Autoconf 2.59,
21998 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21999
22000Copyright (C) 2003 Free Software Foundation, Inc.
22001This config.status script is free software; the Free Software Foundation
22002gives unlimited permission to copy, distribute and modify it."
22003srcdir=$srcdir
22004INSTALL="$INSTALL"
22005_ACEOF
22006
22007cat >>$CONFIG_STATUS <<\_ACEOF
22008# If no file are specified by the user, then we need to provide default
22009# value. By we need to know if files were specified by the user.
22010ac_need_defaults=:
22011while test $# != 0
22012do
22013 case $1 in
22014 --*=*)
22015 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22016 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22017 ac_shift=:
22018 ;;
22019 -*)
22020 ac_option=$1
22021 ac_optarg=$2
22022 ac_shift=shift
22023 ;;
22024 *) # This is not an option, so the user has probably given explicit
22025 # arguments.
22026 ac_option=$1
22027 ac_need_defaults=false;;
22028 esac
22029
22030 case $ac_option in
22031 # Handling of the options.
22032_ACEOF
22033cat >>$CONFIG_STATUS <<\_ACEOF
22034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22035 ac_cs_recheck=: ;;
22036 --version | --vers* | -V )
22037 echo "$ac_cs_version"; exit 0 ;;
22038 --he | --h)
22039 # Conflict between --help and --header
22040 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22041Try \`$0 --help' for more information." >&5
22042echo "$as_me: error: ambiguous option: $1
22043Try \`$0 --help' for more information." >&2;}
22044 { (exit 1); exit 1; }; };;
22045 --help | --hel | -h )
22046 echo "$ac_cs_usage"; exit 0 ;;
22047 --debug | --d* | -d )
22048 debug=: ;;
22049 --file | --fil | --fi | --f )
22050 $ac_shift
22051 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22052 ac_need_defaults=false;;
22053 --header | --heade | --head | --hea )
22054 $ac_shift
22055 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22056 ac_need_defaults=false;;
22057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22058 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22059 ac_cs_silent=: ;;
22060
22061 # This is an error.
22062 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22063Try \`$0 --help' for more information." >&5
22064echo "$as_me: error: unrecognized option: $1
22065Try \`$0 --help' for more information." >&2;}
22066 { (exit 1); exit 1; }; } ;;
22067
22068 *) ac_config_targets="$ac_config_targets $1" ;;
22069
22070 esac
22071 shift
22072done
22073
22074ac_configure_extra_args=
22075
22076if $ac_cs_silent; then
22077 exec 6>/dev/null
22078 ac_configure_extra_args="$ac_configure_extra_args --silent"
22079fi
22080
22081_ACEOF
22082cat >>$CONFIG_STATUS <<_ACEOF
22083if \$ac_cs_recheck; then
22084 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22085 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22086fi
22087
22088_ACEOF
22089
22090
22091
22092
22093
22094cat >>$CONFIG_STATUS <<\_ACEOF
22095for ac_config_target in $ac_config_targets
22096do
22097 case "$ac_config_target" in
22098 # Handling of arguments.
22099 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22100 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22101 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22102 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
22103 "clients/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lib/Makefile" ;;
22104 "clients/addusr/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/addusr/Makefile" ;;
22105 "clients/blanche/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/blanche/Makefile" ;;
22106 "clients/chfn/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chfn/Makefile" ;;
22107 "clients/chpobox/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chpobox/Makefile" ;;
22108 "clients/chsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chsh/Makefile" ;;
f72fe084 22109 "clients/eunice/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/eunice/Makefile" ;;
00274452 22110 "clients/mailmaint/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mailmaint/Makefile" ;;
22111 "clients/mitch/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mitch/Makefile" ;;
22112 "clients/moira/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/moira/Makefile" ;;
22113 "clients/mrcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrcheck/Makefile" ;;
22114 "clients/mrtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrtest/Makefile" ;;
22115 "clients/stanley/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stanley/Makefile" ;;
22116 "clients/stella/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stella/Makefile" ;;
22117 "update/Makefile" ) CONFIG_FILES="$CONFIG_FILES update/Makefile" ;;
22118 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22119 "$WEBMOIRA_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WEBMOIRA_OUTPUT_FILES" ;;
22120 "$SERVER_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $SERVER_OUTPUT_FILES" ;;
22121 "$WINAD_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WINAD_OUTPUT_FILES" ;;
22122 "$AFS_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $AFS_OUTPUT_FILES" ;;
22123 "$RSAREF_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $RSAREF_OUTPUT_FILES" ;;
22124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22125echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22126 { (exit 1); exit 1; }; };;
ea0caf4a 22127 esac
00274452 22128done
22129
22130# If the user did not use the arguments to specify the items to instantiate,
22131# then the envvar interface is used. Set only those that are not.
22132# We use the long form for the default assignment because of an extremely
22133# bizarre bug on SunOS 4.1.3.
22134if $ac_need_defaults; then
22135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22136fi
22137
22138# Have a temporary directory for convenience. Make it in the build tree
22139# simply because there is no reason to put it here, and in addition,
22140# creating and moving files from /tmp can sometimes cause problems.
22141# Create a temporary directory, and hook for its removal unless debugging.
22142$debug ||
22143{
22144 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22145 trap '{ (exit 1); exit 1; }' 1 2 13 15
22146}
22147
22148# Create a (secure) tmp directory for tmp files.
22149
22150{
22151 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22152 test -n "$tmp" && test -d "$tmp"
22153} ||
22154{
22155 tmp=./confstat$$-$RANDOM
22156 (umask 077 && mkdir $tmp)
22157} ||
22158{
22159 echo "$me: cannot create a temporary directory in ." >&2
22160 { (exit 1); exit 1; }
22161}
22162
22163_ACEOF
22164
22165cat >>$CONFIG_STATUS <<_ACEOF
22166
22167#
22168# CONFIG_FILES section.
22169#
22170
22171# No need to generate the scripts if there are no CONFIG_FILES.
22172# This happens for instance when ./config.status config.h
22173if test -n "\$CONFIG_FILES"; then
22174 # Protect against being on the right side of a sed subst in config.status.
22175 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22176 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22177s,@SHELL@,$SHELL,;t t
22178s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22179s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22180s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22181s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22182s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22183s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22184s,@exec_prefix@,$exec_prefix,;t t
22185s,@prefix@,$prefix,;t t
22186s,@program_transform_name@,$program_transform_name,;t t
22187s,@bindir@,$bindir,;t t
22188s,@sbindir@,$sbindir,;t t
22189s,@libexecdir@,$libexecdir,;t t
22190s,@datadir@,$datadir,;t t
22191s,@sysconfdir@,$sysconfdir,;t t
22192s,@sharedstatedir@,$sharedstatedir,;t t
22193s,@localstatedir@,$localstatedir,;t t
22194s,@libdir@,$libdir,;t t
22195s,@includedir@,$includedir,;t t
22196s,@oldincludedir@,$oldincludedir,;t t
22197s,@infodir@,$infodir,;t t
22198s,@mandir@,$mandir,;t t
22199s,@build_alias@,$build_alias,;t t
22200s,@host_alias@,$host_alias,;t t
22201s,@target_alias@,$target_alias,;t t
22202s,@DEFS@,$DEFS,;t t
22203s,@ECHO_C@,$ECHO_C,;t t
22204s,@ECHO_N@,$ECHO_N,;t t
22205s,@ECHO_T@,$ECHO_T,;t t
22206s,@LIBS@,$LIBS,;t t
22207s,@build@,$build,;t t
22208s,@build_cpu@,$build_cpu,;t t
22209s,@build_vendor@,$build_vendor,;t t
22210s,@build_os@,$build_os,;t t
22211s,@host@,$host,;t t
22212s,@host_cpu@,$host_cpu,;t t
22213s,@host_vendor@,$host_vendor,;t t
22214s,@host_os@,$host_os,;t t
22215s,@SO_LDFLAGS@,$SO_LDFLAGS,;t t
22216s,@CC@,$CC,;t t
22217s,@CFLAGS@,$CFLAGS,;t t
22218s,@LDFLAGS@,$LDFLAGS,;t t
22219s,@CPPFLAGS@,$CPPFLAGS,;t t
22220s,@ac_ct_CC@,$ac_ct_CC,;t t
22221s,@EXEEXT@,$EXEEXT,;t t
22222s,@OBJEXT@,$OBJEXT,;t t
22223s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22224s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22225s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22226s,@RANLIB@,$RANLIB,;t t
22227s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
a816420b 22228s,@EGREP@,$EGREP,;t t
22229s,@LN_S@,$LN_S,;t t
22230s,@ECHO@,$ECHO,;t t
22231s,@AR@,$AR,;t t
22232s,@ac_ct_AR@,$ac_ct_AR,;t t
22233s,@STRIP@,$STRIP,;t t
22234s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22235s,@CPP@,$CPP,;t t
22236s,@CXX@,$CXX,;t t
22237s,@CXXFLAGS@,$CXXFLAGS,;t t
22238s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22239s,@CXXCPP@,$CXXCPP,;t t
22240s,@F77@,$F77,;t t
22241s,@FFLAGS@,$FFLAGS,;t t
22242s,@ac_ct_F77@,$ac_ct_F77,;t t
22243s,@LIBTOOL@,$LIBTOOL,;t t
00274452 22244s,@SET_MAKE@,$SET_MAKE,;t t
22245s,@mrbindir@,$mrbindir,;t t
22246s,@subdirs@,$subdirs,;t t
22247s,@COM_ERR_SUBDIR@,$COM_ERR_SUBDIR,;t t
22248s,@COMPILE_ET@,$COMPILE_ET,;t t
22249s,@REG_SVR_DEFS@,$REG_SVR_DEFS,;t t
22250s,@REG_SVR_INCLUDES@,$REG_SVR_INCLUDES,;t t
22251s,@REG_SVR_LIBS@,$REG_SVR_LIBS,;t t
22252s,@RSAREF_CPPFLAGS@,$RSAREF_CPPFLAGS,;t t
22253s,@RSAREF_LIBS@,$RSAREF_LIBS,;t t
22254s,@RSAREF_SUBDIRS@,$RSAREF_SUBDIRS,;t t
22255s,@RSAREF_LIBDEP@,$RSAREF_LIBDEP,;t t
22256s,@PRO_C@,$PRO_C,;t t
22257s,@PRO_C_DEFS@,$PRO_C_DEFS,;t t
22258s,@PRO_C_INCLUDES@,$PRO_C_INCLUDES,;t t
22259s,@PRO_C_OPTS@,$PRO_C_OPTS,;t t
22260s,@SQL_LIBS@,$SQL_LIBS,;t t
22261s,@SVRSUBDIRS@,$SVRSUBDIRS,;t t
22262s,@JAVA_CPPFLAGS@,$JAVA_CPPFLAGS,;t t
22263s,@WEBMOIRA_SUBDIRS@,$WEBMOIRA_SUBDIRS,;t t
22264s,@LDAP_CPPFLAGS@,$LDAP_CPPFLAGS,;t t
22265s,@LDAP_LIBS@,$LDAP_LIBS,;t t
22266s,@WINAD_SUBDIRS@,$WINAD_SUBDIRS,;t t
22267s,@AFS_CPPFLAGS@,$AFS_CPPFLAGS,;t t
22268s,@AFS_PRO_C_INCLUDES@,$AFS_PRO_C_INCLUDES,;t t
22269s,@AFS_LIBS@,$AFS_LIBS,;t t
22270s,@AFS_DIR@,$AFS_DIR,;t t
22271s,@AFS_SUBDIRS@,$AFS_SUBDIRS,;t t
22272s,@AFS_SYNCDIR@,$AFS_SYNCDIR,;t t
22273s,@READLINE_CPPFLAGS@,$READLINE_CPPFLAGS,;t t
22274s,@READLINE_LIBS@,$READLINE_LIBS,;t t
22275s,@CURSES_CPPFLAGS@,$CURSES_CPPFLAGS,;t t
22276s,@CURSES_LIBS@,$CURSES_LIBS,;t t
22277s,@CURSES_SUBDIRS@,$CURSES_SUBDIRS,;t t
00274452 22278s,@MR_LIBDEP@,$MR_LIBDEP,;t t
42bcd2e6 22279s,@KLIBS@,$KLIBS,;t t
00274452 22280s,@LIBOBJS@,$LIBOBJS,;t t
22281s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22282CEOF
22283
22284_ACEOF
22285
22286 cat >>$CONFIG_STATUS <<\_ACEOF
22287 # Split the substitutions into bite-sized pieces for seds with
22288 # small command number limits, like on Digital OSF/1 and HP-UX.
22289 ac_max_sed_lines=48
22290 ac_sed_frag=1 # Number of current file.
22291 ac_beg=1 # First line for current file.
22292 ac_end=$ac_max_sed_lines # Line after last line for current file.
22293 ac_more_lines=:
22294 ac_sed_cmds=
22295 while $ac_more_lines; do
22296 if test $ac_beg -gt 1; then
22297 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22298 else
22299 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22300 fi
22301 if test ! -s $tmp/subs.frag; then
22302 ac_more_lines=false
22303 else
22304 # The purpose of the label and of the branching condition is to
22305 # speed up the sed processing (if there are no `@' at all, there
22306 # is no need to browse any of the substitutions).
22307 # These are the two extra sed commands mentioned above.
22308 (echo ':t
22309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22310 if test -z "$ac_sed_cmds"; then
22311 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22312 else
22313 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22314 fi
22315 ac_sed_frag=`expr $ac_sed_frag + 1`
22316 ac_beg=$ac_end
22317 ac_end=`expr $ac_end + $ac_max_sed_lines`
22318 fi
22319 done
22320 if test -z "$ac_sed_cmds"; then
22321 ac_sed_cmds=cat
22322 fi
22323fi # test -n "$CONFIG_FILES"
ea0caf4a 22324
00274452 22325_ACEOF
22326cat >>$CONFIG_STATUS <<\_ACEOF
22327for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22328 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22329 case $ac_file in
22330 - | *:- | *:-:* ) # input from stdin
22331 cat >$tmp/stdin
22332 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22333 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22334 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22335 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22336 * ) ac_file_in=$ac_file.in ;;
ea0caf4a 22337 esac
22338
00274452 22339 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22340 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22341$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22342 X"$ac_file" : 'X\(//\)[^/]' \| \
22343 X"$ac_file" : 'X\(//\)$' \| \
22344 X"$ac_file" : 'X\(/\)' \| \
22345 . : '\(.\)' 2>/dev/null ||
22346echo X"$ac_file" |
22347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22349 /^X\(\/\/\)$/{ s//\1/; q; }
22350 /^X\(\/\).*/{ s//\1/; q; }
22351 s/.*/./; q'`
22352 { if $as_mkdir_p; then
22353 mkdir -p "$ac_dir"
22354 else
22355 as_dir="$ac_dir"
22356 as_dirs=
22357 while test ! -d "$as_dir"; do
22358 as_dirs="$as_dir $as_dirs"
22359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22361 X"$as_dir" : 'X\(//\)[^/]' \| \
22362 X"$as_dir" : 'X\(//\)$' \| \
22363 X"$as_dir" : 'X\(/\)' \| \
22364 . : '\(.\)' 2>/dev/null ||
22365echo X"$as_dir" |
22366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22368 /^X\(\/\/\)$/{ s//\1/; q; }
22369 /^X\(\/\).*/{ s//\1/; q; }
22370 s/.*/./; q'`
22371 done
22372 test ! -n "$as_dirs" || mkdir $as_dirs
22373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22374echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22375 { (exit 1); exit 1; }; }; }
22376
22377 ac_builddir=.
22378
22379if test "$ac_dir" != .; then
22380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22381 # A "../" for each directory in $ac_dir_suffix.
22382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22383else
22384 ac_dir_suffix= ac_top_builddir=
22385fi
22386
22387case $srcdir in
22388 .) # No --srcdir option. We are building in place.
22389 ac_srcdir=.
22390 if test -z "$ac_top_builddir"; then
22391 ac_top_srcdir=.
22392 else
22393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22394 fi ;;
22395 [\\/]* | ?:[\\/]* ) # Absolute path.
22396 ac_srcdir=$srcdir$ac_dir_suffix;
22397 ac_top_srcdir=$srcdir ;;
22398 *) # Relative path.
22399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22401esac
22402
22403# Do not use `cd foo && pwd` to compute absolute paths, because
22404# the directories may not exist.
22405case `pwd` in
22406.) ac_abs_builddir="$ac_dir";;
22407*)
22408 case "$ac_dir" in
22409 .) ac_abs_builddir=`pwd`;;
22410 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22411 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22412 esac;;
22413esac
22414case $ac_abs_builddir in
22415.) ac_abs_top_builddir=${ac_top_builddir}.;;
22416*)
22417 case ${ac_top_builddir}. in
22418 .) ac_abs_top_builddir=$ac_abs_builddir;;
22419 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22420 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22421 esac;;
22422esac
22423case $ac_abs_builddir in
22424.) ac_abs_srcdir=$ac_srcdir;;
22425*)
22426 case $ac_srcdir in
22427 .) ac_abs_srcdir=$ac_abs_builddir;;
22428 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22429 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22430 esac;;
22431esac
22432case $ac_abs_builddir in
22433.) ac_abs_top_srcdir=$ac_top_srcdir;;
22434*)
22435 case $ac_top_srcdir in
22436 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22437 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22438 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22439 esac;;
22440esac
22441
22442
22443 case $INSTALL in
22444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22445 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
ea0caf4a 22446 esac
22447
00274452 22448 if test x"$ac_file" != x-; then
22449 { echo "$as_me:$LINENO: creating $ac_file" >&5
22450echo "$as_me: creating $ac_file" >&6;}
22451 rm -f "$ac_file"
22452 fi
22453 # Let's still pretend it is `configure' which instantiates (i.e., don't
22454 # use $as_me), people would be surprised to read:
22455 # /* config.h. Generated by config.status. */
22456 if test x"$ac_file" = x-; then
22457 configure_input=
22458 else
22459 configure_input="$ac_file. "
22460 fi
22461 configure_input=$configure_input"Generated from `echo $ac_file_in |
22462 sed 's,.*/,,'` by configure."
22463
22464 # First look for the input files in the build tree, otherwise in the
22465 # src tree.
22466 ac_file_inputs=`IFS=:
22467 for f in $ac_file_in; do
22468 case $f in
22469 -) echo $tmp/stdin ;;
22470 [\\/$]*)
22471 # Absolute (can't be DOS-style, as IFS=:)
22472 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22473echo "$as_me: error: cannot find input file: $f" >&2;}
22474 { (exit 1); exit 1; }; }
22475 echo "$f";;
22476 *) # Relative
22477 if test -f "$f"; then
22478 # Build tree
22479 echo "$f"
22480 elif test -f "$srcdir/$f"; then
22481 # Source tree
22482 echo "$srcdir/$f"
22483 else
22484 # /dev/null tree
22485 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22486echo "$as_me: error: cannot find input file: $f" >&2;}
22487 { (exit 1); exit 1; }; }
22488 fi;;
22489 esac
22490 done` || { (exit 1); exit 1; }
22491_ACEOF
22492cat >>$CONFIG_STATUS <<_ACEOF
22493 sed "$ac_vpsub
22494$extrasub
22495_ACEOF
22496cat >>$CONFIG_STATUS <<\_ACEOF
22497:t
22498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22499s,@configure_input@,$configure_input,;t t
22500s,@srcdir@,$ac_srcdir,;t t
22501s,@abs_srcdir@,$ac_abs_srcdir,;t t
22502s,@top_srcdir@,$ac_top_srcdir,;t t
22503s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22504s,@builddir@,$ac_builddir,;t t
22505s,@abs_builddir@,$ac_abs_builddir,;t t
22506s,@top_builddir@,$ac_top_builddir,;t t
22507s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22508s,@INSTALL@,$ac_INSTALL,;t t
22509" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22510 rm -f $tmp/stdin
22511 if test x"$ac_file" != x-; then
22512 mv $tmp/out $ac_file
22513 else
22514 cat $tmp/out
22515 rm -f $tmp/out
22516 fi
ea0caf4a 22517
00274452 22518done
22519_ACEOF
ea0caf4a 22520
00274452 22521cat >>$CONFIG_STATUS <<\_ACEOF
ea0caf4a 22522
00274452 22523{ (exit 0); exit 0; }
22524_ACEOF
ea0caf4a 22525chmod +x $CONFIG_STATUS
00274452 22526ac_clean_files=$ac_clean_files_save
22527
22528
22529# configure is writing to config.log, and then calls config.status.
22530# config.status does its own redirection, appending to config.log.
22531# Unfortunately, on DOS this fails, as config.log is still kept open
22532# by configure, so config.status won't be able to write to it; its
22533# output is simply discarded. So we exec the FD to /dev/null,
22534# effectively closing config.log, so it can be properly (re)opened and
22535# appended to by config.status. When coming back to configure, we
22536# need to make the FD available again.
22537if test "$no_create" != yes; then
22538 ac_cs_success=:
22539 ac_config_status_args=
22540 test "$silent" = yes &&
22541 ac_config_status_args="$ac_config_status_args --quiet"
22542 exec 5>/dev/null
22543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22544 exec 5>>config.log
22545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22546 # would make configure fail if this is the last instruction.
22547 $ac_cs_success || { (exit 1); exit 1; }
22548fi
ea0caf4a 22549
00274452 22550#
22551# CONFIG_SUBDIRS section.
22552#
ea0caf4a 22553if test "$no_recursion" != yes; then
22554
22555 # Remove --cache-file and --srcdir arguments so they do not pile up.
22556 ac_sub_configure_args=
22557 ac_prev=
22558 for ac_arg in $ac_configure_args; do
22559 if test -n "$ac_prev"; then
22560 ac_prev=
22561 continue
22562 fi
00274452 22563 case $ac_arg in
ea0caf4a 22564 -cache-file | --cache-file | --cache-fil | --cache-fi \
22565 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22566 ac_prev=cache_file ;;
22567 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
00274452 22568 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22569 | --c=*)
22570 ;;
22571 --config-cache | -C)
ea0caf4a 22572 ;;
22573 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22574 ac_prev=srcdir ;;
22575 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22576 ;;
00274452 22577 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22578 ac_prev=prefix ;;
22579 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22580 ;;
ea0caf4a 22581 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22582 esac
22583 done
22584
00274452 22585 # Always prepend --prefix to ensure using the same prefix
22586 # in subdir configurations.
22587 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22588
22589 ac_popdir=`pwd`
22590 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
ea0caf4a 22591
22592 # Do not complain, so a configure script can configure whichever
22593 # parts of a large source tree are present.
00274452 22594 test -d $srcdir/$ac_dir || continue
ea0caf4a 22595
00274452 22596 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22597echo "$as_me: configuring in $ac_dir" >&6;}
22598 { if $as_mkdir_p; then
22599 mkdir -p "$ac_dir"
22600 else
22601 as_dir="$ac_dir"
22602 as_dirs=
22603 while test ! -d "$as_dir"; do
22604 as_dirs="$as_dir $as_dirs"
22605 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22606$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22607 X"$as_dir" : 'X\(//\)[^/]' \| \
22608 X"$as_dir" : 'X\(//\)$' \| \
22609 X"$as_dir" : 'X\(/\)' \| \
22610 . : '\(.\)' 2>/dev/null ||
22611echo X"$as_dir" |
22612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22614 /^X\(\/\/\)$/{ s//\1/; q; }
22615 /^X\(\/\).*/{ s//\1/; q; }
22616 s/.*/./; q'`
22617 done
22618 test ! -n "$as_dirs" || mkdir $as_dirs
22619 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22620echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22621 { (exit 1); exit 1; }; }; }
22622
22623 ac_builddir=.
22624
22625if test "$ac_dir" != .; then
22626 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22627 # A "../" for each directory in $ac_dir_suffix.
22628 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22629else
22630 ac_dir_suffix= ac_top_builddir=
22631fi
ea0caf4a 22632
00274452 22633case $srcdir in
22634 .) # No --srcdir option. We are building in place.
22635 ac_srcdir=.
22636 if test -z "$ac_top_builddir"; then
22637 ac_top_srcdir=.
22638 else
22639 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22640 fi ;;
22641 [\\/]* | ?:[\\/]* ) # Absolute path.
22642 ac_srcdir=$srcdir$ac_dir_suffix;
22643 ac_top_srcdir=$srcdir ;;
22644 *) # Relative path.
22645 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22646 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22647esac
ea0caf4a 22648
00274452 22649# Do not use `cd foo && pwd` to compute absolute paths, because
22650# the directories may not exist.
22651case `pwd` in
22652.) ac_abs_builddir="$ac_dir";;
22653*)
22654 case "$ac_dir" in
22655 .) ac_abs_builddir=`pwd`;;
22656 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22657 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22658 esac;;
22659esac
22660case $ac_abs_builddir in
22661.) ac_abs_top_builddir=${ac_top_builddir}.;;
22662*)
22663 case ${ac_top_builddir}. in
22664 .) ac_abs_top_builddir=$ac_abs_builddir;;
22665 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22666 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22667 esac;;
22668esac
22669case $ac_abs_builddir in
22670.) ac_abs_srcdir=$ac_srcdir;;
22671*)
22672 case $ac_srcdir in
22673 .) ac_abs_srcdir=$ac_abs_builddir;;
22674 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22675 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22676 esac;;
22677esac
22678case $ac_abs_builddir in
22679.) ac_abs_top_srcdir=$ac_top_srcdir;;
22680*)
22681 case $ac_top_srcdir in
22682 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22683 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22684 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22685 esac;;
22686esac
ea0caf4a 22687
ea0caf4a 22688
00274452 22689 cd $ac_dir
ea0caf4a 22690
22691 # Check for guested configure; otherwise get Cygnus style configure.
00274452 22692 if test -f $ac_srcdir/configure.gnu; then
22693 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22694 elif test -f $ac_srcdir/configure; then
22695 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22696 elif test -f $ac_srcdir/configure.in; then
ea0caf4a 22697 ac_sub_configure=$ac_configure
22698 else
00274452 22699 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22700echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
ea0caf4a 22701 ac_sub_configure=
22702 fi
22703
22704 # The recursion is here.
22705 if test -n "$ac_sub_configure"; then
ea0caf4a 22706 # Make the cache file name correct relative to the subdirectory.
00274452 22707 case $cache_file in
22708 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
ea0caf4a 22709 *) # Relative path.
00274452 22710 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
ea0caf4a 22711 esac
ea0caf4a 22712
00274452 22713 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22714echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
ea0caf4a 22715 # The eval makes quoting arguments work.
00274452 22716 eval $ac_sub_configure $ac_sub_configure_args \
22717 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
22718 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22719echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22720 { (exit 1); exit 1; }; }
ea0caf4a 22721 fi
22722
22723 cd $ac_popdir
22724 done
22725fi
22726
This page took 3.22669 seconds and 5 git commands to generate.