]> cygwin.com Git - cygwin-apps/setup.git/blame - configure
2002-07-02 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / configure
CommitLineData
739457f4 1#! /bin/sh
08cd08c3 2# From configure.in Revision: 2.12 .
739457f4 3# Guess values for system-dependent variables and create Makefiles.
aa1e3b4d 4# Generated by GNU Autoconf 2.53a.
739457f4 5#
db04fc41
RC
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# Free Software Foundation, Inc.
739457f4
CF
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
db04fc41
RC
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
aa1e3b4d
RC
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
db04fc41
RC
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24
25# NLS nuisances.
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
34 { $as_unset LANG || test "${LANG+set}" != set; } ||
35 { LANG=C; export LANG; }
36(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
37 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
38 { LC_ALL=C; export LC_ALL; }
39(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
40 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
41 { LC_TIME=C; export LC_TIME; }
42(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
43 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
44 { LC_CTYPE=C; export LC_CTYPE; }
45(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
46 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
47 { LANGUAGE=C; export LANGUAGE; }
48(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
49 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
50 { LC_COLLATE=C; export LC_COLLATE; }
51(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
52 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
53 { LC_NUMERIC=C; export LC_NUMERIC; }
54(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
55 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
56 { LC_MESSAGES=C; export LC_MESSAGES; }
57
58
aa1e3b4d
RC
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61 as_expr=expr
62else
63 as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 as_basename=basename
68else
69 as_basename=false
70fi
71
72
db04fc41 73# Name of the executable.
aa1e3b4d 74as_me=`$as_basename "$0" ||
db04fc41
RC
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76 X"$0" : 'X\(//\)$' \| \
77 X"$0" : 'X\(/\)$' \| \
78 . : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81 /^X\/\(\/\/\)$/{ s//\1/; q; }
82 /^X\/\(\/\).*/{ s//\1/; q; }
83 s/.*/./; q'`
84
aa1e3b4d 85
db04fc41
RC
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96 echo "#! /bin/sh" >conftest.sh
97 echo "exit 0" >>conftest.sh
98 chmod +x conftest.sh
99 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
100 PATH_SEPARATOR=';'
101 else
102 PATH_SEPARATOR=:
103 fi
104 rm -f conftest.sh
105fi
106
107
108 as_lineno_1=$LINENO
109 as_lineno_2=$LINENO
110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111 test "x$as_lineno_1" != "x$as_lineno_2" &&
112 test "x$as_lineno_3" = "x$as_lineno_2" || {
113 # Find who we are. Look in the path if we contain no path at all
114 # relative or not.
115 case $0 in
116 *[\\/]* ) as_myself=$0 ;;
117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120 IFS=$as_save_IFS
121 test -z "$as_dir" && as_dir=.
122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125 ;;
126 esac
127 # We did not find ourselves, most probably we were run as `sh COMMAND'
128 # in which case we are not to be found in the path.
129 if test "x$as_myself" = x; then
130 as_myself=$0
131 fi
132 if test ! -f "$as_myself"; then
133 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134 { (exit 1); exit 1; }; }
135 fi
136 case $CONFIG_SHELL in
137 '')
138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141 IFS=$as_save_IFS
142 test -z "$as_dir" && as_dir=.
143 for as_base in sh bash ksh sh5; do
144 case $as_dir in
145 /*)
146 if ("$as_dir/$as_base" -c '
147 as_lineno_1=$LINENO
148 as_lineno_2=$LINENO
149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150 test "x$as_lineno_1" != "x$as_lineno_2" &&
151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
aa1e3b4d
RC
152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
db04fc41
RC
154 CONFIG_SHELL=$as_dir/$as_base
155 export CONFIG_SHELL
156 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 fi;;
158 esac
159 done
160done
161;;
162 esac
163
164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165 # uniformly replaced by the line number. The first 'sed' inserts a
166 # line-number line before each line; the second 'sed' does the real
167 # work. The second script uses 'N' to pair each line-number line
168 # with the numbered line, and appends trailing '-' during
169 # substitution so that $LINENO is not a special case at line end.
170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
172 sed '=' <$as_myself |
173 sed '
174 N
175 s,$,-,
176 : loop
177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178 t loop
179 s,-$,,
180 s,^['$as_cr_digits']*\n,,
181 ' >$as_me.lineno &&
182 chmod +x $as_me.lineno ||
183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184 { (exit 1); exit 1; }; }
185
186 # Don't try to exec as it changes $[0], causing all sort of problems
187 # (the dirname of $[0] is not the place where we might find the
188 # original and so on. Autoconf is especially sensible to this).
189 . ./$as_me.lineno
190 # Exit status is that of the last command.
191 exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196 *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T=' ' ;;
198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203 as_expr=expr
204else
205 as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211 # We could just check for DJGPP; but this test a) works b) is more generic
212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213 if test -f conf$$.exe; then
214 # Don't use ln at all; we don't have any links
215 as_ln_s='cp -p'
216 else
217 as_ln_s='ln -s'
218 fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220 as_ln_s=ln
221else
222 as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
aa1e3b4d
RC
226if mkdir -p . 2>/dev/null; then
227 as_mkdir_p=:
228else
229 as_mkdir_p=false
230fi
231
db04fc41
RC
232as_executable_p="test -f"
233
234# Sed expression to map a string onto a valid CPP name.
235as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
236
237# Sed expression to map a string onto a valid variable name.
238as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
239
240
241# IFS
242# We need space, tab and new line, in precisely that order.
243as_nl='
244'
245IFS=" $as_nl"
246
247# CDPATH.
248$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
249
250
aa1e3b4d
RC
251
252# Check that we are running under the correct shell.
253SHELL=${CONFIG_SHELL-/bin/sh}
254
255case X$ECHO in
256X*--fallback-echo)
257 # Remove one level of quotation (which was required for Make).
258 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 ;;
260esac
261
262echo=${ECHO-echo}
263if test "X$1" = X--no-reexec; then
264 # Discard the --no-reexec flag, and continue.
265 shift
266elif test "X$1" = X--fallback-echo; then
267 # Avoid inline document here, it may be left over
268 :
269elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
270 # Yippee, $echo works!
271 :
272else
273 # Restart under the correct shell.
274 exec $SHELL "$0" --no-reexec ${1+"$@"}
275fi
276
277if test "X$1" = X--fallback-echo; then
278 # used as fallback echo
279 shift
280 cat <<EOF
281$*
282EOF
283 exit 0
284fi
285
286# The HP-UX ksh and POSIX shell print the target directory to stdout
287# if CDPATH is set.
288if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
289
290if test -z "$ECHO"; then
291if test "X${echo_test_string+set}" != Xset; then
292# find a string as large as possible, as long as the shell can cope with it
293 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
296 echo_test_string="`eval $cmd`" &&
297 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 then
299 break
300 fi
301 done
302fi
303
304if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306 test "X$echo_testing_string" = "X$echo_test_string"; then
307 :
308else
309 # The Solaris, AIX, and Digital Unix default echo programs unquote
310 # backslashes. This makes it impossible to quote backslashes using
311 # echo "$something" | sed 's/\\/\\\\/g'
312 #
313 # So, first we look for a working echo in the user's PATH.
314
315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316 for dir in $PATH /usr/ucb; do
317 IFS="$lt_save_ifs"
318 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
319 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
320 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
321 test "X$echo_testing_string" = "X$echo_test_string"; then
322 echo="$dir/echo"
323 break
324 fi
325 done
326 IFS="$lt_save_ifs"
327
328 if test "X$echo" = Xecho; then
329 # We didn't find a better echo, so look for alternatives.
330 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
331 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
332 test "X$echo_testing_string" = "X$echo_test_string"; then
333 # This shell has a builtin print -r that does the trick.
334 echo='print -r'
335 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
336 test "X$CONFIG_SHELL" != X/bin/ksh; then
337 # If we have ksh, try running configure again with it.
338 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
339 export ORIGINAL_CONFIG_SHELL
340 CONFIG_SHELL=/bin/ksh
341 export CONFIG_SHELL
342 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 else
344 # Try using printf.
345 echo='printf %s\n'
346 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
347 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 # Cool, printf works
350 :
351 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
352 test "X$echo_testing_string" = 'X\t' &&
353 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
354 test "X$echo_testing_string" = "X$echo_test_string"; then
355 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
356 export CONFIG_SHELL
357 SHELL="$CONFIG_SHELL"
358 export SHELL
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
361 test "X$echo_testing_string" = 'X\t' &&
362 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
363 test "X$echo_testing_string" = "X$echo_test_string"; then
364 echo="$CONFIG_SHELL $0 --fallback-echo"
365 else
366 # maybe with a smaller string...
367 prev=:
368
369 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
370 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 then
372 break
373 fi
374 prev="$cmd"
375 done
376
377 if test "$prev" != 'sed 50q "$0"'; then
378 echo_test_string=`eval $prev`
379 export echo_test_string
380 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
381 else
382 # Oops. We lost completely, so just stick with echo.
383 echo=echo
384 fi
385 fi
386 fi
387 fi
388fi
389fi
390
391# Copy echo and quote the copy suitably for passing to libtool from
392# the Makefile, instead of quoting the original, which is used later.
393ECHO=$echo
394if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
395 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396fi
397
398
399
db04fc41
RC
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
739457f4 410ac_default_prefix=/usr/local
db04fc41
RC
411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME=
424PACKAGE_TARNAME=
425PACKAGE_VERSION=
426PACKAGE_STRING=
427PACKAGE_BUGREPORT=
428
429ac_unique_file="Makefile.in"
b401ef47 430ac_subdirs_all="$ac_subdirs_all rsync"
6908b7d7
RC
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
db04fc41
RC
468ac_subdirs_all="$ac_subdirs_all zlib"
469ac_subdirs_all="$ac_subdirs_all bz2lib"
6908b7d7 470ac_subdirs_all="$ac_subdirs_all libgetopt++"
739457f4
CF
471
472# Initialize some variables set by options.
db04fc41
RC
473ac_init_help=
474ac_init_version=false
739457f4
CF
475# The variables have the same names as the options, with
476# dashes changed to underlines.
db04fc41 477cache_file=/dev/null
739457f4 478exec_prefix=NONE
739457f4 479no_create=
739457f4
CF
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
739457f4 487srcdir=
739457f4
CF
488verbose=
489x_includes=NONE
490x_libraries=NONE
db04fc41
RC
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
739457f4
CF
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
739457f4
CF
510ac_prev=
511for ac_option
512do
739457f4
CF
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
db04fc41 520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
739457f4
CF
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
db04fc41 524 case $ac_option in
739457f4
CF
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
db04fc41 529 bindir=$ac_optarg ;;
739457f4
CF
530
531 -build | --build | --buil | --bui | --bu)
db04fc41 532 ac_prev=build_alias ;;
739457f4 533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
db04fc41 534 build_alias=$ac_optarg ;;
739457f4
CF
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
db04fc41
RC
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
739457f4
CF
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
db04fc41 550 datadir=$ac_optarg ;;
739457f4
CF
551
552 -disable-* | --disable-*)
db04fc41 553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
739457f4 554 # Reject names that are not valid shell variable names.
db04fc41
RC
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
739457f4
CF
560
561 -enable-* | --enable-*)
db04fc41 562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
739457f4 563 # Reject names that are not valid shell variable names.
db04fc41
RC
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739457f4
CF
570 *) ac_optarg=yes ;;
571 esac
db04fc41 572 eval "enable_$ac_feature='$ac_optarg'" ;;
739457f4
CF
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
db04fc41 581 exec_prefix=$ac_optarg ;;
739457f4
CF
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
db04fc41
RC
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
739457f4
CF
593
594 -host | --host | --hos | --ho)
db04fc41 595 ac_prev=host_alias ;;
739457f4 596 -host=* | --host=* | --hos=* | --ho=*)
db04fc41 597 host_alias=$ac_optarg ;;
739457f4
CF
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
db04fc41 604 includedir=$ac_optarg ;;
739457f4
CF
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
db04fc41 609 infodir=$ac_optarg ;;
739457f4
CF
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
db04fc41 614 libdir=$ac_optarg ;;
739457f4
CF
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
db04fc41 621 libexecdir=$ac_optarg ;;
739457f4
CF
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
db04fc41 630 localstatedir=$ac_optarg ;;
739457f4
CF
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
db04fc41 635 mandir=$ac_optarg ;;
739457f4
CF
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
db04fc41 642 | --no-cr | --no-c | -n)
739457f4
CF
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
db04fc41 656 oldincludedir=$ac_optarg ;;
739457f4
CF
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
db04fc41 661 prefix=$ac_optarg ;;
739457f4
CF
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
db04fc41 668 program_prefix=$ac_optarg ;;
739457f4
CF
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
db04fc41 675 program_suffix=$ac_optarg ;;
739457f4
CF
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
db04fc41 692 program_transform_name=$ac_optarg ;;
739457f4
CF
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
db04fc41 702 sbindir=$ac_optarg ;;
739457f4
CF
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
db04fc41 713 sharedstatedir=$ac_optarg ;;
739457f4
CF
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
db04fc41 718 site=$ac_optarg ;;
739457f4 719
739457f4
CF
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
db04fc41 723 srcdir=$ac_optarg ;;
739457f4
CF
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
db04fc41 730 sysconfdir=$ac_optarg ;;
739457f4
CF
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
db04fc41 733 ac_prev=target_alias ;;
739457f4 734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
db04fc41 735 target_alias=$ac_optarg ;;
739457f4
CF
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
db04fc41
RC
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
739457f4
CF
742
743 -with-* | --with-*)
db04fc41 744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739457f4 745 # Reject names that are not valid shell variable names.
db04fc41
RC
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
739457f4 749 ac_package=`echo $ac_package| sed 's/-/_/g'`
db04fc41
RC
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739457f4
CF
752 *) ac_optarg=yes ;;
753 esac
db04fc41 754 eval "with_$ac_package='$ac_optarg'" ;;
739457f4
CF
755
756 -without-* | --without-*)
db04fc41 757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
739457f4 758 # Reject names that are not valid shell variable names.
db04fc41
RC
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
739457f4
CF
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
db04fc41 774 x_includes=$ac_optarg ;;
739457f4
CF
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
db04fc41 781 x_libraries=$ac_optarg ;;
739457f4 782
db04fc41
RC
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
739457f4
CF
786 ;;
787
db04fc41
RC
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
739457f4 798 *)
db04fc41
RC
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
739457f4
CF
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
db04fc41
RC
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
739457f4 813fi
739457f4 814
db04fc41
RC
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
739457f4 825
db04fc41
RC
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
739457f4 829do
db04fc41
RC
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
739457f4
CF
835 esac
836done
837
db04fc41
RC
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
739457f4 855
db04fc41
RC
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
739457f4 860
739457f4
CF
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
db04fc41
RC
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
739457f4
CF
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
db04fc41
RC
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
739457f4 889 else
db04fc41
RC
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
739457f4
CF
892 fi
893fi
db04fc41
RC
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CXX_set=${CXX+set}
908ac_env_CXX_value=$CXX
909ac_cv_env_CXX_set=${CXX+set}
910ac_cv_env_CXX_value=$CXX
911ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912ac_env_CXXFLAGS_value=$CXXFLAGS
913ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_cv_env_CXXFLAGS_value=$CXXFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CC_set=${CC+set}
924ac_env_CC_value=$CC
925ac_cv_env_CC_set=${CC+set}
926ac_cv_env_CC_value=$CC
927ac_env_CFLAGS_set=${CFLAGS+set}
928ac_env_CFLAGS_value=$CFLAGS
929ac_cv_env_CFLAGS_set=${CFLAGS+set}
930ac_cv_env_CFLAGS_value=$CFLAGS
6908b7d7
RC
931ac_env_CPP_set=${CPP+set}
932ac_env_CPP_value=$CPP
933ac_cv_env_CPP_set=${CPP+set}
934ac_cv_env_CPP_value=$CPP
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
db04fc41
RC
939
940#
941# Report the --help message.
942#
943if test "$ac_init_help" = "long"; then
944 # Omit some internal or obsolete options to make the list less imposing.
945 # This message is too long to be a string in the A/UX 3.1 sh.
946 cat <<_ACEOF
947\`configure' configures this package to adapt to many kinds of systems.
948
949Usage: $0 [OPTION]... [VAR=VALUE]...
950
951To assign environment variables (e.g., CC, CFLAGS...), specify them as
952VAR=VALUE. See below for descriptions of some of the useful variables.
953
954Defaults for the options are specified in brackets.
955
956Configuration:
957 -h, --help display this help and exit
958 --help=short display options specific to this package
959 --help=recursive display the short help of all the included packages
960 -V, --version display version information and exit
961 -q, --quiet, --silent do not print \`checking...' messages
962 --cache-file=FILE cache test results in FILE [disabled]
963 -C, --config-cache alias for \`--cache-file=config.cache'
964 -n, --no-create do not create output files
965 --srcdir=DIR find the sources in DIR [configure dir or \`..']
966
967_ACEOF
968
969 cat <<_ACEOF
970Installation directories:
971 --prefix=PREFIX install architecture-independent files in PREFIX
972 [$ac_default_prefix]
973 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
974 [PREFIX]
975
976By default, \`make install' will install all the files in
977\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
978an installation prefix other than \`$ac_default_prefix' using \`--prefix',
979for instance \`--prefix=\$HOME'.
980
981For better control, use the options below.
982
983Fine tuning of the installation directories:
984 --bindir=DIR user executables [EPREFIX/bin]
985 --sbindir=DIR system admin executables [EPREFIX/sbin]
986 --libexecdir=DIR program executables [EPREFIX/libexec]
987 --datadir=DIR read-only architecture-independent data [PREFIX/share]
988 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
989 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
990 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
991 --libdir=DIR object code libraries [EPREFIX/lib]
992 --includedir=DIR C header files [PREFIX/include]
993 --oldincludedir=DIR C header files for non-gcc [/usr/include]
994 --infodir=DIR info documentation [PREFIX/info]
995 --mandir=DIR man documentation [PREFIX/man]
996_ACEOF
997
998 cat <<\_ACEOF
999
f6100b6f
RC
1000Program names:
1001 --program-prefix=PREFIX prepend PREFIX to installed program names
1002 --program-suffix=SUFFIX append SUFFIX to installed program names
1003 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1004
db04fc41
RC
1005System types:
1006 --build=BUILD configure for building on BUILD [guessed]
1007 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1008_ACEOF
1009fi
1010
1011if test -n "$ac_init_help"; then
1012
1013 cat <<\_ACEOF
1014
f6100b6f
RC
1015Optional Features:
1016 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1017 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
19911586 1020 --enable-inilint Build the inilint tool
b401ef47 1021 --enable-rsync Compile in rsync support
f6100b6f
RC
1022 --disable-dependency-tracking Speeds up one-time builds
1023 --enable-dependency-tracking Do not reject slow dependency extractors
6908b7d7
RC
1024 --enable-shared[=PKGS]
1025 build shared libraries [default=yes]
1026 --enable-static[=PKGS]
1027 build static libraries [default=yes]
1028 --enable-fast-install[=PKGS]
1029 optimize for fast installation [default=yes]
1030 --disable-libtool-lock avoid locking (might break parallel builds)
1031
1032Optional Packages:
1033 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1034 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1035 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1036 --with-pic try to use only PIC/non-PIC objects [default=use
1037 both]
1038 --with-tags=TAGS include additional configurations [CXX,GCJ]
f6100b6f 1039
db04fc41
RC
1040Some influential environment variables:
1041 CXX C++ compiler command
1042 CXXFLAGS C++ compiler flags
1043 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1044 nonstandard directory <lib dir>
1045 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1046 headers in a nonstandard directory <include dir>
1047 CC C compiler command
1048 CFLAGS C compiler flags
6908b7d7
RC
1049 CPP C preprocessor
1050 CXXCPP C++ preprocessor
db04fc41
RC
1051
1052Use these variables to override the choices made by `configure' or to help
1053it to find libraries and programs with nonstandard names/locations.
1054
1055_ACEOF
1056fi
1057
1058if test "$ac_init_help" = "recursive"; then
1059 # If there are subdirs, report their specific --help.
1060 ac_popdir=`pwd`
1061 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1062 test -d $ac_dir || continue
1063 ac_builddir=.
1064
1065if test "$ac_dir" != .; then
1066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1067 # A "../" for each directory in $ac_dir_suffix.
1068 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1069else
1070 ac_dir_suffix= ac_top_builddir=
1071fi
1072
1073case $srcdir in
1074 .) # No --srcdir option. We are building in place.
1075 ac_srcdir=.
1076 if test -z "$ac_top_builddir"; then
1077 ac_top_srcdir=.
1078 else
1079 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1080 fi ;;
1081 [\\/]* | ?:[\\/]* ) # Absolute path.
1082 ac_srcdir=$srcdir$ac_dir_suffix;
1083 ac_top_srcdir=$srcdir ;;
1084 *) # Relative path.
1085 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1086 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1087esac
1088# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1089# absolute.
1090ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
aa1e3b4d 1091ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
db04fc41
RC
1092ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1093ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1094
1095 cd $ac_dir
1096 # Check for guested configure; otherwise get Cygnus style configure.
1097 if test -f $ac_srcdir/configure.gnu; then
1098 echo
1099 $SHELL $ac_srcdir/configure.gnu --help=recursive
1100 elif test -f $ac_srcdir/configure; then
1101 echo
1102 $SHELL $ac_srcdir/configure --help=recursive
1103 elif test -f $ac_srcdir/configure.ac ||
1104 test -f $ac_srcdir/configure.in; then
1105 echo
1106 $ac_configure --help
1107 else
1108 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1109 fi
1110 cd $ac_popdir
1111 done
1112fi
1113
1114test -n "$ac_init_help" && exit 0
1115if $ac_init_version; then
1116 cat <<\_ACEOF
1117
1118Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1119Free Software Foundation, Inc.
1120This configure script is free software; the Free Software Foundation
1121gives unlimited permission to copy, distribute and modify it.
1122_ACEOF
1123 exit 0
1124fi
1125exec 5>config.log
1126cat >&5 <<_ACEOF
1127This file contains any messages produced by compilers while
1128running configure, to aid debugging if configure makes a mistake.
1129
1130It was created by $as_me, which was
aa1e3b4d 1131generated by GNU Autoconf 2.53a. Invocation command line was
db04fc41
RC
1132
1133 $ $0 $@
1134
1135_ACEOF
1136{
1137cat <<_ASUNAME
1138## --------- ##
1139## Platform. ##
1140## --------- ##
1141
1142hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1143uname -m = `(uname -m) 2>/dev/null || echo unknown`
1144uname -r = `(uname -r) 2>/dev/null || echo unknown`
1145uname -s = `(uname -s) 2>/dev/null || echo unknown`
1146uname -v = `(uname -v) 2>/dev/null || echo unknown`
1147
1148/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1149/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1150
1151/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1152/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1153/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1154hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1155/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1156/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1157/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1158
1159_ASUNAME
1160
1161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1162for as_dir in $PATH
1163do
1164 IFS=$as_save_IFS
1165 test -z "$as_dir" && as_dir=.
1166 echo "PATH: $as_dir"
1167done
1168
1169} >&5
1170
1171cat >&5 <<_ACEOF
1172
1173
1174## ----------- ##
1175## Core tests. ##
1176## ----------- ##
1177
1178_ACEOF
1179
1180
1181# Keep a trace of the command line.
1182# Strip out --no-create and --no-recursion so they do not pile up.
1183# Also quote any args containing shell meta-characters.
1184ac_configure_args=
1185ac_sep=
1186for ac_arg
1187do
1188 case $ac_arg in
1189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1190 | --no-cr | --no-c | -n ) continue ;;
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 continue ;;
1194 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1195 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1196 esac
1197 case " $ac_configure_args " in
1198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1199 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1200 ac_sep=" " ;;
1201 esac
1202 # Get rid of the leading space.
1203done
1204
1205# When interrupted or exit'd, cleanup temporary files, and complete
1206# config.log. We remove comments because anyway the quotes in there
1207# would cause problems or look ugly.
1208# WARNING: Be sure not to use single quotes in there, as some shells,
1209# such as our DU 5.0 friend, will then `close' the trap.
1210trap 'exit_status=$?
1211 # Save into config.log some information that might help in debugging.
1212 {
1213 echo
1214 cat <<\_ASBOX
1215## ---------------- ##
1216## Cache variables. ##
1217## ---------------- ##
1218_ASBOX
1219 echo
1220 # The following way of writing the cache mishandles newlines in values,
1221{
1222 (set) 2>&1 |
1223 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1224 *ac_space=\ *)
1225 sed -n \
1226 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1228 ;;
1229 *)
1230 sed -n \
1231 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1232 ;;
1233 esac;
1234}
1235 echo
1236 if test -s confdefs.h; then
1237 cat <<\_ASBOX
1238## ----------- ##
1239## confdefs.h. ##
1240## ----------- ##
1241_ASBOX
1242 echo
1243 sed "/^$/d" confdefs.h
1244 echo
1245 fi
1246 test "$ac_signal" != 0 &&
1247 echo "$as_me: caught signal $ac_signal"
1248 echo "$as_me: exit $exit_status"
1249 } >&5
1250 rm -f core core.* *.core &&
1251 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1252 exit $exit_status
1253 ' 0
1254for ac_signal in 1 2 13 15; do
1255 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1256done
1257ac_signal=0
1258
1259# confdefs.h avoids OS command line length limits that DEFS can exceed.
1260rm -rf conftest* confdefs.h
1261# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1262echo >confdefs.h
1263
1264# Predefined preprocessor variables.
1265
1266cat >>confdefs.h <<_ACEOF
1267#define PACKAGE_NAME "$PACKAGE_NAME"
1268_ACEOF
1269
739457f4 1270
db04fc41
RC
1271cat >>confdefs.h <<_ACEOF
1272#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1273_ACEOF
1274
1275
1276cat >>confdefs.h <<_ACEOF
1277#define PACKAGE_VERSION "$PACKAGE_VERSION"
1278_ACEOF
1279
1280
1281cat >>confdefs.h <<_ACEOF
1282#define PACKAGE_STRING "$PACKAGE_STRING"
1283_ACEOF
1284
1285
1286cat >>confdefs.h <<_ACEOF
1287#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1288_ACEOF
1289
1290
1291# Let the site file select an alternate cache file if it wants to.
739457f4 1292# Prefer explicitly selected file to automatically selected ones.
cef493d7
CF
1293if test -z "$CONFIG_SITE"; then
1294 if test "x$prefix" != xNONE; then
1295 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1296 else
1297 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
739457f4 1298 fi
739457f4
CF
1299fi
1300for ac_site_file in $CONFIG_SITE; do
1301 if test -r "$ac_site_file"; then
db04fc41
RC
1302 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1303echo "$as_me: loading site script $ac_site_file" >&6;}
1304 sed 's/^/| /' "$ac_site_file" >&5
739457f4
CF
1305 . "$ac_site_file"
1306 fi
1307done
1308
1309if test -r "$cache_file"; then
db04fc41
RC
1310 # Some versions of bash will fail to source /dev/null (special
1311 # files actually), so we avoid doing that.
1312 if test -f "$cache_file"; then
1313 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1314echo "$as_me: loading cache $cache_file" >&6;}
1315 case $cache_file in
1316 [\\/]* | ?:[\\/]* ) . $cache_file;;
1317 *) . ./$cache_file;;
1318 esac
1319 fi
739457f4 1320else
db04fc41
RC
1321 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1322echo "$as_me: creating cache $cache_file" >&6;}
1323 >$cache_file
1324fi
1325
1326# Check that the precious variables saved in the cache have kept the same
1327# value.
1328ac_cache_corrupted=false
1329for ac_var in `(set) 2>&1 |
1330 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1331 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1332 eval ac_new_set=\$ac_env_${ac_var}_set
1333 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1334 eval ac_new_val="\$ac_env_${ac_var}_value"
1335 case $ac_old_set,$ac_new_set in
1336 set,)
1337 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1338echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1339 ac_cache_corrupted=: ;;
1340 ,set)
1341 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1342echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1343 ac_cache_corrupted=: ;;
1344 ,);;
1345 *)
1346 if test "x$ac_old_val" != "x$ac_new_val"; then
1347 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1348echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1349 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1350echo "$as_me: former value: $ac_old_val" >&2;}
1351 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1352echo "$as_me: current value: $ac_new_val" >&2;}
1353 ac_cache_corrupted=:
1354 fi;;
1355 esac
1356 # Pass precious variables to config.status.
1357 if test "$ac_new_set" = set; then
1358 case $ac_new_val in
1359 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1360 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1361 *) ac_arg=$ac_var=$ac_new_val ;;
1362 esac
1363 case " $ac_configure_args " in
1364 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1365 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1366 esac
1367 fi
1368done
1369if $ac_cache_corrupted; then
1370 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1371echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1372 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1373echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1374 { (exit 1); exit 1; }; }
739457f4
CF
1375fi
1376
1377ac_ext=c
739457f4 1378ac_cpp='$CPP $CPPFLAGS'
db04fc41
RC
1379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1381ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
739457f4
CF
1393
1394
1395
1396
1397
1398
72826a5b
CF
1399
1400
aa1e3b4d 1401
72826a5b 1402ac_aux_dir=
db04fc41 1403for ac_dir in cfgaux $srcdir/cfgaux; do
72826a5b
CF
1404 if test -f $ac_dir/install-sh; then
1405 ac_aux_dir=$ac_dir
1406 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 break
1408 elif test -f $ac_dir/install.sh; then
1409 ac_aux_dir=$ac_dir
1410 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 break
db04fc41
RC
1412 elif test -f $ac_dir/shtool; then
1413 ac_aux_dir=$ac_dir
1414 ac_install_sh="$ac_aux_dir/shtool install -c"
1415 break
72826a5b
CF
1416 fi
1417done
1418if test -z "$ac_aux_dir"; then
db04fc41
RC
1419 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5
1420echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;}
1421 { (exit 1); exit 1; }; }
72826a5b 1422fi
db04fc41
RC
1423ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
72826a5b 1426
f6100b6f
RC
1427am__api_version="1.6"
1428# Find a good install program. We prefer a C program (faster),
1429# so one script is as good as another. But avoid the broken or
1430# incompatible versions:
1431# SysV /etc/install, /usr/sbin/install
1432# SunOS /usr/etc/install
1433# IRIX /sbin/install
1434# AIX /bin/install
1435# AmigaOS /C/install, which installs bootblocks on floppy discs
1436# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1437# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1438# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1439# ./install, which can be erroneously created by make from ./install.sh.
1440echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1441echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1442if test -z "$INSTALL"; then
1443if test "${ac_cv_path_install+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447for as_dir in $PATH
1448do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 # Account for people who put trailing slashes in PATH elements.
1452case $as_dir/ in
1453 ./ | .// | /cC/* | \
1454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1455 /usr/ucb/* ) ;;
1456 *)
1457 # OSF1 and SCO ODT 3.0 have their own names for install.
1458 # Don't use installbsd from OSF since it installs stuff as root
1459 # by default.
1460 for ac_prog in ginstall scoinst install; do
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1463 if test $ac_prog = install &&
1464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1465 # AIX install. It has an incompatible calling convention.
1466 :
1467 elif test $ac_prog = install &&
1468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1469 # program-specific install script used by HP pwplus--don't use.
1470 :
1471 else
1472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1473 break 3
1474 fi
1475 fi
1476 done
1477 done
1478 ;;
1479esac
1480done
1481
1482
1483fi
1484 if test "${ac_cv_path_install+set}" = set; then
1485 INSTALL=$ac_cv_path_install
1486 else
1487 # As a last resort, use the slow shell script. We don't cache a
1488 # path for INSTALL within a source directory, because that will
1489 # break other packages using the cache if that directory is
1490 # removed, or if the path is relative.
1491 INSTALL=$ac_install_sh
1492 fi
1493fi
1494echo "$as_me:$LINENO: result: $INSTALL" >&5
1495echo "${ECHO_T}$INSTALL" >&6
1496
1497# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1498# It thinks the first close brace ends the variable substitution.
1499test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1500
1501test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1502
1503test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1504
1505echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1506echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1507# Just in case
1508sleep 1
1509echo timestamp > conftest.file
1510# Do `set' in a subshell so we don't clobber the current shell's
1511# arguments. Must try -L first in case configure is actually a
1512# symlink; some systems play weird games with the mod time of symlinks
1513# (eg FreeBSD returns the mod time of the symlink's containing
1514# directory).
1515if (
1516 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1517 if test "$*" = "X"; then
1518 # -L didn't work.
1519 set X `ls -t $srcdir/configure conftest.file`
1520 fi
1521 rm -f conftest.file
1522 if test "$*" != "X $srcdir/configure conftest.file" \
1523 && test "$*" != "X conftest.file $srcdir/configure"; then
1524
1525 # If neither matched, then we have a broken ls. This can happen
1526 # if, for instance, CONFIG_SHELL is bash and it inherits a
1527 # broken ls alias from the environment. This has actually
1528 # happened. Such a system could not be considered "sane".
1529 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1530alias in your environment" >&5
1531echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1532alias in your environment" >&2;}
1533 { (exit 1); exit 1; }; }
1534 fi
1535
1536 test "$2" = conftest.file
1537 )
1538then
1539 # Ok.
1540 :
1541else
1542 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1543Check your system clock" >&5
1544echo "$as_me: error: newly created file is older than distributed files!
1545Check your system clock" >&2;}
1546 { (exit 1); exit 1; }; }
1547fi
1548echo "$as_me:$LINENO: result: yes" >&5
1549echo "${ECHO_T}yes" >&6
1550test "$program_prefix" != NONE &&
1551 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1552# Use a double $ so make ignores it.
1553test "$program_suffix" != NONE &&
1554 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1555# Double any \ or $. echo might interpret backslashes.
1556# By default was `s,x,x', remove it if useless.
1557cat <<\_ACEOF >conftest.sed
1558s/[\\$]/&&/g;s/;s,x,x,$//
1559_ACEOF
1560program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1561rm conftest.sed
1562
1563
1564# expand $ac_aux_dir to an absolute path
1565am_aux_dir=`cd $ac_aux_dir && pwd`
1566
1567test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1568# Use eval to expand $SHELL
1569if eval "$MISSING --run true"; then
1570 am_missing_run="$MISSING --run "
1571else
1572 am_missing_run=
1573 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1574echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1575fi
1576
1577for ac_prog in gawk mawk nawk awk
1578do
1579 # Extract the first word of "$ac_prog", so it can be a program name with args.
1580set dummy $ac_prog; ac_word=$2
1581echo "$as_me:$LINENO: checking for $ac_word" >&5
1582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583if test "${ac_cv_prog_AWK+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 if test -n "$AWK"; then
1587 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1588else
1589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590for as_dir in $PATH
1591do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_AWK="$ac_prog"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1599 fi
1600done
1601done
1602
1603fi
1604fi
1605AWK=$ac_cv_prog_AWK
1606if test -n "$AWK"; then
1607 echo "$as_me:$LINENO: result: $AWK" >&5
1608echo "${ECHO_T}$AWK" >&6
1609else
1610 echo "$as_me:$LINENO: result: no" >&5
1611echo "${ECHO_T}no" >&6
1612fi
1613
1614 test -n "$AWK" && break
1615done
1616
1617echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1618echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1619set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1620if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622else
1623 cat >conftest.make <<\_ACEOF
1624all:
1625 @echo 'ac_maketemp="${MAKE}"'
1626_ACEOF
1627# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1628eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1629if test -n "$ac_maketemp"; then
1630 eval ac_cv_prog_make_${ac_make}_set=yes
1631else
1632 eval ac_cv_prog_make_${ac_make}_set=no
1633fi
1634rm -f conftest.make
1635fi
1636if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1637 echo "$as_me:$LINENO: result: yes" >&5
1638echo "${ECHO_T}yes" >&6
1639 SET_MAKE=
1640else
1641 echo "$as_me:$LINENO: result: no" >&5
1642echo "${ECHO_T}no" >&6
1643 SET_MAKE="MAKE=${MAKE-make}"
1644fi
1645
1646 # test to see if srcdir already configured
1647if test "`cd $srcdir && pwd`" != "`pwd`" &&
1648 test -f $srcdir/config.status; then
1649 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1650echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1651 { (exit 1); exit 1; }; }
1652fi
1653
1654# Define the identity of the package.
1655 PACKAGE=setup
1656 VERSION=0
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE "$PACKAGE"
1661_ACEOF
1662
1663
1664cat >>confdefs.h <<_ACEOF
1665#define VERSION "$VERSION"
1666_ACEOF
1667
1668# Some tools Automake needs.
1669
aa1e3b4d 1670ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
f6100b6f
RC
1671
1672
1673AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1674
1675
aa1e3b4d 1676AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
f6100b6f
RC
1677
1678
1679AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1680
1681
1682MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1683
1684
1685AMTAR=${AMTAR-"${am_missing_run}tar"}
1686
1687install_sh=${install_sh-"$am_aux_dir/install-sh"}
1688
1689# Installed binaries are usually stripped using `strip' when the user
1690# run `make install-strip'. However `strip' might not be the right
1691# tool to use in cross-compilation environments, therefore Automake
1692# will honor the `STRIP' environment variable to overrule this program.
1693if test "$cross_compiling" != no; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$STRIP"; then
1703 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721STRIP=$ac_cv_prog_STRIP
1722if test -n "$STRIP"; then
1723 echo "$as_me:$LINENO: result: $STRIP" >&5
1724echo "${ECHO_T}$STRIP" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730fi
1731if test -z "$ac_cv_prog_STRIP"; then
1732 ac_ct_STRIP=$STRIP
1733 # Extract the first word of "strip", so it can be a program name with args.
1734set dummy strip; 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_STRIP+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740 if test -n "$ac_ct_STRIP"; then
1741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1753 fi
1754done
1755done
1756
1757 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1758fi
1759fi
1760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1761if test -n "$ac_ct_STRIP"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1763echo "${ECHO_T}$ac_ct_STRIP" >&6
1764else
1765 echo "$as_me:$LINENO: result: no" >&5
1766echo "${ECHO_T}no" >&6
1767fi
1768
1769 STRIP=$ac_ct_STRIP
1770else
1771 STRIP="$ac_cv_prog_STRIP"
1772fi
1773
1774fi
1775INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1776
1777# We need awk for the "check" target. The system "awk" is bad on
1778# some platforms.
1779
1780
1781
1782echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1783echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1784 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1785if test "${enable_maintainer_mode+set}" = set; then
1786 enableval="$enable_maintainer_mode"
1787 USE_MAINTAINER_MODE=$enableval
1788else
1789 USE_MAINTAINER_MODE=no
1790fi;
1791 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1792echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1793
72826a5b 1794
f6100b6f
RC
1795if test $USE_MAINTAINER_MODE = yes; then
1796 MAINTAINER_MODE_TRUE=
1797 MAINTAINER_MODE_FALSE='#'
1798else
1799 MAINTAINER_MODE_TRUE='#'
1800 MAINTAINER_MODE_FALSE=
1801fi
1802
1803 MAINT=$MAINTAINER_MODE_TRUE
1804
1805
1806
1807
19911586
RC
1808echo "$as_me:$LINENO: checking Whether to build inilint" >&5
1809echo $ECHO_N "checking Whether to build inilint... $ECHO_C" >&6
1810# Check whether --enable-inilint or --disable-inilint was given.
1811if test "${enable_inilint+set}" = set; then
1812 enableval="$enable_inilint"
1813 ac_cv_enable_inilint=$enableval
1814else
1815 ac_cv_enable_inilint=no
1816fi;
1817echo "$as_me:$LINENO: result: $ac_cv_enable_inilint" >&5
1818echo "${ECHO_T}$ac_cv_enable_inilint" >&6
1819if test $ac_cv_enable_inilint = yes; then
aa1e3b4d 1820 INILINT="inilint\$(EXEEXT)"
19911586
RC
1821else
1822 INILINT=
1823fi
1824
1825
b401ef47
RC
1826echo "$as_me:$LINENO: checking Whether to enable rsync support" >&5
1827echo $ECHO_N "checking Whether to enable rsync support... $ECHO_C" >&6
1828# Check whether --enable-rsync or --disable-rsync was given.
1829if test "${enable_rsync+set}" = set; then
1830 enableval="$enable_rsync"
1831 ac_cv_enable_rsync=$enableval
1832else
1833 ac_cv_enable_rsync=no
1834fi;
1835echo "$as_me:$LINENO: result: $ac_cv_enable_rsync" >&5
1836echo "${ECHO_T}$ac_cv_enable_rsync" >&6
1837if test $ac_cv_enable_rsync = yes; then
1838
1839
1840if true; then
1841 ENABLERSYNC_TRUE=
1842 ENABLERSYNC_FALSE='#'
1843else
1844 ENABLERSYNC_TRUE='#'
1845 ENABLERSYNC_FALSE=
1846fi
1847
1848 RSYNC="rsync"
1849 RSYNCLIB=rsync/librsync.la
1850
1851
1852subdirs="$subdirs rsync"
1853
1854else
1855
1856
1857if false; then
1858 ENABLERSYNC_TRUE=
1859 ENABLERSYNC_FALSE='#'
1860else
1861 ENABLERSYNC_TRUE='#'
1862 ENABLERSYNC_FALSE=
1863fi
1864
1865 RSYNC=
1866 RSYNCLIB=
1867fi
1868
1869
1870
f6100b6f
RC
1871ac_ext=cc
1872ac_cpp='$CXXCPP $CPPFLAGS'
1873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72826a5b 1876
db04fc41
RC
1877ac_ext=cc
1878ac_cpp='$CXXCPP $CPPFLAGS'
1879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1882if test -n "$ac_tool_prefix"; then
1883 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1884 do
1885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_CXX+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 1891else
db04fc41
RC
1892 if test -n "$CXX"; then
1893 ac_cv_prog_CXX="$CXX" # Let the user override the test.
739457f4 1894else
db04fc41
RC
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1905 fi
1906done
1907done
1908
739457f4
CF
1909fi
1910fi
db04fc41
RC
1911CXX=$ac_cv_prog_CXX
1912if test -n "$CXX"; then
1913 echo "$as_me:$LINENO: result: $CXX" >&5
1914echo "${ECHO_T}$CXX" >&6
739457f4 1915else
db04fc41
RC
1916 echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
739457f4
CF
1918fi
1919
db04fc41 1920 test -n "$CXX" && break
739457f4 1921 done
739457f4 1922fi
db04fc41
RC
1923if test -z "$CXX"; then
1924 ac_ct_CXX=$CXX
1925 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1926do
1927 # Extract the first word of "$ac_prog", so it can be a program name with args.
1928set dummy $ac_prog; ac_word=$2
1929echo "$as_me:$LINENO: checking for $ac_word" >&5
1930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934 if test -n "$ac_ct_CXX"; then
1935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1936else
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_ac_ct_CXX="$ac_prog"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1947 fi
1948done
1949done
1950
739457f4
CF
1951fi
1952fi
db04fc41
RC
1953ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1954if test -n "$ac_ct_CXX"; then
1955 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1956echo "${ECHO_T}$ac_ct_CXX" >&6
739457f4 1957else
db04fc41
RC
1958 echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6
739457f4
CF
1960fi
1961
db04fc41
RC
1962 test -n "$ac_ct_CXX" && break
1963done
1964test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1965
1966 CXX=$ac_ct_CXX
1967fi
1968
1969
1970# Provide some information about the compiler.
1971echo "$as_me:$LINENO:" \
1972 "checking for C++ compiler version" >&5
1973ac_compiler=`set X $ac_compile; echo $2`
1974{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1975 (eval $ac_compiler --version </dev/null >&5) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1980 (eval $ac_compiler -v </dev/null >&5) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1985 (eval $ac_compiler -V </dev/null >&5) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }
1989
1990cat >conftest.$ac_ext <<_ACEOF
1991#line $LINENO "configure"
1992#include "confdefs.h"
1993
1994#ifdef F77_DUMMY_MAIN
1995# ifdef __cplusplus
1996 extern "C"
1997# endif
1998 int F77_DUMMY_MAIN() { return 1; }
739457f4 1999#endif
db04fc41
RC
2000int
2001main ()
2002{
2003
2004 ;
2005 return 0;
2006}
2007_ACEOF
2008ac_clean_files_save=$ac_clean_files
2009ac_clean_files="$ac_clean_files a.out a.exe"
2010# Try to create an executable without -o first, disregard a.out.
2011# It will help us diagnose broken compilers, and finding out an intuition
2012# of exeext.
2013echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2014echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2015ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2016if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2017 (eval $ac_link_default) 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }; then
2021 # Find the output, starting from the most likely. This scheme is
2022# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2023# resort.
2024
2025# Be careful to initialize this variable, since it used to be cached.
2026# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2027ac_cv_exeext=
2028for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2029 ls a.out conftest 2>/dev/null;
2030 ls a.* conftest.* 2>/dev/null`; do
2031 case $ac_file in
aa1e3b4d 2032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
db04fc41
RC
2033 a.out ) # We found the default executable, but exeext='' is most
2034 # certainly right.
2035 break;;
2036 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2037 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2038 export ac_cv_exeext
2039 break;;
2040 * ) break;;
2041 esac
2042done
739457f4 2043else
db04fc41
RC
2044 echo "$as_me: failed program was:" >&5
2045cat conftest.$ac_ext >&5
2046{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
2047echo "$as_me: error: C++ compiler cannot create executables" >&2;}
2048 { (exit 77); exit 77; }; }
2049fi
2050
2051ac_exeext=$ac_cv_exeext
2052echo "$as_me:$LINENO: result: $ac_file" >&5
2053echo "${ECHO_T}$ac_file" >&6
2054
2055# Check the compiler produces executables we can run. If not, either
2056# the compiler is broken, or we cross compile.
2057echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2058echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2059# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2060# If not cross compiling, check that we can run a simple program.
2061if test "$cross_compiling" != yes; then
2062 if { ac_try='./$ac_file'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 cross_compiling=no
2069 else
2070 if test "$cross_compiling" = maybe; then
2071 cross_compiling=yes
2072 else
2073 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2074If you meant to cross compile, use \`--host'." >&5
2075echo "$as_me: error: cannot run C++ compiled programs.
2076If you meant to cross compile, use \`--host'." >&2;}
2077 { (exit 1); exit 1; }; }
2078 fi
2079 fi
739457f4 2080fi
db04fc41
RC
2081echo "$as_me:$LINENO: result: yes" >&5
2082echo "${ECHO_T}yes" >&6
2083
2084rm -f a.out a.exe conftest$ac_cv_exeext
2085ac_clean_files=$ac_clean_files_save
2086# Check the compiler produces executables we can run. If not, either
2087# the compiler is broken, or we cross compile.
2088echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2089echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2090echo "$as_me:$LINENO: result: $cross_compiling" >&5
2091echo "${ECHO_T}$cross_compiling" >&6
2092
2093echo "$as_me:$LINENO: checking for suffix of executables" >&5
2094echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2096 (eval $ac_link) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; then
2100 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2101# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2102# work properly (i.e., refer to `conftest.exe'), while it won't with
2103# `rm'.
2104for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2105 case $ac_file in
aa1e3b4d 2106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
db04fc41
RC
2107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 export ac_cv_exeext
2109 break;;
2110 * ) break;;
2111 esac
2112done
2113else
2114 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2116 { (exit 1); exit 1; }; }
739457f4
CF
2117fi
2118
db04fc41
RC
2119rm -f conftest$ac_cv_exeext
2120echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2121echo "${ECHO_T}$ac_cv_exeext" >&6
739457f4 2122
db04fc41
RC
2123rm -f conftest.$ac_ext
2124EXEEXT=$ac_cv_exeext
2125ac_exeext=$EXEEXT
2126echo "$as_me:$LINENO: checking for suffix of object files" >&5
2127echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2128if test "${ac_cv_objext+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 2130else
db04fc41
RC
2131 cat >conftest.$ac_ext <<_ACEOF
2132#line $LINENO "configure"
2133#include "confdefs.h"
2134
2135#ifdef F77_DUMMY_MAIN
2136# ifdef __cplusplus
2137 extern "C"
2138# endif
2139 int F77_DUMMY_MAIN() { return 1; }
2140#endif
2141int
2142main ()
2143{
2144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149rm -f conftest.o conftest.obj
2150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; then
2155 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2156 case $ac_file in
aa1e3b4d 2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
db04fc41
RC
2158 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2159 break;;
2160 esac
2161done
739457f4 2162else
db04fc41
RC
2163 echo "$as_me: failed program was:" >&5
2164cat conftest.$ac_ext >&5
2165{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2167 { (exit 1); exit 1; }; }
739457f4 2168fi
739457f4 2169
db04fc41 2170rm -f conftest.$ac_cv_objext conftest.$ac_ext
739457f4 2171fi
db04fc41
RC
2172echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2173echo "${ECHO_T}$ac_cv_objext" >&6
2174OBJEXT=$ac_cv_objext
2175ac_objext=$OBJEXT
2176echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2177echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2178if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 cat >conftest.$ac_ext <<_ACEOF
2182#line $LINENO "configure"
2183#include "confdefs.h"
739457f4 2184
db04fc41
RC
2185#ifdef F77_DUMMY_MAIN
2186# ifdef __cplusplus
2187 extern "C"
2188# endif
2189 int F77_DUMMY_MAIN() { return 1; }
2190#endif
2191int
2192main ()
2193{
2194#ifndef __GNUC__
2195 choke me
2196#endif
2197
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 ac_compiler_gnu=yes
2215else
2216 echo "$as_me: failed program was:" >&5
2217cat conftest.$ac_ext >&5
2218ac_compiler_gnu=no
2219fi
2220rm -f conftest.$ac_objext conftest.$ac_ext
2221ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2222
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2225echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2226GXX=`test $ac_compiler_gnu = yes && echo yes`
2227ac_test_CXXFLAGS=${CXXFLAGS+set}
2228ac_save_CXXFLAGS=$CXXFLAGS
2229CXXFLAGS="-g"
2230echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2231echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2232if test "${ac_cv_prog_cxx_g+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
2235 cat >conftest.$ac_ext <<_ACEOF
2236#line $LINENO "configure"
2237#include "confdefs.h"
2238
2239#ifdef F77_DUMMY_MAIN
2240# ifdef __cplusplus
2241 extern "C"
2242# endif
2243 int F77_DUMMY_MAIN() { return 1; }
2244#endif
2245int
2246main ()
2247{
2248
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253rm -f conftest.$ac_objext
2254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2265 ac_cv_prog_cxx_g=yes
2266else
2267 echo "$as_me: failed program was:" >&5
2268cat conftest.$ac_ext >&5
2269ac_cv_prog_cxx_g=no
2270fi
2271rm -f conftest.$ac_objext conftest.$ac_ext
2272fi
2273echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2274echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2275if test "$ac_test_CXXFLAGS" = set; then
2276 CXXFLAGS=$ac_save_CXXFLAGS
2277elif test $ac_cv_prog_cxx_g = yes; then
2278 if test "$GXX" = yes; then
2279 CXXFLAGS="-g -O2"
739457f4 2280 else
db04fc41 2281 CXXFLAGS="-g"
739457f4
CF
2282 fi
2283else
db04fc41
RC
2284 if test "$GXX" = yes; then
2285 CXXFLAGS="-O2"
2286 else
2287 CXXFLAGS=
2288 fi
2289fi
2290for ac_declaration in \
2291 ''\
2292 '#include <stdlib.h>' \
2293 'extern "C" void std::exit (int) throw (); using std::exit;' \
2294 'extern "C" void std::exit (int); using std::exit;' \
2295 'extern "C" void exit (int) throw ();' \
2296 'extern "C" void exit (int);' \
2297 'void exit (int);'
2298do
2299 cat >conftest.$ac_ext <<_ACEOF
2300#line $LINENO "configure"
2301#include "confdefs.h"
2302#include <stdlib.h>
2303$ac_declaration
2304#ifdef F77_DUMMY_MAIN
2305# ifdef __cplusplus
2306 extern "C"
2307# endif
2308 int F77_DUMMY_MAIN() { return 1; }
2309#endif
2310int
2311main ()
2312{
2313exit (42);
2314 ;
2315 return 0;
2316}
2317_ACEOF
2318rm -f conftest.$ac_objext
2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -s conftest.$ac_objext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 :
2331else
2332 echo "$as_me: failed program was:" >&5
2333cat conftest.$ac_ext >&5
2334continue
2335fi
2336rm -f conftest.$ac_objext conftest.$ac_ext
2337 cat >conftest.$ac_ext <<_ACEOF
2338#line $LINENO "configure"
2339#include "confdefs.h"
2340$ac_declaration
2341#ifdef F77_DUMMY_MAIN
2342# ifdef __cplusplus
2343 extern "C"
2344# endif
2345 int F77_DUMMY_MAIN() { return 1; }
2346#endif
2347int
2348main ()
2349{
2350exit (42);
2351 ;
2352 return 0;
2353}
2354_ACEOF
2355rm -f conftest.$ac_objext
2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 break
2368else
2369 echo "$as_me: failed program was:" >&5
2370cat conftest.$ac_ext >&5
2371fi
2372rm -f conftest.$ac_objext conftest.$ac_ext
2373done
2374rm -f conftest*
2375if test -n "$ac_declaration"; then
2376 echo '#ifdef __cplusplus' >>confdefs.h
2377 echo $ac_declaration >>confdefs.h
2378 echo '#endif' >>confdefs.h
739457f4
CF
2379fi
2380
f6100b6f
RC
2381ac_ext=cc
2382ac_cpp='$CXXCPP $CPPFLAGS'
2383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2386rm -f .deps 2>/dev/null
2387mkdir .deps 2>/dev/null
2388if test -d .deps; then
2389 DEPDIR=.deps
2390else
2391 # MS-DOS does not allow filenames that begin with a dot.
2392 DEPDIR=_deps
2393fi
2394rmdir .deps 2>/dev/null
2395
2396
aa1e3b4d 2397 ac_config_commands="$ac_config_commands depfiles"
f6100b6f
RC
2398
2399
2400am_make=${MAKE-make}
2401cat > confinc << 'END'
2402doit:
2403 @echo done
2404END
2405# If we don't find an include directive, just comment out the code.
2406echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2407echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2408am__include="#"
2409am__quote=
2410_am_result=none
2411# First try GNU make style include.
2412echo "include confinc" > confmf
2413# We grep out `Entering directory' and `Leaving directory'
2414# messages which can occur if `w' ends up in MAKEFLAGS.
2415# In particular we don't look at `^make:' because GNU make might
2416# be invoked under some other name (usually "gmake"), in which
2417# case it prints its new name instead of `make'.
2418if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2419 am__include=include
2420 am__quote=
2421 _am_result=GNU
2422fi
2423# Now try BSD make style include.
2424if test "$am__include" = "#"; then
2425 echo '.include "confinc"' > confmf
2426 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2427 am__include=.include
2428 am__quote="\""
2429 _am_result=BSD
2430 fi
2431fi
2432
2433
2434echo "$as_me:$LINENO: result: $_am_result" >&5
2435echo "${ECHO_T}$_am_result" >&6
2436rm -f confinc confmf
2437
2438# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2439if test "${enable_dependency_tracking+set}" = set; then
2440 enableval="$enable_dependency_tracking"
2441
2442fi;
2443if test "x$enable_dependency_tracking" != xno; then
2444 am_depcomp="$ac_aux_dir/depcomp"
2445 AMDEPBACKSLASH='\'
2446fi
2447
2448
2449if test "x$enable_dependency_tracking" != xno; then
2450 AMDEP_TRUE=
2451 AMDEP_FALSE='#'
2452else
2453 AMDEP_TRUE='#'
2454 AMDEP_FALSE=
2455fi
db04fc41 2456
f6100b6f
RC
2457
2458
2459
2460depcc="$CXX" am_compiler_list=
2461
2462echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2463echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2464if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2468 # We make a subdir and do the tests there. Otherwise we can end up
2469 # making bogus files that we don't know about and never remove. For
2470 # instance it was reported that on HP-UX the gcc test will end up
2471 # making a dummy file named `D' -- because `-MD' means `put the output
2472 # in D'.
2473 mkdir conftest.dir
2474 # Copy depcomp to subdir because otherwise we won't find it if we're
2475 # using a relative directory.
2476 cp "$am_depcomp" conftest.dir
2477 cd conftest.dir
2478
2479 am_cv_CXX_dependencies_compiler_type=none
2480 if test "$am_compiler_list" = ""; then
2481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2482 fi
2483 for depmode in $am_compiler_list; do
2484 # We need to recreate these files for each test, as the compiler may
2485 # overwrite some of them when testing with obscure command lines.
2486 # This happens at least with the AIX C compiler.
2487 echo '#include "conftest.h"' > conftest.c
2488 echo 'int i;' > conftest.h
2489 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2490
2491 case $depmode in
2492 nosideeffect)
2493 # after this tag, mechanisms are not by side-effect, so they'll
2494 # only be used when explicitly requested
2495 if test "x$enable_dependency_tracking" = xyes; then
2496 continue
2497 else
2498 break
2499 fi
2500 ;;
2501 none) break ;;
2502 esac
2503 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2504 # mode. It turns out that the SunPro C++ compiler does not properly
2505 # handle `-M -o', and we need to detect this.
2506 if depmode=$depmode \
2507 source=conftest.c object=conftest.o \
2508 depfile=conftest.Po tmpdepfile=conftest.TPo \
2509 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2510 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2512 am_cv_CXX_dependencies_compiler_type=$depmode
2513 break
2514 fi
2515 done
2516
2517 cd ..
2518 rm -rf conftest.dir
2519else
2520 am_cv_CXX_dependencies_compiler_type=none
2521fi
2522
2523fi
2524echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2525echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2526CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2527
2528
2529ac_ext=c
2530ac_cpp='$CPP $CPPFLAGS'
2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
db04fc41
RC
2536set dummy ${ac_tool_prefix}gcc; ac_word=$2
2537echo "$as_me:$LINENO: checking for $ac_word" >&5
2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2539if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
72826a5b 2544else
db04fc41
RC
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556done
2557done
2558
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
2563 echo "$as_me:$LINENO: result: $CC" >&5
2564echo "${ECHO_T}$CC" >&6
2565else
2566 echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6
739457f4 2568fi
739457f4 2569
db04fc41
RC
2570fi
2571if test -z "$ac_cv_prog_CC"; then
2572 ac_ct_CC=$CC
2573 # Extract the first word of "gcc", so it can be a program name with args.
2574set dummy gcc; ac_word=$2
2575echo "$as_me:$LINENO: checking for $ac_word" >&5
2576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
72826a5b 2579else
db04fc41
RC
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
72826a5b 2582else
db04fc41
RC
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_ac_ct_CC="gcc"
2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594done
2595done
2596
72826a5b
CF
2597fi
2598fi
db04fc41
RC
2599ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600if test -n "$ac_ct_CC"; then
2601 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2602echo "${ECHO_T}$ac_ct_CC" >&6
72826a5b 2603else
db04fc41
RC
2604 echo "$as_me:$LINENO: result: no" >&5
2605echo "${ECHO_T}no" >&6
739457f4
CF
2606fi
2607
db04fc41
RC
2608 CC=$ac_ct_CC
2609else
2610 CC="$ac_cv_prog_CC"
2611fi
739457f4 2612
db04fc41
RC
2613if test -z "$CC"; then
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2616set dummy ${ac_tool_prefix}cc; ac_word=$2
2617echo "$as_me:$LINENO: checking for $ac_word" >&5
2618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2619if test "${ac_cv_prog_CC+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
72826a5b 2621else
db04fc41
RC
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
72826a5b 2624else
db04fc41
RC
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632 ac_cv_prog_CC="${ac_tool_prefix}cc"
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2635 fi
2636done
2637done
2638
72826a5b
CF
2639fi
2640fi
db04fc41
RC
2641CC=$ac_cv_prog_CC
2642if test -n "$CC"; then
2643 echo "$as_me:$LINENO: result: $CC" >&5
2644echo "${ECHO_T}$CC" >&6
72826a5b 2645else
db04fc41
RC
2646 echo "$as_me:$LINENO: result: no" >&5
2647echo "${ECHO_T}no" >&6
72826a5b 2648fi
739457f4 2649
db04fc41
RC
2650fi
2651if test -z "$ac_cv_prog_CC"; then
2652 ac_ct_CC=$CC
2653 # Extract the first word of "cc", so it can be a program name with args.
2654set dummy cc; ac_word=$2
2655echo "$as_me:$LINENO: checking for $ac_word" >&5
2656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
2660 if test -n "$ac_ct_CC"; then
2661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
72826a5b 2662else
db04fc41
RC
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_ac_ct_CC="cc"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675done
2676
72826a5b 2677fi
db04fc41
RC
2678fi
2679ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680if test -n "$ac_ct_CC"; then
2681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2682echo "${ECHO_T}$ac_ct_CC" >&6
2683else
2684 echo "$as_me:$LINENO: result: no" >&5
2685echo "${ECHO_T}no" >&6
72826a5b 2686fi
739457f4 2687
db04fc41 2688 CC=$ac_ct_CC
72826a5b 2689else
db04fc41
RC
2690 CC="$ac_cv_prog_CC"
2691fi
2692
2693fi
2694if test -z "$CC"; then
2695 # Extract the first word of "cc", so it can be a program name with args.
2696set dummy cc; ac_word=$2
2697echo "$as_me:$LINENO: checking for $ac_word" >&5
2698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2699if test "${ac_cv_prog_CC+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
72826a5b 2701else
db04fc41
RC
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704else
2705 ac_prog_rejected=no
2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714 ac_prog_rejected=yes
2715 continue
2716 fi
2717 ac_cv_prog_CC="cc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
2722done
2723
2724if test $ac_prog_rejected = yes; then
2725 # We found a bogon in the path, so make sure we never use it.
2726 set dummy $ac_cv_prog_CC
2727 shift
2728 if test $# != 0; then
2729 # We chose a different compiler from the bogus one.
2730 # However, it has the same basename, so the bogon will be chosen
2731 # first if we set CC to just the basename; use the full file name.
2732 shift
aa1e3b4d 2733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
db04fc41 2734 fi
72826a5b
CF
2735fi
2736fi
db04fc41
RC
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
2740 echo "$as_me:$LINENO: result: $CC" >&5
2741echo "${ECHO_T}$CC" >&6
72826a5b 2742else
db04fc41
RC
2743 echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
72826a5b 2745fi
739457f4 2746
72826a5b 2747fi
db04fc41
RC
2748if test -z "$CC"; then
2749 if test -n "$ac_tool_prefix"; then
2750 for ac_prog in cl
2751 do
2752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2754echo "$as_me:$LINENO: checking for $ac_word" >&5
2755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756if test "${ac_cv_prog_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773done
2774done
739457f4 2775
db04fc41
RC
2776fi
2777fi
2778CC=$ac_cv_prog_CC
2779if test -n "$CC"; then
2780 echo "$as_me:$LINENO: result: $CC" >&5
2781echo "${ECHO_T}$CC" >&6
2782else
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
2785fi
739457f4 2786
db04fc41
RC
2787 test -n "$CC" && break
2788 done
2789fi
2790if test -z "$CC"; then
2791 ac_ct_CC=$CC
2792 for ac_prog in cl
2793do
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795set dummy $ac_prog; ac_word=$2
2796echo "$as_me:$LINENO: checking for $ac_word" >&5
2797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2800else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815done
2816done
739457f4 2817
db04fc41
RC
2818fi
2819fi
2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821if test -n "$ac_ct_CC"; then
2822 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823echo "${ECHO_T}$ac_ct_CC" >&6
739457f4 2824else
db04fc41
RC
2825 echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6
2827fi
2828
2829 test -n "$ac_ct_CC" && break
2830done
2831
2832 CC=$ac_ct_CC
739457f4 2833fi
739457f4 2834
db04fc41
RC
2835fi
2836
2837
2838test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2839echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2840 { (exit 1); exit 1; }; }
739457f4 2841
db04fc41
RC
2842# Provide some information about the compiler.
2843echo "$as_me:$LINENO:" \
2844 "checking for C compiler version" >&5
2845ac_compiler=`set X $ac_compile; echo $2`
2846{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2847 (eval $ac_compiler --version </dev/null >&5) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2852 (eval $ac_compiler -v </dev/null >&5) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2857 (eval $ac_compiler -V </dev/null >&5) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
739457f4 2861
db04fc41
RC
2862echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2863echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2864if test "${ac_cv_c_compiler_gnu+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867 cat >conftest.$ac_ext <<_ACEOF
2868#line $LINENO "configure"
2869#include "confdefs.h"
2870
2871#ifdef F77_DUMMY_MAIN
2872# ifdef __cplusplus
2873 extern "C"
2874# endif
2875 int F77_DUMMY_MAIN() { return 1; }
2876#endif
2877int
2878main ()
2879{
2880#ifndef __GNUC__
2881 choke me
2882#endif
2883
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 ac_compiler_gnu=yes
2901else
2902 echo "$as_me: failed program was:" >&5
2903cat conftest.$ac_ext >&5
2904ac_compiler_gnu=no
2905fi
2906rm -f conftest.$ac_objext conftest.$ac_ext
2907ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909fi
2910echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2911echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2912GCC=`test $ac_compiler_gnu = yes && echo yes`
2913ac_test_CFLAGS=${CFLAGS+set}
2914ac_save_CFLAGS=$CFLAGS
2915CFLAGS="-g"
2916echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2917echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2918if test "${ac_cv_prog_cc_g+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 cat >conftest.$ac_ext <<_ACEOF
2922#line $LINENO "configure"
2923#include "confdefs.h"
2924
2925#ifdef F77_DUMMY_MAIN
2926# ifdef __cplusplus
2927 extern "C"
2928# endif
2929 int F77_DUMMY_MAIN() { return 1; }
2930#endif
2931int
2932main ()
2933{
2934
2935 ;
2936 return 0;
2937}
2938_ACEOF
2939rm -f conftest.$ac_objext
2940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 { ac_try='test -s conftest.$ac_objext'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2951 ac_cv_prog_cc_g=yes
2952else
2953 echo "$as_me: failed program was:" >&5
2954cat conftest.$ac_ext >&5
2955ac_cv_prog_cc_g=no
2956fi
2957rm -f conftest.$ac_objext conftest.$ac_ext
2958fi
2959echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2960echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2961if test "$ac_test_CFLAGS" = set; then
2962 CFLAGS=$ac_save_CFLAGS
2963elif test $ac_cv_prog_cc_g = yes; then
2964 if test "$GCC" = yes; then
2965 CFLAGS="-g -O2"
2966 else
2967 CFLAGS="-g"
739457f4 2968 fi
db04fc41
RC
2969else
2970 if test "$GCC" = yes; then
2971 CFLAGS="-O2"
739457f4 2972 else
db04fc41
RC
2973 CFLAGS=
2974 fi
2975fi
aa1e3b4d
RC
2976echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2977echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2978if test "${ac_cv_prog_cc_stdc+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 ac_cv_prog_cc_stdc=no
2982ac_save_CC=$CC
2983cat >conftest.$ac_ext <<_ACEOF
2984#line $LINENO "configure"
2985#include "confdefs.h"
2986#include <stdarg.h>
2987#include <stdio.h>
2988#include <sys/types.h>
2989#include <sys/stat.h>
2990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2991struct buf { int x; };
2992FILE * (*rcsopen) (struct buf *, struct stat *, int);
2993static char *e (p, i)
2994 char **p;
2995 int i;
2996{
2997 return p[i];
2998}
2999static char *f (char * (*g) (char **, int), char **p, ...)
3000{
3001 char *s;
3002 va_list v;
3003 va_start (v,p);
3004 s = g (p, va_arg (v,int));
3005 va_end (v);
3006 return s;
3007}
3008int test (int i, double x);
3009struct s1 {int (*f) (int a);};
3010struct s2 {int (*f) (double a);};
3011int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3012int argc;
3013char **argv;
3014#ifdef F77_DUMMY_MAIN
3015# ifdef __cplusplus
3016 extern "C"
3017# endif
3018 int F77_DUMMY_MAIN() { return 1; }
3019#endif
3020int
3021main ()
3022{
3023return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3024 ;
3025 return 0;
3026}
3027_ACEOF
3028# Don't try gcc -ansi; that turns off useful extensions and
3029# breaks some systems' header files.
3030# AIX -qlanglvl=ansi
3031# Ultrix and OSF/1 -std1
3032# HP-UX 10.20 and later -Ae
3033# HP-UX older versions -Aa -D_HPUX_SOURCE
3034# SVR4 -Xc -D__EXTENSIONS__
3035for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3036do
3037 CC="$ac_save_CC $ac_arg"
3038 rm -f conftest.$ac_objext
3039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_cv_prog_cc_stdc=$ac_arg
3051break
3052else
3053 echo "$as_me: failed program was:" >&5
3054cat conftest.$ac_ext >&5
3055fi
3056rm -f conftest.$ac_objext
3057done
3058rm -f conftest.$ac_ext conftest.$ac_objext
3059CC=$ac_save_CC
3060
3061fi
3062
3063case "x$ac_cv_prog_cc_stdc" in
3064 x|xno)
3065 echo "$as_me:$LINENO: result: none needed" >&5
3066echo "${ECHO_T}none needed" >&6 ;;
3067 *)
3068 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3069echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3070 CC="$CC $ac_cv_prog_cc_stdc" ;;
3071esac
3072
db04fc41
RC
3073# Some people use a C++ compiler to compile C. Since we use `exit',
3074# in C++ we need to declare it. In case someone uses the same compiler
3075# for both compiling C and C++ we need to have the C++ compiler decide
3076# the declaration of exit, since it's the most demanding environment.
3077cat >conftest.$ac_ext <<_ACEOF
3078#ifndef __cplusplus
3079 choke me
3080#endif
3081_ACEOF
3082rm -f conftest.$ac_objext
3083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 for ac_declaration in \
3095 ''\
3096 '#include <stdlib.h>' \
3097 'extern "C" void std::exit (int) throw (); using std::exit;' \
3098 'extern "C" void std::exit (int); using std::exit;' \
3099 'extern "C" void exit (int) throw ();' \
3100 'extern "C" void exit (int);' \
3101 'void exit (int);'
3102do
3103 cat >conftest.$ac_ext <<_ACEOF
3104#line $LINENO "configure"
3105#include "confdefs.h"
3106#include <stdlib.h>
3107$ac_declaration
3108#ifdef F77_DUMMY_MAIN
3109# ifdef __cplusplus
3110 extern "C"
3111# endif
3112 int F77_DUMMY_MAIN() { return 1; }
3113#endif
3114int
3115main ()
3116{
3117exit (42);
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext
3123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124 (eval $ac_compile) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 :
3135else
3136 echo "$as_me: failed program was:" >&5
3137cat conftest.$ac_ext >&5
3138continue
3139fi
3140rm -f conftest.$ac_objext conftest.$ac_ext
3141 cat >conftest.$ac_ext <<_ACEOF
3142#line $LINENO "configure"
3143#include "confdefs.h"
3144$ac_declaration
3145#ifdef F77_DUMMY_MAIN
3146# ifdef __cplusplus
3147 extern "C"
3148# endif
3149 int F77_DUMMY_MAIN() { return 1; }
3150#endif
3151int
3152main ()
3153{
3154exit (42);
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 break
3172else
3173 echo "$as_me: failed program was:" >&5
3174cat conftest.$ac_ext >&5
3175fi
3176rm -f conftest.$ac_objext conftest.$ac_ext
3177done
3178rm -f conftest*
3179if test -n "$ac_declaration"; then
3180 echo '#ifdef __cplusplus' >>confdefs.h
3181 echo $ac_declaration >>confdefs.h
3182 echo '#endif' >>confdefs.h
3183fi
3184
3185else
3186 echo "$as_me: failed program was:" >&5
3187cat conftest.$ac_ext >&5
3188fi
3189rm -f conftest.$ac_objext conftest.$ac_ext
f6100b6f
RC
3190ac_ext=cc
3191ac_cpp='$CXXCPP $CPPFLAGS'
3192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3195
3196depcc="$CC" am_compiler_list=
3197
3198echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3199echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3200if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3204 # We make a subdir and do the tests there. Otherwise we can end up
3205 # making bogus files that we don't know about and never remove. For
3206 # instance it was reported that on HP-UX the gcc test will end up
3207 # making a dummy file named `D' -- because `-MD' means `put the output
3208 # in D'.
3209 mkdir conftest.dir
3210 # Copy depcomp to subdir because otherwise we won't find it if we're
3211 # using a relative directory.
3212 cp "$am_depcomp" conftest.dir
3213 cd conftest.dir
3214
3215 am_cv_CC_dependencies_compiler_type=none
3216 if test "$am_compiler_list" = ""; then
3217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3218 fi
3219 for depmode in $am_compiler_list; do
3220 # We need to recreate these files for each test, as the compiler may
3221 # overwrite some of them when testing with obscure command lines.
3222 # This happens at least with the AIX C compiler.
3223 echo '#include "conftest.h"' > conftest.c
3224 echo 'int i;' > conftest.h
3225 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3226
3227 case $depmode in
3228 nosideeffect)
3229 # after this tag, mechanisms are not by side-effect, so they'll
3230 # only be used when explicitly requested
3231 if test "x$enable_dependency_tracking" = xyes; then
3232 continue
3233 else
3234 break
3235 fi
3236 ;;
3237 none) break ;;
3238 esac
3239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3240 # mode. It turns out that the SunPro C++ compiler does not properly
3241 # handle `-M -o', and we need to detect this.
3242 if depmode=$depmode \
3243 source=conftest.c object=conftest.o \
3244 depfile=conftest.Po tmpdepfile=conftest.TPo \
3245 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3246 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3248 am_cv_CC_dependencies_compiler_type=$depmode
3249 break
3250 fi
3251 done
3252
3253 cd ..
3254 rm -rf conftest.dir
3255else
3256 am_cv_CC_dependencies_compiler_type=none
3257fi
3258
3259fi
3260echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3261echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3262CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3263
db04fc41
RC
3264
3265if test "x$CC" != xcc; then
3266 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3267echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3268else
3269 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3270echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3271fi
3272set dummy $CC; ac_cc=`echo $2 |
3273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3274if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277 cat >conftest.$ac_ext <<_ACEOF
3278#line $LINENO "configure"
3279#include "confdefs.h"
3280
3281#ifdef F77_DUMMY_MAIN
3282# ifdef __cplusplus
3283 extern "C"
3284# endif
3285 int F77_DUMMY_MAIN() { return 1; }
3286#endif
3287int
3288main ()
3289{
3290
3291 ;
3292 return 0;
3293}
3294_ACEOF
3295# Make sure it works both with $CC and with simple cc.
3296# We do the test twice because some compilers refuse to overwrite an
3297# existing .o file with -o, though they will create one.
3298ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3299if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); };
3309then
3310 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3311 if test "x$CC" != xcc; then
3312 # Test first that cc exists at all.
3313 if { ac_try='cc -c conftest.$ac_ext >&5'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3320 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
3325 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 (eval $ac_try) 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); };
3330 then
3331 # cc works too.
3332 :
3333 else
3334 # cc exists but doesn't like -o.
3335 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3336 fi
3337 fi
739457f4 3338 fi
db04fc41
RC
3339else
3340 eval ac_cv_prog_cc_${ac_cc}_c_o=no
739457f4 3341fi
db04fc41
RC
3342rm -f conftest*
3343
3344fi
3345if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3346 echo "$as_me:$LINENO: result: yes" >&5
3347echo "${ECHO_T}yes" >&6
3348else
3349 echo "$as_me:$LINENO: result: no" >&5
3350echo "${ECHO_T}no" >&6
3351
3352cat >>confdefs.h <<\_ACEOF
3353#define NO_MINUS_C_MINUS_O 1
3354_ACEOF
3355
3356fi
3357
f6100b6f
RC
3358# FIXME: we rely on the cache variable name because
3359# there is no other way.
3360set dummy $CC
3361ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3362if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3363 # Losing compiler, so override with the script.
3364 # FIXME: It is wrong to rewrite CC.
3365 # But if we don't then we get into trouble of one sort or another.
3366 # A longer-term fix would be to have automake use am__CC in this case,
3367 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3368 CC="$am_aux_dir/compile $CC"
db04fc41 3369fi
db04fc41
RC
3370
3371
f6100b6f 3372for ac_prog in flex lex
db04fc41 3373do
f6100b6f
RC
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375set dummy $ac_prog; ac_word=$2
db04fc41
RC
3376echo "$as_me:$LINENO: checking for $ac_word" >&5
3377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f6100b6f 3378if test "${ac_cv_prog_LEX+set}" = set; then
db04fc41 3379 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3380else
f6100b6f
RC
3381 if test -n "$LEX"; then
3382 ac_cv_prog_LEX="$LEX" # Let the user override the test.
739457f4 3383else
db04fc41
RC
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f6100b6f 3391 ac_cv_prog_LEX="$ac_prog"
db04fc41
RC
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3394 fi
3395done
3396done
3397
739457f4
CF
3398fi
3399fi
f6100b6f
RC
3400LEX=$ac_cv_prog_LEX
3401if test -n "$LEX"; then
3402 echo "$as_me:$LINENO: result: $LEX" >&5
3403echo "${ECHO_T}$LEX" >&6
739457f4 3404else
db04fc41
RC
3405 echo "$as_me:$LINENO: result: no" >&5
3406echo "${ECHO_T}no" >&6
739457f4
CF
3407fi
3408
f6100b6f 3409 test -n "$LEX" && break
db04fc41 3410done
f6100b6f 3411test -n "$LEX" || LEX=":"
db04fc41 3412
f6100b6f
RC
3413if test -z "$LEXLIB"
3414then
3415 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3416echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3417if test "${ac_cv_lib_fl_yywrap+set}" = set; then
db04fc41 3418 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3419else
f6100b6f
RC
3420 ac_check_lib_save_LIBS=$LIBS
3421LIBS="-lfl $LIBS"
3422cat >conftest.$ac_ext <<_ACEOF
3423#line $LINENO "configure"
3424#include "confdefs.h"
db04fc41 3425
f6100b6f
RC
3426/* Override any gcc2 internal prototype to avoid an error. */
3427#ifdef __cplusplus
3428extern "C"
3429#endif
3430/* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3432char yywrap ();
3433#ifdef F77_DUMMY_MAIN
3434# ifdef __cplusplus
3435 extern "C"
3436# endif
3437 int F77_DUMMY_MAIN() { return 1; }
3438#endif
3439int
3440main ()
3441{
3442yywrap ();
3443 ;
3444 return 0;
3445}
3446_ACEOF
3447rm -f conftest.$ac_objext conftest$ac_exeext
3448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3449 (eval $ac_link) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try='test -s conftest$ac_exeext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 ac_cv_lib_fl_yywrap=yes
739457f4 3460else
f6100b6f
RC
3461 echo "$as_me: failed program was:" >&5
3462cat conftest.$ac_ext >&5
3463ac_cv_lib_fl_yywrap=no
739457f4 3464fi
f6100b6f
RC
3465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3466LIBS=$ac_check_lib_save_LIBS
db04fc41 3467fi
f6100b6f
RC
3468echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3469echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3470if test $ac_cv_lib_fl_yywrap = yes; then
3471 LEXLIB="-lfl"
739457f4 3472else
f6100b6f
RC
3473 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3474echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3475if test "${ac_cv_lib_l_yywrap+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3477else
f6100b6f
RC
3478 ac_check_lib_save_LIBS=$LIBS
3479LIBS="-ll $LIBS"
3480cat >conftest.$ac_ext <<_ACEOF
3481#line $LINENO "configure"
3482#include "confdefs.h"
db04fc41 3483
f6100b6f
RC
3484/* Override any gcc2 internal prototype to avoid an error. */
3485#ifdef __cplusplus
3486extern "C"
3487#endif
3488/* We use char because int might match the return type of a gcc2
3489 builtin and then its argument prototype would still apply. */
3490char yywrap ();
3491#ifdef F77_DUMMY_MAIN
3492# ifdef __cplusplus
3493 extern "C"
3494# endif
3495 int F77_DUMMY_MAIN() { return 1; }
3496#endif
3497int
3498main ()
3499{
3500yywrap ();
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505rm -f conftest.$ac_objext conftest$ac_exeext
3506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507 (eval $ac_link) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -s conftest$ac_exeext'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 (eval $ac_try) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3517 ac_cv_lib_l_yywrap=yes
3518else
3519 echo "$as_me: failed program was:" >&5
3520cat conftest.$ac_ext >&5
3521ac_cv_lib_l_yywrap=no
739457f4 3522fi
f6100b6f
RC
3523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3524LIBS=$ac_check_lib_save_LIBS
739457f4 3525fi
f6100b6f
RC
3526echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3527echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3528if test $ac_cv_lib_l_yywrap = yes; then
3529 LEXLIB="-ll"
739457f4
CF
3530fi
3531
739457f4
CF
3532fi
3533
739457f4
CF
3534fi
3535
f6100b6f
RC
3536if test "x$LEX" != "x:"; then
3537 echo "$as_me:$LINENO: checking lex output file root" >&5
3538echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3539if test "${ac_cv_prog_lex_root+set}" = set; then
db04fc41 3540 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3541else
f6100b6f
RC
3542 # The minimal lex program is just a single line: %%. But some broken lexes
3543# (Solaris, I think it was) want two %% lines, so accommodate them.
3544cat >conftest.l <<_ACEOF
3545%%
3546%%
3547_ACEOF
3548{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3549 (eval $LEX conftest.l) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }
3553if test -f lex.yy.c; then
3554 ac_cv_prog_lex_root=lex.yy
3555elif test -f lexyy.c; then
3556 ac_cv_prog_lex_root=lexyy
739457f4 3557else
f6100b6f
RC
3558 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3559echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3560 { (exit 1); exit 1; }; }
739457f4 3561fi
739457f4 3562fi
f6100b6f
RC
3563echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3564echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3565rm -f conftest.l
3566LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
739457f4 3567
f6100b6f
RC
3568echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3569echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3570if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
db04fc41 3571 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3572else
f6100b6f
RC
3573 # POSIX says lex can declare yytext either as a pointer or an array; the
3574# default is implementation-dependent. Figure out which it is, since
3575# not all implementations provide the %pointer and %array declarations.
3576ac_cv_prog_lex_yytext_pointer=no
3577echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3578ac_save_LIBS=$LIBS
3579LIBS="$LIBS $LEXLIB"
3580cat >conftest.$ac_ext <<_ACEOF
3581`cat $LEX_OUTPUT_ROOT.c`
3582_ACEOF
3583rm -f conftest.$ac_objext conftest$ac_exeext
3584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3585 (eval $ac_link) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try='test -s conftest$ac_exeext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_prog_lex_yytext_pointer=yes
3596else
3597 echo "$as_me: failed program was:" >&5
3598cat conftest.$ac_ext >&5
739457f4 3599fi
f6100b6f
RC
3600rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3601LIBS=$ac_save_LIBS
3602rm -f "${LEX_OUTPUT_ROOT}.c"
3603
739457f4 3604fi
f6100b6f
RC
3605echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3606echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3607if test $ac_cv_prog_lex_yytext_pointer = yes; then
3608
3609cat >>confdefs.h <<\_ACEOF
3610#define YYTEXT_POINTER 1
3611_ACEOF
3612
739457f4
CF
3613fi
3614
db04fc41 3615fi
f6100b6f
RC
3616if test "$LEX" = :; then
3617 LEX=${am_missing_run}flex
3618fi
3619for ac_prog in 'bison -y' byacc
3620do
3621 # Extract the first word of "$ac_prog", so it can be a program name with args.
3622set dummy $ac_prog; ac_word=$2
db04fc41
RC
3623echo "$as_me:$LINENO: checking for $ac_word" >&5
3624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f6100b6f 3625if test "${ac_cv_prog_YACC+set}" = set; then
db04fc41 3626 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3627else
f6100b6f
RC
3628 if test -n "$YACC"; then
3629 ac_cv_prog_YACC="$YACC" # Let the user override the test.
739457f4 3630else
db04fc41
RC
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f6100b6f 3638 ac_cv_prog_YACC="$ac_prog"
db04fc41
RC
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642done
3643done
3644
739457f4
CF
3645fi
3646fi
f6100b6f
RC
3647YACC=$ac_cv_prog_YACC
3648if test -n "$YACC"; then
3649 echo "$as_me:$LINENO: result: $YACC" >&5
3650echo "${ECHO_T}$YACC" >&6
739457f4 3651else
db04fc41
RC
3652 echo "$as_me:$LINENO: result: no" >&5
3653echo "${ECHO_T}no" >&6
739457f4
CF
3654fi
3655
f6100b6f
RC
3656 test -n "$YACC" && break
3657done
3658test -n "$YACC" || YACC="yacc"
739457f4 3659
f6100b6f
RC
3660# Make sure we can run config.sub.
3661$ac_config_sub sun4 >/dev/null 2>&1 ||
3662 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3663echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3664 { (exit 1); exit 1; }; }
739457f4 3665
f6100b6f
RC
3666echo "$as_me:$LINENO: checking build system type" >&5
3667echo $ECHO_N "checking build system type... $ECHO_C" >&6
3668if test "${ac_cv_build+set}" = set; then
db04fc41 3669 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3670else
f6100b6f
RC
3671 ac_cv_build_alias=$build_alias
3672test -z "$ac_cv_build_alias" &&
3673 ac_cv_build_alias=`$ac_config_guess`
3674test -z "$ac_cv_build_alias" &&
3675 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3676echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3677 { (exit 1); exit 1; }; }
3678ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3680echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3681 { (exit 1); exit 1; }; }
db04fc41 3682
739457f4 3683fi
f6100b6f
RC
3684echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3685echo "${ECHO_T}$ac_cv_build" >&6
3686build=$ac_cv_build
3687build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3688build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3689build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739457f4 3690
f6100b6f
RC
3691
3692echo "$as_me:$LINENO: checking host system type" >&5
3693echo $ECHO_N "checking host system type... $ECHO_C" >&6
3694if test "${ac_cv_host+set}" = set; then
db04fc41 3695 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3696else
f6100b6f
RC
3697 ac_cv_host_alias=$host_alias
3698test -z "$ac_cv_host_alias" &&
3699 ac_cv_host_alias=$ac_cv_build_alias
3700ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3701 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3702echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3703 { (exit 1); exit 1; }; }
db04fc41 3704
739457f4 3705fi
f6100b6f
RC
3706echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3707echo "${ECHO_T}$ac_cv_host" >&6
3708host=$ac_cv_host
3709host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3710host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3711host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739457f4 3712
739457f4 3713
6908b7d7
RC
3714# Check whether --enable-shared or --disable-shared was given.
3715if test "${enable_shared+set}" = set; then
3716 enableval="$enable_shared"
3717 p=${PACKAGE-default}
3718 case $enableval in
3719 yes) enable_shared=yes ;;
3720 no) enable_shared=no ;;
3721 *)
3722 enable_shared=no
3723 # Look at the argument we got. We use all the common list separators.
3724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3725 for pkg in $enableval; do
3726 IFS="$lt_save_ifs"
3727 if test "X$pkg" = "X$p"; then
3728 enable_shared=yes
3729 fi
3730 done
3731 IFS="$lt_save_ifs"
3732 ;;
3733 esac
3734else
3735 enable_shared=yes
3736fi;
739457f4 3737
6908b7d7
RC
3738# Check whether --enable-static or --disable-static was given.
3739if test "${enable_static+set}" = set; then
3740 enableval="$enable_static"
3741 p=${PACKAGE-default}
3742 case $enableval in
3743 yes) enable_static=yes ;;
3744 no) enable_static=no ;;
3745 *)
3746 enable_static=no
3747 # Look at the argument we got. We use all the common list separators.
3748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3749 for pkg in $enableval; do
3750 IFS="$lt_save_ifs"
3751 if test "X$pkg" = "X$p"; then
3752 enable_static=yes
3753 fi
3754 done
3755 IFS="$lt_save_ifs"
3756 ;;
3757 esac
739457f4 3758else
6908b7d7
RC
3759 enable_static=yes
3760fi;
3761
3762# Check whether --enable-fast-install or --disable-fast-install was given.
3763if test "${enable_fast_install+set}" = set; then
3764 enableval="$enable_fast_install"
3765 p=${PACKAGE-default}
3766 case $enableval in
3767 yes) enable_fast_install=yes ;;
3768 no) enable_fast_install=no ;;
3769 *)
3770 enable_fast_install=no
3771 # Look at the argument we got. We use all the common list separators.
3772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3773 for pkg in $enableval; do
3774 IFS="$lt_save_ifs"
3775 if test "X$pkg" = "X$p"; then
3776 enable_fast_install=yes
3777 fi
3778 done
3779 IFS="$lt_save_ifs"
3780 ;;
3781 esac
739457f4 3782else
6908b7d7
RC
3783 enable_fast_install=yes
3784fi;
db04fc41 3785
6908b7d7
RC
3786
3787# Check whether --with-gnu-ld or --without-gnu-ld was given.
3788if test "${with_gnu_ld+set}" = set; then
3789 withval="$with_gnu_ld"
3790 test "$withval" = no || with_gnu_ld=yes
3791else
3792 with_gnu_ld=no
3793fi;
3794ac_prog=ld
3795if test "$GCC" = yes; then
3796 # Check if gcc -print-prog-name=ld gives a path.
3797 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3798echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3799 case $host in
3800 *-*-mingw*)
3801 # gcc leaves a trailing carriage return which upsets mingw
3802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3803 *)
3804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3805 esac
3806 case $ac_prog in
3807 # Accept absolute paths.
3808 [\\/]* | ?:[\\/]*)
3809 re_direlt='/[^/][^/]*/\.\./'
3810 # Canonicalize the path of ld
3811 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3813 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3814 done
3815 test -z "$LD" && LD="$ac_prog"
3816 ;;
3817 "")
3818 # If it fails, then pretend we aren't using GCC.
3819 ac_prog=ld
3820 ;;
3821 *)
3822 # If it is relative, then search for the first ld in PATH.
3823 with_gnu_ld=unknown
3824 ;;
3825 esac
3826elif test "$with_gnu_ld" = yes; then
3827 echo "$as_me:$LINENO: checking for GNU ld" >&5
3828echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3829else
3830 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3831echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
739457f4 3832fi
6908b7d7
RC
3833if test "${lt_cv_path_LD+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835else
3836 if test -z "$LD"; then
3837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3838 for ac_dir in $PATH; do
3839 IFS="$lt_save_ifs"
3840 test -z "$ac_dir" && ac_dir=.
3841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3842 lt_cv_path_LD="$ac_dir/$ac_prog"
3843 # Check to see if the program is GNU ld. I'd rather use --version,
3844 # but apparently some GNU ld's only accept -v.
3845 # Break only if it was the GNU/non-GNU ld that we prefer.
3846 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3847 test "$with_gnu_ld" != no && break
3848 else
3849 test "$with_gnu_ld" != yes && break
3850 fi
3851 fi
3852 done
3853 IFS="$lt_save_ifs"
3854else
3855 lt_cv_path_LD="$LD" # Let the user override the test with a path.
739457f4 3856fi
6908b7d7
RC
3857fi
3858
3859LD="$lt_cv_path_LD"
3860if test -n "$LD"; then
3861 echo "$as_me:$LINENO: result: $LD" >&5
3862echo "${ECHO_T}$LD" >&6
739457f4 3863else
db04fc41
RC
3864 echo "$as_me:$LINENO: result: no" >&5
3865echo "${ECHO_T}no" >&6
739457f4 3866fi
6908b7d7
RC
3867test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3868echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3869 { (exit 1); exit 1; }; }
3870echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3871echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3872if test "${lt_cv_prog_gnu_ld+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3876if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3877 lt_cv_prog_gnu_ld=yes
3878else
3879 lt_cv_prog_gnu_ld=no
db04fc41 3880fi
6908b7d7
RC
3881fi
3882echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3883echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3884with_gnu_ld=$lt_cv_prog_gnu_ld
3885
3886
3887echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3888echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3889if test "${lt_cv_ld_reload_flag+set}" = set; then
db04fc41 3890 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3891else
6908b7d7
RC
3892 lt_cv_ld_reload_flag='-r'
3893fi
3894echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3895echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3896reload_flag=$lt_cv_ld_reload_flag
3897case $reload_flag in
3898"" | " "*) ;;
3899*) reload_flag=" $reload_flag" ;;
3900esac
3901reload_cmds='$LD$reload_flag -o $output$reload_objs'
3902
3903echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3904echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3905if test "${lt_cv_path_NM+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908 if test -n "$NM"; then
3909 # Let the user override the test.
3910 lt_cv_path_NM="$NM"
3911else
3912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3913 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3914 IFS="$lt_save_ifs"
3915 test -z "$ac_dir" && ac_dir=.
3916 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3917 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3918 # Check to see if the nm accepts a BSD-compat flag.
3919 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3920 # nm: unknown option "B" ignored
3921 # Tru64's nm complains that /dev/null is an invalid object file
3922 if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3923 lt_cv_path_NM="$tmp_nm -B"
3924 break
3925 elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3926 lt_cv_path_NM="$tmp_nm -p"
3927 break
3928 else
3929 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3930 continue # so that we can try to find one that supports BSD flags
3931 fi
3932 fi
3933 done
3934 IFS="$lt_save_ifs"
3935 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3936fi
3937fi
3938echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3939echo "${ECHO_T}$lt_cv_path_NM" >&6
3940NM="$lt_cv_path_NM"
3941
3942echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3943echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3944if test "${lt_cv_path_SED+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3946else
6908b7d7
RC
3947 # Loop through the user's path and test for sed and gsed.
3948# Then use that list of sed's as ones to test for truncation.
db04fc41
RC
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
aa1e3b4d 3954 for lt_ac_prog in sed gsed; do
6908b7d7 3955 for ac_exec_ext in '' $ac_executable_extensions; do
aa1e3b4d
RC
3956 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3957 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6908b7d7
RC
3958 fi
3959 done
3960 done
db04fc41 3961done
aa1e3b4d
RC
3962lt_ac_max=0
3963lt_ac_count=0
3964# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3965# along with /bin/sed that truncates output.
3966for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3967 test ! -f $lt_ac_sed && break
3968 cat /dev/null > conftest.in
3969 lt_ac_count=0
3970 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3971 # Check for GNU sed and select it if it is found.
3972 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3973 lt_cv_path_SED=$lt_ac_sed
3974 break;
3975 fi
3976 while true; do
3977 cat conftest.in conftest.in >conftest.tmp
3978 mv conftest.tmp conftest.in
3979 cp conftest.in conftest.nl
3980 echo >>conftest.nl
3981 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3982 cmp -s conftest.out conftest.nl || break
3983 # 10000 chars as input seems more than enough
3984 test $lt_ac_count -gt 10 && break
3985 lt_ac_count=`expr $lt_ac_count + 1`
3986 if test $lt_ac_count -gt $lt_ac_max; then
3987 lt_ac_max=$lt_ac_count
3988 lt_cv_path_SED=$lt_ac_sed
6908b7d7 3989 fi
6908b7d7 3990 done
aa1e3b4d
RC
3991done
3992SED=$lt_cv_path_SED
6908b7d7 3993
739457f4 3994fi
6908b7d7
RC
3995
3996echo "$as_me:$LINENO: result: $SED" >&5
3997echo "${ECHO_T}$SED" >&6
3998
3999echo "$as_me:$LINENO: checking whether ln -s works" >&5
4000echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4001LN_S=$as_ln_s
4002if test "$LN_S" = "ln -s"; then
4003 echo "$as_me:$LINENO: result: yes" >&5
4004echo "${ECHO_T}yes" >&6
739457f4 4005else
6908b7d7
RC
4006 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4007echo "${ECHO_T}no, using $LN_S" >&6
739457f4
CF
4008fi
4009
6908b7d7
RC
4010echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4011echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4012if test "${lt_cv_deplibs_check_method+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 4014else
6908b7d7
RC
4015 lt_cv_file_magic_cmd='$MAGIC_CMD'
4016lt_cv_file_magic_test_file=
4017lt_cv_deplibs_check_method='unknown'
4018# Need to set the preceding variable on all platforms that support
4019# interlibrary dependencies.
4020# 'none' -- dependencies not supported.
4021# `unknown' -- same as none, but documents that we really don't know.
4022# 'pass_all' -- all dependencies passed with no checks.
4023# 'test_compile' -- check by making test program.
4024# 'file_magic [[regex]]' -- check by looking for files in library path
4025# which responds to the $file_magic_cmd with a given egrep regex.
4026# If you have `file' or equivalent on your system and you're not sure
4027# whether `pass_all' will *always* work, you probably want this one.
4028
4029case $host_os in
4030aix4* | aix5*)
4031 lt_cv_deplibs_check_method=pass_all
4032 ;;
4033
4034beos*)
4035 lt_cv_deplibs_check_method=pass_all
4036 ;;
4037
4038bsdi4*)
4039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4040 lt_cv_file_magic_cmd='/usr/bin/file -L'
4041 lt_cv_file_magic_test_file=/shlib/libc.so
4042 ;;
4043
4044cygwin* | mingw* | pw32*)
4045 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4046 lt_cv_file_magic_cmd='$OBJDUMP -f'
4047 ;;
4048
4049darwin* | rhapsody*)
4050 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4051 lt_cv_file_magic_cmd='/usr/bin/file -L'
4052 case "$host_os" in
4053 rhapsody* | darwin1.[012])
4054 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4055 ;;
4056 *) # Darwin 1.3 on
4057 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4058 ;;
4059 esac
4060 ;;
4061
4062freebsd*)
4063 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4064 case $host_cpu in
4065 i*86 )
4066 # Not sure whether the presence of OpenBSD here was a mistake.
4067 # Let's accept both of them until this is cleared up.
4068 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4069 lt_cv_file_magic_cmd=/usr/bin/file
4070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4071 ;;
4072 esac
4073 else
4074 lt_cv_deplibs_check_method=pass_all
4075 fi
4076 ;;
4077
4078gnu*)
4079 lt_cv_deplibs_check_method=pass_all
4080 ;;
4081
4082hpux10.20* | hpux11*)
4083 lt_cv_file_magic_cmd=/usr/bin/file
4084 if test "$host_cpu" = ia64; then
4085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4086 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4087 else
4088 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4089 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4090 fi
4091 ;;
4092
4093irix5* | irix6* | nonstopux*)
4094 case $host_os in
4095 irix5* | nonstopux*)
4096 # this will be overridden with pass_all, but let us keep it just in case
4097 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4098 ;;
4099 *)
4100 case $LD in
4101 *-32|*"-32 ") libmagic=32-bit;;
4102 *-n32|*"-n32 ") libmagic=N32;;
4103 *-64|*"-64 ") libmagic=64-bit;;
4104 *) libmagic=never-match;;
4105 esac
4106 # this will be overridden with pass_all, but let us keep it just in case
4107 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4108 ;;
4109 esac
4110 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4111 lt_cv_deplibs_check_method=pass_all
4112 ;;
4113
4114# This must be Linux ELF.
4115linux*)
4116 case $host_cpu in
4117 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4118 lt_cv_deplibs_check_method=pass_all ;;
4119 *)
4120 # glibc up to 2.1.1 does not perform some relocations on ARM
4121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4122 esac
4123 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4124 ;;
4125
4126netbsd*)
4127 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4128 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4129 else
4130 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4131 fi
4132 ;;
4133
4134newos6*)
4135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4136 lt_cv_file_magic_cmd=/usr/bin/file
4137 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4138 ;;
4139
4140nto-qnx)
4141 lt_cv_deplibs_check_method=unknown
4142 ;;
4143
4144openbsd*)
4145 lt_cv_file_magic_cmd=/usr/bin/file
4146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4149 else
4150 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4151 fi
4152 ;;
4153
4154osf3* | osf4* | osf5*)
4155 # this will be overridden with pass_all, but let us keep it just in case
4156 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4157 lt_cv_file_magic_test_file=/shlib/libc.so
4158 lt_cv_deplibs_check_method=pass_all
4159 ;;
4160
4161sco3.2v5*)
4162 lt_cv_deplibs_check_method=pass_all
4163 ;;
4164
4165solaris*)
4166 lt_cv_deplibs_check_method=pass_all
4167 lt_cv_file_magic_test_file=/lib/libc.so
4168 ;;
4169
4170sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4171 case $host_vendor in
4172 motorola)
4173 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]'
4174 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4175 ;;
4176 ncr)
4177 lt_cv_deplibs_check_method=pass_all
4178 ;;
4179 sequent)
4180 lt_cv_file_magic_cmd='/bin/file'
4181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4182 ;;
4183 sni)
4184 lt_cv_file_magic_cmd='/bin/file'
4185 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4186 lt_cv_file_magic_test_file=/lib/libc.so
4187 ;;
aa1e3b4d
RC
4188 siemens)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
6908b7d7
RC
4191 esac
4192 ;;
4193
4194sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4195 lt_cv_deplibs_check_method=pass_all
4196 ;;
4197esac
4198
739457f4 4199fi
6908b7d7
RC
4200echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4201echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4202file_magic_cmd=$lt_cv_file_magic_cmd
4203deplibs_check_method=$lt_cv_deplibs_check_method
4204test -z "$deplibs_check_method" && deplibs_check_method=unknown
739457f4
CF
4205
4206
4207
739457f4 4208
6908b7d7
RC
4209# If no C compiler was specified, use CC.
4210LTCC=${LTCC-"$CC"}
739457f4 4211
6908b7d7
RC
4212# Allow CC to be a program name with arguments.
4213set dummy $CC
4214compiler="$2"
db04fc41
RC
4215
4216
6908b7d7
RC
4217# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4218if test "${enable_libtool_lock+set}" = set; then
4219 enableval="$enable_libtool_lock"
db04fc41 4220
6908b7d7
RC
4221fi;
4222test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4223
4224# Some flags need to be propagated to the compiler or linker for good
4225# libtool support.
4226case $host in
4227ia64-*-hpux*)
4228 # Find out which ABI we are using.
4229 echo 'int i;' > conftest.$ac_ext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; then
4235 case `/usr/bin/file conftest.$ac_objext` in
4236 *ELF-32*)
4237 HPUX_IA64_MODE="32"
4238 ;;
4239 *ELF-64*)
4240 HPUX_IA64_MODE="64"
4241 ;;
4242 esac
4243 fi
4244 rm -rf conftest*
4245 ;;
4246*-*-irix6*)
4247 # Find out which ABI we are using.
aa1e3b4d 4248 echo '#line 4248 "configure"' > conftest.$ac_ext
6908b7d7
RC
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; then
4254 case `/usr/bin/file conftest.$ac_objext` in
4255 *32-bit*)
4256 LD="${LD-ld} -32"
4257 ;;
4258 *N32*)
4259 LD="${LD-ld} -n32"
4260 ;;
4261 *64-bit*)
4262 LD="${LD-ld} -64"
4263 ;;
4264 esac
4265 fi
4266 rm -rf conftest*
4267 ;;
4268
4269*-*-sco3.2v5*)
4270 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4271 SAVE_CFLAGS="$CFLAGS"
4272 CFLAGS="$CFLAGS -belf"
4273 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4274echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4275if test "${lt_cv_cc_needs_belf+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278 ac_ext=c
4279ac_cpp='$CPP $CPPFLAGS'
4280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
4284 cat >conftest.$ac_ext <<_ACEOF
4285#line $LINENO "configure"
4286#include "confdefs.h"
4287
4288#ifdef F77_DUMMY_MAIN
4289# ifdef __cplusplus
4290 extern "C"
4291# endif
4292 int F77_DUMMY_MAIN() { return 1; }
4293#endif
4294int
4295main ()
4296{
4297
4298 ;
4299 return 0;
4300}
4301_ACEOF
4302rm -f conftest.$ac_objext conftest$ac_exeext
4303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4304 (eval $ac_link) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } &&
4308 { ac_try='test -s conftest$ac_exeext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 lt_cv_cc_needs_belf=yes
4315else
4316 echo "$as_me: failed program was:" >&5
4317cat conftest.$ac_ext >&5
4318lt_cv_cc_needs_belf=no
4319fi
4320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4321 ac_ext=c
4322ac_cpp='$CPP $CPPFLAGS'
4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327fi
4328echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4329echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4330 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4331 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4332 CFLAGS="$SAVE_CFLAGS"
4333 fi
4334 ;;
4335
4336esac
4337
4338need_locks="$enable_libtool_lock"
4339
4340
4341ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4347echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4348# On Suns, sometimes $CPP names a directory.
4349if test -n "$CPP" && test -d "$CPP"; then
4350 CPP=
4351fi
4352if test -z "$CPP"; then
4353 if test "${ac_cv_prog_CPP+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355else
4356 # Double quotes because CPP needs to be expanded
4357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4358 do
4359 ac_preproc_ok=false
4360for ac_c_preproc_warn_flag in '' yes
4361do
4362 # Use a header file that comes with gcc, so configuring glibc
4363 # with a fresh cross-compiler works.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat >conftest.$ac_ext <<_ACEOF
4367#line $LINENO "configure"
4368#include "confdefs.h"
4369#include <assert.h>
4370 Syntax error
4371_ACEOF
4372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4374 ac_status=$?
4375 egrep -v '^ *\+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } >/dev/null; then
4380 if test -s conftest.err; then
4381 ac_cpp_err=$ac_c_preproc_warn_flag
4382 else
4383 ac_cpp_err=
4384 fi
4385else
4386 ac_cpp_err=yes
4387fi
4388if test -z "$ac_cpp_err"; then
4389 :
4390else
4391 echo "$as_me: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 # Broken: fails on valid input.
4394continue
4395fi
4396rm -f conftest.err conftest.$ac_ext
4397
4398 # OK, works on sane cases. Now check whether non-existent headers
4399 # can be detected and how.
4400 cat >conftest.$ac_ext <<_ACEOF
4401#line $LINENO "configure"
4402#include "confdefs.h"
4403#include <ac_nonexistent.h>
4404_ACEOF
4405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407 ac_status=$?
4408 egrep -v '^ *\+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null; then
4413 if test -s conftest.err; then
4414 ac_cpp_err=$ac_c_preproc_warn_flag
4415 else
4416 ac_cpp_err=
4417 fi
4418else
4419 ac_cpp_err=yes
4420fi
4421if test -z "$ac_cpp_err"; then
4422 # Broken: success on invalid input.
4423continue
4424else
4425 echo "$as_me: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4427 # Passes both tests.
4428ac_preproc_ok=:
4429break
4430fi
4431rm -f conftest.err conftest.$ac_ext
4432
4433done
4434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4435rm -f conftest.err conftest.$ac_ext
4436if $ac_preproc_ok; then
4437 break
4438fi
4439
4440 done
4441 ac_cv_prog_CPP=$CPP
4442
4443fi
4444 CPP=$ac_cv_prog_CPP
4445else
4446 ac_cv_prog_CPP=$CPP
4447fi
4448echo "$as_me:$LINENO: result: $CPP" >&5
4449echo "${ECHO_T}$CPP" >&6
4450ac_preproc_ok=false
4451for ac_c_preproc_warn_flag in '' yes
4452do
4453 # Use a header file that comes with gcc, so configuring glibc
4454 # with a fresh cross-compiler works.
4455 # On the NeXT, cc -E runs the code through the compiler's parser,
4456 # not just through cpp. "Syntax error" is here to catch this case.
4457 cat >conftest.$ac_ext <<_ACEOF
4458#line $LINENO "configure"
4459#include "confdefs.h"
4460#include <assert.h>
4461 Syntax error
4462_ACEOF
4463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465 ac_status=$?
4466 egrep -v '^ *\+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null; then
4471 if test -s conftest.err; then
4472 ac_cpp_err=$ac_c_preproc_warn_flag
4473 else
4474 ac_cpp_err=
4475 fi
4476else
4477 ac_cpp_err=yes
4478fi
4479if test -z "$ac_cpp_err"; then
4480 :
4481else
4482 echo "$as_me: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4484 # Broken: fails on valid input.
4485continue
4486fi
4487rm -f conftest.err conftest.$ac_ext
4488
4489 # OK, works on sane cases. Now check whether non-existent headers
4490 # can be detected and how.
4491 cat >conftest.$ac_ext <<_ACEOF
4492#line $LINENO "configure"
4493#include "confdefs.h"
4494#include <ac_nonexistent.h>
4495_ACEOF
4496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498 ac_status=$?
4499 egrep -v '^ *\+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } >/dev/null; then
4504 if test -s conftest.err; then
4505 ac_cpp_err=$ac_c_preproc_warn_flag
4506 else
4507 ac_cpp_err=
4508 fi
4509else
4510 ac_cpp_err=yes
4511fi
4512if test -z "$ac_cpp_err"; then
4513 # Broken: success on invalid input.
4514continue
4515else
4516 echo "$as_me: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4518 # Passes both tests.
4519ac_preproc_ok=:
4520break
4521fi
4522rm -f conftest.err conftest.$ac_ext
4523
4524done
4525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4526rm -f conftest.err conftest.$ac_ext
4527if $ac_preproc_ok; then
4528 :
4529else
4530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4531echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4532 { (exit 1); exit 1; }; }
4533fi
4534
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541
4542echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4543echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4544if test "${ac_cv_header_stdc+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 cat >conftest.$ac_ext <<_ACEOF
4548#line $LINENO "configure"
4549#include "confdefs.h"
4550#include <stdlib.h>
4551#include <stdarg.h>
4552#include <string.h>
4553#include <float.h>
4554
4555_ACEOF
4556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4558 ac_status=$?
4559 egrep -v '^ *\+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } >/dev/null; then
4564 if test -s conftest.err; then
4565 ac_cpp_err=$ac_c_preproc_warn_flag
4566 else
4567 ac_cpp_err=
4568 fi
4569else
4570 ac_cpp_err=yes
4571fi
4572if test -z "$ac_cpp_err"; then
4573 ac_cv_header_stdc=yes
4574else
4575 echo "$as_me: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4577 ac_cv_header_stdc=no
4578fi
4579rm -f conftest.err conftest.$ac_ext
4580
4581if test $ac_cv_header_stdc = yes; then
4582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4583 cat >conftest.$ac_ext <<_ACEOF
4584#line $LINENO "configure"
4585#include "confdefs.h"
4586#include <string.h>
4587
4588_ACEOF
4589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4590 egrep "memchr" >/dev/null 2>&1; then
4591 :
4592else
4593 ac_cv_header_stdc=no
4594fi
4595rm -f conftest*
4596
4597fi
4598
4599if test $ac_cv_header_stdc = yes; then
4600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4601 cat >conftest.$ac_ext <<_ACEOF
4602#line $LINENO "configure"
4603#include "confdefs.h"
4604#include <stdlib.h>
4605
4606_ACEOF
4607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 egrep "free" >/dev/null 2>&1; then
4609 :
4610else
4611 ac_cv_header_stdc=no
4612fi
4613rm -f conftest*
4614
4615fi
4616
4617if test $ac_cv_header_stdc = yes; then
4618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4619 if test "$cross_compiling" = yes; then
4620 :
4621else
4622 cat >conftest.$ac_ext <<_ACEOF
4623#line $LINENO "configure"
4624#include "confdefs.h"
4625#include <ctype.h>
4626#if ((' ' & 0x0FF) == 0x020)
4627# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4628# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4629#else
4630# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4631 || ('j' <= (c) && (c) <= 'r') \
4632 || ('s' <= (c) && (c) <= 'z'))
4633# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4634#endif
4635
4636#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4637int
4638main ()
4639{
4640 int i;
4641 for (i = 0; i < 256; i++)
4642 if (XOR (islower (i), ISLOWER (i))
4643 || toupper (i) != TOUPPER (i))
4644 exit(2);
4645 exit (0);
4646}
4647_ACEOF
4648rm -f conftest$ac_exeext
4649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 :
4660else
4661 echo "$as_me: program exited with status $ac_status" >&5
4662echo "$as_me: failed program was:" >&5
4663cat conftest.$ac_ext >&5
4664( exit $ac_status )
4665ac_cv_header_stdc=no
4666fi
4667rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4668fi
4669fi
4670fi
4671echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4672echo "${ECHO_T}$ac_cv_header_stdc" >&6
4673if test $ac_cv_header_stdc = yes; then
4674
4675cat >>confdefs.h <<\_ACEOF
4676#define STDC_HEADERS 1
4677_ACEOF
4678
4679fi
4680
4681# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4692 inttypes.h stdint.h unistd.h
4693do
4694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695echo "$as_me:$LINENO: checking for $ac_header" >&5
4696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4697if eval "test \"\${$as_ac_Header+set}\" = set"; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700 cat >conftest.$ac_ext <<_ACEOF
4701#line $LINENO "configure"
4702#include "confdefs.h"
4703$ac_includes_default
4704
4705#include <$ac_header>
4706_ACEOF
4707rm -f conftest.$ac_objext
4708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 eval "$as_ac_Header=yes"
4720else
4721 echo "$as_me: failed program was:" >&5
4722cat conftest.$ac_ext >&5
4723eval "$as_ac_Header=no"
4724fi
4725rm -f conftest.$ac_objext conftest.$ac_ext
4726fi
4727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4729if test `eval echo '${'$as_ac_Header'}'` = yes; then
4730 cat >>confdefs.h <<_ACEOF
4731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4732_ACEOF
4733
4734fi
4735
4736done
4737
4738
4739
4740for ac_header in dlfcn.h
4741do
4742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4743if eval "test \"\${$as_ac_Header+set}\" = set"; then
4744 echo "$as_me:$LINENO: checking for $ac_header" >&5
4745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4746if eval "test \"\${$as_ac_Header+set}\" = set"; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748fi
4749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4751else
4752 # Is the header compilable?
4753echo "$as_me:$LINENO: checking $ac_header usability" >&5
4754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4755cat >conftest.$ac_ext <<_ACEOF
4756#line $LINENO "configure"
4757#include "confdefs.h"
4758$ac_includes_default
4759#include <$ac_header>
4760_ACEOF
4761rm -f conftest.$ac_objext
4762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 ac_header_compiler=yes
4774else
4775 echo "$as_me: failed program was:" >&5
4776cat conftest.$ac_ext >&5
4777ac_header_compiler=no
4778fi
4779rm -f conftest.$ac_objext conftest.$ac_ext
4780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4781echo "${ECHO_T}$ac_header_compiler" >&6
4782
4783# Is the header present?
4784echo "$as_me:$LINENO: checking $ac_header presence" >&5
4785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4786cat >conftest.$ac_ext <<_ACEOF
4787#line $LINENO "configure"
4788#include "confdefs.h"
4789#include <$ac_header>
4790_ACEOF
4791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4793 ac_status=$?
4794 egrep -v '^ *\+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } >/dev/null; then
4799 if test -s conftest.err; then
4800 ac_cpp_err=$ac_c_preproc_warn_flag
4801 else
4802 ac_cpp_err=
4803 fi
4804else
4805 ac_cpp_err=yes
4806fi
4807if test -z "$ac_cpp_err"; then
4808 ac_header_preproc=yes
4809else
4810 echo "$as_me: failed program was:" >&5
4811 cat conftest.$ac_ext >&5
4812 ac_header_preproc=no
4813fi
4814rm -f conftest.err conftest.$ac_ext
4815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816echo "${ECHO_T}$ac_header_preproc" >&6
4817
4818# So? What about this header?
4819case $ac_header_compiler:$ac_header_preproc in
4820 yes:no )
4821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4825 no:yes )
4826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4832esac
4833echo "$as_me:$LINENO: checking for $ac_header" >&5
4834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4835if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837else
4838 eval "$as_ac_Header=$ac_header_preproc"
4839fi
4840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842
4843fi
4844if test `eval echo '${'$as_ac_Header'}'` = yes; then
4845 cat >>confdefs.h <<_ACEOF
4846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4847_ACEOF
4848
4849fi
4850
4851done
4852
4853ac_ext=cc
4854ac_cpp='$CXXCPP $CPPFLAGS'
4855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4858echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4859echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4860if test -z "$CXXCPP"; then
4861 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 # Double quotes because CXXCPP needs to be expanded
4865 for CXXCPP in "$CXX -E" "/lib/cpp"
4866 do
4867 ac_preproc_ok=false
4868for ac_cxx_preproc_warn_flag in '' yes
4869do
4870 # Use a header file that comes with gcc, so configuring glibc
4871 # with a fresh cross-compiler works.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat >conftest.$ac_ext <<_ACEOF
4875#line $LINENO "configure"
4876#include "confdefs.h"
4877#include <assert.h>
4878 Syntax error
4879_ACEOF
4880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882 ac_status=$?
4883 egrep -v '^ *\+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null; then
4888 if test -s conftest.err; then
4889 ac_cpp_err=$ac_cxx_preproc_warn_flag
4890 else
4891 ac_cpp_err=
4892 fi
4893else
4894 ac_cpp_err=yes
4895fi
4896if test -z "$ac_cpp_err"; then
4897 :
4898else
4899 echo "$as_me: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 # Broken: fails on valid input.
4902continue
4903fi
4904rm -f conftest.err conftest.$ac_ext
4905
4906 # OK, works on sane cases. Now check whether non-existent headers
4907 # can be detected and how.
4908 cat >conftest.$ac_ext <<_ACEOF
4909#line $LINENO "configure"
4910#include "confdefs.h"
4911#include <ac_nonexistent.h>
4912_ACEOF
4913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4915 ac_status=$?
4916 egrep -v '^ *\+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } >/dev/null; then
4921 if test -s conftest.err; then
4922 ac_cpp_err=$ac_cxx_preproc_warn_flag
4923 else
4924 ac_cpp_err=
4925 fi
4926else
4927 ac_cpp_err=yes
4928fi
4929if test -z "$ac_cpp_err"; then
4930 # Broken: success on invalid input.
4931continue
4932else
4933 echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 # Passes both tests.
4936ac_preproc_ok=:
4937break
4938fi
4939rm -f conftest.err conftest.$ac_ext
4940
4941done
4942# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943rm -f conftest.err conftest.$ac_ext
4944if $ac_preproc_ok; then
4945 break
4946fi
4947
4948 done
4949 ac_cv_prog_CXXCPP=$CXXCPP
4950
4951fi
4952 CXXCPP=$ac_cv_prog_CXXCPP
4953else
4954 ac_cv_prog_CXXCPP=$CXXCPP
4955fi
4956echo "$as_me:$LINENO: result: $CXXCPP" >&5
4957echo "${ECHO_T}$CXXCPP" >&6
4958ac_preproc_ok=false
4959for ac_cxx_preproc_warn_flag in '' yes
4960do
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # On the NeXT, cc -E runs the code through the compiler's parser,
4964 # not just through cpp. "Syntax error" is here to catch this case.
4965 cat >conftest.$ac_ext <<_ACEOF
4966#line $LINENO "configure"
4967#include "confdefs.h"
4968#include <assert.h>
4969 Syntax error
4970_ACEOF
4971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4973 ac_status=$?
4974 egrep -v '^ *\+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev/null; then
4979 if test -s conftest.err; then
4980 ac_cpp_err=$ac_cxx_preproc_warn_flag
4981 else
4982 ac_cpp_err=
4983 fi
4984else
4985 ac_cpp_err=yes
4986fi
4987if test -z "$ac_cpp_err"; then
4988 :
4989else
4990 echo "$as_me: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4992 # Broken: fails on valid input.
4993continue
4994fi
4995rm -f conftest.err conftest.$ac_ext
4996
4997 # OK, works on sane cases. Now check whether non-existent headers
4998 # can be detected and how.
4999 cat >conftest.$ac_ext <<_ACEOF
5000#line $LINENO "configure"
5001#include "confdefs.h"
5002#include <ac_nonexistent.h>
5003_ACEOF
5004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006 ac_status=$?
5007 egrep -v '^ *\+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_cxx_preproc_warn_flag
5014 else
5015 ac_cpp_err=
5016 fi
5017else
5018 ac_cpp_err=yes
5019fi
5020if test -z "$ac_cpp_err"; then
5021 # Broken: success on invalid input.
5022continue
5023else
5024 echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 # Passes both tests.
5027ac_preproc_ok=:
5028break
5029fi
5030rm -f conftest.err conftest.$ac_ext
5031
5032done
5033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034rm -f conftest.err conftest.$ac_ext
5035if $ac_preproc_ok; then
5036 :
5037else
5038 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
5039echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
5040 { (exit 1); exit 1; }; }
5041fi
5042
5043ac_ext=cc
5044ac_cpp='$CXXCPP $CPPFLAGS'
5045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5048
5049
5050# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5051
5052# find the maximum length of command line arguments
5053echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5054echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5055if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058 i=0
5059 testring="ABCD"
5060
aa1e3b4d 5061 case $build_os in
6908b7d7
RC
5062 msdosdjgpp*)
5063 # On DJGPP, this test can blow up pretty badly due to problems in libc
5064 # (any single argument exceeding 2000 bytes causes a buffer overrun
5065 # during glob expansion). Even if it were fixed, the result of this
5066 # check would be larger than it should be.
5067 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5068 ;;
5069
5070 gnu*)
5071 # Under GNU Hurd, this test is not required because there is
5072 # no limit to the length of command line arguments.
5073 # Libtool will interpret -1 as no limit whatsoever
5074 lt_cv_sys_max_cmd_len=-1;
5075 ;;
5076
5077 *)
5078 # If test is not a shell built-in, we'll probably end up computing a
5079 # maximum length that is only half of the actual maximum length, but
5080 # we can't tell.
5081 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5082 = "XX$testring") >/dev/null 2>&1 &&
5083 new_result=`expr "X$testring" : ".*" 2>&1` &&
5084 lt_cv_sys_max_cmd_len=$new_result &&
5085 test $i != 17 # 1/2 MB should be enough
5086 do
5087 i=`expr $i + 1`
5088 testring=$testring$testring
5089 done
5090 testring=
5091 # Add a significant safety factor because C++ compilers can tack on massive
5092 # amounts of additional arguments before passing them to the linker.
5093 # It appears as though 1/2 is a usable value.
5094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5095 ;;
5096 esac
5097
5098fi
5099
5100if test -n $lt_cv_sys_max_cmd_len ; then
5101 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5102echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5103else
5104 echo "$as_me:$LINENO: result: none" >&5
5105echo "${ECHO_T}none" >&6
5106fi
5107
5108
5109
5110
5111# Check for command to grab the raw symbol name followed by C symbol from nm.
5112echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5113echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5114if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117
5118# These are sane defaults that work on at least a few old systems.
5119# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5120
5121# Character class describing NM global symbol codes.
5122symcode='[BCDEGRST]'
5123
5124# Regexp to match symbols that can be accessed directly from C.
5125sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5126
5127# Transform the above into a raw symbol and a C symbol.
5128symxfrm='\1 \2\3 \3'
5129
5130# Transform an extracted symbol line into a proper C declaration
5131lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5132
5133# Transform an extracted symbol line into symbol name and symbol address
5134lt_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'"
5135
5136# Define system-specific variables.
5137case $host_os in
5138aix*)
5139 symcode='[BCDT]'
5140 ;;
5141cygwin* | mingw* | pw32*)
5142 symcode='[ABCDGISTW]'
5143 ;;
5144hpux*) # Its linker distinguishes data from code symbols
5145 if test "$host_cpu" = ia64; then
5146 symcode='[ABCDEGRST]'
5147 fi
5148 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5149 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'"
5150 ;;
5151irix* | nonstopux*)
5152 symcode='[BCDEGRST]'
5153 ;;
5154solaris* | sysv5*)
5155 symcode='[BDT]'
5156 ;;
5157sysv4)
5158 symcode='[DFNSTU]'
5159 ;;
5160esac
5161
5162# Handle CRLF in mingw tool chain
5163opt_cr=
5164case $host_os in
5165mingw*)
5166 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5167 ;;
5168esac
5169
5170# If we're using GNU nm, then use its standard symbol codes.
5171if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5172 symcode='[ABCDGISTW]'
5173fi
5174
5175# Try without a prefix undercore, then with it.
5176for ac_symprfx in "" "_"; do
5177
5178 # Write the raw and C identifiers.
5179 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5180
5181 # Check to see that the pipe works correctly.
5182 pipe_works=no
5183
5184 rm -f conftest*
5185 cat > conftest.$ac_ext <<EOF
5186#ifdef __cplusplus
5187extern "C" {
5188#endif
5189char nm_test_var;
5190void nm_test_func(){}
5191#ifdef __cplusplus
5192}
5193#endif
5194int main(){nm_test_var='a';nm_test_func();return(0);}
5195EOF
5196
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; then
5202 # Now try to grab the symbols.
5203 nlist=conftest.nm
5204 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5205 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } && test -s "$nlist"; then
5209 # Try sorting and uniquifying the output.
5210 if sort "$nlist" | uniq > "$nlist"T; then
5211 mv -f "$nlist"T "$nlist"
5212 else
5213 rm -f "$nlist"T
5214 fi
5215
5216 # Make sure that we snagged all the symbols we need.
5217 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5218 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5219 cat <<EOF > conftest.$ac_ext
5220#ifdef __cplusplus
5221extern "C" {
5222#endif
5223
5224EOF
5225 # Now generate the symbol file.
5226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5227
5228 cat <<EOF >> conftest.$ac_ext
5229#if defined (__STDC__) && __STDC__
5230# define lt_ptr_t void *
5231#else
5232# define lt_ptr_t char *
5233# define const
5234#endif
5235
5236/* The mapping between symbol names and symbols. */
5237const struct {
5238 const char *name;
5239 lt_ptr_t address;
5240}
5241lt_preloaded_symbols[] =
5242{
5243EOF
5244 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5245 cat <<\EOF >> conftest.$ac_ext
5246 {0, (lt_ptr_t) 0}
5247};
5248
5249#ifdef __cplusplus
5250}
5251#endif
5252EOF
5253 # Now try linking the two files.
5254 mv conftest.$ac_objext conftstm.$ac_objext
5255 lt_save_LIBS="$LIBS"
5256 lt_save_CFLAGS="$CFLAGS"
5257 LIBS="conftstm.$ac_objext"
5258 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5260 (eval $ac_link) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5264 pipe_works=yes
5265 fi
5266 LIBS="$lt_save_LIBS"
5267 CFLAGS="$lt_save_CFLAGS"
5268 else
5269 echo "cannot find nm_test_func in $nlist" >&5
5270 fi
5271 else
5272 echo "cannot find nm_test_var in $nlist" >&5
5273 fi
5274 else
5275 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5276 fi
5277 else
5278 echo "$progname: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5280 fi
5281 rm -f conftest* conftst*
5282
5283 # Do not use the global_symbol_pipe unless it works.
5284 if test "$pipe_works" = yes; then
5285 break
5286 else
5287 lt_cv_sys_global_symbol_pipe=
5288 fi
5289done
5290
5291fi
5292
5293if test -z "$lt_cv_sys_global_symbol_pipe"; then
5294 lt_cv_sys_global_symbol_to_cdecl=
5295fi
5296if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5297 echo "$as_me:$LINENO: result: failed" >&5
5298echo "${ECHO_T}failed" >&6
5299else
5300 echo "$as_me:$LINENO: result: ok" >&5
5301echo "${ECHO_T}ok" >&6
5302fi
5303
5304echo "$as_me:$LINENO: checking for objdir" >&5
5305echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5306if test "${lt_cv_objdir+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 rm -f .libs 2>/dev/null
5310mkdir .libs 2>/dev/null
5311if test -d .libs; then
5312 lt_cv_objdir=.libs
5313else
5314 # MS-DOS does not allow filenames that begin with a dot.
5315 lt_cv_objdir=_libs
5316fi
5317rmdir .libs 2>/dev/null
5318fi
5319echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5320echo "${ECHO_T}$lt_cv_objdir" >&6
5321objdir=$lt_cv_objdir
5322
5323
5324
5325
5326
5327case $host_os in
5328aix3*)
5329 # AIX sometimes has problems with the GCC collect2 program. For some
5330 # reason, if we set the COLLECT_NAMES environment variable, the problems
5331 # vanish in a puff of smoke.
5332 if test "X${COLLECT_NAMES+set}" != Xset; then
5333 COLLECT_NAMES=
5334 export COLLECT_NAMES
5335 fi
5336 ;;
5337esac
5338
5339# Sed substitution that helps us do robust quoting. It backslashifies
5340# metacharacters that are still active within double-quoted strings.
5341Xsed='sed -e s/^X//'
5342sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5343
5344# Same as above, but do not quote variable references.
5345double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5346
5347# Sed substitution to delay expansion of an escaped shell variable in a
5348# double_quote_subst'ed string.
5349delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5350
5351# Sed substitution to avoid accidental globbing in evaled expressions
5352no_glob_subst='s/\*/\\\*/g'
5353
5354# Constants:
5355rm="rm -f"
5356
5357# Global variables:
5358default_ofile=libtool
5359can_build_shared=yes
5360
5361# All known linkers require a `.a' archive for static linking (except M$VC,
5362# which needs '.lib').
5363libext=a
5364ltmain="$ac_aux_dir/ltmain.sh"
5365ofile="$default_ofile"
5366with_gnu_ld="$lt_cv_prog_gnu_ld"
5367
5368if test -n "$ac_tool_prefix"; then
5369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5370set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5371echo "$as_me:$LINENO: checking for $ac_word" >&5
5372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373if test "${ac_cv_prog_RANLIB+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376 if test -n "$RANLIB"; then
5377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5378else
5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5389 fi
5390done
5391done
5392
5393fi
5394fi
5395RANLIB=$ac_cv_prog_RANLIB
5396if test -n "$RANLIB"; then
5397 echo "$as_me:$LINENO: result: $RANLIB" >&5
5398echo "${ECHO_T}$RANLIB" >&6
5399else
5400 echo "$as_me:$LINENO: result: no" >&5
5401echo "${ECHO_T}no" >&6
5402fi
5403
5404fi
5405if test -z "$ac_cv_prog_RANLIB"; then
5406 ac_ct_RANLIB=$RANLIB
5407 # Extract the first word of "ranlib", so it can be a program name with args.
5408set dummy ranlib; ac_word=$2
5409echo "$as_me:$LINENO: checking for $ac_word" >&5
5410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414 if test -n "$ac_ct_RANLIB"; then
5415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5416else
5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_ac_ct_RANLIB="ranlib"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428done
5429done
5430
5431 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5432fi
5433fi
5434ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5435if test -n "$ac_ct_RANLIB"; then
5436 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5437echo "${ECHO_T}$ac_ct_RANLIB" >&6
5438else
5439 echo "$as_me:$LINENO: result: no" >&5
5440echo "${ECHO_T}no" >&6
5441fi
5442
5443 RANLIB=$ac_ct_RANLIB
5444else
5445 RANLIB="$ac_cv_prog_RANLIB"
5446fi
5447
5448if test -n "$ac_tool_prefix"; then
5449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5450set dummy ${ac_tool_prefix}strip; ac_word=$2
5451echo "$as_me:$LINENO: checking for $ac_word" >&5
5452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453if test "${ac_cv_prog_STRIP+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456 if test -n "$STRIP"; then
5457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5458else
5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH
5461do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5469 fi
5470done
5471done
5472
5473fi
5474fi
5475STRIP=$ac_cv_prog_STRIP
5476if test -n "$STRIP"; then
5477 echo "$as_me:$LINENO: result: $STRIP" >&5
5478echo "${ECHO_T}$STRIP" >&6
5479else
5480 echo "$as_me:$LINENO: result: no" >&5
5481echo "${ECHO_T}no" >&6
5482fi
5483
5484fi
5485if test -z "$ac_cv_prog_STRIP"; then
5486 ac_ct_STRIP=$STRIP
5487 # Extract the first word of "strip", so it can be a program name with args.
5488set dummy strip; ac_word=$2
5489echo "$as_me:$LINENO: checking for $ac_word" >&5
5490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5491if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494 if test -n "$ac_ct_STRIP"; then
5495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504 ac_cv_prog_ac_ct_STRIP="strip"
5505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508done
5509done
5510
5511 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5512fi
5513fi
5514ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5515if test -n "$ac_ct_STRIP"; then
5516 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5517echo "${ECHO_T}$ac_ct_STRIP" >&6
5518else
5519 echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521fi
5522
5523 STRIP=$ac_ct_STRIP
5524else
5525 STRIP="$ac_cv_prog_STRIP"
5526fi
5527
5528
5529old_CC="$CC"
5530old_CFLAGS="$CFLAGS"
5531
5532# Set sane defaults for various variables
5533test -z "$AR" && AR=ar
5534test -z "$AR_FLAGS" && AR_FLAGS=cru
5535test -z "$AS" && AS=as
5536test -z "$CC" && CC=cc
5537test -z "$LTCC" && LTCC=$CC
5538test -z "$DLLTOOL" && DLLTOOL=dlltool
5539test -z "$LD" && LD=ld
5540test -z "$LN_S" && LN_S="ln -s"
5541test -z "$MAGIC_CMD" && MAGIC_CMD=file
5542test -z "$NM" && NM=nm
5543test -z "$SED" && SED=sed
5544test -z "$OBJDUMP" && OBJDUMP=objdump
5545test -z "$RANLIB" && RANLIB=:
5546test -z "$STRIP" && STRIP=:
5547test -z "$ac_objext" && ac_objext=o
5548
5549# Determine commands to create old-style static archives.
5550old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5551old_postinstall_cmds='chmod 644 $oldlib'
5552old_postuninstall_cmds=
5553
5554if test -n "$RANLIB"; then
5555 case $host_os in
5556 openbsd*)
5557 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5558 ;;
5559 *)
5560 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5561 ;;
5562 esac
5563 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5564fi
5565
5566# Only perform the check for file, if the check method requires it
5567case $deplibs_check_method in
5568file_magic*)
5569 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5570 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5571echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5572if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575 case $MAGIC_CMD in
5576[\\/*] | ?:[\\/]*)
5577 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5578 ;;
5579*)
5580 lt_save_MAGIC_CMD="$MAGIC_CMD"
5581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5582 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5583 for ac_dir in $ac_dummy; do
5584 IFS="$lt_save_ifs"
5585 test -z "$ac_dir" && ac_dir=.
5586 if test -f $ac_dir/${ac_tool_prefix}file; then
5587 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5588 if test -n "$file_magic_test_file"; then
5589 case $deplibs_check_method in
5590 "file_magic "*)
5591 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5594 egrep "$file_magic_regex" > /dev/null; then
5595 :
5596 else
5597 cat <<EOF 1>&2
5598
5599*** Warning: the command libtool uses to detect shared libraries,
5600*** $file_magic_cmd, produces output that libtool cannot recognize.
5601*** The result is that libtool may fail to recognize shared libraries
5602*** as such. This will affect the creation of libtool libraries that
5603*** depend on shared libraries, but programs linked with such libtool
5604*** libraries will work regardless of this problem. Nevertheless, you
5605*** may want to report the problem to your system manager and/or to
5606*** bug-libtool@gnu.org
5607
5608EOF
5609 fi ;;
5610 esac
5611 fi
5612 break
5613 fi
5614 done
5615 IFS="$lt_save_ifs"
5616 MAGIC_CMD="$lt_save_MAGIC_CMD"
5617 ;;
5618esac
5619fi
5620
5621MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5622if test -n "$MAGIC_CMD"; then
5623 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5624echo "${ECHO_T}$MAGIC_CMD" >&6
5625else
5626 echo "$as_me:$LINENO: result: no" >&5
5627echo "${ECHO_T}no" >&6
5628fi
5629
5630if test -z "$lt_cv_path_MAGIC_CMD"; then
5631 if test -n "$ac_tool_prefix"; then
5632 echo "$as_me:$LINENO: checking for file" >&5
5633echo $ECHO_N "checking for file... $ECHO_C" >&6
5634if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637 case $MAGIC_CMD in
5638[\\/*] | ?:[\\/]*)
5639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5640 ;;
5641*)
5642 lt_save_MAGIC_CMD="$MAGIC_CMD"
5643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5645 for ac_dir in $ac_dummy; do
5646 IFS="$lt_save_ifs"
5647 test -z "$ac_dir" && ac_dir=.
5648 if test -f $ac_dir/file; then
5649 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5650 if test -n "$file_magic_test_file"; then
5651 case $deplibs_check_method in
5652 "file_magic "*)
5653 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5656 egrep "$file_magic_regex" > /dev/null; then
5657 :
5658 else
5659 cat <<EOF 1>&2
5660
5661*** Warning: the command libtool uses to detect shared libraries,
5662*** $file_magic_cmd, produces output that libtool cannot recognize.
5663*** The result is that libtool may fail to recognize shared libraries
5664*** as such. This will affect the creation of libtool libraries that
5665*** depend on shared libraries, but programs linked with such libtool
5666*** libraries will work regardless of this problem. Nevertheless, you
5667*** may want to report the problem to your system manager and/or to
5668*** bug-libtool@gnu.org
5669
5670EOF
5671 fi ;;
5672 esac
5673 fi
5674 break
5675 fi
5676 done
5677 IFS="$lt_save_ifs"
5678 MAGIC_CMD="$lt_save_MAGIC_CMD"
5679 ;;
5680esac
5681fi
5682
5683MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5684if test -n "$MAGIC_CMD"; then
5685 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5686echo "${ECHO_T}$MAGIC_CMD" >&6
5687else
5688 echo "$as_me:$LINENO: result: no" >&5
5689echo "${ECHO_T}no" >&6
5690fi
5691
5692 else
5693 MAGIC_CMD=:
5694 fi
5695fi
5696
5697 fi
5698 ;;
5699esac
5700
5701enable_dlopen=no
5702enable_win32_dll=no
5703
5704# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5705if test "${enable_libtool_lock+set}" = set; then
5706 enableval="$enable_libtool_lock"
5707
5708fi;
5709test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5710
5711
5712# Check whether --with-pic or --without-pic was given.
5713if test "${with_pic+set}" = set; then
5714 withval="$with_pic"
5715 pic_mode="$withval"
5716else
5717 pic_mode=default
5718fi;
5719test -z "$pic_mode" && pic_mode=default
5720
5721# Use C for the default configuration in the libtool script
5722tagname=
5723lt_save_CC="$CC"
5724ac_ext=c
5725ac_cpp='$CPP $CPPFLAGS'
5726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729
5730
5731# Source file extension for C test sources.
5732ac_ext=c
5733
5734# Object file extension for compiled C test sources.
5735objext=o
5736objext=$objext
5737
5738# Code to be used in simple compile tests
5739lt_simple_compile_test_code="int some_variable = 0;"
5740
5741# Code to be used in simple link tests
5742lt_simple_link_test_code='main(){return(0);}'
5743
5744
5745# If no C compiler was specified, use CC.
5746LTCC=${LTCC-"$CC"}
5747
5748# Allow CC to be a program name with arguments.
5749set dummy $CC
5750compiler="$2"
5751
5752
5753#
5754# Check for any special shared library compilation flags.
5755#
5756lt_prog_cc_shlib=
5757if test "$GCC" = no; then
5758 case $host_os in
5759 sco3.2v5*)
5760 lt_prog_cc_shlib='-belf'
5761 ;;
5762 esac
5763fi
5764if test -n "$lt_prog_cc_shlib"; then
5765 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5766echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5767 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5768 else
5769 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5770echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5771 lt_cv_prog_cc_can_build_shared=no
5772 fi
5773fi
5774
5775
5776#
5777# Check to make sure the static flag actually works.
5778#
5779echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5780echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5781if test "${lt_prog_compiler_static_works+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 lt_prog_compiler_static_works=no
5785 save_LDFLAGS="$LDFLAGS"
5786 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
5788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5789 # The compiler can only warn and ignore the option if not recognized
5790 # So say no if there are warnings
5791 if test -s conftest.err; then
5792 # Append any errors to the config.log.
5793 cat conftest.err 1>&5
5794 else
5795 lt_prog_compiler_static_works=yes
5796 fi
5797 fi
5798 $rm conftest*
5799 LDFLAGS="$save_LDFLAGS"
5800
5801fi
5802echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5803echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5804
5805if test x"$lt_prog_compiler_static_works" = xyes; then
5806 :
5807else
5808 lt_prog_compiler_static=
5809fi
5810
5811
5812
5813
5814lt_prog_compiler_no_builtin_flag=
5815
5816if test "$GCC" = yes; then
5817 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5818
5819 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5820echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5821if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 lt_cv_prog_compiler_rtti_exceptions=no
5825 ac_outfile=conftest.$ac_objext
5826 save_CFLAGS="$CFLAGS"
5827 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5829 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5830 # The compiler can only warn and ignore the option if not recognized
5831 # So say no if there are warnings
5832 if test -s conftest.err; then
5833 # Append any errors to the config.log.
5834 cat conftest.err 1>&5
5835 else
5836 lt_cv_prog_compiler_rtti_exceptions=yes
5837 fi
5838 fi
5839 $rm conftest*
5840 CFLAGS="$save_CFLAGS"
5841
5842fi
5843echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5844echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5845
5846if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5847 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5848else
5849 :
5850fi
5851
5852fi
5853
5854lt_prog_compiler_wl=
5855lt_prog_compiler_pic=
5856lt_prog_compiler_static=
5857
5858echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5859echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5860
5861 if test "$GCC" = yes; then
5862 lt_prog_compiler_wl='-Wl,'
5863 lt_prog_compiler_static='-static'
5864
5865 case $host_os in
5866 aix*)
5867 # All AIX code is PIC.
5868 if test "$host_cpu" = ia64; then
5869 # AIX 5 now supports IA64 processor
5870 lt_prog_compiler_static='-Bstatic'
5871 fi
5872 ;;
5873
5874 amigaos*)
5875 # FIXME: we need at least 68020 code to build shared libraries, but
5876 # adding the `-m68020' flag to GCC prevents building anything better,
5877 # like `-m68040'.
5878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5879 ;;
5880
5881 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5882 # PIC is the default for these OSes.
5883 ;;
5884
5885 mingw* | pw32* | os2*)
5886 # This hack is so that the source file can tell whether it is being
5887 # built for inclusion in a dll (and should export symbols for example).
5888 lt_prog_compiler_pic='-DDLL_EXPORT'
5889 ;;
5890
5891 darwin* | rhapsody*)
5892 # PIC is the default on this platform
5893 # Common symbols not allowed in MH_DYLIB files
5894 lt_prog_compiler_pic='-fno-common'
5895 ;;
5896
5897 msdosdjgpp*)
5898 # Just because we use GCC doesn't mean we suddenly get shared libraries
5899 # on systems that don't support them.
5900 lt_prog_compiler_can_build_shared=no
5901 enable_shared=no
5902 ;;
5903
5904 sysv4*MP*)
5905 if test -d /usr/nec; then
5906 lt_prog_compiler_pic=-Kconform_pic
5907 fi
5908 ;;
5909
5910 hpux*)
5911 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
5912 if test "$host_cpu" != ia64; then
5913 lt_prog_compiler_pic='-fPIC'
5914 fi
5915 ;;
5916
5917 *)
5918 lt_prog_compiler_pic='-fPIC'
5919 ;;
5920 esac
5921 else
5922 # PORTME Check for flag to pass linker flags through the system compiler.
5923 case $host_os in
5924 aix*)
5925 lt_prog_compiler_wl='-Wl,'
5926 if test "$host_cpu" = ia64; then
5927 # AIX 5 now supports IA64 processor
5928 lt_prog_compiler_static='-Bstatic'
5929 else
5930 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5931 fi
5932 ;;
5933
5934 mingw* | pw32* | os2*)
5935 # This hack is so that the source file can tell whether it is being
5936 # built for inclusion in a dll (and should export symbols for example).
5937 lt_prog_compiler_pic='-DDLL_EXPORT'
5938 ;;
5939
5940 hpux9* | hpux10* | hpux11*)
5941 lt_prog_compiler_wl='-Wl,'
5942 if test "$host_cpu" != ia64; then
5943 lt_prog_compiler_pic='+Z'
5944 fi
5945 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5946 lt_prog_compiler_static='${wl}-a ${wl}archive'
5947 ;;
5948
5949 irix5* | irix6* | nonstopux*)
5950 lt_prog_compiler_wl='-Wl,'
5951 # PIC (with -KPIC) is the default.
5952 lt_prog_compiler_static='-non_shared'
5953 ;;
5954
5955 newsos6)
5956 lt_prog_compiler_pic='-KPIC'
5957 lt_prog_compiler_static='-Bstatic'
5958 ;;
5959
5960 osf3* | osf4* | osf5*)
5961 lt_prog_compiler_wl='-Wl,'
5962 # All OSF/1 code is PIC.
5963 lt_prog_compiler_static='-non_shared'
5964 ;;
5965
5966 sco3.2v5*)
5967 lt_prog_compiler_pic='-Kpic'
5968 lt_prog_compiler_static='-dn'
5969 ;;
5970
5971 solaris*)
5972 lt_prog_compiler_wl='-Wl,'
5973 lt_prog_compiler_pic='-KPIC'
5974 lt_prog_compiler_static='-Bstatic'
5975 ;;
5976
5977 sunos4*)
5978 lt_prog_compiler_wl='-Qoption ld '
5979 lt_prog_compiler_pic='-PIC'
5980 lt_prog_compiler_static='-Bstatic'
5981 ;;
5982
5983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
aa1e3b4d 5984 lt_prog_compiler_wl='-Wl,'
6908b7d7
RC
5985 lt_prog_compiler_pic='-KPIC'
5986 lt_prog_compiler_static='-Bstatic'
5987 ;;
5988
5989 sysv4*MP*)
5990 if test -d /usr/nec ;then
5991 lt_prog_compiler_pic='-Kconform_pic'
5992 lt_prog_compiler_static='-Bstatic'
5993 fi
5994 ;;
5995
5996 uts4*)
5997 lt_prog_compiler_pic='-pic'
5998 lt_prog_compiler_static='-Bstatic'
5999 ;;
6000
6001 *)
6002 lt_prog_compiler_can_build_shared=no
6003 ;;
6004 esac
6005 fi
6006
6007echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6008echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6009
6010#
6011# Check to make sure the PIC flag actually works.
6012#
6013if test -n "$lt_prog_compiler_pic"; then
6014 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6015echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6016if test "${lt_prog_compiler_pic_works+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018else
6019 lt_prog_compiler_pic_works=no
6020 ac_outfile=conftest.$ac_objext
6021 save_CFLAGS="$CFLAGS"
6022 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
6023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6024 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6025 # The compiler can only warn and ignore the option if not recognized
6026 # So say no if there are warnings
6027 if test -s conftest.err; then
6028 # Append any errors to the config.log.
6029 cat conftest.err 1>&5
6030 else
6031 lt_prog_compiler_pic_works=yes
6032 fi
6033 fi
6034 $rm conftest*
6035 CFLAGS="$save_CFLAGS"
6036
6037fi
6038echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6039echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6040
6041if test x"$lt_prog_compiler_pic_works" = xyes; then
6042 case $lt_prog_compiler_pic in
6043 "" | " "*) ;;
6044 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6045 esac
6046else
6047 lt_prog_compiler_pic=
6048 lt_prog_compiler_can_build_shared=no
6049fi
6050
6051fi
6052case "$host_os" in
6053 # For platforms which do not support PIC, -DPIC is meaningless:
6054 *djgpp*)
6055 lt_prog_compiler_pic=
6056 ;;
6057 *)
6058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6059 ;;
6060esac
6061
6062echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6063echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6064if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067 lt_cv_prog_compiler_c_o=no
6068 $rm -r conftest 2>/dev/null
6069 mkdir conftest
6070 cd conftest
6071 mkdir out
6072 save_CFLAGS="$CFLAGS"
6073 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6075
6076 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6077 # that will create temporary files in the current directory regardless of
6078 # the output directory. Thus, making CWD read-only will cause this test
6079 # to fail, enabling locking or at least warning the user not to do parallel
6080 # builds.
6081 chmod -w .
6082
6083 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
6084 then
6085 # The compiler can only warn and ignore the option if not recognized
6086 # So say no if there are warnings
6087 if test -s out/conftest.err; then
6088 # Append any errors to the config.log.
6089 cat out/conftest.err 1>&5
6090 else
6091 lt_cv_prog_compiler_c_o=yes
6092 fi
6093 fi
6094 CFLAGS="$save_CFLAGS"
6095 chmod u+w .
6096 $rm conftest* out/*
6097 rmdir out
6098 cd ..
6099 rmdir conftest
6100 $rm conftest*
6101
6102fi
6103echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6104echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6105
6106
6107hard_links="nottested"
6108if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6109 # do not overwrite the value of need_locks provided by the user
6110 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6111echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6112 hard_links=yes
6113 $rm conftest*
6114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6115 touch conftest.a
6116 ln conftest.a conftest.b 2>&5 || hard_links=no
6117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6118 echo "$as_me:$LINENO: result: $hard_links" >&5
6119echo "${ECHO_T}$hard_links" >&6
6120 if test "$hard_links" = no; then
6121 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6122echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6123 need_locks=warn
6124 fi
6125else
6126 need_locks=no
6127fi
6128
6129echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6130echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6131
6132 runpath_var=
6133 allow_undefined_flag=
6134
6135 archive_cmds=
6136 archive_cmds_need_lc=
6137 archive_expsym_cmds=
6138 old_archive_From_new_cmds=
6139 old_archive_from_expsyms_cmds=
6140 export_dynamic_flag_spec=
6141 whole_archive_flag_spec=
6142 thread_safe_flag_spec=
6143 hardcode_libdir_flag_spec=
6144 hardcode_libdir_separator=
6145 hardcode_direct=no
6146 hardcode_minus_L=no
6147 hardcode_shlibpath_var=unsupported
6148 link_all_deplibs=unknown
6149 always_export_symbols=no
6150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6151 # include_expsyms should be a list of space-separated symbols to be *always*
6152 # included in the symbol list
6153 include_expsyms=
6154 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6155 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6157 # as well as any symbol that contains `d'.
6158 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6160 # platforms (ab)use it in PIC code, but their linkers get confused if
6161 # the symbol is explicitly referenced. Since portable code cannot
6162 # rely on this symbol name, it's probably fine to never include it in
6163 # preloaded symbol tables.
6164 extract_expsyms_cmds=
6165
6166 case $host_os in
6167 cygwin* | mingw* | pw32*)
6168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6169 # When not using gcc, we currently assume that we are using
6170 # Microsoft Visual C++.
6171 if test "$GCC" != yes; then
6172 with_gnu_ld=no
6173 fi
6174 ;;
6175 openbsd*)
6176 with_gnu_ld=no
6177 ;;
6178 esac
6179
6180 ld_shlibs=yes
6181 if test "$with_gnu_ld" = yes; then
6182 # If archive_cmds runs LD, not CC, wlarc should be empty
6183 wlarc='${wl}'
6184
6185 # See if GNU ld supports shared libraries.
6186 case $host_os in
6187 aix3* | aix4* | aix5*)
6188 # On AIX/PPC, the GNU linker is very broken
6189 if test "$host_cpu" != ia64; then
6190 ld_shlibs=no
6191 cat <<EOF 1>&2
6192
6193*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6194*** to be unable to reliably create shared libraries on AIX.
6195*** Therefore, libtool is disabling shared libraries support. If you
6196*** really care for shared libraries, you may want to modify your PATH
6197*** so that a non-GNU linker is found, and then restart.
6198
6199EOF
6200 fi
6201 ;;
6202
6203 amigaos*)
6204 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)'
6205 hardcode_libdir_flag_spec='-L$libdir'
6206 hardcode_minus_L=yes
6207
6208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6209 # that the semantics of dynamic libraries on AmigaOS, at least up
6210 # to version 4, is to share data among multiple programs linked
6211 # with the same dynamic library. Since this doesn't match the
6212 # behavior of shared libraries on other platforms, we can't use
6213 # them.
6214 ld_shlibs=no
6215 ;;
6216
6217 beos*)
6218 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6219 allow_undefined_flag=unsupported
6220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6221 # support --undefined. This deserves some investigation. FIXME
6222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6223 else
6224 ld_shlibs=no
6225 fi
6226 ;;
6227
6228 cygwin*)
6229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6230 # as there is no search path for DLLs.
6231 hardcode_libdir_flag_spec='-L$libdir'
6232 allow_undefined_flag=
aa1e3b4d 6233 always_export_symbols=no
6908b7d7
RC
6234
6235 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
6236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
6238 else
6239 ld_shlibs=no
6240 fi
6241 ;;
6242
6243 mingw* | pw32*)
6244 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6245 # no search path for DLLs.
6246 hardcode_libdir_flag_spec='-L$libdir'
6247 allow_undefined_flag=unsupported
6248 always_export_symbols=yes
6249
6250 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6251 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6252 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6253 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6254 else $CC -o impgen impgen.c ; fi)~
6255 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6256
6257 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6258
6259 # FIXME: what about values for MSVC?
6260 dll_entry=__cygwin_dll_entry@12
6261 case $host_os in
6262 mingw*)
6263 # mingw values
6264 dll_entry=_DllMainCRTStartup@12
6265 ;;
6266 esac
6267
6268 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6269
6270 # recent cygwin and mingw systems supply a stub DllMain which the user
6271 # can override, but on older systems we have to supply one (in ltdll.c)
6272 if test "x$lt_cv_need_dllmain" = "xyes"; then
6273 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6274 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6275 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6276 else
6277 ltdll_obj=
6278 ltdll_cmds=
6279 fi
6280
6281 # Extract the symbol export list from an `--export-all' def file,
6282 # then regenerate the def file from the symbol export list, so that
6283 # the compiled dll only exports the symbol export list.
6284 # Be careful not to strip the DATA tag left by newer dlltools.
6285 export_symbols_cmds="$ltdll_cmds"'
6286 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6287 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6288
6289 # If the export-symbols file already is a .def file (1st line
6290 # is EXPORTS), use it as is.
6291 # If DATA tags from a recent dlltool are present, honour them!
6292 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6293 cp $export_symbols $output_objdir/$soname-def;
6294 else
6295 echo EXPORTS > $output_objdir/$soname-def;
6296 _lt_hint=1;
6297 cat $export_symbols | while read symbol; do
6298 set dummy \$symbol;
6299 case \$# in
6300 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
aa1e3b4d 6301 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6908b7d7
RC
6302 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6303 esac;
6304 _lt_hint=`expr 1 + \$_lt_hint`;
6305 done;
6306 fi~
6307 '"$ltdll_cmds"'
6308 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6309 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6310 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6311 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6312 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6313 ;;
6314
6315 netbsd*)
6316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6317 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6318 wlarc=
6319 else
6320 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6321 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6322 fi
6323 ;;
6324
6325 solaris* | sysv5*)
6326 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6327 ld_shlibs=no
6328 cat <<EOF 1>&2
6329
6330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6331*** create shared libraries on Solaris systems. Therefore, libtool
6332*** is disabling shared libraries support. We urge you to upgrade GNU
6333*** binutils to release 2.9.1 or newer. Another option is to modify
6334*** your PATH or compiler configuration so that the native linker is
6335*** used, and then restart.
6336
6337EOF
6338 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6341 else
6342 ld_shlibs=no
6343 fi
6344 ;;
6345
6346 sunos4*)
6347 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6348 wlarc=
6349 hardcode_direct=yes
6350 hardcode_shlibpath_var=no
6351 ;;
6352
6353 *)
6354 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6357 else
6358 ld_shlibs=no
6359 fi
6360 ;;
6361 esac
6362
6363 if test "$ld_shlibs" = yes; then
6364 runpath_var=LD_RUN_PATH
6365 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6366 export_dynamic_flag_spec='${wl}--export-dynamic'
6367 case $host_os in
6368 cygwin* | mingw* | pw32*)
6369 # dlltool doesn't understand --whole-archive et. al.
6370 whole_archive_flag_spec=
6371 ;;
6372 *)
6373 # ancient GNU ld didn't support --whole-archive et. al.
6374 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6375 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6376 else
6377 whole_archive_flag_spec=
6378 fi
6379 ;;
6380 esac
6381 fi
6382 else
6383 # PORTME fill in a description of your system's linker (not GNU ld)
6384 case $host_os in
6385 aix3*)
6386 allow_undefined_flag=unsupported
6387 always_export_symbols=yes
6388 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'
6389 # Note: this linker hardcodes the directories in LIBPATH if there
6390 # are no directories specified by -L.
6391 hardcode_minus_L=yes
6392 if test "$GCC" = yes && test -z "$link_static_flag"; then
6393 # Neither direct hardcoding nor static linking is supported with a
6394 # broken collect2.
6395 hardcode_direct=unsupported
6396 fi
6397 ;;
6398
6399 aix4* | aix5*)
6400 if test "$host_cpu" = ia64; then
6401 # On IA64, the linker does run time linking by default, so we don't
6402 # have to do anything special.
6403 aix_use_runtimelinking=no
6404 exp_sym_flag='-Bexport'
6405 no_entry_flag=""
6406 else
6407 # If we're using GNU nm, then we don't want the "-C" option.
6408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6409 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
6410 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'
6411 else
6412 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'
6413 fi
6414 aix_use_runtimelinking=no
6415
6416 # Test if we are trying to use run time linking or normal
6417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6418 # need to do runtime linking.
6419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6420 for ld_flag in $LDFLAGS; do
6421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6422 aix_use_runtimelinking=yes
6423 break
6424 fi
6425 done
6426 esac
6427
6428 exp_sym_flag='-bexport'
6429 no_entry_flag='-bnoentry'
6430 fi
6431
6432 # When large executables or shared objects are built, AIX ld can
6433 # have problems creating the table of contents. If linking a library
6434 # or program results in "error TOC overflow" add -mminimal-toc to
6435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6437
6438 archive_cmds=''
6439 hardcode_direct=yes
6440 hardcode_libdir_separator=':'
6441 link_all_deplibs=yes
6442
6443 if test "$GCC" = yes; then
6444 case $host_os in aix4.012|aix4.012.*)
6445 # We only want to do this on AIX 4.2 and lower, the check
6446 # below for broken collect2 doesn't work under 4.3+
6447 collect2name=`${CC} -print-prog-name=collect2`
6448 if test -f "$collect2name" && \
6449 strings "$collect2name" | grep resolve_lib_name >/dev/null
6450 then
6451 # We have reworked collect2
6452 hardcode_direct=yes
6453 else
6454 # We have old collect2
6455 hardcode_direct=unsupported
6456 # It fails to find uninstalled libraries when the uninstalled
6457 # path is not listed in the libpath. Setting hardcode_minus_L
6458 # to unsupported forces relinking
6459 hardcode_minus_L=yes
6460 hardcode_libdir_flag_spec='-L$libdir'
6461 hardcode_libdir_separator=
6462 fi
6463 esac
6464 shared_flag='-shared'
6465 else
6466 # not using gcc
6467 if test "$host_cpu" = ia64; then
6468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6469 # chokes on -Wl,-G. The following line is correct:
6470 shared_flag='-G'
6471 else
6472 if test "$aix_use_runtimelinking" = yes; then
6473 shared_flag='${wl}-G'
6474 else
6475 shared_flag='${wl}-bM:SRE'
6476 fi
6477 fi
6478 fi
6479
6480 # It seems that -bexpall does not export symbols beginning with
6481 # underscore (_), so it is better to generate a list of symbols to export.
6482 always_export_symbols=yes
6483 if test "$aix_use_runtimelinking" = yes; then
6484 # Warning - without using the other runtime loading flags (-brtl),
6485 # -berok will link without error, but may produce a broken library.
6486 allow_undefined_flag='-berok'
6487 # Determine the default libpath from the value encoded in an empty executable.
6488 cat >conftest.$ac_ext <<_ACEOF
6489#line $LINENO "configure"
6490#include "confdefs.h"
6491
6492#ifdef F77_DUMMY_MAIN
6493# ifdef __cplusplus
6494 extern "C"
6495# endif
6496 int F77_DUMMY_MAIN() { return 1; }
6497#endif
6498int
6499main ()
6500{
6501
6502 ;
6503 return 0;
6504}
6505_ACEOF
6506rm -f conftest.$ac_objext conftest$ac_exeext
6507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -s conftest$ac_exeext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518
6519aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6520}'`
6521# Check for a 64-bit object if we didn't find anything.
6522if 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; }
6523}'`; fi
6524else
6525 echo "$as_me: failed program was:" >&5
6526cat conftest.$ac_ext >&5
6527fi
6528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6530
6531 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6532 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"
6533 else
6534 if test "$host_cpu" = ia64; then
6535 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6536 allow_undefined_flag="-z nodefs"
6537 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"
6538 else
6539 # Determine the default libpath from the value encoded in an empty executable.
6540 cat >conftest.$ac_ext <<_ACEOF
6541#line $LINENO "configure"
6542#include "confdefs.h"
6543
6544#ifdef F77_DUMMY_MAIN
6545# ifdef __cplusplus
6546 extern "C"
6547# endif
6548 int F77_DUMMY_MAIN() { return 1; }
6549#endif
6550int
6551main ()
6552{
6553
6554 ;
6555 return 0;
6556}
6557_ACEOF
6558rm -f conftest.$ac_objext conftest$ac_exeext
6559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -s conftest$ac_exeext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570
6571aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6572}'`
6573# Check for a 64-bit object if we didn't find anything.
6574if 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; }
6575}'`; fi
6576else
6577 echo "$as_me: failed program was:" >&5
6578cat conftest.$ac_ext >&5
6579fi
6580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6581if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6582
6583 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6584 # Warning - without using the other run time loading flags,
6585 # -berok will link without error, but may produce a broken library.
6586 no_undefined_flag=' ${wl}-bernotok'
6587 allow_undefined_flag=' ${wl}-berok'
6588 # -bexpall does not export symbols beginning with underscore (_)
6589 always_export_symbols=yes
6590 # Exported symbols can be pulled into shared objects from archives
6591 whole_archive_flag_spec=' '
6592 archive_cmds_need_lc=yes
6593 # This is similar to how AIX traditionally builds it's shared libraries.
6594 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'
6595 fi
6596 fi
6597 ;;
6598
6599 amigaos*)
6600 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)'
6601 hardcode_libdir_flag_spec='-L$libdir'
6602 hardcode_minus_L=yes
6603 # see comment about different semantics on the GNU ld section
6604 ld_shlibs=no
6605 ;;
6606
6607 bsdi4*)
6608 export_dynamic_flag_spec=-rdynamic
6609 ;;
6610
6611 cygwin* | mingw* | pw32*)
6612 # When not using gcc, we currently assume that we are using
6613 # Microsoft Visual C++.
6614 # hardcode_libdir_flag_spec is actually meaningless, as there is
6615 # no search path for DLLs.
6616 hardcode_libdir_flag_spec=' '
aa1e3b4d 6617 allow_undefined_flag=
6908b7d7
RC
6618 # Tell ltmain to make .lib files, not .a files.
6619 libext=lib
6620 # FIXME: Setting linknames here is a bad hack.
6621 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6622 # The linker will automatically build a .lib file if we build a DLL.
6623 old_archive_From_new_cmds='true'
6624 # FIXME: Should let the user specify the lib program.
6625 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6626 fix_srcfile_path='`cygpath -w "$srcfile"`'
6627 ;;
6628
6629 darwin* | rhapsody*)
6630 case "$host_os" in
6631 rhapsody* | darwin1.[012])
6632 allow_undefined_flag='-undefined suppress'
6633 ;;
6634 *) # Darwin 1.3 on
6635 allow_undefined_flag='-flat_namespace -undefined suppress'
6636 ;;
6637 esac
6638
6639 # FIXME: Relying on posixy $() will cause problems for
6640 # cross-compilation, but unfortunately the echo tests do not
6641 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6642 # `"' quotes if we put them in here... so don't!
6643 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6644 # We need to add '_' to the symbols in $export_symbols first
6645 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6646 hardcode_direct=yes
6647 hardcode_shlibpath_var=no
6648 whole_archive_flag_spec='-all_load $convenience'
6649 ;;
6650
6651 dgux*)
6652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6653 hardcode_libdir_flag_spec='-L$libdir'
6654 hardcode_shlibpath_var=no
6655 ;;
6656
6657 freebsd1*)
6658 ld_shlibs=no
6659 ;;
6660
6661 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6662 # support. Future versions do this automatically, but an explicit c++rt0.o
6663 # does not break anything, and helps significantly (at the cost of a little
6664 # extra space).
6665 freebsd2.2*)
6666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6667 hardcode_libdir_flag_spec='-R$libdir'
6668 hardcode_direct=yes
6669 hardcode_shlibpath_var=no
6670 ;;
6671
6672 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6673 freebsd2*)
6674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6675 hardcode_direct=yes
6676 hardcode_minus_L=yes
6677 hardcode_shlibpath_var=no
6678 ;;
6679
6680 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6681 freebsd*)
6682 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6683 hardcode_libdir_flag_spec='-R$libdir'
6684 hardcode_direct=yes
6685 hardcode_shlibpath_var=no
6686 ;;
6687
6688 hpux9* | hpux10* | hpux11*)
6689 if test "$GCC" = yes; then
6690 case $host_os in
6691 hpux9*)
6692 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'
6693 ;;
6694 *)
6695 if test "$host_cpu" = ia64; then
6696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6697 else
6698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6699 fi
6700 ;;
6701 esac
6702 else
6703 case $host_os in
6704 hpux9*)
6705 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'
6706 ;;
6707 *)
6708 if test "$host_cpu" = ia64; then
6709 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6710 else
6711 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6712 fi
6713 ;;
6714 esac
6715 fi
6716 if test "$host_cpu" = ia64; then
6717 hardcode_libdir_flag_spec='-L$libdir'
6718 hardcode_direct=no
6719 hardcode_shlibpath_var=no
6720 else
6721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6722 hardcode_libdir_separator=:
6723 hardcode_direct=yes
6724 fi
6725 # hardcode_minus_L: Not really in the search PATH,
6726 # but as the default location of the library.
6727 hardcode_minus_L=yes
6728 export_dynamic_flag_spec='${wl}-E'
6729 ;;
6730
6731 irix5* | irix6* | nonstopux*)
6732 if test "$GCC" = yes; then
6733 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'
6734 else
6735 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'
6736 fi
6737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6738 hardcode_libdir_separator=:
6739 link_all_deplibs=yes
6740 ;;
6741
6742 netbsd*)
6743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6745 else
6746 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6747 fi
6748 hardcode_libdir_flag_spec='-R$libdir'
6749 hardcode_direct=yes
6750 hardcode_shlibpath_var=no
6751 ;;
6752
6753 newsos6)
6754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6755 hardcode_direct=yes
6756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6757 hardcode_libdir_separator=:
6758 hardcode_shlibpath_var=no
6759 ;;
6760
6761 openbsd*)
6762 hardcode_direct=yes
6763 hardcode_shlibpath_var=no
6764
6765 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6766 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6768 export_dynamic_flag_spec='${wl}-E'
6769 else
6770 case $host_os in
6771 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6773 hardcode_libdir_flag_spec='-R$libdir'
6774 ;;
6775 *)
6776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6778 ;;
6779 esac
6780 fi
6781 ;;
6782
6783 os2*)
6784 hardcode_libdir_flag_spec='-L$libdir'
6785 hardcode_minus_L=yes
6786 allow_undefined_flag=unsupported
6787 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'
6788 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6789 ;;
6790
6791 osf3*)
6792 if test "$GCC" = yes; then
6793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6794 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'
6795 else
6796 allow_undefined_flag=' -expect_unresolved \*'
6797 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'
6798 fi
6799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6800 hardcode_libdir_separator=:
6801 ;;
6802
6803 osf4* | osf5*) # as osf3* with the addition of -msym flag
6804 if test "$GCC" = yes; then
6805 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6806 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'
6807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6808 else
6809 allow_undefined_flag=' -expect_unresolved \*'
6810 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'
6811 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6812 $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'
6813
6814 # Both c and cxx compiler support -rpath directly
6815 hardcode_libdir_flag_spec='-rpath $libdir'
6816 fi
6817 hardcode_libdir_separator=:
6818 ;;
6819
6820 sco3.2v5*)
6821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6822 hardcode_shlibpath_var=no
6823 export_dynamic_flag_spec='${wl}-Bexport'
6824 runpath_var=LD_RUN_PATH
6825 hardcode_runpath_var=yes
6826 ;;
6827
6828 solaris*)
6829 no_undefined_flag=' -z text'
6830 if test "$GCC" = yes; then
6831 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6832 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6833 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6834 else
6835 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6836 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6837 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6838 fi
6839 hardcode_libdir_flag_spec='-R$libdir'
6840 hardcode_shlibpath_var=no
6841 case $host_os in
6842 solaris2.[0-5] | solaris2.[0-5].*) ;;
6843 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6844 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6845 esac
6846 link_all_deplibs=yes
6847 ;;
6848
6849 sunos4*)
6850 if test "x$host_vendor" = xsequent; then
6851 # Use $CC to link under sequent, because it throws in some extra .o
6852 # files that make .init and .fini sections work.
6853 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6854 else
6855 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6856 fi
6857 hardcode_libdir_flag_spec='-L$libdir'
6858 hardcode_direct=yes
6859 hardcode_minus_L=yes
6860 hardcode_shlibpath_var=no
6861 ;;
6862
6863 sysv4)
aa1e3b4d
RC
6864 case $host_vendor in
6865 sni)
6866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6867 hardcode_direct=yes # is this really true???
6868 ;;
6869 siemens)
6870 ## LD is ld it makes a PLAMLIB
6871 ## CC just makes a GrossModule.
6872 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6873 reload_cmds='$CC -r -o $output$reload_objs'
6874 hardcode_direct=no
6875 ;;
6876 motorola)
6877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6878 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6879 ;;
6880 esac
6908b7d7
RC
6881 runpath_var='LD_RUN_PATH'
6882 hardcode_shlibpath_var=no
6883 ;;
6884
6885 sysv4.3*)
6886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6887 hardcode_shlibpath_var=no
6888 export_dynamic_flag_spec='-Bexport'
6889 ;;
6890
6891 sysv4*MP*)
6892 if test -d /usr/nec; then
6893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6894 hardcode_shlibpath_var=no
6895 runpath_var=LD_RUN_PATH
6896 hardcode_runpath_var=yes
6897 ld_shlibs=yes
6898 fi
6899 ;;
6900
6901 sysv4.2uw2*)
6902 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6903 hardcode_direct=yes
6904 hardcode_minus_L=no
6905 hardcode_shlibpath_var=no
6906 hardcode_runpath_var=yes
6907 runpath_var=LD_RUN_PATH
6908 ;;
6909
6910 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6911 no_undefined_flag='${wl}-z ${wl}text'
6912 if test "$GCC" = yes; then
6913 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6914 else
6915 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6916 fi
6917 runpath_var='LD_RUN_PATH'
6918 hardcode_shlibpath_var=no
6919 ;;
6920
6921 sysv5*)
6922 no_undefined_flag=' -z text'
6923 # $CC -shared without GNU ld will not create a library from C++
6924 # object files and a static libstdc++, better avoid it by now
6925 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6926 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6927 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6928 hardcode_libdir_flag_spec=
6929 hardcode_shlibpath_var=no
6930 runpath_var='LD_RUN_PATH'
6931 ;;
6932
6933 uts4*)
6934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6935 hardcode_libdir_flag_spec='-L$libdir'
6936 hardcode_shlibpath_var=no
6937 ;;
6938
6939 *)
6940 ld_shlibs=no
6941 ;;
6942 esac
6943 fi
6944
6945echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6946echo "${ECHO_T}$ld_shlibs" >&6
6947test "$ld_shlibs" = no && can_build_shared=no
6948
6949variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6950if test "$GCC" = yes; then
6951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6952fi
6953
6954#
6955# Do we need to explicitly link libc?
6956#
6957archive_cmds_need_lc=yes
6958if test "$enable_shared" = yes && test "$GCC" = yes; then
6959 case $archive_cmds in
6960 *'~'*)
6961 # FIXME: we may have to deal with multi-command sequences.
6962 ;;
6963 '$CC '*)
6964 # Test whether the compiler implicitly links with -lc since on some
6965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6966 # to ld, don't add -lc before -lgcc.
6967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6969 $rm conftest*
6970 echo 'static int dummy;' > conftest.$ac_ext
6971
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } 2>conftest.err; then
6977 soname=conftest
6978 lib=conftest
6979 libobjs=conftest.$ac_objext
6980 deplibs=
6981 wl=$lt_prog_compiler_wl
6982 compiler_flags=-v
6983 linker_flags=-v
6984 verstring=
6985 output_objdir=.
6986 libname=conftest
6987 lt_save_allow_undefined_flag=$allow_undefined_flag
6988 allow_undefined_flag=
6989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6990 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }
6994 then
6995 archive_cmds_need_lc=no
6996 else
6997 archive_cmds_need_lc=yes
6998 fi
6999 allow_undefined_flag=$lt_save_allow_undefined_flag
7000 else
7001 cat conftest.err 1>&5
7002 fi
7003 $rm conftest*
7004 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7005echo "${ECHO_T}$archive_cmds_need_lc" >&6
7006 ;;
7007 esac
7008fi
7009
7010echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7011echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7012hardcode_action=
7013if test -n "$hardcode_libdir_flag_spec" || \
7014 test -n "$runpath_var "; then
7015
7016 # We can hardcode non-existant directories.
7017 if test "$hardcode_direct" != no &&
7018 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7019 # have to relink, otherwise we might link with an installed library
7020 # when we should be linking with a yet-to-be-installed one
7021 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7022 test "$hardcode_minus_L" != no; then
7023 # Linking always hardcodes the temporary library directory.
7024 hardcode_action=relink
7025 else
7026 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7027 hardcode_action=immediate
7028 fi
7029else
7030 # We cannot hardcode anything, or else we can only hardcode existing
7031 # directories.
7032 hardcode_action=unsupported
7033fi
7034echo "$as_me:$LINENO: result: $hardcode_action" >&5
7035echo "${ECHO_T}$hardcode_action" >&6
7036
7037if test "$hardcode_action" = relink; then
7038 # Fast installation is not supported
7039 enable_fast_install=no
7040elif test "$shlibpath_overrides_runpath" = yes ||
7041 test "$enable_shared" = no; then
7042 # Fast installation is not necessary
7043 enable_fast_install=needless
7044fi
7045
7046striplib=
7047old_striplib=
7048echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7049echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7050if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7051 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7052 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058fi
7059
7060echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7061echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7062library_names_spec=
7063libname_spec='lib$name'
7064soname_spec=
7065postinstall_cmds=
7066postuninstall_cmds=
7067finish_cmds=
7068finish_eval=
7069shlibpath_var=
7070shlibpath_overrides_runpath=unknown
7071version_type=none
7072dynamic_linker="$host_os ld.so"
7073sys_lib_dlsearch_path_spec="/lib /usr/lib"
7074if test "$GCC" = yes; then
7075 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7076 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
7077 # if the path contains ";" then we assume it to be the separator
7078 # otherwise default to the standard path separator (i.e. ":") - it is
7079 # assumed that no part of a normal pathname contains ";" but that should
7080 # okay in the real world where ";" in dirpaths is itself problematic.
7081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7082 else
7083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7084 fi
7085else
7086 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7087fi
7088need_lib_prefix=unknown
7089hardcode_into_libs=no
7090
7091# when you set need_version to no, make sure it does not cause -set_version
7092# flags to be left without arguments
7093need_version=unknown
7094
7095case $host_os in
7096aix3*)
7097 version_type=linux
7098 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7099 shlibpath_var=LIBPATH
7100
7101 # AIX 3 has no versioning support, so we append a major version to the name.
7102 soname_spec='${libname}${release}.so$major'
7103 ;;
7104
7105aix4* | aix5*)
7106 version_type=linux
7107 if test "$host_cpu" = ia64; then
7108 # AIX 5 supports IA64
7109 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7110 shlibpath_var=LD_LIBRARY_PATH
7111 else
7112 # With GCC up to 2.95.x, collect2 would create an import file
7113 # for dependence libraries. The import file would start with
7114 # the line `#! .'. This would cause the generated library to
7115 # depend on `.', always an invalid library. This was fixed in
7116 # development snapshots of GCC prior to 3.0.
7117 case $host_os in
7118 aix4 | aix4.[01] | aix4.[01].*)
7119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7120 echo ' yes '
7121 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7122 :
7123 else
7124 can_build_shared=no
7125 fi
7126 ;;
7127 esac
7128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7129 # soname into executable. Probably we can add versioning support to
7130 # collect2, so additional links can be useful in future.
7131 if test "$aix_use_runtimelinking" = yes; then
7132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7133 # instead of lib<name>.a to let people know that these are not
7134 # typical AIX shared libraries.
7135 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7136 else
7137 # We preserve .a as extension for shared libraries through AIX4.2
7138 # and later when we are not doing run time linking.
7139 library_names_spec='${libname}${release}.a $libname.a'
7140 soname_spec='${libname}${release}.so$major'
7141 fi
7142 shlibpath_var=LIBPATH
7143 fi
7144 ;;
7145
7146amigaos*)
7147 library_names_spec='$libname.ixlibrary $libname.a'
7148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7149 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'
7150 ;;
7151
7152beos*)
7153 library_names_spec='${libname}.so'
7154 dynamic_linker="$host_os ld.so"
7155 shlibpath_var=LIBRARY_PATH
7156 ;;
7157
7158bsdi4*)
7159 version_type=linux
7160 need_version=no
7161 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7162 soname_spec='${libname}${release}.so$major'
7163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7164 shlibpath_var=LD_LIBRARY_PATH
7165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7167 # the default ld.so.conf also contains /usr/contrib/lib and
7168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7169 # libtool to hard-code these into programs
7170 ;;
7171
7172cygwin* | mingw* | pw32*)
7173 version_type=windows
7174 need_version=no
7175 need_lib_prefix=no
7176 case $GCC,$host_os in
7177 yes,cygwin*)
7178 library_names_spec='$libname.dll.a'
7179 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7181 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7182 dldir=$destdir/`dirname \$dlpath`~
7183 test -d \$dldir || mkdir -p \$dldir~
7184 $install_prog .libs/$dlname \$dldir/$dlname'
7185 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7186 dlpath=$dir/\$dldll~
7187 $rm \$dlpath'
7188 shlibpath_overrides_runpath=yes
7189 ;;
7190 yes,mingw*)
7191 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7193 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
7194 # It is most probably a Windows format PATH printed by
7195 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7196 # path with ; separators, and with drive letters. We can handle the
7197 # drive letters (cygwin fileutils understands them), so leave them,
7198 # especially as we might pass files found there to a mingw objdump,
7199 # which wouldn't understand a cygwinified path. Ahh.
7200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7201 else
7202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7203 fi
7204 ;;
7205 yes,pw32*)
7206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7207 ;;
7208 *)
7209 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7210 ;;
7211 esac
7212 dynamic_linker='Win32 ld.exe'
7213 # FIXME: first we should search . and the directory the executable is in
7214 shlibpath_var=PATH
7215 ;;
7216
7217darwin* | rhapsody*)
7218 dynamic_linker="$host_os dyld"
7219 version_type=darwin
7220 need_lib_prefix=no
7221 need_version=no
7222 # FIXME: Relying on posixy $() will cause problems for
7223 # cross-compilation, but unfortunately the echo tests do not
7224 # yet detect zsh echo's removal of \ escapes.
7225 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7226 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7227 shlibpath_overrides_runpath=yes
7228 shlibpath_var=DYLD_LIBRARY_PATH
7229 ;;
7230
7231dgux*)
7232 version_type=linux
7233 need_lib_prefix=no
7234 need_version=no
7235 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7236 soname_spec='${libname}${release}.so$major'
7237 shlibpath_var=LD_LIBRARY_PATH
7238 ;;
7239
7240freebsd1*)
7241 dynamic_linker=no
7242 ;;
7243
7244freebsd*)
7245 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7246 version_type=freebsd-$objformat
7247 case $version_type in
7248 freebsd-elf*)
7249 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7250 need_version=no
7251 need_lib_prefix=no
7252 ;;
7253 freebsd-*)
7254 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7255 need_version=yes
7256 ;;
7257 esac
7258 shlibpath_var=LD_LIBRARY_PATH
7259 case $host_os in
7260 freebsd2*)
7261 shlibpath_overrides_runpath=yes
7262 ;;
7263 freebsd3.01* | freebsdelf3.01*)
7264 shlibpath_overrides_runpath=yes
7265 hardcode_into_libs=yes
7266 ;;
7267 *) # from 3.2 on
7268 shlibpath_overrides_runpath=no
7269 hardcode_into_libs=yes
7270 ;;
7271 esac
7272 ;;
7273
7274gnu*)
7275 version_type=linux
7276 need_lib_prefix=no
7277 need_version=no
7278 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7279 soname_spec='${libname}${release}.so$major'
7280 shlibpath_var=LD_LIBRARY_PATH
7281 hardcode_into_libs=yes
7282 ;;
7283
7284hpux9* | hpux10* | hpux11*)
7285 # Give a soname corresponding to the major version so that dld.sl refuses to
7286 # link against other versions.
7287 version_type=sunos
7288 need_lib_prefix=no
7289 need_version=no
7290 if test "$host_cpu" = ia64; then
7291 hardcode_into_libs=yes
7292 dynamic_linker="$host_os dld.so"
7293 shlibpath_var=LD_LIBRARY_PATH
7294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7295 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7296 soname_spec='${libname}${release}.so$major'
7297 if test "X$HPUX_IA64_MODE" = X32; then
7298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7299 else
7300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7301 fi
7302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7303 else
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}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7308 soname_spec='${libname}${release}.sl$major'
7309 fi
7310 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7311 postinstall_cmds='chmod 555 $lib'
7312 ;;
7313
7314irix5* | irix6* | nonstopux*)
7315 case $host_os in
7316 nonstopux*) version_type=nonstopux ;;
7317 *) version_type=irix ;;
7318 esac
7319 need_lib_prefix=no
7320 need_version=no
7321 soname_spec='${libname}${release}.so$major'
7322 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7323 case $host_os in
7324 irix5* | nonstopux*)
7325 libsuff= shlibsuff=
7326 ;;
7327 *)
7328 case $LD in # libtool.m4 will add one of these switches to LD
7329 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7330 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7331 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7332 *) libsuff= shlibsuff= libmagic=never-match;;
7333 esac
7334 ;;
7335 esac
7336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7337 shlibpath_overrides_runpath=no
7338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7340 ;;
7341
7342# No shared lib support for Linux oldld, aout, or coff.
7343linux*oldld* | linux*aout* | linux*coff*)
7344 dynamic_linker=no
7345 ;;
7346
7347# This must be Linux ELF.
7348linux*)
7349 version_type=linux
7350 need_lib_prefix=no
7351 need_version=no
7352 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7353 soname_spec='${libname}${release}.so$major'
7354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7355 shlibpath_var=LD_LIBRARY_PATH
7356 shlibpath_overrides_runpath=no
7357 # This implies no fast_install, which is unacceptable.
7358 # Some rework will be needed to allow for fast_install
7359 # before this can be enabled.
7360 hardcode_into_libs=yes
7361
7362 # We used to test for /lib/ld.so.1 and disable shared libraries on
7363 # powerpc, because MkLinux only supported shared libraries with the
7364 # GNU dynamic linker. Since this was broken with cross compilers,
7365 # most powerpc-linux boxes support dynamic linking these days and
7366 # people can always --disable-shared, the test was removed, and we
7367 # assume the GNU/Linux dynamic linker is in use.
7368 dynamic_linker='GNU/Linux ld.so'
7369 ;;
7370
7371netbsd*)
7372 version_type=sunos
7373 need_lib_prefix=no
7374 need_version=no
7375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7376 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7378 dynamic_linker='NetBSD (a.out) ld.so'
7379 else
7380 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7381 soname_spec='${libname}${release}.so$major'
7382 dynamic_linker='NetBSD ld.elf_so'
7383 fi
7384 shlibpath_var=LD_LIBRARY_PATH
7385 shlibpath_overrides_runpath=yes
7386 hardcode_into_libs=yes
7387 ;;
7388
7389newsos6)
7390 version_type=linux
7391 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7392 shlibpath_var=LD_LIBRARY_PATH
7393 shlibpath_overrides_runpath=yes
7394 ;;
7395
7396nto-qnx)
7397 version_type=linux
7398 need_lib_prefix=no
7399 need_version=no
7400 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7401 soname_spec='${libname}${release}.so$major'
7402 shlibpath_var=LD_LIBRARY_PATH
7403 shlibpath_overrides_runpath=yes
7404 ;;
7405
7406openbsd*)
7407 version_type=sunos
7408 need_lib_prefix=no
7409 need_version=no
7410 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7412 shlibpath_var=LD_LIBRARY_PATH
7413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7414 case $host_os in
7415 openbsd2.[89] | openbsd2.[89].*)
7416 shlibpath_overrides_runpath=no
7417 ;;
7418 *)
7419 shlibpath_overrides_runpath=yes
7420 ;;
7421 esac
7422 else
7423 shlibpath_overrides_runpath=yes
7424 fi
7425 ;;
7426
7427os2*)
7428 libname_spec='$name'
7429 need_lib_prefix=no
7430 library_names_spec='$libname.dll $libname.a'
7431 dynamic_linker='OS/2 ld.exe'
7432 shlibpath_var=LIBPATH
7433 ;;
7434
7435osf3* | osf4* | osf5*)
7436 version_type=osf
7437 need_lib_prefix=no
7438 need_version=no
7439 soname_spec='${libname}${release}.so'
7440 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7441 shlibpath_var=LD_LIBRARY_PATH
7442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7444 ;;
7445
7446sco3.2v5*)
7447 version_type=osf
7448 soname_spec='${libname}${release}.so$major'
7449 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7450 shlibpath_var=LD_LIBRARY_PATH
7451 ;;
7452
7453solaris*)
7454 version_type=linux
7455 need_lib_prefix=no
7456 need_version=no
7457 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7458 soname_spec='${libname}${release}.so$major'
7459 shlibpath_var=LD_LIBRARY_PATH
7460 shlibpath_overrides_runpath=yes
7461 hardcode_into_libs=yes
7462 # ldd complains unless libraries are executable
7463 postinstall_cmds='chmod +x $lib'
7464 ;;
7465
7466sunos4*)
7467 version_type=sunos
7468 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7470 shlibpath_var=LD_LIBRARY_PATH
7471 shlibpath_overrides_runpath=yes
7472 if test "$with_gnu_ld" = yes; then
7473 need_lib_prefix=no
7474 fi
7475 need_version=yes
7476 ;;
7477
7478sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7479 version_type=linux
7480 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7481 soname_spec='${libname}${release}.so$major'
7482 shlibpath_var=LD_LIBRARY_PATH
7483 case $host_vendor in
7484 sni)
7485 shlibpath_overrides_runpath=no
aa1e3b4d
RC
7486 need_lib_prefix=no
7487 export_dynamic_flag_spec='${wl}-Blargedynsym'
7488 runpath_var=LD_RUN_PATH
7489 ;;
7490 siemens)
7491 need_lib_prefix=no
6908b7d7
RC
7492 ;;
7493 motorola)
7494 need_lib_prefix=no
7495 need_version=no
7496 shlibpath_overrides_runpath=no
7497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7498 ;;
7499 esac
7500 ;;
7501
7502sysv4*MP*)
7503 if test -d /usr/nec ;then
7504 version_type=linux
7505 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7506 soname_spec='$libname.so.$major'
7507 shlibpath_var=LD_LIBRARY_PATH
7508 fi
7509 ;;
7510
7511uts4*)
7512 version_type=linux
7513 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7514 soname_spec='${libname}${release}.so$major'
7515 shlibpath_var=LD_LIBRARY_PATH
7516 ;;
7517
7518*)
7519 dynamic_linker=no
7520 ;;
7521esac
7522echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7523echo "${ECHO_T}$dynamic_linker" >&6
7524test "$dynamic_linker" = no && can_build_shared=no
7525
7526if test "x$enable_dlopen" != xyes; then
7527 enable_dlopen=unknown
7528 enable_dlopen_self=unknown
7529 enable_dlopen_self_static=unknown
7530else
7531 lt_cv_dlopen=no
7532 lt_cv_dlopen_libs=
7533
7534 case $host_os in
7535 beos*)
7536 lt_cv_dlopen="load_add_on"
7537 lt_cv_dlopen_libs=
7538 lt_cv_dlopen_self=yes
7539 ;;
7540
7541 cygwin* | mingw* | pw32*)
7542 lt_cv_dlopen="LoadLibrary"
7543 lt_cv_dlopen_libs=
7544 ;;
7545
7546 *)
7547 echo "$as_me:$LINENO: checking for shl_load" >&5
7548echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7549if test "${ac_cv_func_shl_load+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552 cat >conftest.$ac_ext <<_ACEOF
7553#line $LINENO "configure"
7554#include "confdefs.h"
7555/* System header to define __stub macros and hopefully few prototypes,
7556 which can conflict with char shl_load (); below. */
7557#include <assert.h>
7558/* Override any gcc2 internal prototype to avoid an error. */
7559#ifdef __cplusplus
7560extern "C"
7561#endif
7562/* We use char because int might match the return type of a gcc2
7563 builtin and then its argument prototype would still apply. */
7564char shl_load ();
7565char (*f) ();
7566
7567#ifdef F77_DUMMY_MAIN
7568# ifdef __cplusplus
7569 extern "C"
7570# endif
7571 int F77_DUMMY_MAIN() { return 1; }
7572#endif
7573int
7574main ()
7575{
7576/* The GNU C library defines this for functions which it implements
7577 to always fail with ENOSYS. Some functions are actually named
7578 something starting with __ and the normal name is an alias. */
7579#if defined (__stub_shl_load) || defined (__stub___shl_load)
7580choke me
7581#else
7582f = shl_load;
7583#endif
7584
7585 ;
7586 return 0;
7587}
7588_ACEOF
7589rm -f conftest.$ac_objext conftest$ac_exeext
7590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7591 (eval $ac_link) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } &&
7595 { ac_try='test -s conftest$ac_exeext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 (eval $ac_try) 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_cv_func_shl_load=yes
7602else
7603 echo "$as_me: failed program was:" >&5
7604cat conftest.$ac_ext >&5
7605ac_cv_func_shl_load=no
7606fi
7607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7608fi
7609echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7610echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7611if test $ac_cv_func_shl_load = yes; then
7612 lt_cv_dlopen="shl_load"
7613else
7614 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7615echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7616if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619 ac_check_lib_save_LIBS=$LIBS
7620LIBS="-ldld $LIBS"
7621cat >conftest.$ac_ext <<_ACEOF
7622#line $LINENO "configure"
7623#include "confdefs.h"
7624
7625/* Override any gcc2 internal prototype to avoid an error. */
7626#ifdef __cplusplus
7627extern "C"
7628#endif
7629/* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7631char shl_load ();
7632#ifdef F77_DUMMY_MAIN
7633# ifdef __cplusplus
7634 extern "C"
7635# endif
7636 int F77_DUMMY_MAIN() { return 1; }
7637#endif
7638int
7639main ()
7640{
7641shl_load ();
7642 ;
7643 return 0;
7644}
7645_ACEOF
7646rm -f conftest.$ac_objext conftest$ac_exeext
7647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7648 (eval $ac_link) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -s conftest$ac_exeext'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 ac_cv_lib_dld_shl_load=yes
7659else
7660 echo "$as_me: failed program was:" >&5
7661cat conftest.$ac_ext >&5
7662ac_cv_lib_dld_shl_load=no
7663fi
7664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7665LIBS=$ac_check_lib_save_LIBS
7666fi
7667echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7668echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7669if test $ac_cv_lib_dld_shl_load = yes; then
7670 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7671else
7672 echo "$as_me:$LINENO: checking for dlopen" >&5
7673echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7674if test "${ac_cv_func_dlopen+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 cat >conftest.$ac_ext <<_ACEOF
7678#line $LINENO "configure"
7679#include "confdefs.h"
7680/* System header to define __stub macros and hopefully few prototypes,
7681 which can conflict with char dlopen (); below. */
7682#include <assert.h>
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 ();
7690char (*f) ();
7691
7692#ifdef F77_DUMMY_MAIN
7693# ifdef __cplusplus
7694 extern "C"
7695# endif
7696 int F77_DUMMY_MAIN() { return 1; }
7697#endif
7698int
7699main ()
7700{
7701/* The GNU C library defines this for functions which it implements
7702 to always fail with ENOSYS. Some functions are actually named
7703 something starting with __ and the normal name is an alias. */
7704#if defined (__stub_dlopen) || defined (__stub___dlopen)
7705choke me
7706#else
7707f = dlopen;
7708#endif
7709
7710 ;
7711 return 0;
7712}
7713_ACEOF
7714rm -f conftest.$ac_objext conftest$ac_exeext
7715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_func_dlopen=yes
7727else
7728 echo "$as_me: failed program was:" >&5
7729cat conftest.$ac_ext >&5
7730ac_cv_func_dlopen=no
7731fi
7732rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7733fi
7734echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7735echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7736if test $ac_cv_func_dlopen = yes; then
7737 lt_cv_dlopen="dlopen"
7738else
7739 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7740echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7741if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744 ac_check_lib_save_LIBS=$LIBS
7745LIBS="-ldl $LIBS"
7746cat >conftest.$ac_ext <<_ACEOF
7747#line $LINENO "configure"
7748#include "confdefs.h"
7749
7750/* Override any gcc2 internal prototype to avoid an error. */
7751#ifdef __cplusplus
7752extern "C"
7753#endif
7754/* We use char because int might match the return type of a gcc2
7755 builtin and then its argument prototype would still apply. */
7756char dlopen ();
7757#ifdef F77_DUMMY_MAIN
7758# ifdef __cplusplus
7759 extern "C"
7760# endif
7761 int F77_DUMMY_MAIN() { return 1; }
7762#endif
7763int
7764main ()
7765{
7766dlopen ();
7767 ;
7768 return 0;
7769}
7770_ACEOF
7771rm -f conftest.$ac_objext conftest$ac_exeext
7772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -s conftest$ac_exeext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_lib_dl_dlopen=yes
7784else
7785 echo "$as_me: failed program was:" >&5
7786cat conftest.$ac_ext >&5
7787ac_cv_lib_dl_dlopen=no
7788fi
7789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7790LIBS=$ac_check_lib_save_LIBS
7791fi
7792echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7793echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7794if test $ac_cv_lib_dl_dlopen = yes; then
7795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7796else
7797 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7798echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7799if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 ac_check_lib_save_LIBS=$LIBS
7803LIBS="-lsvld $LIBS"
7804cat >conftest.$ac_ext <<_ACEOF
7805#line $LINENO "configure"
7806#include "confdefs.h"
7807
7808/* Override any gcc2 internal prototype to avoid an error. */
7809#ifdef __cplusplus
7810extern "C"
7811#endif
7812/* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7814char dlopen ();
7815#ifdef F77_DUMMY_MAIN
7816# ifdef __cplusplus
7817 extern "C"
7818# endif
7819 int F77_DUMMY_MAIN() { return 1; }
7820#endif
7821int
7822main ()
7823{
7824dlopen ();
7825 ;
7826 return 0;
7827}
7828_ACEOF
7829rm -f conftest.$ac_objext conftest$ac_exeext
7830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7831 (eval $ac_link) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -s conftest$ac_exeext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_lib_svld_dlopen=yes
7842else
7843 echo "$as_me: failed program was:" >&5
7844cat conftest.$ac_ext >&5
7845ac_cv_lib_svld_dlopen=no
7846fi
7847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7848LIBS=$ac_check_lib_save_LIBS
7849fi
7850echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7851echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7852if test $ac_cv_lib_svld_dlopen = yes; then
7853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7854else
7855 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7856echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7857if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860 ac_check_lib_save_LIBS=$LIBS
7861LIBS="-ldld $LIBS"
7862cat >conftest.$ac_ext <<_ACEOF
7863#line $LINENO "configure"
7864#include "confdefs.h"
7865
7866/* Override any gcc2 internal prototype to avoid an error. */
7867#ifdef __cplusplus
7868extern "C"
7869#endif
7870/* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872char dld_link ();
7873#ifdef F77_DUMMY_MAIN
7874# ifdef __cplusplus
7875 extern "C"
7876# endif
7877 int F77_DUMMY_MAIN() { return 1; }
7878#endif
7879int
7880main ()
7881{
7882dld_link ();
7883 ;
7884 return 0;
7885}
7886_ACEOF
7887rm -f conftest.$ac_objext conftest$ac_exeext
7888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7889 (eval $ac_link) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 ac_cv_lib_dld_dld_link=yes
7900else
7901 echo "$as_me: failed program was:" >&5
7902cat conftest.$ac_ext >&5
7903ac_cv_lib_dld_dld_link=no
7904fi
7905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7906LIBS=$ac_check_lib_save_LIBS
7907fi
7908echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7909echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7910if test $ac_cv_lib_dld_dld_link = yes; then
7911 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7912fi
7913
7914
7915fi
7916
7917
7918fi
7919
7920
7921fi
7922
7923
7924fi
7925
7926
7927fi
7928
7929 ;;
7930 esac
7931
7932 if test "x$lt_cv_dlopen" != xno; then
7933 enable_dlopen=yes
7934 else
7935 enable_dlopen=no
7936 fi
7937
7938 case $lt_cv_dlopen in
7939 dlopen)
7940 save_CPPFLAGS="$CPPFLAGS"
7941 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7942
7943 save_LDFLAGS="$LDFLAGS"
7944 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7945
7946 save_LIBS="$LIBS"
7947 LIBS="$lt_cv_dlopen_libs $LIBS"
7948
7949 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7950echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7951if test "${lt_cv_dlopen_self+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953else
7954 if test "$cross_compiling" = yes; then :
7955 lt_cv_dlopen_self=cross
7956else
7957 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7958 lt_status=$lt_dlunknown
7959 cat > conftest.$ac_ext <<EOF
aa1e3b4d 7960#line 7960 "configure"
6908b7d7
RC
7961#include "confdefs.h"
7962
7963#if HAVE_DLFCN_H
7964#include <dlfcn.h>
7965#endif
7966
7967#include <stdio.h>
7968
7969#ifdef RTLD_GLOBAL
7970# define LT_DLGLOBAL RTLD_GLOBAL
7971#else
7972# ifdef DL_GLOBAL
7973# define LT_DLGLOBAL DL_GLOBAL
7974# else
7975# define LT_DLGLOBAL 0
7976# endif
7977#endif
7978
7979/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7980 find out it does not work in some platform. */
7981#ifndef LT_DLLAZY_OR_NOW
7982# ifdef RTLD_LAZY
7983# define LT_DLLAZY_OR_NOW RTLD_LAZY
7984# else
7985# ifdef DL_LAZY
7986# define LT_DLLAZY_OR_NOW DL_LAZY
7987# else
7988# ifdef RTLD_NOW
7989# define LT_DLLAZY_OR_NOW RTLD_NOW
7990# else
7991# ifdef DL_NOW
7992# define LT_DLLAZY_OR_NOW DL_NOW
7993# else
7994# define LT_DLLAZY_OR_NOW 0
7995# endif
7996# endif
7997# endif
7998# endif
7999#endif
8000
8001#ifdef __cplusplus
8002extern "C" void exit (int);
8003#endif
8004
8005void fnord() { int i=42;}
8006int main ()
8007{
8008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8009 int status = $lt_dlunknown;
8010
8011 if (self)
8012 {
8013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8014 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8015 /* dlclose (self); */
8016 }
8017
8018 exit (status);
8019}
8020EOF
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8026 (./conftest; exit; ) 2>/dev/null
8027 lt_status=$?
8028 case x$lt_status in
8029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8031 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8032 esac
8033 else :
8034 # compilation failed
8035 lt_cv_dlopen_self=no
8036 fi
8037fi
8038rm -fr conftest*
8039
8040
8041fi
8042echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8043echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8044
8045 if test "x$lt_cv_dlopen_self" = xyes; then
8046 LDFLAGS="$LDFLAGS $link_static_flag"
8047 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8048echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8049if test "${lt_cv_dlopen_self_static+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 if test "$cross_compiling" = yes; then :
8053 lt_cv_dlopen_self_static=cross
8054else
8055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8056 lt_status=$lt_dlunknown
8057 cat > conftest.$ac_ext <<EOF
aa1e3b4d 8058#line 8058 "configure"
6908b7d7
RC
8059#include "confdefs.h"
8060
8061#if HAVE_DLFCN_H
8062#include <dlfcn.h>
8063#endif
8064
8065#include <stdio.h>
8066
8067#ifdef RTLD_GLOBAL
8068# define LT_DLGLOBAL RTLD_GLOBAL
8069#else
8070# ifdef DL_GLOBAL
8071# define LT_DLGLOBAL DL_GLOBAL
8072# else
8073# define LT_DLGLOBAL 0
8074# endif
8075#endif
8076
8077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8078 find out it does not work in some platform. */
8079#ifndef LT_DLLAZY_OR_NOW
8080# ifdef RTLD_LAZY
8081# define LT_DLLAZY_OR_NOW RTLD_LAZY
8082# else
8083# ifdef DL_LAZY
8084# define LT_DLLAZY_OR_NOW DL_LAZY
8085# else
8086# ifdef RTLD_NOW
8087# define LT_DLLAZY_OR_NOW RTLD_NOW
8088# else
8089# ifdef DL_NOW
8090# define LT_DLLAZY_OR_NOW DL_NOW
8091# else
8092# define LT_DLLAZY_OR_NOW 0
8093# endif
8094# endif
8095# endif
8096# endif
8097#endif
8098
8099#ifdef __cplusplus
8100extern "C" void exit (int);
8101#endif
8102
8103void fnord() { int i=42;}
8104int main ()
8105{
8106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8107 int status = $lt_dlunknown;
8108
8109 if (self)
8110 {
8111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8112 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8113 /* dlclose (self); */
8114 }
8115
8116 exit (status);
8117}
8118EOF
8119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120 (eval $ac_link) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8124 (./conftest; exit; ) 2>/dev/null
8125 lt_status=$?
8126 case x$lt_status in
8127 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8128 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8129 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8130 esac
8131 else :
8132 # compilation failed
8133 lt_cv_dlopen_self_static=no
8134 fi
8135fi
8136rm -fr conftest*
8137
8138
8139fi
8140echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8141echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8142 fi
8143
8144 CPPFLAGS="$save_CPPFLAGS"
8145 LDFLAGS="$save_LDFLAGS"
8146 LIBS="$save_LIBS"
8147 ;;
8148 esac
8149
8150 case $lt_cv_dlopen_self in
8151 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8152 *) enable_dlopen_self=unknown ;;
8153 esac
8154
8155 case $lt_cv_dlopen_self_static in
8156 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8157 *) enable_dlopen_self_static=unknown ;;
8158 esac
8159fi
8160
8161
8162# Report which librarie types wil actually be built
8163echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8164echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8165echo "$as_me:$LINENO: result: $can_build_shared" >&5
8166echo "${ECHO_T}$can_build_shared" >&6
8167
8168echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8169echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8170test "$can_build_shared" = "no" && enable_shared=no
8171
8172# On AIX, shared libraries and static libraries use the same namespace, and
8173# are all built from PIC.
8174case "$host_os" in
8175aix3*)
8176 test "$enable_shared" = yes && enable_static=no
8177 if test -n "$RANLIB"; then
8178 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8179 postinstall_cmds='$RANLIB $lib'
8180 fi
8181 ;;
8182
8183aix4*)
8184 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8185 test "$enable_shared" = yes && enable_static=no
8186 fi
8187 ;;
8188esac
8189echo "$as_me:$LINENO: result: $enable_shared" >&5
8190echo "${ECHO_T}$enable_shared" >&6
8191
8192echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8193echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8194# Make sure either enable_shared or enable_static is yes.
8195test "$enable_shared" = yes || enable_static=yes
8196echo "$as_me:$LINENO: result: $enable_static" >&5
8197echo "${ECHO_T}$enable_static" >&6
8198
8199# The else clause should only fire when bootstrapping the
8200# libtool distribution, otherwise you forgot to ship ltmain.sh
8201# with your package, and you will get complaints that there are
8202# no rules to generate ltmain.sh.
8203if test -f "$ltmain"; then
8204 # Now quote all the things that may contain metacharacters while being
8205 # careful not to overquote the AC_SUBSTed values. We take copies of the
8206 # variables and quote the copies for generation of the libtool script.
8207 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
8208 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8209 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8210 deplibs_check_method reload_flag reload_cmds need_locks \
8211 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8212 lt_cv_sys_global_symbol_to_c_name_address \
8213 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8214 old_postinstall_cmds old_postuninstall_cmds \
8215 compiler \
8216 CC \
8217 LD \
8218 lt_prog_compiler_wl \
8219 lt_prog_compiler_pic \
8220 lt_prog_compiler_static \
8221 lt_prog_compiler_no_builtin_flag \
8222 export_dynamic_flag_spec \
8223 thread_safe_flag_spec \
8224 whole_archive_flag_spec \
8225 old_archive_cmds \
8226 old_archive_from_new_cmds \
8227 predep_objects \
8228 postdep_objects \
8229 predeps \
8230 postdeps \
8231 compiler_lib_search_path \
8232 archive_cmds \
8233 archive_expsym_cmds \
8234 postinstall_cmds \
8235 postuninstall_cmds \
8236 old_archive_from_expsyms_cmds \
8237 allow_undefined_flag \
8238 no_undefined_flag \
8239 export_symbols_cmds \
8240 hardcode_libdir_flag_spec \
8241 hardcode_libdir_separator \
8242 lt_cv_prog_compiler_c_o \
8243 exclude_expsyms \
8244 include_expsyms; do
8245
8246 case $var in
8247 old_archive_cmds | \
8248 old_archive_from_new_cmds | \
8249 archive_cmds | \
8250 archive_expsym_cmds | \
8251 old_archive_from_expsyms_cmds | \
8252 export_symbols_cmds | \
8253 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8254 postinstall_cmds | postuninstall_cmds | \
8255 old_postinstall_cmds | old_postuninstall_cmds | \
8256 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8257 # Double-quote double-evaled strings.
8258 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8259 ;;
8260 *)
8261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8262 ;;
8263 esac
8264 done
8265
8266 case $lt_echo in
8267 *'\$0 --fallback-echo"')
8268 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8269 ;;
8270 esac
8271
8272cfgfile="${ofile}T"
8273 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8274 $rm -f "$cfgfile"
8275 { echo "$as_me:$LINENO: creating $ofile" >&5
8276echo "$as_me: creating $ofile" >&6;}
8277
8278 cat <<__EOF__ >> "$cfgfile"
8279#! $SHELL
8280
8281# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8282# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8283# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8284#
8285# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8286# Free Software Foundation, Inc.
8287#
8288# This file is part of GNU Libtool:
8289# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8290#
8291# This program is free software; you can redistribute it and/or modify
8292# it under the terms of the GNU General Public License as published by
8293# the Free Software Foundation; either version 2 of the License, or
8294# (at your option) any later version.
8295#
8296# This program is distributed in the hope that it will be useful, but
8297# WITHOUT ANY WARRANTY; without even the implied warranty of
8298# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8299# General Public License for more details.
8300#
8301# You should have received a copy of the GNU General Public License
8302# along with this program; if not, write to the Free Software
8303# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8304#
8305# As a special exception to the GNU General Public License, if you
8306# distribute this file as part of a program that contains a
8307# configuration script generated by Autoconf, you may include it under
8308# the same distribution terms that you use for the rest of that program.
8309
8310# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8311Xsed="sed -e s/^X//"
8312
8313# The HP-UX ksh and POSIX shell print the target directory to stdout
8314# if CDPATH is set.
8315if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8316
8317# The names of the tagged configurations supported by this script.
8318available_tags=
8319
8320# ### BEGIN LIBTOOL CONFIG
8321
8322# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8323
8324# Shell to use when invoking shell scripts.
8325SHELL=$lt_SHELL
8326
8327# Whether or not to build shared libraries.
8328build_libtool_libs=$enable_shared
8329
8330# Whether or not to build static libraries.
8331build_old_libs=$enable_static
8332
8333# Whether or not to add -lc for building shared libraries.
8334build_libtool_need_lc=$archive_cmds_need_lc
8335
8336# Whether or not to optimize for fast installation.
8337fast_install=$enable_fast_install
8338
8339# The host system.
8340host_alias=$host_alias
8341host=$host
8342
8343# An echo program that does not interpret backslashes.
8344echo=$lt_echo
8345
8346# The archiver.
8347AR=$lt_AR
8348AR_FLAGS=$lt_AR_FLAGS
8349
8350# A C compiler.
8351LTCC=$lt_LTCC
8352
8353# A language-specific compiler.
8354CC=$lt_compiler
8355
8356# Is the compiler the GNU C compiler?
8357with_gcc=$GCC
8358
8359# The linker used to build libraries.
8360LD=$lt_LD
8361
8362# Whether we need hard or soft links.
8363LN_S=$lt_LN_S
8364
8365# A BSD-compatible nm program.
8366NM=$lt_NM
8367
8368# A sed program that does not truncate output.
8369SED=$lt_SED
8370
8371# A symbol stripping program
8372STRIP=$STRIP
8373
8374# Used to examine libraries when file_magic_cmd begins "file"
8375MAGIC_CMD=$MAGIC_CMD
8376
8377# Used on cygwin: DLL creation program.
8378DLLTOOL="$DLLTOOL"
8379
8380# Used on cygwin: object dumper.
8381OBJDUMP="$OBJDUMP"
8382
8383# Used on cygwin: assembler.
8384AS="$AS"
8385
8386# The name of the directory that contains temporary libtool files.
8387objdir=$objdir
8388
8389# How to create reloadable object files.
8390reload_flag=$lt_reload_flag
8391reload_cmds=$lt_reload_cmds
8392
8393# How to pass a linker flag through the compiler.
8394wl=$lt_lt_prog_compiler_wl
8395
8396# Object file suffix (normally "o").
8397objext="$ac_objext"
8398
8399# Old archive suffix (normally "a").
8400libext="$libext"
8401
8402# Executable file suffix (normally "").
8403exeext="$exeext"
8404
8405# Additional compiler flags for building library objects.
8406pic_flag=$lt_lt_prog_compiler_pic
8407pic_mode=$pic_mode
8408
8409# What is the maximum length of a command?
8410max_cmd_len=$lt_cv_sys_max_cmd_len
8411
8412# Does compiler simultaneously support -c and -o options?
8413compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8414
8415# Must we lock files when doing compilation ?
8416need_locks=$lt_need_locks
8417
8418# Do we need the lib prefix for modules?
8419need_lib_prefix=$need_lib_prefix
8420
8421# Do we need a version for libraries?
8422need_version=$need_version
8423
8424# Whether dlopen is supported.
8425dlopen_support=$enable_dlopen
8426
8427# Whether dlopen of programs is supported.
8428dlopen_self=$enable_dlopen_self
8429
8430# Whether dlopen of statically linked programs is supported.
8431dlopen_self_static=$enable_dlopen_self_static
8432
8433# Compiler flag to prevent dynamic linking.
8434link_static_flag=$lt_lt_prog_compiler_static
8435
8436# Compiler flag to turn off builtin functions.
8437no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8438
8439# Compiler flag to allow reflexive dlopens.
8440export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8441
8442# Compiler flag to generate shared objects directly from archives.
8443whole_archive_flag_spec=$lt_whole_archive_flag_spec
8444
8445# Compiler flag to generate thread-safe objects.
8446thread_safe_flag_spec=$lt_thread_safe_flag_spec
8447
8448# Library versioning type.
8449version_type=$version_type
8450
8451# Format of library name prefix.
8452libname_spec=$lt_libname_spec
8453
8454# List of archive names. First name is the real one, the rest are links.
8455# The last name is the one that the linker finds with -lNAME.
8456library_names_spec=$lt_library_names_spec
8457
8458# The coded name of the library, if different from the real name.
8459soname_spec=$lt_soname_spec
8460
8461# Commands used to build and install an old-style archive.
8462RANLIB=$lt_RANLIB
8463old_archive_cmds=$lt_old_archive_cmds
8464old_postinstall_cmds=$lt_old_postinstall_cmds
8465old_postuninstall_cmds=$lt_old_postuninstall_cmds
8466
8467# Create an old-style archive from a shared archive.
8468old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8469
8470# Create a temporary old-style archive to link instead of a shared archive.
8471old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8472
8473# Commands used to build and install a shared archive.
8474archive_cmds=$lt_archive_cmds
8475archive_expsym_cmds=$lt_archive_expsym_cmds
8476postinstall_cmds=$lt_postinstall_cmds
8477postuninstall_cmds=$lt_postuninstall_cmds
8478
8479# Commands to strip libraries.
8480old_striplib=$lt_old_striplib
8481striplib=$lt_striplib
8482
8483# Dependencies to place before the objects being linked to create a
8484# shared library.
8485predep_objects=$lt_predep_objects
8486
8487# Dependencies to place after the objects being linked to create a
8488# shared library.
8489postdep_objects=$lt_postdep_objects
8490
8491# Dependencies to place before the objects being linked to create a
8492# shared library.
8493predeps=$lt_predeps
8494
8495# Dependencies to place after the objects being linked to create a
8496# shared library.
8497postdeps=$lt_postdeps
8498
8499# The library search path used internally by the compiler when linking
8500# a shared library.
8501compiler_lib_search_path=$lt_compiler_lib_search_path
8502
8503# Method to check whether dependent libraries are shared objects.
8504deplibs_check_method=$lt_deplibs_check_method
8505
8506# Command to use when deplibs_check_method == file_magic.
8507file_magic_cmd=$lt_file_magic_cmd
8508
8509# Flag that allows shared libraries with undefined symbols to be built.
8510allow_undefined_flag=$lt_allow_undefined_flag
8511
8512# Flag that forces no undefined symbols.
8513no_undefined_flag=$lt_no_undefined_flag
8514
8515# Commands used to finish a libtool library installation in a directory.
8516finish_cmds=$lt_finish_cmds
8517
8518# Same as above, but a single script fragment to be evaled but not shown.
8519finish_eval=$lt_finish_eval
8520
8521# Take the output of nm and produce a listing of raw symbols and C names.
8522global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8523
8524# Transform the output of nm in a proper C declaration
8525global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8526
8527# Transform the output of nm in a C name address pair
8528global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8529
8530# This is the shared library runtime path variable.
8531runpath_var=$runpath_var
8532
8533# This is the shared library path variable.
8534shlibpath_var=$shlibpath_var
8535
8536# Is shlibpath searched before the hard-coded library search path?
8537shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8538
8539# How to hardcode a shared library path into an executable.
8540hardcode_action=$hardcode_action
8541
8542# Whether we should hardcode library paths into libraries.
8543hardcode_into_libs=$hardcode_into_libs
8544
8545# Flag to hardcode \$libdir into a binary during linking.
8546# This must work even if \$libdir does not exist.
8547hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8548
8549# Whether we need a single -rpath flag with a separated argument.
8550hardcode_libdir_separator=$lt_hardcode_libdir_separator
8551
8552# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8553# resulting binary.
8554hardcode_direct=$hardcode_direct
8555
8556# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8557# resulting binary.
8558hardcode_minus_L=$hardcode_minus_L
8559
8560# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8561# the resulting binary.
8562hardcode_shlibpath_var=$hardcode_shlibpath_var
8563
8564# Variables whose values should be saved in libtool wrapper scripts and
8565# restored at relink time.
8566variables_saved_for_relink="$variables_saved_for_relink"
8567
8568# Whether libtool must link a program against all its dependency libraries.
8569link_all_deplibs=$link_all_deplibs
8570
8571# Compile-time system search path for libraries
8572sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8573
8574# Run-time system search path for libraries
8575sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8576
8577# Fix the shell variable \$srcfile for the compiler.
8578fix_srcfile_path="$fix_srcfile_path"
8579
8580# Set to yes if exported symbols are required.
8581always_export_symbols=$always_export_symbols
8582
8583# The commands to list exported symbols.
8584export_symbols_cmds=$lt_export_symbols_cmds
8585
8586# The commands to extract the exported symbol list from a shared archive.
8587extract_expsyms_cmds=$lt_extract_expsyms_cmds
8588
8589# Symbols that should not be listed in the preloaded symbols.
8590exclude_expsyms=$lt_exclude_expsyms
8591
8592# Symbols that must always be exported.
8593include_expsyms=$lt_include_expsyms
8594
8595# ### END LIBTOOL CONFIG
8596
8597__EOF__
8598
8599
8600 case $host_os in
8601 aix3*)
8602 cat <<\EOF >> "$cfgfile"
8603
8604# AIX sometimes has problems with the GCC collect2 program. For some
8605# reason, if we set the COLLECT_NAMES environment variable, the problems
8606# vanish in a puff of smoke.
8607if test "X${COLLECT_NAMES+set}" != Xset; then
8608 COLLECT_NAMES=
8609 export COLLECT_NAMES
8610fi
8611EOF
8612 ;;
8613
8614 cygwin* | mingw* | pw32* | os2*)
8615 cat <<'EOF' >> "$cfgfile"
8616 # This is a source program that is used to create dlls on Windows
8617 # Don't remove nor modify the starting and closing comments
8618
8619# /* ltdll.c starts here */
8620# #define WIN32_LEAN_AND_MEAN
8621# #include <windows.h>
8622# #undef WIN32_LEAN_AND_MEAN
8623# #include <stdio.h>
8624#
8625# #ifndef __CYGWIN__
8626# # ifdef __CYGWIN32__
8627# # define __CYGWIN__ __CYGWIN32__
8628# # endif
8629# #endif
8630#
8631# #ifdef __cplusplus
8632# extern "C" {
8633# #endif
8634# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8635# #ifdef __cplusplus
8636# }
8637# #endif
8638#
8639# #ifdef __CYGWIN__
8640# #include <cygwin/cygwin_dll.h>
8641# DECLARE_CYGWIN_DLL( DllMain );
8642# #endif
8643# HINSTANCE __hDllInstance_base;
8644#
8645# BOOL APIENTRY
8646# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8647# {
8648# __hDllInstance_base = hInst;
8649# return TRUE;
8650# }
8651# /* ltdll.c ends here */
8652
8653 # This is a source program that is used to create import libraries
8654 # on Windows for dlls which lack them. Don't remove nor modify the
8655 # starting and closing comments
8656
8657# /* impgen.c starts here */
8658# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8659#
8660# This file is part of GNU libtool.
8661#
8662# This program is free software; you can redistribute it and/or modify
8663# it under the terms of the GNU General Public License as published by
8664# the Free Software Foundation; either version 2 of the License, or
8665# (at your option) any later version.
8666#
8667# This program is distributed in the hope that it will be useful,
8668# but WITHOUT ANY WARRANTY; without even the implied warranty of
8669# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8670# GNU General Public License for more details.
8671#
8672# You should have received a copy of the GNU General Public License
8673# along with this program; if not, write to the Free Software
8674# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8675# */
8676#
8677# #include <stdio.h> /* for printf() */
8678# #include <unistd.h> /* for open(), lseek(), read() */
8679# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8680# #include <string.h> /* for strdup() */
8681#
8682# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8683# #ifndef O_BINARY
8684# #define O_BINARY 0
8685# #endif
8686#
8687# static unsigned int
8688# pe_get16 (fd, offset)
8689# int fd;
8690# int offset;
8691# {
8692# unsigned char b[2];
8693# lseek (fd, offset, SEEK_SET);
8694# read (fd, b, 2);
8695# return b[0] + (b[1]<<8);
8696# }
8697#
8698# static unsigned int
8699# pe_get32 (fd, offset)
8700# int fd;
8701# int offset;
8702# {
8703# unsigned char b[4];
8704# lseek (fd, offset, SEEK_SET);
8705# read (fd, b, 4);
8706# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8707# }
8708#
8709# static unsigned int
8710# pe_as32 (ptr)
8711# void *ptr;
8712# {
8713# unsigned char *b = ptr;
8714# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8715# }
8716#
8717# int
8718# main (argc, argv)
8719# int argc;
8720# char *argv[];
8721# {
8722# int dll;
8723# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8724# unsigned long export_rva, export_size, nsections, secptr, expptr;
8725# unsigned long name_rvas, nexp;
8726# unsigned char *expdata, *erva;
8727# char *filename, *dll_name;
8728#
8729# filename = argv[1];
8730#
8731# dll = open(filename, O_RDONLY|O_BINARY);
8732# if (dll < 1)
8733# return 1;
8734#
8735# dll_name = filename;
8736#
8737# for (i=0; filename[i]; i++)
8738# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8739# dll_name = filename + i +1;
8740#
8741# pe_header_offset = pe_get32 (dll, 0x3c);
8742# opthdr_ofs = pe_header_offset + 4 + 20;
8743# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8744#
8745# if (num_entries < 1) /* no exports */
8746# return 1;
8747#
8748# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8749# export_size = pe_get32 (dll, opthdr_ofs + 100);
8750# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8751# secptr = (pe_header_offset + 4 + 20 +
8752# pe_get16 (dll, pe_header_offset + 4 + 16));
8753#
8754# expptr = 0;
8755# for (i = 0; i < nsections; i++)
8756# {
8757# char sname[8];
8758# unsigned long secptr1 = secptr + 40 * i;
8759# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8760# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8761# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8762# lseek(dll, secptr1, SEEK_SET);
8763# read(dll, sname, 8);
8764# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8765# {
8766# expptr = fptr + (export_rva - vaddr);
8767# if (export_rva + export_size > vaddr + vsize)
8768# export_size = vsize - (export_rva - vaddr);
8769# break;
8770# }
8771# }
8772#
8773# expdata = (unsigned char*)malloc(export_size);
8774# lseek (dll, expptr, SEEK_SET);
8775# read (dll, expdata, export_size);
8776# erva = expdata - export_rva;
8777#
8778# nexp = pe_as32 (expdata+24);
8779# name_rvas = pe_as32 (expdata+32);
8780#
8781# printf ("EXPORTS\n");
8782# for (i = 0; i<nexp; i++)
8783# {
8784# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8785# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8786# }
8787#
8788# return 0;
8789# }
8790# /* impgen.c ends here */
8791
8792EOF
8793 ;;
8794 esac
8795
8796 # We use sed instead of cat because bash on DJGPP gets confused if
8797 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8798 # text mode, it properly converts lines to CR/LF. This bash problem
8799 # is reportedly fixed, but why not run on old versions too?
8800 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8801
8802 mv -f "$cfgfile" "$ofile" || \
8803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8804 chmod +x "$ofile"
8805
8806else
8807 # If there is no Makefile yet, we rely on a make rule to execute
8808 # `config.status --recheck' to rerun these tests and create the
8809 # libtool script then.
8810 test -f Makefile && make "$ltmain"
8811fi
8812
8813
8814ac_ext=cc
8815ac_cpp='$CXXCPP $CPPFLAGS'
8816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8819
8820CC="$lt_save_CC"
8821
8822
8823# Check whether --with-tags or --without-tags was given.
8824if test "${with_tags+set}" = set; then
8825 withval="$with_tags"
8826 tagnames="$withval"
8827else
8828 tagnames="CXX,GCJ"
8829 case $host_os in
8830 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
8831 esac
8832fi;
8833
8834if test -f "$ltmain" && test -n "$tagnames"; then
8835 if test ! -f "${ofile}"; then
8836 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8837echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8838 fi
8839
8840 if test -z "$LTCC"; then
8841 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8842 if test -z "$LTCC"; then
8843 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8844echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8845 else
8846 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8847echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8848 fi
8849 fi
8850
8851 # Extract list of available tagged configurations in $ofile.
8852 # Note that this assumes the entire list is on one line.
8853 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8854
8855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8856 for tagname in $tagnames; do
8857 IFS="$lt_save_ifs"
8858 # Check whether tagname contains only valid characters
8859 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8860 "") ;;
8861 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8862echo "$as_me: error: invalid tag name: $tagname" >&2;}
8863 { (exit 1); exit 1; }; }
8864 ;;
8865 esac
8866
8867 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8868 then
8869 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8870echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8871 { (exit 1); exit 1; }; }
8872 fi
8873
8874 # Update the list of available tags.
8875 if test -n "$tagname"; then
8876 echo appending configuration tag \"$tagname\" to $ofile
8877
8878 case $tagname in
8879 CXX)
8880 ac_ext=cc
8881ac_cpp='$CXXCPP $CPPFLAGS'
8882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8885
8886
8887
8888
8889archive_cmds_need_lc_CXX=no
8890allow_undefined_flag_CXX=
8891always_export_symbols_CXX=no
8892archive_expsym_cmds_CXX=
8893export_dynamic_flag_spec_CXX=
8894hardcode_direct_CXX=no
8895hardcode_libdir_flag_spec_CXX=
8896hardcode_libdir_separator_CXX=
8897hardcode_minus_L_CXX=no
8898link_all_deplibs_CXX=unknown
8899old_archive_cmds_CXX=$old_archive_cmds
8900no_undefined_flag_CXX=
8901whole_archive_flag_spec_CXX=
8902
8903# Dependencies to place before and after the object being linked:
8904predep_objects_CXX=
8905postdep_objects_CXX=
8906predeps_CXX=
8907postdeps_CXX=
8908compiler_lib_search_path_CXX=
8909
8910# Source file extension for C test sources.
8911ac_ext=cc
8912
8913# Object file extension for compiled C test sources.
8914objext=o
8915objext_CXX=$objext
8916
8917# Code to be used in simple compile tests
8918lt_simple_compile_test_code="int some_variable = 0;"
8919
8920# Code to be used in simple link tests
8921lt_simple_link_test_code='int main(int char *) { return(0); }'
8922
8923# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8924
8925# If no C compiler was specified, use CC.
8926LTCC=${LTCC-"$CC"}
8927
8928# Allow CC to be a program name with arguments.
8929set dummy $CC
8930compiler="$2"
8931
8932
8933# Allow CC to be a program name with arguments.
8934lt_save_CC="$CC"
8935CC=${CXX-"c++"}
8936set dummy $CC
8937compiler="$2"
8938compiler_CXX=$CC
8939cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8940
8941# We don't want -fno-exception wen compiling C++ code, so set the
8942# no_builtin_flag separately
8943if test "$GXX" = yes; then
8944 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8945else
8946 lt_prog_compiler_no_builtin_flag_CXX=
8947fi
8948
8949if test "$GXX" = yes; then
8950 # Set up default GNU C++ configuration
8951
8952 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8953 # archiving commands below assume that GNU ld is being used.
8954 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8955 egrep 'GNU ld' > /dev/null; then
8956 with_gnu_ld=yes
8957
8958 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8959 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'
8960
8961 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8963
8964 # If archive_cmds runs LD, not CC, wlarc should be empty
8965 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8966 # investigate it a little bit more. (MM)
8967 wlarc='${wl}'
8968
8969 # ancient GNU ld didn't support --whole-archive et. al.
8970 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8971 egrep 'no-whole-archive' > /dev/null; then
8972 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8973 else
8974 whole_archive_flag_spec_CXX=
8975 fi
8976 else
8977 with_gnu_ld=no
8978 wlarc=
8979
8980 # A generic and very simple default shared library creation
8981 # command for GNU C++ for the case where it uses the native
8982 # linker, instead of GNU ld. If possible, this setting should
8983 # overridden to take advantage of the native linker features on
8984 # the platform it is being used on.
8985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8986 fi
8987
8988 # Commands to make compiler produce verbose output that lists
8989 # what "hidden" libraries, object files and flags are used when
8990 # linking a shared library.
8991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8992
8993else
8994 GXX=no
8995 with_gnu_ld=no
8996 wlarc=
8997fi
8998
8999# PORTME: fill in a description of your system's C++ link characteristics
9000echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9001echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9002ld_shlibs_CXX=yes
9003case $host_os in
9004 aix3*)
9005 # FIXME: insert proper C++ library support
9006 ld_shlibs_CXX=no
9007 ;;
9008 aix4* | aix5*)
9009 if test "$host_cpu" = ia64; then
9010 # On IA64, the linker does run time linking by default, so we don't
9011 # have to do anything special.
9012 aix_use_runtimelinking=no
9013 exp_sym_flag='-Bexport'
9014 no_entry_flag=""
9015 else
9016 aix_use_runtimelinking=no
9017
9018 # Test if we are trying to use run time linking or normal
9019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9020 # need to do runtime linking.
9021 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9022 for ld_flag in $LDFLAGS; do
9023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9024 aix_use_runtimelinking=yes
9025 break
9026 fi
9027 done
9028 esac
9029
9030 exp_sym_flag='-bexport'
9031 no_entry_flag='-bnoentry'
9032 fi
9033
9034 # When large executables or shared objects are built, AIX ld can
9035 # have problems creating the table of contents. If linking a library
9036 # or program results in "error TOC overflow" add -mminimal-toc to
9037 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9038 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9039
9040 archive_cmds_CXX=''
9041 hardcode_direct_CXX=yes
9042 hardcode_libdir_separator_CXX=':'
9043 link_all_deplibs_CXX=yes
9044
9045 if test "$GXX" = yes; then
9046 case $host_os in aix4.012|aix4.012.*)
9047 # We only want to do this on AIX 4.2 and lower, the check
9048 # below for broken collect2 doesn't work under 4.3+
9049 collect2name=`${CC} -print-prog-name=collect2`
9050 if test -f "$collect2name" && \
9051 strings "$collect2name" | grep resolve_lib_name >/dev/null
9052 then
9053 # We have reworked collect2
9054 hardcode_direct_CXX=yes
9055 else
9056 # We have old collect2
9057 hardcode_direct_CXX=unsupported
9058 # It fails to find uninstalled libraries when the uninstalled
9059 # path is not listed in the libpath. Setting hardcode_minus_L
9060 # to unsupported forces relinking
9061 hardcode_minus_L_CXX=yes
9062 hardcode_libdir_flag_spec_CXX='-L$libdir'
9063 hardcode_libdir_separator_CXX=
9064 fi
9065 esac
9066 shared_flag='-shared'
9067 else
9068 # not using gcc
9069 if test "$host_cpu" = ia64; then
9070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9071 # chokes on -Wl,-G. The following line is correct:
9072 shared_flag='-G'
9073 else
9074 if test "$aix_use_runtimelinking" = yes; then
9075 shared_flag='${wl}-G'
9076 else
9077 shared_flag='${wl}-bM:SRE'
9078 fi
9079 fi
9080 fi
9081
9082 # It seems that -bexpall does not export symbols beginning with
9083 # underscore (_), so it is better to generate a list of symbols to export.
9084 always_export_symbols_CXX=yes
9085 if test "$aix_use_runtimelinking" = yes; then
9086 # Warning - without using the other runtime loading flags (-brtl),
9087 # -berok will link without error, but may produce a broken library.
9088 allow_undefined_flag_CXX='-berok'
9089 # Determine the default libpath from the value encoded in an empty executable.
9090 cat >conftest.$ac_ext <<_ACEOF
9091#line $LINENO "configure"
9092#include "confdefs.h"
9093
9094#ifdef F77_DUMMY_MAIN
9095# ifdef __cplusplus
9096 extern "C"
9097# endif
9098 int F77_DUMMY_MAIN() { return 1; }
9099#endif
9100int
9101main ()
9102{
9103
9104 ;
9105 return 0;
9106}
9107_ACEOF
9108rm -f conftest.$ac_objext conftest$ac_exeext
9109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -s conftest$ac_exeext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120
9121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9122}'`
9123# Check for a 64-bit object if we didn't find anything.
9124if 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; }
9125}'`; fi
9126else
9127 echo "$as_me: failed program was:" >&5
9128cat conftest.$ac_ext >&5
9129fi
9130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9132
9133 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9134
9135 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"
9136 else
9137 if test "$host_cpu" = ia64; then
9138 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9139 allow_undefined_flag_CXX="-z nodefs"
9140 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"
9141 else
9142 # Determine the default libpath from the value encoded in an empty executable.
9143 cat >conftest.$ac_ext <<_ACEOF
9144#line $LINENO "configure"
9145#include "confdefs.h"
9146
9147#ifdef F77_DUMMY_MAIN
9148# ifdef __cplusplus
9149 extern "C"
9150# endif
9151 int F77_DUMMY_MAIN() { return 1; }
9152#endif
9153int
9154main ()
9155{
9156
9157 ;
9158 return 0;
9159}
9160_ACEOF
9161rm -f conftest.$ac_objext conftest$ac_exeext
9162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } &&
9167 { ac_try='test -s conftest$ac_exeext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173
9174aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9175}'`
9176# Check for a 64-bit object if we didn't find anything.
9177if 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; }
9178}'`; fi
9179else
9180 echo "$as_me: failed program was:" >&5
9181cat conftest.$ac_ext >&5
9182fi
9183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9184if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9185
9186 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9187 # Warning - without using the other run time loading flags,
9188 # -berok will link without error, but may produce a broken library.
9189 no_undefined_flag_CXX=' ${wl}-bernotok'
9190 allow_undefined_flag_CXX=' ${wl}-berok'
9191 # -bexpall does not export symbols beginning with underscore (_)
9192 always_export_symbols_CXX=yes
9193 # Exported symbols can be pulled into shared objects from archives
9194 whole_archive_flag_spec_CXX=' '
9195 archive_cmds_need_lc_CXX=yes
9196 # This is similar to how AIX traditionally builds it's shared libraries.
9197 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'
9198 fi
9199 fi
9200 ;;
9201 chorus*)
9202 case $cc_basename in
9203 *)
9204 # FIXME: insert proper C++ library support
9205 ld_shlibs_CXX=no
9206 ;;
9207 esac
9208 ;;
9209
9210 cygwin*)
9211 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9212 # as there is no search path for DLLs.
9213 hardcode_libdir_flag_spec_CXX='-L$libdir'
9214 allow_undefined_flag_CXX=
aa1e3b4d 9215 always_export_symbols_CXX=no
6908b7d7
RC
9216
9217 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
9218 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'
9219 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
9220 else
9221 ld_shlibs_CXX=no
9222 fi
9223 ;;
9224
9225 mingw* | pw32*)
9226 # FIXME: insert proper C++ library support
9227 ld_shlibs_CXX=no
9228 ;;
9229
9230 dgux*)
9231 case $cc_basename in
9232 ec++)
9233 # FIXME: insert proper C++ library support
9234 ld_shlibs_CXX=no
9235 ;;
9236 ghcx)
9237 # Green Hills C++ Compiler
9238 # FIXME: insert proper C++ library support
9239 ld_shlibs_CXX=no
9240 ;;
9241 *)
9242 # FIXME: insert proper C++ library support
9243 ld_shlibs_CXX=no
9244 ;;
9245 esac
9246 ;;
9247 freebsd12*)
9248 # C++ shared libraries reported to be fairly broken before switch to ELF
9249 ld_shlibs_CXX=no
9250 ;;
9251 freebsd-elf*)
9252 archive_cmds_need_lc_CXX=no
9253 ;;
9254 freebsd*)
9255 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9256 # conventions
9257 ld_shlibs_CXX=yes
9258 ;;
9259 gnu*)
9260 ;;
9261 hpux*)
9262 if test $with_gnu_ld = no; then
9263 if test "$host_cpu" = ia64; then
9264 hardcode_libdir_flag_spec_CXX='-L$libdir'
9265 else
9266 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9267 hardcode_libdir_separator_CXX=:
9268 export_dynamic_flag_spec_CXX='${wl}-E'
9269 fi
9270 fi
9271 if test "$host_cpu" = ia64; then
9272 hardcode_direct_CXX=no
9273 hardcode_shlibpath_var_CXX=no
9274 else
9275 hardcode_direct_CXX=yes
9276 fi
9277 hardcode_minus_L_CXX=yes # Not in the search PATH,
9278 # but as the default
9279 # location of the library.
9280
9281 case $cc_basename in
9282 CC)
9283 # FIXME: insert proper C++ library support
9284 ld_shlibs_CXX=no
9285 ;;
9286 aCC)
9287 case $host_os in
9288 hpux9*)
9289 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'
9290 ;;
9291 *)
9292 if test "$host_cpu" = ia64; then
9293 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9294 else
9295 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9296 fi
9297 ;;
9298 esac
9299 # Commands to make compiler produce verbose output that lists
9300 # what "hidden" libraries, object files and flags are used when
9301 # linking a shared library.
9302 #
9303 # There doesn't appear to be a way to prevent this compiler from
9304 # explicitly linking system object files so we need to strip them
9305 # from the output so that they don't get included in the library
9306 # dependencies.
9307 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9308 ;;
9309 *)
9310 if test "$GXX" = yes; then
9311 if test $with_gnu_ld = no; then
9312 case $host_os in
9313 hpux9*)
9314 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'
9315 ;;
9316 *)
9317 if test "$host_cpu" = ia64; then
9318 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9319 else
9320 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'
9321 fi
9322 ;;
9323 esac
9324 fi
9325 else
9326 # FIXME: insert proper C++ library support
9327 ld_shlibs_CXX=no
9328 fi
9329 ;;
9330 esac
9331 ;;
9332 irix5* | irix6*)
9333 case $cc_basename in
9334 CC)
9335 # SGI C++
9336 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'
9337
9338 # Archives containing C++ object files must be created using
9339 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9340 # necessary to make sure instantiated templates are included
9341 # in the archive.
9342 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9343 ;;
9344 *)
9345 if test "$GXX" = yes; then
9346 if test "$with_gnu_ld" = no; then
9347 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'
9348 else
9349 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9350 fi
9351 fi
9352 link_all_deplibs_CXX=yes
9353 ;;
9354 esac
9355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9356 hardcode_libdir_separator_CXX=:
9357 ;;
9358 linux*)
9359 case $cc_basename in
9360 KCC)
9361 # Kuck and Associates, Inc. (KAI) C++ Compiler
9362
9363 # KCC will only create a shared library if the output file
9364 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9365 # to its proper name (with version) after linking.
9366 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9367 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9368
9369 # Commands to make compiler produce verbose output that lists
9370 # what "hidden" libraries, object files and flags are used when
9371 # linking a shared library.
9372 #
9373 # There doesn't appear to be a way to prevent this compiler from
9374 # explicitly linking system object files so we need to strip them
9375 # from the output so that they don't get included in the library
9376 # dependencies.
9377 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9378
9379 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9380 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9381
9382 # Archives containing C++ object files must be created using
9383 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9384 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9385 ;;
9386 cxx)
9387 # Compaq C++
9388 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9389 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'
9390
9391 runpath_var=LD_RUN_PATH
9392 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9393 hardcode_libdir_separator_CXX=:
9394
9395 # Commands to make compiler produce verbose output that lists
9396 # what "hidden" libraries, object files and flags are used when
9397 # linking a shared library.
9398 #
9399 # There doesn't appear to be a way to prevent this compiler from
9400 # explicitly linking system object files so we need to strip them
9401 # from the output so that they don't get included in the library
9402 # dependencies.
9403 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'
9404 ;;
9405 esac
9406 ;;
9407 lynxos*)
9408 # FIXME: insert proper C++ library support
9409 ld_shlibs_CXX=no
9410 ;;
9411 m88k*)
9412 # FIXME: insert proper C++ library support
9413 ld_shlibs_CXX=no
9414 ;;
9415 mvs*)
9416 case $cc_basename in
9417 cxx)
9418 # FIXME: insert proper C++ library support
9419 ld_shlibs_CXX=no
9420 ;;
9421 *)
9422 # FIXME: insert proper C++ library support
9423 ld_shlibs_CXX=no
9424 ;;
9425 esac
9426 ;;
9427 netbsd*)
9428 # NetBSD uses g++ - do we need to do anything?
9429 ;;
9430 osf3*)
9431 case $cc_basename in
9432 KCC)
9433 # Kuck and Associates, Inc. (KAI) C++ Compiler
9434
9435 # KCC will only create a shared library if the output file
9436 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9437 # to its proper name (with version) after linking.
9438 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9439
9440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9441 hardcode_libdir_separator_CXX=:
9442
9443 # Archives containing C++ object files must be created using
9444 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9445 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9446
9447 ;;
9448 RCC)
9449 # Rational C++ 2.4.1
9450 # FIXME: insert proper C++ library support
9451 ld_shlibs_CXX=no
9452 ;;
9453 cxx)
9454 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9455 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'
9456
9457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9458 hardcode_libdir_separator_CXX=:
9459
9460 # Commands to make compiler produce verbose output that lists
9461 # what "hidden" libraries, object files and flags are used when
9462 # linking a shared library.
9463 #
9464 # There doesn't appear to be a way to prevent this compiler from
9465 # explicitly linking system object files so we need to strip them
9466 # from the output so that they don't get included in the library
9467 # dependencies.
9468 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'
9469 ;;
9470 *)
9471 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9472 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9473 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'
9474
9475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9476 hardcode_libdir_separator_CXX=:
9477
9478 # Commands to make compiler produce verbose output that lists
9479 # what "hidden" libraries, object files and flags are used when
9480 # linking a shared library.
9481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9482
9483 else
9484 # FIXME: insert proper C++ library support
9485 ld_shlibs_CXX=no
9486 fi
9487 ;;
9488 esac
9489 ;;
9490 osf4* | osf5*)
9491 case $cc_basename in
9492 KCC)
9493 # Kuck and Associates, Inc. (KAI) C++ Compiler
9494
9495 # KCC will only create a shared library if the output file
9496 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9497 # to its proper name (with version) after linking.
9498 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9499
9500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9501 hardcode_libdir_separator_CXX=:
9502
9503 # Archives containing C++ object files must be created using
9504 # the KAI C++ compiler.
9505 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9506 ;;
9507 RCC)
9508 # Rational C++ 2.4.1
9509 # FIXME: insert proper C++ library support
9510 ld_shlibs_CXX=no
9511 ;;
9512 cxx)
9513 allow_undefined_flag_CXX=' -expect_unresolved \*'
9514 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'
9515 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9516 echo "-hidden">> $lib.exp~
9517 $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~
9518 $rm $lib.exp'
9519
9520 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9521 hardcode_libdir_separator_CXX=:
9522
9523 # Commands to make compiler produce verbose output that lists
9524 # what "hidden" libraries, object files and flags are used when
9525 # linking a shared library.
9526 #
9527 # There doesn't appear to be a way to prevent this compiler from
9528 # explicitly linking system object files so we need to strip them
9529 # from the output so that they don't get included in the library
9530 # dependencies.
9531 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'
9532 ;;
9533 *)
9534 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9535 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9536 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'
9537
9538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9539 hardcode_libdir_separator_CXX=:
9540
9541 # Commands to make compiler produce verbose output that lists
9542 # what "hidden" libraries, object files and flags are used when
9543 # linking a shared library.
9544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9545
9546 else
9547 # FIXME: insert proper C++ library support
9548 ld_shlibs_CXX=no
9549 fi
9550 ;;
9551 esac
9552 ;;
9553 psos*)
9554 # FIXME: insert proper C++ library support
9555 ld_shlibs_CXX=no
9556 ;;
9557 sco*)
9558 archive_cmds_need_lc_CXX=no
9559 case $cc_basename in
9560 CC)
9561 # FIXME: insert proper C++ library support
9562 ld_shlibs_CXX=no
9563 ;;
9564 *)
9565 # FIXME: insert proper C++ library support
9566 ld_shlibs_CXX=no
9567 ;;
9568 esac
9569 ;;
9570 sunos4*)
9571 case $cc_basename in
9572 CC)
9573 # Sun C++ 4.x
9574 # FIXME: insert proper C++ library support
9575 ld_shlibs_CXX=no
9576 ;;
9577 lcc)
9578 # Lucid
9579 # FIXME: insert proper C++ library support
9580 ld_shlibs_CXX=no
9581 ;;
9582 *)
9583 # FIXME: insert proper C++ library support
9584 ld_shlibs_CXX=no
9585 ;;
9586 esac
9587 ;;
9588 solaris*)
9589 case $cc_basename in
9590 CC)
9591 # Sun C++ 4.2, 5.x and Centerline C++
9592 no_undefined_flag_CXX=' -zdefs'
9593 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9594 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9595 $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'
9596
9597 hardcode_libdir_flag_spec_CXX='-R$libdir'
9598 hardcode_shlibpath_var_CXX=no
9599 case $host_os in
9600 solaris2.0-5 | solaris2.0-5.*) ;;
9601 *)
9602 # The C++ compiler is used as linker so we must use $wl
9603 # flag to pass the commands to the underlying system
9604 # linker.
9605 # Supported since Solaris 2.6 (maybe 2.5.1?)
9606 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9607 ;;
9608 esac
9609 link_all_deplibs_CXX=yes
9610
9611 # Commands to make compiler produce verbose output that lists
9612 # what "hidden" libraries, object files and flags are used when
9613 # linking a shared library.
9614 #
9615 # There doesn't appear to be a way to prevent this compiler from
9616 # explicitly linking system object files so we need to strip them
9617 # from the output so that they don't get included in the library
9618 # dependencies.
9619 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9620
9621 # Archives containing C++ object files must be created using
9622 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9623 # necessary to make sure instantiated templates are included
9624 # in the archive.
9625 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9626 ;;
9627 gcx)
9628 # Green Hills C++ Compiler
9629 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9630
9631 # The C++ compiler must be used to create the archive.
9632 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9633 ;;
9634 *)
9635 # GNU C++ compiler with Solaris linker
9636 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9637 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9638 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9639 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9640 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9641 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9642
9643 # Commands to make compiler produce verbose output that lists
9644 # what "hidden" libraries, object files and flags are used when
9645 # linking a shared library.
9646 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9647 else
9648 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9649 # platform.
9650 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9651 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9652 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9653
9654 # Commands to make compiler produce verbose output that lists
9655 # what "hidden" libraries, object files and flags are used when
9656 # linking a shared library.
9657 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9658 fi
9659
9660 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9661 fi
9662 ;;
9663 esac
9664 ;;
9665 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9666 archive_cmds_need_lc_CXX=no
9667 ;;
9668 tandem*)
9669 case $cc_basename in
9670 NCC)
9671 # NonStop-UX NCC 3.20
9672 # FIXME: insert proper C++ library support
9673 ld_shlibs_CXX=no
9674 ;;
9675 *)
9676 # FIXME: insert proper C++ library support
9677 ld_shlibs_CXX=no
9678 ;;
9679 esac
9680 ;;
9681 vxworks*)
9682 # FIXME: insert proper C++ library support
9683 ld_shlibs_CXX=no
9684 ;;
9685 *)
9686 # FIXME: insert proper C++ library support
9687 ld_shlibs_CXX=no
9688 ;;
9689esac
9690echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9691echo "${ECHO_T}$ld_shlibs_CXX" >&6
9692test "$ld_shlibs_CXX" = no && can_build_shared=no
9693
9694# Figure out "hidden" C++ library dependencies from verbose
9695# compiler output whening linking a shared library.
9696cat > conftest.$ac_ext <<EOF
9697class Foo
9698{
9699public:
9700 Foo (void) { a = 0; }
9701private:
9702 int a;
9703};
9704EOF
9705
9706
9707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708 (eval $ac_compile) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; then
9712 # Parse the compiler output and extract the necessary
9713 # objects, libraries and library flags.
9714
9715 # Sentinel used to keep track of whether or not we are before
9716 # the conftest object file.
9717 pre_test_object_deps_done=no
9718
9719 # The `*' in the case matches for architectures that use `case' in
9720 # $output_verbose_cmd can trigger glob expansion during the loop
9721 # eval without this substitution.
9722 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9723
9724 for p in `eval $output_verbose_link_cmd`; do
9725 case $p in
9726
9727 -L* | -R* | -l*)
9728 # Some compilers place space between "-{L,R}" and the path.
9729 # Remove the space.
9730 if test $p = "-L" \
9731 || test $p = "-R"; then
9732 prev=$p
9733 continue
9734 else
9735 prev=
9736 fi
9737
9738 if test "$pre_test_object_deps_done" = no; then
9739 case $p in
9740 -L* | -R*)
9741 # Internal compiler library paths should come after those
9742 # provided the user. The postdeps already come after the
9743 # user supplied libs so there is no need to process them.
9744 if test -z "$compiler_lib_search_path_CXX"; then
9745 compiler_lib_search_path_CXX="${prev}${p}"
9746 else
9747 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9748 fi
9749 ;;
9750 # The "-l" case would never come before the object being
9751 # linked, so don't bother handling this case.
9752 esac
9753 else
9754 if test -z "$postdeps_CXX"; then
9755 postdeps_CXX="${prev}${p}"
9756 else
9757 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9758 fi
9759 fi
9760 ;;
9761
9762 *.$objext)
9763 # This assumes that the test object file only shows up
9764 # once in the compiler output.
9765 if test "$p" = "conftest.$objext"; then
9766 pre_test_object_deps_done=yes
9767 continue
9768 fi
9769
9770 if test "$pre_test_object_deps_done" = no; then
9771 if test -z "$predep_objects_CXX"; then
9772 predep_objects_CXX="$p"
9773 else
9774 predep_objects_CXX="$predep_objects_CXX $p"
9775 fi
9776 else
9777 if test -z "$postdep_objects_CXX"; then
9778 postdep_objects_CXX="$p"
9779 else
9780 postdep_objects_CXX="$postdep_objects_CXX $p"
9781 fi
9782 fi
9783 ;;
9784
9785 *) ;; # Ignore the rest.
9786
9787 esac
9788 done
9789
9790 # Clean up.
aa1e3b4d 9791 rm -f a.out a.exe
6908b7d7
RC
9792else
9793 echo "libtool.m4: error: problem compiling C++ test program"
9794fi
9795
9796$rm -f confest.$objext
9797
9798case " $postdeps_CXX " in
9799*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9800*) archive_cmds_need_lc_CXX=yes ;;
9801esac
9802
9803GCC_CXX="$GXX"
9804LD_CXX="$LD"
9805
9806lt_prog_compiler_wl_CXX=
9807lt_prog_compiler_pic_CXX=
9808lt_prog_compiler_static_CXX=
9809
9810echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9811echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9812
9813 # C++ specific cases for pic, static, wl, etc.
9814 if test "$GXX" = yes; then
9815 lt_prog_compiler_wl_CXX='-Wl,'
9816 lt_prog_compiler_static_CXX='-static'
9817
9818 case $host_os in
9819 aix*)
9820 # All AIX code is PIC.
9821 if test "$host_cpu" = ia64; then
9822 # AIX 5 now supports IA64 processor
9823 lt_prog_compiler_static_CXX='-Bstatic'
9824 fi
9825 ;;
9826 amigaos*)
9827 # FIXME: we need at least 68020 code to build shared libraries, but
9828 # adding the `-m68020' flag to GCC prevents building anything better,
9829 # like `-m68040'.
9830 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9831 ;;
9832 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9833 # PIC is the default for these OSes.
9834 ;;
9835 mingw* | os2*)
9836 # This hack is so that the source file can tell whether it is being
9837 # built for inclusion in a dll (and should export symbols for example).
9838 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9839 ;;
9840 darwin* | rhapsody*)
9841 # PIC is the default on this platform
9842 # Common symbols not allowed in MH_DYLIB files
9843 lt_prog_compiler_pic_CXX='-fno-common'
9844 ;;
9845 *djgpp*)
9846 # DJGPP does not support shared libraries at all
9847 lt_prog_compiler_pic_CXX=
9848 ;;
9849 sysv4*MP*)
9850 if test -d /usr/nec; then
9851 lt_prog_compiler_pic_CXX=-Kconform_pic
9852 fi
9853 ;;
9854 hpux*)
9855 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9856 if test "$host_cpu" != ia64; then
9857 lt_prog_compiler_pic_CXX='-fPIC'
9858 fi
9859 ;;
9860 *)
9861 lt_prog_compiler_pic_CXX='-fPIC'
9862 ;;
9863 esac
9864 else
9865 case $host_os in
9866 aix4* | aix5*)
9867 # All AIX code is PIC.
9868 if test "$host_cpu" = ia64; then
9869 # AIX 5 now supports IA64 processor
9870 lt_prog_compiler_static_CXX='-Bstatic'
9871 else
9872 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9873 fi
9874 ;;
9875 chorus*)
9876 case $cc_basename in
9877 cxch68)
9878 # Green Hills C++ Compiler
9879 # _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"
9880 ;;
9881 esac
9882 ;;
9883 dgux*)
9884 case $cc_basename in
9885 ec++)
9886 lt_prog_compiler_pic_CXX='-KPIC'
9887 ;;
9888 ghcx)
9889 # Green Hills C++ Compiler
9890 lt_prog_compiler_pic_CXX='-pic'
9891 ;;
9892 *)
9893 ;;
9894 esac
9895 ;;
9896 freebsd*)
9897 # FreeBSD uses GNU C++
9898 ;;
9899 hpux9* | hpux10* | hpux11*)
9900 case $cc_basename in
9901 CC)
9902 lt_prog_compiler_wl_CXX='-Wl,'
9903 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9904 if test "$host_cpu" != ia64; then
9905 lt_prog_compiler_pic_CXX='+Z'
9906 fi
9907 ;;
9908 aCC)
9909 lt_prog_compiler_wl_CXX='-Wl,'
9910 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9911 if test "$host_cpu" != ia64; then
9912 lt_prog_compiler_pic_CXX='+Z'
9913 fi
9914 ;;
9915 *)
9916 ;;
9917 esac
9918 ;;
9919 irix5* | irix6* | nonstopux*)
9920 case $cc_basename in
9921 CC)
9922 lt_prog_compiler_wl_CXX='-Wl,'
9923 lt_prog_compiler_static_CXX='-non_shared'
9924 # CC pic flag -KPIC is the default.
9925 ;;
9926 *)
9927 ;;
9928 esac
9929 ;;
9930 linux*)
9931 case $cc_basename in
9932 KCC)
9933 # KAI C++ Compiler
9934 lt_prog_compiler_wl_CXX='--backend -Wl,'
9935 lt_prog_compiler_pic_CXX='-fPIC'
9936 ;;
9937 cxx)
9938 # Compaq C++
9939 # Make sure the PIC flag is empty. It appears that all Alpha
9940 # Linux and Compaq Tru64 Unix objects are PIC.
9941 lt_prog_compiler_pic_CXX=
9942 lt_prog_compiler_static_CXX='-non_shared'
9943 ;;
9944 *)
9945 ;;
9946 esac
9947 ;;
9948 lynxos*)
9949 ;;
9950 m88k*)
9951 ;;
9952 mvs*)
9953 case $cc_basename in
9954 cxx)
9955 lt_prog_compiler_pic_CXX='-W c,exportall'
9956 ;;
9957 *)
9958 ;;
9959 esac
9960 ;;
9961 netbsd*)
9962 ;;
9963 osf3* | osf4* | osf5*)
9964 case $cc_basename in
9965 KCC)
9966 lt_prog_compiler_wl_CXX='--backend -Wl,'
9967 ;;
9968 RCC)
9969 # Rational C++ 2.4.1
9970 lt_prog_compiler_pic_CXX='-pic'
9971 ;;
9972 cxx)
9973 # Digital/Compaq C++
9974 lt_prog_compiler_wl_CXX='-Wl,'
9975 # Make sure the PIC flag is empty. It appears that all Alpha
9976 # Linux and Compaq Tru64 Unix objects are PIC.
9977 lt_prog_compiler_pic_CXX=
9978 lt_prog_compiler_static_CXX='-non_shared'
9979 ;;
9980 *)
9981 ;;
9982 esac
9983 ;;
9984 psos*)
9985 ;;
9986 sco*)
9987 case $cc_basename in
9988 CC)
9989 lt_prog_compiler_pic_CXX='-fPIC'
9990 ;;
9991 *)
9992 ;;
9993 esac
9994 ;;
9995 solaris*)
9996 case $cc_basename in
9997 CC)
9998 # Sun C++ 4.2, 5.x and Centerline C++
9999 lt_prog_compiler_pic_CXX='-KPIC'
10000 lt_prog_compiler_static_CXX='-Bstatic'
10001 lt_prog_compiler_wl_CXX='-Qoption ld '
10002 ;;
10003 gcx)
10004 # Green Hills C++ Compiler
10005 lt_prog_compiler_pic_CXX='-PIC'
10006 ;;
10007 *)
10008 ;;
10009 esac
10010 ;;
10011 sunos4*)
10012 case $cc_basename in
10013 CC)
10014 # Sun C++ 4.x
10015 lt_prog_compiler_pic_CXX='-pic'
10016 lt_prog_compiler_static_CXX='-Bstatic'
10017 ;;
10018 lcc)
10019 # Lucid
10020 lt_prog_compiler_pic_CXX='-pic'
10021 ;;
10022 *)
10023 ;;
10024 esac
10025 ;;
10026 tandem*)
10027 case $cc_basename in
10028 NCC)
10029 # NonStop-UX NCC 3.20
10030 lt_prog_compiler_pic_CXX='-KPIC'
10031 ;;
10032 *)
10033 ;;
10034 esac
10035 ;;
10036 unixware*)
10037 ;;
10038 vxworks*)
10039 ;;
10040 *)
10041 lt_prog_compiler_can_build_shared_CXX=no
10042 ;;
10043 esac
10044 fi
10045
10046echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10047echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10048
10049#
10050# Check to make sure the PIC flag actually works.
10051#
10052if test -n "$lt_prog_compiler_pic_CXX"; then
10053 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10054echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10055if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058 lt_prog_compiler_pic_works_CXX=no
10059 ac_outfile=conftest.$ac_objext
10060 save_CFLAGS="$CFLAGS"
10061 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
10062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10063 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
10064 # The compiler can only warn and ignore the option if not recognized
10065 # So say no if there are warnings
10066 if test -s conftest.err; then
10067 # Append any errors to the config.log.
10068 cat conftest.err 1>&5
10069 else
10070 lt_prog_compiler_pic_works_CXX=yes
10071 fi
10072 fi
10073 $rm conftest*
10074 CFLAGS="$save_CFLAGS"
10075
10076fi
10077echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10078echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10079
10080if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10081 case $lt_prog_compiler_pic_CXX in
10082 "" | " "*) ;;
10083 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10084 esac
10085else
10086 lt_prog_compiler_pic_CXX=
10087 lt_prog_compiler_can_build_shared_CXX=no
10088fi
10089
10090fi
10091case "$host_os" in
10092 # For platforms which do not support PIC, -DPIC is meaningless:
10093 *djgpp*)
10094 lt_prog_compiler_pic_CXX=
10095 ;;
10096 *)
10097 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10098 ;;
10099esac
10100
10101echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10102echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10103if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105else
10106 lt_cv_prog_compiler_c_o_CXX=no
10107 $rm -r conftest 2>/dev/null
10108 mkdir conftest
10109 cd conftest
10110 mkdir out
10111 save_CXXFLAGS="$CXXFLAGS"
10112 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
10113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10114
10115 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10116 # that will create temporary files in the current directory regardless of
10117 # the output directory. Thus, making CWD read-only will cause this test
10118 # to fail, enabling locking or at least warning the user not to do parallel
10119 # builds.
10120 chmod -w .
10121
10122 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10123 then
10124 # The compiler can only warn and ignore the option if not recognized
10125 # So say no if there are warnings
10126 if test -s out/conftest.err; then
10127 # Append any errors to the config.log.
10128 cat out/conftest.err 1>&5
10129 else
10130 lt_cv_prog_compiler_c_o_CXX=yes
10131 fi
10132 fi
10133 CXXFLAGS="$save_CXXFLAGS"
10134 chmod u+w .
10135 $rm conftest* out/*
10136 rmdir out
10137 cd ..
10138 rmdir conftest
10139 $rm conftest*
10140
10141fi
10142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10143echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10144
10145
10146hard_links="nottested"
10147if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10148 # do not overwrite the value of need_locks provided by the user
10149 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10150echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10151 hard_links=yes
10152 $rm conftest*
10153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10154 touch conftest.a
10155 ln conftest.a conftest.b 2>&5 || hard_links=no
10156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10157 echo "$as_me:$LINENO: result: $hard_links" >&5
10158echo "${ECHO_T}$hard_links" >&6
10159 if test "$hard_links" = no; then
10160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10161echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10162 need_locks=warn
10163 fi
10164else
10165 need_locks=no
10166fi
10167
10168echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10169echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10170
10171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10172 case $host_os in
10173 aix4* | aix5*)
10174 # If we're using GNU nm, then we don't want the "-C" option.
10175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10176 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
10177 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'
10178 else
10179 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'
10180 fi
10181 ;;
10182 cygwin*)
10183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10184 ;;
10185 mingw* | pw32*)
10186 export_symbols_cmds_CXX="$ltdll_cmds"
10187 ;;
10188 *)
10189 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10190 ;;
10191 esac
10192
10193echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10194echo "${ECHO_T}$ld_shlibs_CXX" >&6
10195test "$ld_shlibs_CXX" = no && can_build_shared=no
10196
10197variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10198if test "$GCC" = yes; then
10199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10200fi
10201
10202#
10203# Do we need to explicitly link libc?
10204#
10205archive_cmds_need_lc_CXX=yes
10206if test "$enable_shared" = yes && test "$GCC" = yes; then
10207 case $archive_cmds_CXX in
10208 *'~'*)
10209 # FIXME: we may have to deal with multi-command sequences.
10210 ;;
10211 '$CC '*)
10212 # Test whether the compiler implicitly links with -lc since on some
10213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10214 # to ld, don't add -lc before -lgcc.
10215 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10216echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10217 $rm conftest*
10218 echo 'static int dummy;' > conftest.$ac_ext
10219
10220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } 2>conftest.err; then
10225 soname=conftest
10226 lib=conftest
10227 libobjs=conftest.$ac_objext
10228 deplibs=
10229 wl=$lt_prog_compiler_wl_CXX
10230 compiler_flags=-v
10231 linker_flags=-v
10232 verstring=
10233 output_objdir=.
10234 libname=conftest
10235 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10236 allow_undefined_flag_CXX=
10237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10238 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }
10242 then
10243 archive_cmds_need_lc_CXX=no
10244 else
10245 archive_cmds_need_lc_CXX=yes
10246 fi
10247 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10248 else
10249 cat conftest.err 1>&5
10250 fi
10251 $rm conftest*
10252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10253echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10254 ;;
10255 esac
10256fi
10257
10258echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10259echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10260hardcode_action_CXX=
10261if test -n "$hardcode_libdir_flag_spec_CXX" || \
10262 test -n "$runpath_var CXX"; then
10263
10264 # We can hardcode non-existant directories.
10265 if test "$hardcode_direct_CXX" != no &&
10266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10267 # have to relink, otherwise we might link with an installed library
10268 # when we should be linking with a yet-to-be-installed one
10269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10270 test "$hardcode_minus_L_CXX" != no; then
10271 # Linking always hardcodes the temporary library directory.
10272 hardcode_action_CXX=relink
10273 else
10274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10275 hardcode_action_CXX=immediate
10276 fi
10277else
10278 # We cannot hardcode anything, or else we can only hardcode existing
10279 # directories.
10280 hardcode_action_CXX=unsupported
10281fi
10282echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10283echo "${ECHO_T}$hardcode_action_CXX" >&6
10284
10285if test "$hardcode_action_CXX" = relink; then
10286 # Fast installation is not supported
10287 enable_fast_install=no
10288elif test "$shlibpath_overrides_runpath" = yes ||
10289 test "$enable_shared" = no; then
10290 # Fast installation is not necessary
10291 enable_fast_install=needless
10292fi
10293
10294striplib=
10295old_striplib=
10296echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10297echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10298if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10299 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10300 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10301 echo "$as_me:$LINENO: result: yes" >&5
10302echo "${ECHO_T}yes" >&6
10303else
10304 echo "$as_me:$LINENO: result: no" >&5
10305echo "${ECHO_T}no" >&6
10306fi
10307
10308echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10309echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10310library_names_spec=
10311libname_spec='lib$name'
10312soname_spec=
10313postinstall_cmds=
10314postuninstall_cmds=
10315finish_cmds=
10316finish_eval=
10317shlibpath_var=
10318shlibpath_overrides_runpath=unknown
10319version_type=none
10320dynamic_linker="$host_os ld.so"
10321sys_lib_dlsearch_path_spec="/lib /usr/lib"
10322if test "$GCC" = yes; then
10323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10324 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
10325 # if the path contains ";" then we assume it to be the separator
10326 # otherwise default to the standard path separator (i.e. ":") - it is
10327 # assumed that no part of a normal pathname contains ";" but that should
10328 # okay in the real world where ";" in dirpaths is itself problematic.
10329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10330 else
10331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10332 fi
10333else
10334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10335fi
10336need_lib_prefix=unknown
10337hardcode_into_libs=no
10338
10339# when you set need_version to no, make sure it does not cause -set_version
10340# flags to be left without arguments
10341need_version=unknown
10342
10343case $host_os in
10344aix3*)
10345 version_type=linux
10346 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10347 shlibpath_var=LIBPATH
10348
10349 # AIX 3 has no versioning support, so we append a major version to the name.
10350 soname_spec='${libname}${release}.so$major'
10351 ;;
10352
10353aix4* | aix5*)
10354 version_type=linux
10355 if test "$host_cpu" = ia64; then
10356 # AIX 5 supports IA64
10357 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 else
10360 # With GCC up to 2.95.x, collect2 would create an import file
10361 # for dependence libraries. The import file would start with
10362 # the line `#! .'. This would cause the generated library to
10363 # depend on `.', always an invalid library. This was fixed in
10364 # development snapshots of GCC prior to 3.0.
10365 case $host_os in
10366 aix4 | aix4.[01] | aix4.[01].*)
10367 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10368 echo ' yes '
10369 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10370 :
10371 else
10372 can_build_shared=no
10373 fi
10374 ;;
10375 esac
10376 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10377 # soname into executable. Probably we can add versioning support to
10378 # collect2, so additional links can be useful in future.
10379 if test "$aix_use_runtimelinking" = yes; then
10380 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10381 # instead of lib<name>.a to let people know that these are not
10382 # typical AIX shared libraries.
10383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10384 else
10385 # We preserve .a as extension for shared libraries through AIX4.2
10386 # and later when we are not doing run time linking.
10387 library_names_spec='${libname}${release}.a $libname.a'
10388 soname_spec='${libname}${release}.so$major'
10389 fi
10390 shlibpath_var=LIBPATH
10391 fi
10392 ;;
10393
10394amigaos*)
10395 library_names_spec='$libname.ixlibrary $libname.a'
10396 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10397 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'
10398 ;;
10399
10400beos*)
10401 library_names_spec='${libname}.so'
10402 dynamic_linker="$host_os ld.so"
10403 shlibpath_var=LIBRARY_PATH
10404 ;;
10405
10406bsdi4*)
10407 version_type=linux
10408 need_version=no
10409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10410 soname_spec='${libname}${release}.so$major'
10411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10415 # the default ld.so.conf also contains /usr/contrib/lib and
10416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10417 # libtool to hard-code these into programs
10418 ;;
10419
10420cygwin* | mingw* | pw32*)
10421 version_type=windows
10422 need_version=no
10423 need_lib_prefix=no
10424 case $GCC,$host_os in
10425 yes,cygwin*)
10426 library_names_spec='$libname.dll.a'
10427 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10429 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10430 dldir=$destdir/`dirname \$dlpath`~
10431 test -d \$dldir || mkdir -p \$dldir~
10432 $install_prog .libs/$dlname \$dldir/$dlname'
10433 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10434 dlpath=$dir/\$dldll~
10435 $rm \$dlpath'
10436 shlibpath_overrides_runpath=yes
10437 ;;
10438 yes,mingw*)
10439 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10441 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
10442 # It is most probably a Windows format PATH printed by
10443 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10444 # path with ; separators, and with drive letters. We can handle the
10445 # drive letters (cygwin fileutils understands them), so leave them,
10446 # especially as we might pass files found there to a mingw objdump,
10447 # which wouldn't understand a cygwinified path. Ahh.
10448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10449 else
10450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10451 fi
10452 ;;
10453 yes,pw32*)
10454 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10455 ;;
10456 *)
10457 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10458 ;;
10459 esac
10460 dynamic_linker='Win32 ld.exe'
10461 # FIXME: first we should search . and the directory the executable is in
10462 shlibpath_var=PATH
10463 ;;
10464
10465darwin* | rhapsody*)
10466 dynamic_linker="$host_os dyld"
10467 version_type=darwin
10468 need_lib_prefix=no
10469 need_version=no
10470 # FIXME: Relying on posixy $() will cause problems for
10471 # cross-compilation, but unfortunately the echo tests do not
10472 # yet detect zsh echo's removal of \ escapes.
10473 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10474 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10475 shlibpath_overrides_runpath=yes
10476 shlibpath_var=DYLD_LIBRARY_PATH
10477 ;;
10478
10479dgux*)
10480 version_type=linux
10481 need_lib_prefix=no
10482 need_version=no
10483 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10484 soname_spec='${libname}${release}.so$major'
10485 shlibpath_var=LD_LIBRARY_PATH
10486 ;;
10487
10488freebsd1*)
10489 dynamic_linker=no
10490 ;;
10491
10492freebsd*)
10493 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10494 version_type=freebsd-$objformat
10495 case $version_type in
10496 freebsd-elf*)
10497 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10498 need_version=no
10499 need_lib_prefix=no
10500 ;;
10501 freebsd-*)
10502 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10503 need_version=yes
10504 ;;
10505 esac
10506 shlibpath_var=LD_LIBRARY_PATH
10507 case $host_os in
10508 freebsd2*)
10509 shlibpath_overrides_runpath=yes
10510 ;;
10511 freebsd3.01* | freebsdelf3.01*)
10512 shlibpath_overrides_runpath=yes
10513 hardcode_into_libs=yes
10514 ;;
10515 *) # from 3.2 on
10516 shlibpath_overrides_runpath=no
10517 hardcode_into_libs=yes
10518 ;;
10519 esac
10520 ;;
10521
10522gnu*)
10523 version_type=linux
10524 need_lib_prefix=no
10525 need_version=no
10526 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10527 soname_spec='${libname}${release}.so$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 hardcode_into_libs=yes
10530 ;;
10531
10532hpux9* | hpux10* | hpux11*)
10533 # Give a soname corresponding to the major version so that dld.sl refuses to
10534 # link against other versions.
10535 version_type=sunos
10536 need_lib_prefix=no
10537 need_version=no
10538 if test "$host_cpu" = ia64; then
10539 hardcode_into_libs=yes
10540 dynamic_linker="$host_os dld.so"
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10543 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10544 soname_spec='${libname}${release}.so$major'
10545 if test "X$HPUX_IA64_MODE" = X32; then
10546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10547 else
10548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10549 fi
10550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10551 else
10552 dynamic_linker="$host_os dld.sl"
10553 shlibpath_var=SHLIB_PATH
10554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10555 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10556 soname_spec='${libname}${release}.sl$major'
10557 fi
10558 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10559 postinstall_cmds='chmod 555 $lib'
10560 ;;
10561
10562irix5* | irix6* | nonstopux*)
10563 case $host_os in
10564 nonstopux*) version_type=nonstopux ;;
10565 *) version_type=irix ;;
10566 esac
10567 need_lib_prefix=no
10568 need_version=no
10569 soname_spec='${libname}${release}.so$major'
10570 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10571 case $host_os in
10572 irix5* | nonstopux*)
10573 libsuff= shlibsuff=
10574 ;;
10575 *)
10576 case $LD in # libtool.m4 will add one of these switches to LD
10577 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10578 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10579 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10580 *) libsuff= shlibsuff= libmagic=never-match;;
10581 esac
10582 ;;
10583 esac
10584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10585 shlibpath_overrides_runpath=no
10586 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10587 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10588 ;;
10589
10590# No shared lib support for Linux oldld, aout, or coff.
10591linux*oldld* | linux*aout* | linux*coff*)
10592 dynamic_linker=no
10593 ;;
10594
10595# This must be Linux ELF.
10596linux*)
10597 version_type=linux
10598 need_lib_prefix=no
10599 need_version=no
10600 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10601 soname_spec='${libname}${release}.so$major'
10602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=no
10605 # This implies no fast_install, which is unacceptable.
10606 # Some rework will be needed to allow for fast_install
10607 # before this can be enabled.
10608 hardcode_into_libs=yes
10609
10610 # We used to test for /lib/ld.so.1 and disable shared libraries on
10611 # powerpc, because MkLinux only supported shared libraries with the
10612 # GNU dynamic linker. Since this was broken with cross compilers,
10613 # most powerpc-linux boxes support dynamic linking these days and
10614 # people can always --disable-shared, the test was removed, and we
10615 # assume the GNU/Linux dynamic linker is in use.
10616 dynamic_linker='GNU/Linux ld.so'
10617 ;;
10618
10619netbsd*)
10620 version_type=sunos
10621 need_lib_prefix=no
10622 need_version=no
10623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10624 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10626 dynamic_linker='NetBSD (a.out) ld.so'
10627 else
10628 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10629 soname_spec='${libname}${release}.so$major'
10630 dynamic_linker='NetBSD ld.elf_so'
10631 fi
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 hardcode_into_libs=yes
10635 ;;
10636
10637newsos6)
10638 version_type=linux
10639 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=yes
10642 ;;
10643
10644nto-qnx)
10645 version_type=linux
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10649 soname_spec='${libname}${release}.so$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 shlibpath_overrides_runpath=yes
10652 ;;
10653
10654openbsd*)
10655 version_type=sunos
10656 need_lib_prefix=no
10657 need_version=no
10658 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10662 case $host_os in
10663 openbsd2.[89] | openbsd2.[89].*)
10664 shlibpath_overrides_runpath=no
10665 ;;
10666 *)
10667 shlibpath_overrides_runpath=yes
10668 ;;
10669 esac
10670 else
10671 shlibpath_overrides_runpath=yes
10672 fi
10673 ;;
10674
10675os2*)
10676 libname_spec='$name'
10677 need_lib_prefix=no
10678 library_names_spec='$libname.dll $libname.a'
10679 dynamic_linker='OS/2 ld.exe'
10680 shlibpath_var=LIBPATH
10681 ;;
10682
10683osf3* | osf4* | osf5*)
10684 version_type=osf
10685 need_lib_prefix=no
10686 need_version=no
10687 soname_spec='${libname}${release}.so'
10688 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10692 ;;
10693
10694sco3.2v5*)
10695 version_type=osf
10696 soname_spec='${libname}${release}.so$major'
10697 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 ;;
10700
10701solaris*)
10702 version_type=linux
10703 need_lib_prefix=no
10704 need_version=no
10705 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10706 soname_spec='${libname}${release}.so$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10710 # ldd complains unless libraries are executable
10711 postinstall_cmds='chmod +x $lib'
10712 ;;
10713
10714sunos4*)
10715 version_type=sunos
10716 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 shlibpath_overrides_runpath=yes
10720 if test "$with_gnu_ld" = yes; then
10721 need_lib_prefix=no
10722 fi
10723 need_version=yes
10724 ;;
10725
10726sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10727 version_type=linux
10728 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10729 soname_spec='${libname}${release}.so$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 case $host_vendor in
10732 sni)
10733 shlibpath_overrides_runpath=no
aa1e3b4d
RC
10734 need_lib_prefix=no
10735 export_dynamic_flag_spec='${wl}-Blargedynsym'
10736 runpath_var=LD_RUN_PATH
10737 ;;
10738 siemens)
10739 need_lib_prefix=no
6908b7d7
RC
10740 ;;
10741 motorola)
10742 need_lib_prefix=no
10743 need_version=no
10744 shlibpath_overrides_runpath=no
10745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10746 ;;
10747 esac
10748 ;;
10749
10750sysv4*MP*)
10751 if test -d /usr/nec ;then
10752 version_type=linux
10753 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10754 soname_spec='$libname.so.$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 fi
10757 ;;
10758
10759uts4*)
10760 version_type=linux
10761 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10762 soname_spec='${libname}${release}.so$major'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 ;;
10765
10766*)
10767 dynamic_linker=no
10768 ;;
10769esac
10770echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10771echo "${ECHO_T}$dynamic_linker" >&6
10772test "$dynamic_linker" = no && can_build_shared=no
10773
10774if test "x$enable_dlopen" != xyes; then
10775 enable_dlopen=unknown
10776 enable_dlopen_self=unknown
10777 enable_dlopen_self_static=unknown
10778else
10779 lt_cv_dlopen=no
10780 lt_cv_dlopen_libs=
10781
10782 case $host_os in
10783 beos*)
10784 lt_cv_dlopen="load_add_on"
10785 lt_cv_dlopen_libs=
10786 lt_cv_dlopen_self=yes
10787 ;;
10788
10789 cygwin* | mingw* | pw32*)
10790 lt_cv_dlopen="LoadLibrary"
10791 lt_cv_dlopen_libs=
10792 ;;
10793
10794 *)
10795 echo "$as_me:$LINENO: checking for shl_load" >&5
10796echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10797if test "${ac_cv_func_shl_load+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 cat >conftest.$ac_ext <<_ACEOF
10801#line $LINENO "configure"
10802#include "confdefs.h"
10803/* System header to define __stub macros and hopefully few prototypes,
10804 which can conflict with char shl_load (); below. */
10805#include <assert.h>
10806/* Override any gcc2 internal prototype to avoid an error. */
10807#ifdef __cplusplus
10808extern "C"
10809#endif
10810/* We use char because int might match the return type of a gcc2
10811 builtin and then its argument prototype would still apply. */
10812char shl_load ();
10813char (*f) ();
10814
10815#ifdef F77_DUMMY_MAIN
10816# ifdef __cplusplus
10817 extern "C"
10818# endif
10819 int F77_DUMMY_MAIN() { return 1; }
10820#endif
10821int
10822main ()
10823{
10824/* The GNU C library defines this for functions which it implements
10825 to always fail with ENOSYS. Some functions are actually named
10826 something starting with __ and the normal name is an alias. */
10827#if defined (__stub_shl_load) || defined (__stub___shl_load)
10828choke me
10829#else
10830f = shl_load;
10831#endif
10832
10833 ;
10834 return 0;
10835}
10836_ACEOF
10837rm -f conftest.$ac_objext conftest$ac_exeext
10838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -s conftest$ac_exeext'
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_cv_func_shl_load=yes
10850else
10851 echo "$as_me: failed program was:" >&5
10852cat conftest.$ac_ext >&5
10853ac_cv_func_shl_load=no
10854fi
10855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10856fi
10857echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10858echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10859if test $ac_cv_func_shl_load = yes; then
10860 lt_cv_dlopen="shl_load"
10861else
10862 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10863echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10864if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 ac_check_lib_save_LIBS=$LIBS
10868LIBS="-ldld $LIBS"
10869cat >conftest.$ac_ext <<_ACEOF
10870#line $LINENO "configure"
10871#include "confdefs.h"
10872
10873/* Override any gcc2 internal prototype to avoid an error. */
10874#ifdef __cplusplus
10875extern "C"
10876#endif
10877/* We use char because int might match the return type of a gcc2
10878 builtin and then its argument prototype would still apply. */
10879char shl_load ();
10880#ifdef F77_DUMMY_MAIN
10881# ifdef __cplusplus
10882 extern "C"
10883# endif
10884 int F77_DUMMY_MAIN() { return 1; }
10885#endif
10886int
10887main ()
10888{
10889shl_load ();
10890 ;
10891 return 0;
10892}
10893_ACEOF
10894rm -f conftest.$ac_objext conftest$ac_exeext
10895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -s conftest$ac_exeext'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_lib_dld_shl_load=yes
10907else
10908 echo "$as_me: failed program was:" >&5
10909cat conftest.$ac_ext >&5
10910ac_cv_lib_dld_shl_load=no
10911fi
10912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10913LIBS=$ac_check_lib_save_LIBS
10914fi
10915echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10916echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10917if test $ac_cv_lib_dld_shl_load = yes; then
10918 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10919else
10920 echo "$as_me:$LINENO: checking for dlopen" >&5
10921echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10922if test "${ac_cv_func_dlopen+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924else
10925 cat >conftest.$ac_ext <<_ACEOF
10926#line $LINENO "configure"
10927#include "confdefs.h"
10928/* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char dlopen (); below. */
10930#include <assert.h>
10931/* Override any gcc2 internal prototype to avoid an error. */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935/* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10937char dlopen ();
10938char (*f) ();
10939
10940#ifdef F77_DUMMY_MAIN
10941# ifdef __cplusplus
10942 extern "C"
10943# endif
10944 int F77_DUMMY_MAIN() { return 1; }
10945#endif
10946int
10947main ()
10948{
10949/* The GNU C library defines this for functions which it implements
10950 to always fail with ENOSYS. Some functions are actually named
10951 something starting with __ and the normal name is an alias. */
10952#if defined (__stub_dlopen) || defined (__stub___dlopen)
10953choke me
10954#else
10955f = dlopen;
10956#endif
10957
10958 ;
10959 return 0;
10960}
10961_ACEOF
10962rm -f conftest.$ac_objext conftest$ac_exeext
10963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10964 (eval $ac_link) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_cv_func_dlopen=yes
10975else
10976 echo "$as_me: failed program was:" >&5
10977cat conftest.$ac_ext >&5
10978ac_cv_func_dlopen=no
10979fi
10980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10981fi
10982echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10983echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10984if test $ac_cv_func_dlopen = yes; then
10985 lt_cv_dlopen="dlopen"
10986else
10987 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10988echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10989if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991else
10992 ac_check_lib_save_LIBS=$LIBS
10993LIBS="-ldl $LIBS"
10994cat >conftest.$ac_ext <<_ACEOF
10995#line $LINENO "configure"
10996#include "confdefs.h"
10997
10998/* Override any gcc2 internal prototype to avoid an error. */
10999#ifdef __cplusplus
11000extern "C"
11001#endif
11002/* We use char because int might match the return type of a gcc2
11003 builtin and then its argument prototype would still apply. */
11004char dlopen ();
11005#ifdef F77_DUMMY_MAIN
11006# ifdef __cplusplus
11007 extern "C"
11008# endif
11009 int F77_DUMMY_MAIN() { return 1; }
11010#endif
11011int
11012main ()
11013{
11014dlopen ();
11015 ;
11016 return 0;
11017}
11018_ACEOF
11019rm -f conftest.$ac_objext conftest$ac_exeext
11020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11021 (eval $ac_link) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -s conftest$ac_exeext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_lib_dl_dlopen=yes
11032else
11033 echo "$as_me: failed program was:" >&5
11034cat conftest.$ac_ext >&5
11035ac_cv_lib_dl_dlopen=no
11036fi
11037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11038LIBS=$ac_check_lib_save_LIBS
11039fi
11040echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11041echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11042if test $ac_cv_lib_dl_dlopen = yes; then
11043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11044else
11045 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11046echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11047if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049else
11050 ac_check_lib_save_LIBS=$LIBS
11051LIBS="-lsvld $LIBS"
11052cat >conftest.$ac_ext <<_ACEOF
11053#line $LINENO "configure"
11054#include "confdefs.h"
11055
11056/* Override any gcc2 internal prototype to avoid an error. */
11057#ifdef __cplusplus
11058extern "C"
11059#endif
11060/* We use char because int might match the return type of a gcc2
11061 builtin and then its argument prototype would still apply. */
11062char dlopen ();
11063#ifdef F77_DUMMY_MAIN
11064# ifdef __cplusplus
11065 extern "C"
11066# endif
11067 int F77_DUMMY_MAIN() { return 1; }
11068#endif
11069int
11070main ()
11071{
11072dlopen ();
11073 ;
11074 return 0;
11075}
11076_ACEOF
11077rm -f conftest.$ac_objext conftest$ac_exeext
11078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079 (eval $ac_link) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -s conftest$ac_exeext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 ac_cv_lib_svld_dlopen=yes
11090else
11091 echo "$as_me: failed program was:" >&5
11092cat conftest.$ac_ext >&5
11093ac_cv_lib_svld_dlopen=no
11094fi
11095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11096LIBS=$ac_check_lib_save_LIBS
11097fi
11098echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11099echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11100if test $ac_cv_lib_svld_dlopen = yes; then
11101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11102else
11103 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11104echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11105if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107else
11108 ac_check_lib_save_LIBS=$LIBS
11109LIBS="-ldld $LIBS"
11110cat >conftest.$ac_ext <<_ACEOF
11111#line $LINENO "configure"
11112#include "confdefs.h"
11113
11114/* Override any gcc2 internal prototype to avoid an error. */
11115#ifdef __cplusplus
11116extern "C"
11117#endif
11118/* We use char because int might match the return type of a gcc2
11119 builtin and then its argument prototype would still apply. */
11120char dld_link ();
11121#ifdef F77_DUMMY_MAIN
11122# ifdef __cplusplus
11123 extern "C"
11124# endif
11125 int F77_DUMMY_MAIN() { return 1; }
11126#endif
11127int
11128main ()
11129{
11130dld_link ();
11131 ;
11132 return 0;
11133}
11134_ACEOF
11135rm -f conftest.$ac_objext conftest$ac_exeext
11136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11137 (eval $ac_link) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -s conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_cv_lib_dld_dld_link=yes
11148else
11149 echo "$as_me: failed program was:" >&5
11150cat conftest.$ac_ext >&5
11151ac_cv_lib_dld_dld_link=no
11152fi
11153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11154LIBS=$ac_check_lib_save_LIBS
11155fi
11156echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11157echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11158if test $ac_cv_lib_dld_dld_link = yes; then
11159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11160fi
11161
11162
11163fi
11164
11165
11166fi
11167
11168
11169fi
11170
11171
11172fi
11173
11174
11175fi
11176
11177 ;;
11178 esac
11179
11180 if test "x$lt_cv_dlopen" != xno; then
11181 enable_dlopen=yes
11182 else
11183 enable_dlopen=no
11184 fi
11185
11186 case $lt_cv_dlopen in
11187 dlopen)
11188 save_CPPFLAGS="$CPPFLAGS"
11189 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11190
11191 save_LDFLAGS="$LDFLAGS"
11192 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11193
11194 save_LIBS="$LIBS"
11195 LIBS="$lt_cv_dlopen_libs $LIBS"
11196
11197 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11198echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11199if test "${lt_cv_dlopen_self+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201else
11202 if test "$cross_compiling" = yes; then :
11203 lt_cv_dlopen_self=cross
11204else
11205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11206 lt_status=$lt_dlunknown
11207 cat > conftest.$ac_ext <<EOF
aa1e3b4d 11208#line 11208 "configure"
6908b7d7
RC
11209#include "confdefs.h"
11210
11211#if HAVE_DLFCN_H
11212#include <dlfcn.h>
11213#endif
11214
11215#include <stdio.h>
11216
11217#ifdef RTLD_GLOBAL
11218# define LT_DLGLOBAL RTLD_GLOBAL
11219#else
11220# ifdef DL_GLOBAL
11221# define LT_DLGLOBAL DL_GLOBAL
11222# else
11223# define LT_DLGLOBAL 0
11224# endif
11225#endif
11226
11227/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11228 find out it does not work in some platform. */
11229#ifndef LT_DLLAZY_OR_NOW
11230# ifdef RTLD_LAZY
11231# define LT_DLLAZY_OR_NOW RTLD_LAZY
11232# else
11233# ifdef DL_LAZY
11234# define LT_DLLAZY_OR_NOW DL_LAZY
11235# else
11236# ifdef RTLD_NOW
11237# define LT_DLLAZY_OR_NOW RTLD_NOW
11238# else
11239# ifdef DL_NOW
11240# define LT_DLLAZY_OR_NOW DL_NOW
11241# else
11242# define LT_DLLAZY_OR_NOW 0
11243# endif
11244# endif
11245# endif
11246# endif
11247#endif
11248
11249#ifdef __cplusplus
11250extern "C" void exit (int);
11251#endif
11252
11253void fnord() { int i=42;}
11254int main ()
11255{
11256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257 int status = $lt_dlunknown;
11258
11259 if (self)
11260 {
11261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11263 /* dlclose (self); */
11264 }
11265
11266 exit (status);
11267}
11268EOF
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11274 (./conftest; exit; ) 2>/dev/null
11275 lt_status=$?
11276 case x$lt_status in
11277 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11278 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11279 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11280 esac
11281 else :
11282 # compilation failed
11283 lt_cv_dlopen_self=no
11284 fi
11285fi
11286rm -fr conftest*
11287
11288
11289fi
11290echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11291echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11292
11293 if test "x$lt_cv_dlopen_self" = xyes; then
11294 LDFLAGS="$LDFLAGS $link_static_flag"
11295 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11296echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11297if test "${lt_cv_dlopen_self_static+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300 if test "$cross_compiling" = yes; then :
11301 lt_cv_dlopen_self_static=cross
11302else
11303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11304 lt_status=$lt_dlunknown
11305 cat > conftest.$ac_ext <<EOF
aa1e3b4d 11306#line 11306 "configure"
6908b7d7
RC
11307#include "confdefs.h"
11308
11309#if HAVE_DLFCN_H
11310#include <dlfcn.h>
11311#endif
11312
11313#include <stdio.h>
11314
11315#ifdef RTLD_GLOBAL
11316# define LT_DLGLOBAL RTLD_GLOBAL
11317#else
11318# ifdef DL_GLOBAL
11319# define LT_DLGLOBAL DL_GLOBAL
11320# else
11321# define LT_DLGLOBAL 0
11322# endif
11323#endif
11324
11325/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11326 find out it does not work in some platform. */
11327#ifndef LT_DLLAZY_OR_NOW
11328# ifdef RTLD_LAZY
11329# define LT_DLLAZY_OR_NOW RTLD_LAZY
11330# else
11331# ifdef DL_LAZY
11332# define LT_DLLAZY_OR_NOW DL_LAZY
11333# else
11334# ifdef RTLD_NOW
11335# define LT_DLLAZY_OR_NOW RTLD_NOW
11336# else
11337# ifdef DL_NOW
11338# define LT_DLLAZY_OR_NOW DL_NOW
11339# else
11340# define LT_DLLAZY_OR_NOW 0
11341# endif
11342# endif
11343# endif
11344# endif
11345#endif
11346
11347#ifdef __cplusplus
11348extern "C" void exit (int);
11349#endif
11350
11351void fnord() { int i=42;}
11352int main ()
11353{
11354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11355 int status = $lt_dlunknown;
11356
11357 if (self)
11358 {
11359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11361 /* dlclose (self); */
11362 }
11363
11364 exit (status);
11365}
11366EOF
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368 (eval $ac_link) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11372 (./conftest; exit; ) 2>/dev/null
11373 lt_status=$?
11374 case x$lt_status in
11375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11377 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11378 esac
11379 else :
11380 # compilation failed
11381 lt_cv_dlopen_self_static=no
11382 fi
11383fi
11384rm -fr conftest*
11385
11386
11387fi
11388echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11389echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11390 fi
11391
11392 CPPFLAGS="$save_CPPFLAGS"
11393 LDFLAGS="$save_LDFLAGS"
11394 LIBS="$save_LIBS"
11395 ;;
11396 esac
11397
11398 case $lt_cv_dlopen_self in
11399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11400 *) enable_dlopen_self=unknown ;;
11401 esac
11402
11403 case $lt_cv_dlopen_self_static in
11404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11405 *) enable_dlopen_self_static=unknown ;;
11406 esac
11407fi
11408
11409
11410# The else clause should only fire when bootstrapping the
11411# libtool distribution, otherwise you forgot to ship ltmain.sh
11412# with your package, and you will get complaints that there are
11413# no rules to generate ltmain.sh.
11414if test -f "$ltmain"; then
11415 # Now quote all the things that may contain metacharacters while being
11416 # careful not to overquote the AC_SUBSTed values. We take copies of the
11417 # variables and quote the copies for generation of the libtool script.
11418 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
11419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11421 deplibs_check_method reload_flag reload_cmds need_locks \
11422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11423 lt_cv_sys_global_symbol_to_c_name_address \
11424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11425 old_postinstall_cmds old_postuninstall_cmds \
11426 compiler_CXX \
11427 CC_CXX \
11428 LD_CXX \
11429 lt_prog_compiler_wl_CXX \
11430 lt_prog_compiler_pic_CXX \
11431 lt_prog_compiler_static_CXX \
11432 lt_prog_compiler_no_builtin_flag_CXX \
11433 export_dynamic_flag_spec_CXX \
11434 thread_safe_flag_spec_CXX \
11435 whole_archive_flag_spec_CXX \
11436 old_archive_cmds_CXX \
11437 old_archive_from_new_cmds_CXX \
11438 predep_objects_CXX \
11439 postdep_objects_CXX \
11440 predeps_CXX \
11441 postdeps_CXX \
11442 compiler_lib_search_path_CXX \
11443 archive_cmds_CXX \
11444 archive_expsym_cmds_CXX \
11445 postinstall_cmds_CXX \
11446 postuninstall_cmds_CXX \
11447 old_archive_from_expsyms_cmds_CXX \
11448 allow_undefined_flag_CXX \
11449 no_undefined_flag_CXX \
11450 export_symbols_cmds_CXX \
11451 hardcode_libdir_flag_spec_CXX \
11452 hardcode_libdir_separator_CXX \
11453 lt_cv_prog_compiler_c_o_CXX \
11454 exclude_expsyms_CXX \
11455 include_expsyms_CXX; do
11456
11457 case $var in
11458 old_archive_cmds_CXX | \
11459 old_archive_from_new_cmds_CXX | \
11460 archive_cmds_CXX | \
11461 archive_expsym_cmds_CXX | \
11462 old_archive_from_expsyms_cmds_CXX | \
11463 export_symbols_cmds_CXX | \
11464 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11465 postinstall_cmds | postuninstall_cmds | \
11466 old_postinstall_cmds | old_postuninstall_cmds | \
11467 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11468 # Double-quote double-evaled strings.
11469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11470 ;;
11471 *)
11472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11473 ;;
11474 esac
11475 done
11476
11477 case $lt_echo in
11478 *'\$0 --fallback-echo"')
11479 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11480 ;;
11481 esac
11482
11483cfgfile="$ofile"
11484
11485 cat <<__EOF__ >> "$cfgfile"
11486# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11487
11488# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11489
11490# Shell to use when invoking shell scripts.
11491SHELL=$lt_SHELL
11492
11493# Whether or not to build shared libraries.
11494build_libtool_libs=$enable_shared
11495
11496# Whether or not to build static libraries.
11497build_old_libs=$enable_static
11498
11499# Whether or not to add -lc for building shared libraries.
11500build_libtool_need_lc=$archive_cmds_need_lc_CXX
11501
11502# Whether or not to optimize for fast installation.
11503fast_install=$enable_fast_install
11504
11505# The host system.
11506host_alias=$host_alias
11507host=$host
11508
11509# An echo program that does not interpret backslashes.
11510echo=$lt_echo
11511
11512# The archiver.
11513AR=$lt_AR
11514AR_FLAGS=$lt_AR_FLAGS
11515
11516# A C compiler.
11517LTCC=$lt_LTCC
11518
11519# A language-specific compiler.
11520CC=$lt_compiler_CXX
11521
11522# Is the compiler the GNU C compiler?
11523with_gcc=$GCC_CXX
11524
11525# The linker used to build libraries.
11526LD=$lt_LD_CXX
11527
11528# Whether we need hard or soft links.
11529LN_S=$lt_LN_S
11530
11531# A BSD-compatible nm program.
11532NM=$lt_NM
11533
11534# A sed program that does not truncate output.
11535SED=$lt_SED
11536
11537# A symbol stripping program
11538STRIP=$STRIP
11539
11540# Used to examine libraries when file_magic_cmd begins "file"
11541MAGIC_CMD=$MAGIC_CMD
11542
11543# Used on cygwin: DLL creation program.
11544DLLTOOL="$DLLTOOL"
11545
11546# Used on cygwin: object dumper.
11547OBJDUMP="$OBJDUMP"
11548
11549# Used on cygwin: assembler.
11550AS="$AS"
11551
11552# The name of the directory that contains temporary libtool files.
11553objdir=$objdir
11554
11555# How to create reloadable object files.
11556reload_flag=$lt_reload_flag
11557reload_cmds=$lt_reload_cmds
11558
11559# How to pass a linker flag through the compiler.
11560wl=$lt_lt_prog_compiler_wl_CXX
11561
11562# Object file suffix (normally "o").
11563objext="$ac_objext"
11564
11565# Old archive suffix (normally "a").
11566libext="$libext"
11567
11568# Executable file suffix (normally "").
11569exeext="$exeext"
11570
11571# Additional compiler flags for building library objects.
11572pic_flag=$lt_lt_prog_compiler_pic_CXX
11573pic_mode=$pic_mode
11574
11575# What is the maximum length of a command?
11576max_cmd_len=$lt_cv_sys_max_cmd_len
11577
11578# Does compiler simultaneously support -c and -o options?
11579compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11580
11581# Must we lock files when doing compilation ?
11582need_locks=$lt_need_locks
11583
11584# Do we need the lib prefix for modules?
11585need_lib_prefix=$need_lib_prefix
11586
11587# Do we need a version for libraries?
11588need_version=$need_version
11589
11590# Whether dlopen is supported.
11591dlopen_support=$enable_dlopen
11592
11593# Whether dlopen of programs is supported.
11594dlopen_self=$enable_dlopen_self
11595
11596# Whether dlopen of statically linked programs is supported.
11597dlopen_self_static=$enable_dlopen_self_static
11598
11599# Compiler flag to prevent dynamic linking.
11600link_static_flag=$lt_lt_prog_compiler_static_CXX
11601
11602# Compiler flag to turn off builtin functions.
11603no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11604
11605# Compiler flag to allow reflexive dlopens.
11606export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11607
11608# Compiler flag to generate shared objects directly from archives.
11609whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11610
11611# Compiler flag to generate thread-safe objects.
11612thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11613
11614# Library versioning type.
11615version_type=$version_type
11616
11617# Format of library name prefix.
11618libname_spec=$lt_libname_spec
11619
11620# List of archive names. First name is the real one, the rest are links.
11621# The last name is the one that the linker finds with -lNAME.
11622library_names_spec=$lt_library_names_spec
11623
11624# The coded name of the library, if different from the real name.
11625soname_spec=$lt_soname_spec
11626
11627# Commands used to build and install an old-style archive.
11628RANLIB=$lt_RANLIB
11629old_archive_cmds=$lt_old_archive_cmds_CXX
11630old_postinstall_cmds=$lt_old_postinstall_cmds
11631old_postuninstall_cmds=$lt_old_postuninstall_cmds
11632
11633# Create an old-style archive from a shared archive.
11634old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11635
11636# Create a temporary old-style archive to link instead of a shared archive.
11637old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11638
11639# Commands used to build and install a shared archive.
11640archive_cmds=$lt_archive_cmds_CXX
11641archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11642postinstall_cmds=$lt_postinstall_cmds
11643postuninstall_cmds=$lt_postuninstall_cmds
11644
11645# Commands to strip libraries.
11646old_striplib=$lt_old_striplib
11647striplib=$lt_striplib
11648
11649# Dependencies to place before the objects being linked to create a
11650# shared library.
11651predep_objects=$lt_predep_objects_CXX
11652
11653# Dependencies to place after the objects being linked to create a
11654# shared library.
11655postdep_objects=$lt_postdep_objects_CXX
11656
11657# Dependencies to place before the objects being linked to create a
11658# shared library.
11659predeps=$lt_predeps_CXX
11660
11661# Dependencies to place after the objects being linked to create a
11662# shared library.
11663postdeps=$lt_postdeps_CXX
11664
11665# The library search path used internally by the compiler when linking
11666# a shared library.
11667compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11668
11669# Method to check whether dependent libraries are shared objects.
11670deplibs_check_method=$lt_deplibs_check_method
11671
11672# Command to use when deplibs_check_method == file_magic.
11673file_magic_cmd=$lt_file_magic_cmd
11674
11675# Flag that allows shared libraries with undefined symbols to be built.
11676allow_undefined_flag=$lt_allow_undefined_flag_CXX
11677
11678# Flag that forces no undefined symbols.
11679no_undefined_flag=$lt_no_undefined_flag_CXX
11680
11681# Commands used to finish a libtool library installation in a directory.
11682finish_cmds=$lt_finish_cmds
11683
11684# Same as above, but a single script fragment to be evaled but not shown.
11685finish_eval=$lt_finish_eval
11686
11687# Take the output of nm and produce a listing of raw symbols and C names.
11688global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11689
11690# Transform the output of nm in a proper C declaration
11691global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11692
11693# Transform the output of nm in a C name address pair
11694global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11695
11696# This is the shared library runtime path variable.
11697runpath_var=$runpath_var
11698
11699# This is the shared library path variable.
11700shlibpath_var=$shlibpath_var
11701
11702# Is shlibpath searched before the hard-coded library search path?
11703shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11704
11705# How to hardcode a shared library path into an executable.
11706hardcode_action=$hardcode_action_CXX
11707
11708# Whether we should hardcode library paths into libraries.
11709hardcode_into_libs=$hardcode_into_libs
11710
11711# Flag to hardcode \$libdir into a binary during linking.
11712# This must work even if \$libdir does not exist.
11713hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11714
11715# Whether we need a single -rpath flag with a separated argument.
11716hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11717
11718# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11719# resulting binary.
11720hardcode_direct=$hardcode_direct_CXX
11721
11722# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11723# resulting binary.
11724hardcode_minus_L=$hardcode_minus_L_CXX
11725
11726# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11727# the resulting binary.
11728hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11729
11730# Variables whose values should be saved in libtool wrapper scripts and
11731# restored at relink time.
11732variables_saved_for_relink="$variables_saved_for_relink"
11733
11734# Whether libtool must link a program against all its dependency libraries.
11735link_all_deplibs=$link_all_deplibs_CXX
11736
11737# Compile-time system search path for libraries
11738sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11739
11740# Run-time system search path for libraries
11741sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11742
11743# Fix the shell variable \$srcfile for the compiler.
11744fix_srcfile_path="$fix_srcfile_path_CXX"
11745
11746# Set to yes if exported symbols are required.
11747always_export_symbols=$always_export_symbols_CXX
11748
11749# The commands to list exported symbols.
11750export_symbols_cmds=$lt_export_symbols_cmds_CXX
11751
11752# The commands to extract the exported symbol list from a shared archive.
11753extract_expsyms_cmds=$lt_extract_expsyms_cmds
11754
11755# Symbols that should not be listed in the preloaded symbols.
11756exclude_expsyms=$lt_exclude_expsyms_CXX
11757
11758# Symbols that must always be exported.
11759include_expsyms=$lt_include_expsyms_CXX
11760
11761# ### END LIBTOOL TAG CONFIG: $tagname
11762
11763__EOF__
11764
11765
11766else
11767 # If there is no Makefile yet, we rely on a make rule to execute
11768 # `config.status --recheck' to rerun these tests and create the
11769 # libtool script then.
11770 test -f Makefile && make "$ltmain"
11771fi
11772
11773
11774ac_ext=cc
11775ac_cpp='$CXXCPP $CPPFLAGS'
11776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11779
11780CC="$lt_save_CC"
11781
11782 ;;
11783
11784 GCJ)
11785
11786
11787
11788# Source file extension for C test sources.
11789ac_ext=java
11790
11791# Object file extension for compiled C test sources.
11792objext=o
11793objext_GCJ=$objext
11794
11795# Code to be used in simple compile tests
11796lt_simple_compile_test_code="class foo {};"
11797
11798# Code to be used in simple link tests
11799lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
11800
11801# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11802
11803# If no C compiler was specified, use CC.
11804LTCC=${LTCC-"$CC"}
11805
11806# Allow CC to be a program name with arguments.
11807set dummy $CC
11808compiler="$2"
11809
11810
11811# Allow CC to be a program name with arguments.
11812lt_save_CC="$CC"
11813CC=${GCJ-"gcj"}
11814set dummy $CC
11815compiler="$2"
11816compiler_GCJ=$CC
11817
11818# GCJ did not exist at the time GCC didn't implicitly link libc in.
11819archive_cmds_need_lc_GCJ=no
11820
11821
11822lt_prog_compiler_no_builtin_flag_GCJ=
11823
11824if test "$GCC" = yes; then
11825 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
11826
11827 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11828echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11829if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831else
11832 lt_cv_prog_compiler_rtti_exceptions=no
11833 ac_outfile=conftest.$ac_objext
11834 save_CFLAGS="$CFLAGS"
11835 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
11836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11837 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11838 # The compiler can only warn and ignore the option if not recognized
11839 # So say no if there are warnings
11840 if test -s conftest.err; then
11841 # Append any errors to the config.log.
11842 cat conftest.err 1>&5
11843 else
11844 lt_cv_prog_compiler_rtti_exceptions=yes
11845 fi
11846 fi
11847 $rm conftest*
11848 CFLAGS="$save_CFLAGS"
11849
11850fi
11851echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11852echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11853
11854if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11855 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
11856else
11857 :
11858fi
11859
11860fi
11861
11862lt_prog_compiler_wl_GCJ=
11863lt_prog_compiler_pic_GCJ=
11864lt_prog_compiler_static_GCJ=
11865
11866echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11867echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11868
11869 if test "$GCC" = yes; then
11870 lt_prog_compiler_wl_GCJ='-Wl,'
11871 lt_prog_compiler_static_GCJ='-static'
11872
11873 case $host_os in
11874 aix*)
11875 # All AIX code is PIC.
11876 if test "$host_cpu" = ia64; then
11877 # AIX 5 now supports IA64 processor
11878 lt_prog_compiler_static_GCJ='-Bstatic'
11879 fi
11880 ;;
11881
11882 amigaos*)
11883 # FIXME: we need at least 68020 code to build shared libraries, but
11884 # adding the `-m68020' flag to GCC prevents building anything better,
11885 # like `-m68040'.
11886 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
11887 ;;
11888
11889 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11890 # PIC is the default for these OSes.
11891 ;;
11892
11893 mingw* | pw32* | os2*)
11894 # This hack is so that the source file can tell whether it is being
11895 # built for inclusion in a dll (and should export symbols for example).
11896 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11897 ;;
11898
11899 darwin* | rhapsody*)
11900 # PIC is the default on this platform
11901 # Common symbols not allowed in MH_DYLIB files
11902 lt_prog_compiler_pic_GCJ='-fno-common'
11903 ;;
11904
11905 msdosdjgpp*)
11906 # Just because we use GCC doesn't mean we suddenly get shared libraries
11907 # on systems that don't support them.
11908 lt_prog_compiler_can_build_shared_GCJ=no
11909 enable_shared=no
11910 ;;
11911
11912 sysv4*MP*)
11913 if test -d /usr/nec; then
11914 lt_prog_compiler_pic_GCJ=-Kconform_pic
11915 fi
11916 ;;
11917
11918 hpux*)
11919 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11920 if test "$host_cpu" != ia64; then
11921 lt_prog_compiler_pic_GCJ='-fPIC'
11922 fi
11923 ;;
11924
11925 *)
11926 lt_prog_compiler_pic_GCJ='-fPIC'
11927 ;;
11928 esac
11929 else
11930 # PORTME Check for flag to pass linker flags through the system compiler.
11931 case $host_os in
11932 aix*)
11933 lt_prog_compiler_wl_GCJ='-Wl,'
11934 if test "$host_cpu" = ia64; then
11935 # AIX 5 now supports IA64 processor
11936 lt_prog_compiler_static_GCJ='-Bstatic'
11937 else
11938 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
11939 fi
11940 ;;
11941
11942 mingw* | pw32* | os2*)
11943 # This hack is so that the source file can tell whether it is being
11944 # built for inclusion in a dll (and should export symbols for example).
11945 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11946 ;;
11947
11948 hpux9* | hpux10* | hpux11*)
11949 lt_prog_compiler_wl_GCJ='-Wl,'
11950 if test "$host_cpu" != ia64; then
11951 lt_prog_compiler_pic_GCJ='+Z'
11952 fi
11953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11954 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
11955 ;;
11956
11957 irix5* | irix6* | nonstopux*)
11958 lt_prog_compiler_wl_GCJ='-Wl,'
11959 # PIC (with -KPIC) is the default.
11960 lt_prog_compiler_static_GCJ='-non_shared'
11961 ;;
11962
11963 newsos6)
11964 lt_prog_compiler_pic_GCJ='-KPIC'
11965 lt_prog_compiler_static_GCJ='-Bstatic'
11966 ;;
11967
11968 osf3* | osf4* | osf5*)
11969 lt_prog_compiler_wl_GCJ='-Wl,'
11970 # All OSF/1 code is PIC.
11971 lt_prog_compiler_static_GCJ='-non_shared'
11972 ;;
11973
11974 sco3.2v5*)
11975 lt_prog_compiler_pic_GCJ='-Kpic'
11976 lt_prog_compiler_static_GCJ='-dn'
11977 ;;
11978
11979 solaris*)
11980 lt_prog_compiler_wl_GCJ='-Wl,'
11981 lt_prog_compiler_pic_GCJ='-KPIC'
11982 lt_prog_compiler_static_GCJ='-Bstatic'
11983 ;;
11984
11985 sunos4*)
11986 lt_prog_compiler_wl_GCJ='-Qoption ld '
11987 lt_prog_compiler_pic_GCJ='-PIC'
11988 lt_prog_compiler_static_GCJ='-Bstatic'
11989 ;;
11990
11991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
aa1e3b4d 11992 lt_prog_compiler_wl_GCJ='-Wl,'
6908b7d7
RC
11993 lt_prog_compiler_pic_GCJ='-KPIC'
11994 lt_prog_compiler_static_GCJ='-Bstatic'
11995 ;;
11996
11997 sysv4*MP*)
11998 if test -d /usr/nec ;then
11999 lt_prog_compiler_pic_GCJ='-Kconform_pic'
12000 lt_prog_compiler_static_GCJ='-Bstatic'
12001 fi
12002 ;;
12003
12004 uts4*)
12005 lt_prog_compiler_pic_GCJ='-pic'
12006 lt_prog_compiler_static_GCJ='-Bstatic'
12007 ;;
12008
12009 *)
12010 lt_prog_compiler_can_build_shared_GCJ=no
12011 ;;
12012 esac
12013 fi
12014
12015echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12016echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12017
12018#
12019# Check to make sure the PIC flag actually works.
12020#
12021if test -n "$lt_prog_compiler_pic_GCJ"; then
12022 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12023echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12024if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 lt_prog_compiler_pic_works_GCJ=no
12028 ac_outfile=conftest.$ac_objext
12029 save_CFLAGS="$CFLAGS"
12030 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ"
12031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12032 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
12033 # The compiler can only warn and ignore the option if not recognized
12034 # So say no if there are warnings
12035 if test -s conftest.err; then
12036 # Append any errors to the config.log.
12037 cat conftest.err 1>&5
12038 else
12039 lt_prog_compiler_pic_works_GCJ=yes
12040 fi
12041 fi
12042 $rm conftest*
12043 CFLAGS="$save_CFLAGS"
12044
12045fi
12046echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
12047echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
12048
12049if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
12050 case $lt_prog_compiler_pic_GCJ in
12051 "" | " "*) ;;
12052 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
12053 esac
12054else
12055 lt_prog_compiler_pic_GCJ=
12056 lt_prog_compiler_can_build_shared_GCJ=no
12057fi
12058
12059fi
12060case "$host_os" in
12061 # For platforms which do not support PIC, -DPIC is meaningless:
12062 *djgpp*)
12063 lt_prog_compiler_pic_GCJ=
12064 ;;
12065 *)
12066 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
12067 ;;
12068esac
12069
12070echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12071echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12072if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074else
12075 lt_cv_prog_compiler_c_o_GCJ=no
12076 $rm -r conftest 2>/dev/null
12077 mkdir conftest
12078 cd conftest
12079 mkdir out
12080 save_GCJFLAGS="$CFLAGS"
12081 CFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
12082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12083
12084 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12085 # that will create temporary files in the current directory regardless of
12086 # the output directory. Thus, making CWD read-only will cause this test
12087 # to fail, enabling locking or at least warning the user not to do parallel
12088 # builds.
12089 chmod -w .
12090
12091 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
12092 then
12093 # The compiler can only warn and ignore the option if not recognized
12094 # So say no if there are warnings
12095 if test -s out/conftest.err; then
12096 # Append any errors to the config.log.
12097 cat out/conftest.err 1>&5
12098 else
12099 lt_cv_prog_compiler_c_o_GCJ=yes
12100 fi
12101 fi
12102 CFLAGS="$save_CFLAGS"
12103 chmod u+w .
12104 $rm conftest* out/*
12105 rmdir out
12106 cd ..
12107 rmdir conftest
12108 $rm conftest*
12109
12110fi
12111echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12112echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
12113
12114
12115hard_links="nottested"
12116if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
12117 # do not overwrite the value of need_locks provided by the user
12118 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12119echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12120 hard_links=yes
12121 $rm conftest*
12122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12123 touch conftest.a
12124 ln conftest.a conftest.b 2>&5 || hard_links=no
12125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12126 echo "$as_me:$LINENO: result: $hard_links" >&5
12127echo "${ECHO_T}$hard_links" >&6
12128 if test "$hard_links" = no; then
12129 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12130echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12131 need_locks=warn
12132 fi
12133else
12134 need_locks=no
12135fi
12136
12137echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12138echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12139
12140 runpath_var=
12141 allow_undefined_flag_GCJ=
12142
12143 archive_cmds_GCJ=
12144 archive_cmds_need_lc_GCJ=
12145 archive_expsym_cmds_GCJ=
12146 old_archive_From_new_cmds_GCJ=
12147 old_archive_from_expsyms_cmds_GCJ=
12148 export_dynamic_flag_spec_GCJ=
12149 whole_archive_flag_spec_GCJ=
12150 thread_safe_flag_spec_GCJ=
12151 hardcode_libdir_flag_spec_GCJ=
12152 hardcode_libdir_separator_GCJ=
12153 hardcode_direct_GCJ=no
12154 hardcode_minus_L_GCJ=no
12155 hardcode_shlibpath_var_GCJ=unsupported
12156 link_all_deplibs_GCJ=unknown
12157 always_export_symbols_GCJ=no
12158 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12159 # include_expsyms should be a list of space-separated symbols to be *always*
12160 # included in the symbol list
12161 include_expsyms_GCJ=
12162 # exclude_expsyms can be an egrep regular expression of symbols to exclude
12163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12165 # as well as any symbol that contains `d'.
12166 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
12167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12168 # platforms (ab)use it in PIC code, but their linkers get confused if
12169 # the symbol is explicitly referenced. Since portable code cannot
12170 # rely on this symbol name, it's probably fine to never include it in
12171 # preloaded symbol tables.
12172 extract_expsyms_cmds=
12173
12174 case $host_os in
12175 cygwin* | mingw* | pw32*)
12176 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12177 # When not using gcc, we currently assume that we are using
12178 # Microsoft Visual C++.
12179 if test "$GCC" != yes; then
12180 with_gnu_ld=no
12181 fi
12182 ;;
12183 openbsd*)
12184 with_gnu_ld=no
12185 ;;
12186 esac
12187
12188 ld_shlibs_GCJ=yes
12189 if test "$with_gnu_ld" = yes; then
12190 # If archive_cmds runs LD, not CC, wlarc should be empty
12191 wlarc='${wl}'
12192
12193 # See if GNU ld supports shared libraries.
12194 case $host_os in
12195 aix3* | aix4* | aix5*)
12196 # On AIX/PPC, the GNU linker is very broken
12197 if test "$host_cpu" != ia64; then
12198 ld_shlibs_GCJ=no
12199 cat <<EOF 1>&2
12200
12201*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12202*** to be unable to reliably create shared libraries on AIX.
12203*** Therefore, libtool is disabling shared libraries support. If you
12204*** really care for shared libraries, you may want to modify your PATH
12205*** so that a non-GNU linker is found, and then restart.
12206
12207EOF
12208 fi
12209 ;;
12210
12211 amigaos*)
12212 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)'
12213 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12214 hardcode_minus_L_GCJ=yes
12215
12216 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12217 # that the semantics of dynamic libraries on AmigaOS, at least up
12218 # to version 4, is to share data among multiple programs linked
12219 # with the same dynamic library. Since this doesn't match the
12220 # behavior of shared libraries on other platforms, we can't use
12221 # them.
12222 ld_shlibs_GCJ=no
12223 ;;
12224
12225 beos*)
12226 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12227 allow_undefined_flag_GCJ=unsupported
12228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12229 # support --undefined. This deserves some investigation. FIXME
12230 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231 else
12232 ld_shlibs_GCJ=no
12233 fi
12234 ;;
12235
12236 cygwin*)
12237 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
12238 # as there is no search path for DLLs.
12239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12240 allow_undefined_flag_GCJ=
aa1e3b4d 12241 always_export_symbols_GCJ=no
6908b7d7
RC
12242
12243 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
12244 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12245 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
12246 else
12247 ld_shlibs=no
12248 fi
12249 ;;
12250
12251 mingw* | pw32*)
12252 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
12253 # no search path for DLLs.
12254 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12255 allow_undefined_flag_GCJ=unsupported
12256 always_export_symbols_GCJ=yes
12257
12258 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
12259 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12260 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12261 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12262 else $CC -o impgen impgen.c ; fi)~
12263 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12264
12265 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12266
12267 # FIXME: what about values for MSVC?
12268 dll_entry=__cygwin_dll_entry@12
12269 case $host_os in
12270 mingw*)
12271 # mingw values
12272 dll_entry=_DllMainCRTStartup@12
12273 ;;
12274 esac
12275
12276 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
12277
12278 # recent cygwin and mingw systems supply a stub DllMain which the user
12279 # can override, but on older systems we have to supply one (in ltdll.c)
12280 if test "x$lt_cv_need_dllmain" = "xyes"; then
12281 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
12282 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
12283 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12284 else
12285 ltdll_obj=
12286 ltdll_cmds=
12287 fi
12288
12289 # Extract the symbol export list from an `--export-all' def file,
12290 # then regenerate the def file from the symbol export list, so that
12291 # the compiled dll only exports the symbol export list.
12292 # Be careful not to strip the DATA tag left by newer dlltools.
12293 export_symbols_cmds_GCJ="$ltdll_cmds"'
12294 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12295 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12296
12297 # If the export-symbols file already is a .def file (1st line
12298 # is EXPORTS), use it as is.
12299 # If DATA tags from a recent dlltool are present, honour them!
12300 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12301 cp $export_symbols $output_objdir/$soname-def;
12302 else
12303 echo EXPORTS > $output_objdir/$soname-def;
12304 _lt_hint=1;
12305 cat $export_symbols | while read symbol; do
12306 set dummy \$symbol;
12307 case \$# in
12308 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
aa1e3b4d 12309 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6908b7d7
RC
12310 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12311 esac;
12312 _lt_hint=`expr 1 + \$_lt_hint`;
12313 done;
12314 fi~
12315 '"$ltdll_cmds"'
12316 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12317 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
12318 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12319 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
12320 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12321 ;;
12322
12323 netbsd*)
12324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12325 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12326 wlarc=
12327 else
12328 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12329 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12330 fi
12331 ;;
12332
12333 solaris* | sysv5*)
12334 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
12335 ld_shlibs_GCJ=no
12336 cat <<EOF 1>&2
12337
12338*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12339*** create shared libraries on Solaris systems. Therefore, libtool
12340*** is disabling shared libraries support. We urge you to upgrade GNU
12341*** binutils to release 2.9.1 or newer. Another option is to modify
12342*** your PATH or compiler configuration so that the native linker is
12343*** used, and then restart.
12344
12345EOF
12346 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12347 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12348 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12349 else
12350 ld_shlibs_GCJ=no
12351 fi
12352 ;;
12353
12354 sunos4*)
12355 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12356 wlarc=
12357 hardcode_direct_GCJ=yes
12358 hardcode_shlibpath_var_GCJ=no
12359 ;;
12360
12361 *)
12362 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12363 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12364 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12365 else
12366 ld_shlibs_GCJ=no
12367 fi
12368 ;;
12369 esac
12370
12371 if test "$ld_shlibs_GCJ" = yes; then
12372 runpath_var=LD_RUN_PATH
12373 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
12374 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
12375 case $host_os in
12376 cygwin* | mingw* | pw32*)
12377 # dlltool doesn't understand --whole-archive et. al.
12378 whole_archive_flag_spec_GCJ=
12379 ;;
12380 *)
12381 # ancient GNU ld didn't support --whole-archive et. al.
12382 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
12383 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12384 else
12385 whole_archive_flag_spec_GCJ=
12386 fi
12387 ;;
12388 esac
12389 fi
12390 else
12391 # PORTME fill in a description of your system's linker (not GNU ld)
12392 case $host_os in
12393 aix3*)
12394 allow_undefined_flag_GCJ=unsupported
12395 always_export_symbols_GCJ=yes
12396 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'
12397 # Note: this linker hardcodes the directories in LIBPATH if there
12398 # are no directories specified by -L.
12399 hardcode_minus_L_GCJ=yes
12400 if test "$GCC" = yes && test -z "$link_static_flag"; then
12401 # Neither direct hardcoding nor static linking is supported with a
12402 # broken collect2.
12403 hardcode_direct_GCJ=unsupported
12404 fi
12405 ;;
12406
12407 aix4* | aix5*)
12408 if test "$host_cpu" = ia64; then
12409 # On IA64, the linker does run time linking by default, so we don't
12410 # have to do anything special.
12411 aix_use_runtimelinking=no
12412 exp_sym_flag='-Bexport'
12413 no_entry_flag=""
12414 else
12415 # If we're using GNU nm, then we don't want the "-C" option.
12416 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12417 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
12418 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'
12419 else
12420 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'
12421 fi
12422 aix_use_runtimelinking=no
12423
12424 # Test if we are trying to use run time linking or normal
12425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12426 # need to do runtime linking.
12427 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12428 for ld_flag in $LDFLAGS; do
12429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12430 aix_use_runtimelinking=yes
12431 break
12432 fi
12433 done
12434 esac
12435
12436 exp_sym_flag='-bexport'
12437 no_entry_flag='-bnoentry'
12438 fi
12439
12440 # When large executables or shared objects are built, AIX ld can
12441 # have problems creating the table of contents. If linking a library
12442 # or program results in "error TOC overflow" add -mminimal-toc to
12443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12445
12446 archive_cmds_GCJ=''
12447 hardcode_direct_GCJ=yes
12448 hardcode_libdir_separator_GCJ=':'
12449 link_all_deplibs_GCJ=yes
12450
12451 if test "$GCC" = yes; then
12452 case $host_os in aix4.012|aix4.012.*)
12453 # We only want to do this on AIX 4.2 and lower, the check
12454 # below for broken collect2 doesn't work under 4.3+
12455 collect2name=`${CC} -print-prog-name=collect2`
12456 if test -f "$collect2name" && \
12457 strings "$collect2name" | grep resolve_lib_name >/dev/null
12458 then
12459 # We have reworked collect2
12460 hardcode_direct_GCJ=yes
12461 else
12462 # We have old collect2
12463 hardcode_direct_GCJ=unsupported
12464 # It fails to find uninstalled libraries when the uninstalled
12465 # path is not listed in the libpath. Setting hardcode_minus_L
12466 # to unsupported forces relinking
12467 hardcode_minus_L_GCJ=yes
12468 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12469 hardcode_libdir_separator_GCJ=
12470 fi
12471 esac
12472 shared_flag='-shared'
12473 else
12474 # not using gcc
12475 if test "$host_cpu" = ia64; then
12476 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12477 # chokes on -Wl,-G. The following line is correct:
12478 shared_flag='-G'
12479 else
12480 if test "$aix_use_runtimelinking" = yes; then
12481 shared_flag='${wl}-G'
12482 else
12483 shared_flag='${wl}-bM:SRE'
12484 fi
12485 fi
12486 fi
12487
12488 # It seems that -bexpall does not export symbols beginning with
12489 # underscore (_), so it is better to generate a list of symbols to export.
12490 always_export_symbols_GCJ=yes
12491 if test "$aix_use_runtimelinking" = yes; then
12492 # Warning - without using the other runtime loading flags (-brtl),
12493 # -berok will link without error, but may produce a broken library.
12494 allow_undefined_flag_GCJ='-berok'
12495 # Determine the default libpath from the value encoded in an empty executable.
12496 cat >conftest.$ac_ext <<_ACEOF
12497#line $LINENO "configure"
12498#include "confdefs.h"
12499
12500#ifdef F77_DUMMY_MAIN
12501# ifdef __cplusplus
12502 extern "C"
12503# endif
12504 int F77_DUMMY_MAIN() { return 1; }
12505#endif
12506int
12507main ()
12508{
12509
12510 ;
12511 return 0;
12512}
12513_ACEOF
12514rm -f conftest.$ac_objext conftest$ac_exeext
12515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -s conftest$ac_exeext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526
12527aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12528}'`
12529# Check for a 64-bit object if we didn't find anything.
12530if 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; }
12531}'`; fi
12532else
12533 echo "$as_me: failed program was:" >&5
12534cat conftest.$ac_ext >&5
12535fi
12536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12538
12539 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12540 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"
12541 else
12542 if test "$host_cpu" = ia64; then
12543 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
12544 allow_undefined_flag_GCJ="-z nodefs"
12545 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"
12546 else
12547 # Determine the default libpath from the value encoded in an empty executable.
12548 cat >conftest.$ac_ext <<_ACEOF
12549#line $LINENO "configure"
12550#include "confdefs.h"
12551
12552#ifdef F77_DUMMY_MAIN
12553# ifdef __cplusplus
12554 extern "C"
12555# endif
12556 int F77_DUMMY_MAIN() { return 1; }
12557#endif
12558int
12559main ()
12560{
12561
12562 ;
12563 return 0;
12564}
12565_ACEOF
12566rm -f conftest.$ac_objext conftest$ac_exeext
12567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -s conftest$ac_exeext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578
12579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12580}'`
12581# Check for a 64-bit object if we didn't find anything.
12582if 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; }
12583}'`; fi
12584else
12585 echo "$as_me: failed program was:" >&5
12586cat conftest.$ac_ext >&5
12587fi
12588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12590
12591 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12592 # Warning - without using the other run time loading flags,
12593 # -berok will link without error, but may produce a broken library.
12594 no_undefined_flag_GCJ=' ${wl}-bernotok'
12595 allow_undefined_flag_GCJ=' ${wl}-berok'
12596 # -bexpall does not export symbols beginning with underscore (_)
12597 always_export_symbols_GCJ=yes
12598 # Exported symbols can be pulled into shared objects from archives
12599 whole_archive_flag_spec_GCJ=' '
12600 archive_cmds_need_lc_GCJ=yes
12601 # This is similar to how AIX traditionally builds it's shared libraries.
12602 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'
12603 fi
12604 fi
12605 ;;
12606
12607 amigaos*)
12608 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)'
12609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12610 hardcode_minus_L_GCJ=yes
12611 # see comment about different semantics on the GNU ld section
12612 ld_shlibs_GCJ=no
12613 ;;
12614
12615 bsdi4*)
12616 export_dynamic_flag_spec_GCJ=-rdynamic
12617 ;;
12618
12619 cygwin* | mingw* | pw32*)
12620 # When not using gcc, we currently assume that we are using
12621 # Microsoft Visual C++.
12622 # hardcode_libdir_flag_spec is actually meaningless, as there is
12623 # no search path for DLLs.
12624 hardcode_libdir_flag_spec_GCJ=' '
aa1e3b4d 12625 allow_undefined_flag_GCJ=
6908b7d7
RC
12626 # Tell ltmain to make .lib files, not .a files.
12627 libext=lib
12628 # FIXME: Setting linknames here is a bad hack.
12629 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12630 # The linker will automatically build a .lib file if we build a DLL.
12631 old_archive_From_new_cmds_GCJ='true'
12632 # FIXME: Should let the user specify the lib program.
12633 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
12634 fix_srcfile_path='`cygpath -w "$srcfile"`'
12635 ;;
12636
12637 darwin* | rhapsody*)
12638 case "$host_os" in
12639 rhapsody* | darwin1.[012])
12640 allow_undefined_flag_GCJ='-undefined suppress'
12641 ;;
12642 *) # Darwin 1.3 on
12643 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
12644 ;;
12645 esac
12646
12647 # FIXME: Relying on posixy $() will cause problems for
12648 # cross-compilation, but unfortunately the echo tests do not
12649 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12650 # `"' quotes if we put them in here... so don't!
12651 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
12652 # We need to add '_' to the symbols in $export_symbols first
12653 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
12654 hardcode_direct_GCJ=yes
12655 hardcode_shlibpath_var_GCJ=no
12656 whole_archive_flag_spec_GCJ='-all_load $convenience'
12657 ;;
12658
12659 dgux*)
12660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12661 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12662 hardcode_shlibpath_var_GCJ=no
12663 ;;
12664
12665 freebsd1*)
12666 ld_shlibs_GCJ=no
12667 ;;
12668
12669 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12670 # support. Future versions do this automatically, but an explicit c++rt0.o
12671 # does not break anything, and helps significantly (at the cost of a little
12672 # extra space).
12673 freebsd2.2*)
12674 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12676 hardcode_direct_GCJ=yes
12677 hardcode_shlibpath_var_GCJ=no
12678 ;;
12679
12680 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12681 freebsd2*)
12682 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12683 hardcode_direct_GCJ=yes
12684 hardcode_minus_L_GCJ=yes
12685 hardcode_shlibpath_var_GCJ=no
12686 ;;
12687
12688 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12689 freebsd*)
12690 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12691 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12692 hardcode_direct_GCJ=yes
12693 hardcode_shlibpath_var_GCJ=no
12694 ;;
12695
12696 hpux9* | hpux10* | hpux11*)
12697 if test "$GCC" = yes; then
12698 case $host_os in
12699 hpux9*)
12700 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'
12701 ;;
12702 *)
12703 if test "$host_cpu" = ia64; then
12704 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12705 else
12706 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12707 fi
12708 ;;
12709 esac
12710 else
12711 case $host_os in
12712 hpux9*)
12713 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'
12714 ;;
12715 *)
12716 if test "$host_cpu" = ia64; then
12717 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12718 else
12719 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12720 fi
12721 ;;
12722 esac
12723 fi
12724 if test "$host_cpu" = ia64; then
12725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12726 hardcode_direct_GCJ=no
12727 hardcode_shlibpath_var_GCJ=no
12728 else
12729 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
12730 hardcode_libdir_separator_GCJ=:
12731 hardcode_direct_GCJ=yes
12732 fi
12733 # hardcode_minus_L: Not really in the search PATH,
12734 # but as the default location of the library.
12735 hardcode_minus_L_GCJ=yes
12736 export_dynamic_flag_spec_GCJ='${wl}-E'
12737 ;;
12738
12739 irix5* | irix6* | nonstopux*)
12740 if test "$GCC" = yes; then
12741 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'
12742 else
12743 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'
12744 fi
12745 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12746 hardcode_libdir_separator_GCJ=:
12747 link_all_deplibs_GCJ=yes
12748 ;;
12749
12750 netbsd*)
12751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12752 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12753 else
12754 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12755 fi
12756 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12757 hardcode_direct_GCJ=yes
12758 hardcode_shlibpath_var_GCJ=no
12759 ;;
12760
12761 newsos6)
12762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12763 hardcode_direct_GCJ=yes
12764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12765 hardcode_libdir_separator_GCJ=:
12766 hardcode_shlibpath_var_GCJ=no
12767 ;;
12768
12769 openbsd*)
12770 hardcode_direct_GCJ=yes
12771 hardcode_shlibpath_var_GCJ=no
12772
12773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12774 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12776 export_dynamic_flag_spec_GCJ='${wl}-E'
12777 else
12778 case $host_os in
12779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12780 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12782 ;;
12783 *)
12784 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12785 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12786 ;;
12787 esac
12788 fi
12789 ;;
12790
12791 os2*)
12792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12793 hardcode_minus_L_GCJ=yes
12794 allow_undefined_flag_GCJ=unsupported
12795 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'
12796 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12797 ;;
12798
12799 osf3*)
12800 if test "$GCC" = yes; then
12801 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12802 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'
12803 else
12804 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12805 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'
12806 fi
12807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12808 hardcode_libdir_separator_GCJ=:
12809 ;;
12810
12811 osf4* | osf5*) # as osf3* with the addition of -msym flag
12812 if test "$GCC" = yes; then
12813 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12814 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'
12815 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12816 else
12817 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12818 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'
12819 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12820 $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'
12821
12822 # Both c and cxx compiler support -rpath directly
12823 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
12824 fi
12825 hardcode_libdir_separator_GCJ=:
12826 ;;
12827
12828 sco3.2v5*)
12829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830 hardcode_shlibpath_var_GCJ=no
12831 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
12832 runpath_var=LD_RUN_PATH
12833 hardcode_runpath_var=yes
12834 ;;
12835
12836 solaris*)
12837 no_undefined_flag_GCJ=' -z text'
12838 if test "$GCC" = yes; then
12839 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12840 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12841 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12842 else
12843 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12844 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12845 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12846 fi
12847 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12848 hardcode_shlibpath_var_GCJ=no
12849 case $host_os in
12850 solaris2.[0-5] | solaris2.[0-5].*) ;;
12851 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12852 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
12853 esac
12854 link_all_deplibs_GCJ=yes
12855 ;;
12856
12857 sunos4*)
12858 if test "x$host_vendor" = xsequent; then
12859 # Use $CC to link under sequent, because it throws in some extra .o
12860 # files that make .init and .fini sections work.
12861 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12862 else
12863 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12864 fi
12865 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12866 hardcode_direct_GCJ=yes
12867 hardcode_minus_L_GCJ=yes
12868 hardcode_shlibpath_var_GCJ=no
12869 ;;
12870
12871 sysv4)
aa1e3b4d
RC
12872 case $host_vendor in
12873 sni)
12874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12875 hardcode_direct_GCJ=yes # is this really true???
12876 ;;
12877 siemens)
12878 ## LD is ld it makes a PLAMLIB
12879 ## CC just makes a GrossModule.
12880 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12881 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
12882 hardcode_direct_GCJ=no
12883 ;;
12884 motorola)
12885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12886 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
12887 ;;
12888 esac
6908b7d7
RC
12889 runpath_var='LD_RUN_PATH'
12890 hardcode_shlibpath_var_GCJ=no
12891 ;;
12892
12893 sysv4.3*)
12894 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12895 hardcode_shlibpath_var_GCJ=no
12896 export_dynamic_flag_spec_GCJ='-Bexport'
12897 ;;
12898
12899 sysv4*MP*)
12900 if test -d /usr/nec; then
12901 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12902 hardcode_shlibpath_var_GCJ=no
12903 runpath_var=LD_RUN_PATH
12904 hardcode_runpath_var=yes
12905 ld_shlibs_GCJ=yes
12906 fi
12907 ;;
12908
12909 sysv4.2uw2*)
12910 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12911 hardcode_direct_GCJ=yes
12912 hardcode_minus_L_GCJ=no
12913 hardcode_shlibpath_var_GCJ=no
12914 hardcode_runpath_var=yes
12915 runpath_var=LD_RUN_PATH
12916 ;;
12917
12918 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12919 no_undefined_flag_GCJ='${wl}-z ${wl}text'
12920 if test "$GCC" = yes; then
12921 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12922 else
12923 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12924 fi
12925 runpath_var='LD_RUN_PATH'
12926 hardcode_shlibpath_var_GCJ=no
12927 ;;
12928
12929 sysv5*)
12930 no_undefined_flag_GCJ=' -z text'
12931 # $CC -shared without GNU ld will not create a library from C++
12932 # object files and a static libstdc++, better avoid it by now
12933 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12934 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12935 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12936 hardcode_libdir_flag_spec_GCJ=
12937 hardcode_shlibpath_var_GCJ=no
12938 runpath_var='LD_RUN_PATH'
12939 ;;
12940
12941 uts4*)
12942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12943 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12944 hardcode_shlibpath_var_GCJ=no
12945 ;;
12946
12947 *)
12948 ld_shlibs_GCJ=no
12949 ;;
12950 esac
12951 fi
12952
12953echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
12954echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12955test "$ld_shlibs_GCJ" = no && can_build_shared=no
12956
12957variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12958if test "$GCC" = yes; then
12959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12960fi
12961
12962#
12963# Do we need to explicitly link libc?
12964#
12965archive_cmds_need_lc_GCJ=yes
12966if test "$enable_shared" = yes && test "$GCC" = yes; then
12967 case $archive_cmds_GCJ in
12968 *'~'*)
12969 # FIXME: we may have to deal with multi-command sequences.
12970 ;;
12971 '$CC '*)
12972 # Test whether the compiler implicitly links with -lc since on some
12973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12974 # to ld, don't add -lc before -lgcc.
12975 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12976echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12977 $rm conftest*
12978 echo 'static int dummy;' > conftest.$ac_ext
12979
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } 2>conftest.err; then
12985 soname=conftest
12986 lib=conftest
12987 libobjs=conftest.$ac_objext
12988 deplibs=
12989 wl=$lt_prog_compiler_wl_GCJ
12990 compiler_flags=-v
12991 linker_flags=-v
12992 verstring=
12993 output_objdir=.
12994 libname=conftest
12995 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
12996 allow_undefined_flag_GCJ=
12997 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12998 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }
13002 then
13003 archive_cmds_need_lc_GCJ=no
13004 else
13005 archive_cmds_need_lc_GCJ=yes
13006 fi
13007 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
13008 else
13009 cat conftest.err 1>&5
13010 fi
13011 $rm conftest*
13012 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
13013echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
13014 ;;
13015 esac
13016fi
13017
13018echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13019echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13020hardcode_action_GCJ=
13021if test -n "$hardcode_libdir_flag_spec_GCJ" || \
13022 test -n "$runpath_var GCJ"; then
13023
13024 # We can hardcode non-existant directories.
13025 if test "$hardcode_direct_GCJ" != no &&
13026 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13027 # have to relink, otherwise we might link with an installed library
13028 # when we should be linking with a yet-to-be-installed one
13029 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
13030 test "$hardcode_minus_L_GCJ" != no; then
13031 # Linking always hardcodes the temporary library directory.
13032 hardcode_action_GCJ=relink
13033 else
13034 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13035 hardcode_action_GCJ=immediate
13036 fi
13037else
13038 # We cannot hardcode anything, or else we can only hardcode existing
13039 # directories.
13040 hardcode_action_GCJ=unsupported
13041fi
13042echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
13043echo "${ECHO_T}$hardcode_action_GCJ" >&6
13044
13045if test "$hardcode_action_GCJ" = relink; then
13046 # Fast installation is not supported
13047 enable_fast_install=no
13048elif test "$shlibpath_overrides_runpath" = yes ||
13049 test "$enable_shared" = no; then
13050 # Fast installation is not necessary
13051 enable_fast_install=needless
13052fi
13053
13054striplib=
13055old_striplib=
13056echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13057echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13058if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13059 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13060 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13061 echo "$as_me:$LINENO: result: yes" >&5
13062echo "${ECHO_T}yes" >&6
13063else
13064 echo "$as_me:$LINENO: result: no" >&5
13065echo "${ECHO_T}no" >&6
13066fi
13067
13068echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13069echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13070library_names_spec=
13071libname_spec='lib$name'
13072soname_spec=
13073postinstall_cmds=
13074postuninstall_cmds=
13075finish_cmds=
13076finish_eval=
13077shlibpath_var=
13078shlibpath_overrides_runpath=unknown
13079version_type=none
13080dynamic_linker="$host_os ld.so"
13081sys_lib_dlsearch_path_spec="/lib /usr/lib"
13082if test "$GCC" = yes; then
13083 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13084 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
13085 # if the path contains ";" then we assume it to be the separator
13086 # otherwise default to the standard path separator (i.e. ":") - it is
13087 # assumed that no part of a normal pathname contains ";" but that should
13088 # okay in the real world where ";" in dirpaths is itself problematic.
13089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13090 else
13091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13092 fi
13093else
13094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13095fi
13096need_lib_prefix=unknown
13097hardcode_into_libs=no
13098
13099# when you set need_version to no, make sure it does not cause -set_version
13100# flags to be left without arguments
13101need_version=unknown
13102
13103case $host_os in
13104aix3*)
13105 version_type=linux
13106 library_names_spec='${libname}${release}.so$versuffix $libname.a'
13107 shlibpath_var=LIBPATH
13108
13109 # AIX 3 has no versioning support, so we append a major version to the name.
13110 soname_spec='${libname}${release}.so$major'
13111 ;;
13112
13113aix4* | aix5*)
13114 version_type=linux
13115 if test "$host_cpu" = ia64; then
13116 # AIX 5 supports IA64
13117 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
13118 shlibpath_var=LD_LIBRARY_PATH
13119 else
13120 # With GCC up to 2.95.x, collect2 would create an import file
13121 # for dependence libraries. The import file would start with
13122 # the line `#! .'. This would cause the generated library to
13123 # depend on `.', always an invalid library. This was fixed in
13124 # development snapshots of GCC prior to 3.0.
13125 case $host_os in
13126 aix4 | aix4.[01] | aix4.[01].*)
13127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13128 echo ' yes '
13129 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13130 :
13131 else
13132 can_build_shared=no
13133 fi
13134 ;;
13135 esac
13136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13137 # soname into executable. Probably we can add versioning support to
13138 # collect2, so additional links can be useful in future.
13139 if test "$aix_use_runtimelinking" = yes; then
13140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13141 # instead of lib<name>.a to let people know that these are not
13142 # typical AIX shared libraries.
13143 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13144 else
13145 # We preserve .a as extension for shared libraries through AIX4.2
13146 # and later when we are not doing run time linking.
13147 library_names_spec='${libname}${release}.a $libname.a'
13148 soname_spec='${libname}${release}.so$major'
13149 fi
13150 shlibpath_var=LIBPATH
13151 fi
13152 ;;
13153
13154amigaos*)
13155 library_names_spec='$libname.ixlibrary $libname.a'
13156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13157 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'
13158 ;;
13159
13160beos*)
13161 library_names_spec='${libname}.so'
13162 dynamic_linker="$host_os ld.so"
13163 shlibpath_var=LIBRARY_PATH
13164 ;;
13165
13166bsdi4*)
13167 version_type=linux
13168 need_version=no
13169 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13170 soname_spec='${libname}${release}.so$major'
13171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13172 shlibpath_var=LD_LIBRARY_PATH
13173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13175 # the default ld.so.conf also contains /usr/contrib/lib and
13176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13177 # libtool to hard-code these into programs
13178 ;;
13179
13180cygwin* | mingw* | pw32*)
13181 version_type=windows
13182 need_version=no
13183 need_lib_prefix=no
13184 case $GCC,$host_os in
13185 yes,cygwin*)
13186 library_names_spec='$libname.dll.a'
13187 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13189 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13190 dldir=$destdir/`dirname \$dlpath`~
13191 test -d \$dldir || mkdir -p \$dldir~
13192 $install_prog .libs/$dlname \$dldir/$dlname'
13193 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13194 dlpath=$dir/\$dldll~
13195 $rm \$dlpath'
13196 shlibpath_overrides_runpath=yes
13197 ;;
13198 yes,mingw*)
13199 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13200 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13201 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
13202 # It is most probably a Windows format PATH printed by
13203 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13204 # path with ; separators, and with drive letters. We can handle the
13205 # drive letters (cygwin fileutils understands them), so leave them,
13206 # especially as we might pass files found there to a mingw objdump,
13207 # which wouldn't understand a cygwinified path. Ahh.
13208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13209 else
13210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13211 fi
13212 ;;
13213 yes,pw32*)
13214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13215 ;;
13216 *)
13217 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13218 ;;
13219 esac
13220 dynamic_linker='Win32 ld.exe'
13221 # FIXME: first we should search . and the directory the executable is in
13222 shlibpath_var=PATH
13223 ;;
13224
13225darwin* | rhapsody*)
13226 dynamic_linker="$host_os dyld"
13227 version_type=darwin
13228 need_lib_prefix=no
13229 need_version=no
13230 # FIXME: Relying on posixy $() will cause problems for
13231 # cross-compilation, but unfortunately the echo tests do not
13232 # yet detect zsh echo's removal of \ escapes.
13233 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13234 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13235 shlibpath_overrides_runpath=yes
13236 shlibpath_var=DYLD_LIBRARY_PATH
13237 ;;
13238
13239dgux*)
13240 version_type=linux
13241 need_lib_prefix=no
13242 need_version=no
13243 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13244 soname_spec='${libname}${release}.so$major'
13245 shlibpath_var=LD_LIBRARY_PATH
13246 ;;
13247
13248freebsd1*)
13249 dynamic_linker=no
13250 ;;
13251
13252freebsd*)
13253 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13254 version_type=freebsd-$objformat
13255 case $version_type in
13256 freebsd-elf*)
13257 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13258 need_version=no
13259 need_lib_prefix=no
13260 ;;
13261 freebsd-*)
13262 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13263 need_version=yes
13264 ;;
13265 esac
13266 shlibpath_var=LD_LIBRARY_PATH
13267 case $host_os in
13268 freebsd2*)
13269 shlibpath_overrides_runpath=yes
13270 ;;
13271 freebsd3.01* | freebsdelf3.01*)
13272 shlibpath_overrides_runpath=yes
13273 hardcode_into_libs=yes
13274 ;;
13275 *) # from 3.2 on
13276 shlibpath_overrides_runpath=no
13277 hardcode_into_libs=yes
13278 ;;
13279 esac
13280 ;;
13281
13282gnu*)
13283 version_type=linux
13284 need_lib_prefix=no
13285 need_version=no
13286 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13287 soname_spec='${libname}${release}.so$major'
13288 shlibpath_var=LD_LIBRARY_PATH
13289 hardcode_into_libs=yes
13290 ;;
13291
13292hpux9* | hpux10* | hpux11*)
13293 # Give a soname corresponding to the major version so that dld.sl refuses to
13294 # link against other versions.
13295 version_type=sunos
13296 need_lib_prefix=no
13297 need_version=no
13298 if test "$host_cpu" = ia64; then
13299 hardcode_into_libs=yes
13300 dynamic_linker="$host_os dld.so"
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13303 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13304 soname_spec='${libname}${release}.so$major'
13305 if test "X$HPUX_IA64_MODE" = X32; then
13306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13307 else
13308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13309 fi
13310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13311 else
13312 dynamic_linker="$host_os dld.sl"
13313 shlibpath_var=SHLIB_PATH
13314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13315 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13316 soname_spec='${libname}${release}.sl$major'
13317 fi
13318 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13319 postinstall_cmds='chmod 555 $lib'
13320 ;;
13321
13322irix5* | irix6* | nonstopux*)
13323 case $host_os in
13324 nonstopux*) version_type=nonstopux ;;
13325 *) version_type=irix ;;
13326 esac
13327 need_lib_prefix=no
13328 need_version=no
13329 soname_spec='${libname}${release}.so$major'
13330 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13331 case $host_os in
13332 irix5* | nonstopux*)
13333 libsuff= shlibsuff=
13334 ;;
13335 *)
13336 case $LD in # libtool.m4 will add one of these switches to LD
13337 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13338 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13339 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13340 *) libsuff= shlibsuff= libmagic=never-match;;
13341 esac
13342 ;;
13343 esac
13344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13345 shlibpath_overrides_runpath=no
13346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13348 ;;
13349
13350# No shared lib support for Linux oldld, aout, or coff.
13351linux*oldld* | linux*aout* | linux*coff*)
13352 dynamic_linker=no
13353 ;;
13354
13355# This must be Linux ELF.
13356linux*)
13357 version_type=linux
13358 need_lib_prefix=no
13359 need_version=no
13360 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13361 soname_spec='${libname}${release}.so$major'
13362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=no
13365 # This implies no fast_install, which is unacceptable.
13366 # Some rework will be needed to allow for fast_install
13367 # before this can be enabled.
13368 hardcode_into_libs=yes
13369
13370 # We used to test for /lib/ld.so.1 and disable shared libraries on
13371 # powerpc, because MkLinux only supported shared libraries with the
13372 # GNU dynamic linker. Since this was broken with cross compilers,
13373 # most powerpc-linux boxes support dynamic linking these days and
13374 # people can always --disable-shared, the test was removed, and we
13375 # assume the GNU/Linux dynamic linker is in use.
13376 dynamic_linker='GNU/Linux ld.so'
13377 ;;
13378
13379netbsd*)
13380 version_type=sunos
13381 need_lib_prefix=no
13382 need_version=no
13383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13384 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13386 dynamic_linker='NetBSD (a.out) ld.so'
13387 else
13388 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13389 soname_spec='${libname}${release}.so$major'
13390 dynamic_linker='NetBSD ld.elf_so'
13391 fi
13392 shlibpath_var=LD_LIBRARY_PATH
13393 shlibpath_overrides_runpath=yes
13394 hardcode_into_libs=yes
13395 ;;
13396
13397newsos6)
13398 version_type=linux
13399 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 shlibpath_overrides_runpath=yes
13402 ;;
13403
13404nto-qnx)
13405 version_type=linux
13406 need_lib_prefix=no
13407 need_version=no
13408 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13409 soname_spec='${libname}${release}.so$major'
13410 shlibpath_var=LD_LIBRARY_PATH
13411 shlibpath_overrides_runpath=yes
13412 ;;
13413
13414openbsd*)
13415 version_type=sunos
13416 need_lib_prefix=no
13417 need_version=no
13418 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13422 case $host_os in
13423 openbsd2.[89] | openbsd2.[89].*)
13424 shlibpath_overrides_runpath=no
13425 ;;
13426 *)
13427 shlibpath_overrides_runpath=yes
13428 ;;
13429 esac
13430 else
13431 shlibpath_overrides_runpath=yes
13432 fi
13433 ;;
13434
13435os2*)
13436 libname_spec='$name'
13437 need_lib_prefix=no
13438 library_names_spec='$libname.dll $libname.a'
13439 dynamic_linker='OS/2 ld.exe'
13440 shlibpath_var=LIBPATH
13441 ;;
13442
13443osf3* | osf4* | osf5*)
13444 version_type=osf
13445 need_lib_prefix=no
13446 need_version=no
13447 soname_spec='${libname}${release}.so'
13448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13449 shlibpath_var=LD_LIBRARY_PATH
13450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13451 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13452 ;;
13453
13454sco3.2v5*)
13455 version_type=osf
13456 soname_spec='${libname}${release}.so$major'
13457 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13458 shlibpath_var=LD_LIBRARY_PATH
13459 ;;
13460
13461solaris*)
13462 version_type=linux
13463 need_lib_prefix=no
13464 need_version=no
13465 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13466 soname_spec='${libname}${release}.so$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=yes
13469 hardcode_into_libs=yes
13470 # ldd complains unless libraries are executable
13471 postinstall_cmds='chmod +x $lib'
13472 ;;
13473
13474sunos4*)
13475 version_type=sunos
13476 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 shlibpath_overrides_runpath=yes
13480 if test "$with_gnu_ld" = yes; then
13481 need_lib_prefix=no
13482 fi
13483 need_version=yes
13484 ;;
13485
13486sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13487 version_type=linux
13488 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13489 soname_spec='${libname}${release}.so$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 case $host_vendor in
13492 sni)
13493 shlibpath_overrides_runpath=no
aa1e3b4d
RC
13494 need_lib_prefix=no
13495 export_dynamic_flag_spec='${wl}-Blargedynsym'
13496 runpath_var=LD_RUN_PATH
13497 ;;
13498 siemens)
13499 need_lib_prefix=no
6908b7d7
RC
13500 ;;
13501 motorola)
13502 need_lib_prefix=no
13503 need_version=no
13504 shlibpath_overrides_runpath=no
13505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13506 ;;
13507 esac
13508 ;;
13509
13510sysv4*MP*)
13511 if test -d /usr/nec ;then
13512 version_type=linux
13513 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13514 soname_spec='$libname.so.$major'
13515 shlibpath_var=LD_LIBRARY_PATH
13516 fi
13517 ;;
13518
13519uts4*)
13520 version_type=linux
13521 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13522 soname_spec='${libname}${release}.so$major'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 ;;
13525
13526*)
13527 dynamic_linker=no
13528 ;;
13529esac
13530echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13531echo "${ECHO_T}$dynamic_linker" >&6
13532test "$dynamic_linker" = no && can_build_shared=no
13533
13534if test "x$enable_dlopen" != xyes; then
13535 enable_dlopen=unknown
13536 enable_dlopen_self=unknown
13537 enable_dlopen_self_static=unknown
13538else
13539 lt_cv_dlopen=no
13540 lt_cv_dlopen_libs=
13541
13542 case $host_os in
13543 beos*)
13544 lt_cv_dlopen="load_add_on"
13545 lt_cv_dlopen_libs=
13546 lt_cv_dlopen_self=yes
13547 ;;
13548
13549 cygwin* | mingw* | pw32*)
13550 lt_cv_dlopen="LoadLibrary"
13551 lt_cv_dlopen_libs=
13552 ;;
13553
13554 *)
13555 echo "$as_me:$LINENO: checking for shl_load" >&5
13556echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13557if test "${ac_cv_func_shl_load+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13559else
13560 cat >conftest.$ac_ext <<_ACEOF
13561#line $LINENO "configure"
13562#include "confdefs.h"
13563/* System header to define __stub macros and hopefully few prototypes,
13564 which can conflict with char shl_load (); below. */
13565#include <assert.h>
13566/* Override any gcc2 internal prototype to avoid an error. */
13567#ifdef __cplusplus
13568extern "C"
13569#endif
13570/* We use char because int might match the return type of a gcc2
13571 builtin and then its argument prototype would still apply. */
13572char shl_load ();
13573char (*f) ();
13574
13575#ifdef F77_DUMMY_MAIN
13576# ifdef __cplusplus
13577 extern "C"
13578# endif
13579 int F77_DUMMY_MAIN() { return 1; }
13580#endif
13581int
13582main ()
13583{
13584/* The GNU C library defines this for functions which it implements
13585 to always fail with ENOSYS. Some functions are actually named
13586 something starting with __ and the normal name is an alias. */
13587#if defined (__stub_shl_load) || defined (__stub___shl_load)
13588choke me
13589#else
13590f = shl_load;
13591#endif
13592
13593 ;
13594 return 0;
13595}
13596_ACEOF
13597rm -f conftest.$ac_objext conftest$ac_exeext
13598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -s conftest$ac_exeext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_func_shl_load=yes
13610else
13611 echo "$as_me: failed program was:" >&5
13612cat conftest.$ac_ext >&5
13613ac_cv_func_shl_load=no
13614fi
13615rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13616fi
13617echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13618echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13619if test $ac_cv_func_shl_load = yes; then
13620 lt_cv_dlopen="shl_load"
13621else
13622 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13623echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13624if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626else
13627 ac_check_lib_save_LIBS=$LIBS
13628LIBS="-ldld $LIBS"
13629cat >conftest.$ac_ext <<_ACEOF
13630#line $LINENO "configure"
13631#include "confdefs.h"
13632
13633/* Override any gcc2 internal prototype to avoid an error. */
13634#ifdef __cplusplus
13635extern "C"
13636#endif
13637/* We use char because int might match the return type of a gcc2
13638 builtin and then its argument prototype would still apply. */
13639char shl_load ();
13640#ifdef F77_DUMMY_MAIN
13641# ifdef __cplusplus
13642 extern "C"
13643# endif
13644 int F77_DUMMY_MAIN() { return 1; }
13645#endif
13646int
13647main ()
13648{
13649shl_load ();
13650 ;
13651 return 0;
13652}
13653_ACEOF
13654rm -f conftest.$ac_objext conftest$ac_exeext
13655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13656 (eval $ac_link) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -s conftest$ac_exeext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 ac_cv_lib_dld_shl_load=yes
13667else
13668 echo "$as_me: failed program was:" >&5
13669cat conftest.$ac_ext >&5
13670ac_cv_lib_dld_shl_load=no
13671fi
13672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13673LIBS=$ac_check_lib_save_LIBS
13674fi
13675echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13676echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13677if test $ac_cv_lib_dld_shl_load = yes; then
13678 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13679else
13680 echo "$as_me:$LINENO: checking for dlopen" >&5
13681echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13682if test "${ac_cv_func_dlopen+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684else
13685 cat >conftest.$ac_ext <<_ACEOF
13686#line $LINENO "configure"
13687#include "confdefs.h"
13688/* System header to define __stub macros and hopefully few prototypes,
13689 which can conflict with char dlopen (); below. */
13690#include <assert.h>
13691/* Override any gcc2 internal prototype to avoid an error. */
13692#ifdef __cplusplus
13693extern "C"
13694#endif
13695/* We use char because int might match the return type of a gcc2
13696 builtin and then its argument prototype would still apply. */
13697char dlopen ();
13698char (*f) ();
13699
13700#ifdef F77_DUMMY_MAIN
13701# ifdef __cplusplus
13702 extern "C"
13703# endif
13704 int F77_DUMMY_MAIN() { return 1; }
13705#endif
13706int
13707main ()
13708{
13709/* The GNU C library defines this for functions which it implements
13710 to always fail with ENOSYS. Some functions are actually named
13711 something starting with __ and the normal name is an alias. */
13712#if defined (__stub_dlopen) || defined (__stub___dlopen)
13713choke me
13714#else
13715f = dlopen;
13716#endif
13717
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext conftest$ac_exeext
13723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13724 (eval $ac_link) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -s conftest$ac_exeext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_cv_func_dlopen=yes
13735else
13736 echo "$as_me: failed program was:" >&5
13737cat conftest.$ac_ext >&5
13738ac_cv_func_dlopen=no
13739fi
13740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13741fi
13742echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13743echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13744if test $ac_cv_func_dlopen = yes; then
13745 lt_cv_dlopen="dlopen"
13746else
13747 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13748echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13749if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751else
13752 ac_check_lib_save_LIBS=$LIBS
13753LIBS="-ldl $LIBS"
13754cat >conftest.$ac_ext <<_ACEOF
13755#line $LINENO "configure"
13756#include "confdefs.h"
13757
13758/* Override any gcc2 internal prototype to avoid an error. */
13759#ifdef __cplusplus
13760extern "C"
13761#endif
13762/* We use char because int might match the return type of a gcc2
13763 builtin and then its argument prototype would still apply. */
13764char dlopen ();
13765#ifdef F77_DUMMY_MAIN
13766# ifdef __cplusplus
13767 extern "C"
13768# endif
13769 int F77_DUMMY_MAIN() { return 1; }
13770#endif
13771int
13772main ()
13773{
13774dlopen ();
13775 ;
13776 return 0;
13777}
13778_ACEOF
13779rm -f conftest.$ac_objext conftest$ac_exeext
13780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781 (eval $ac_link) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -s conftest$ac_exeext'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 ac_cv_lib_dl_dlopen=yes
13792else
13793 echo "$as_me: failed program was:" >&5
13794cat conftest.$ac_ext >&5
13795ac_cv_lib_dl_dlopen=no
13796fi
13797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13798LIBS=$ac_check_lib_save_LIBS
13799fi
13800echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13801echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13802if test $ac_cv_lib_dl_dlopen = yes; then
13803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13804else
13805 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13806echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13807if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 ac_check_lib_save_LIBS=$LIBS
13811LIBS="-lsvld $LIBS"
13812cat >conftest.$ac_ext <<_ACEOF
13813#line $LINENO "configure"
13814#include "confdefs.h"
13815
13816/* Override any gcc2 internal prototype to avoid an error. */
13817#ifdef __cplusplus
13818extern "C"
13819#endif
13820/* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13822char dlopen ();
13823#ifdef F77_DUMMY_MAIN
13824# ifdef __cplusplus
13825 extern "C"
13826# endif
13827 int F77_DUMMY_MAIN() { return 1; }
13828#endif
13829int
13830main ()
13831{
13832dlopen ();
13833 ;
13834 return 0;
13835}
13836_ACEOF
13837rm -f conftest.$ac_objext conftest$ac_exeext
13838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13839 (eval $ac_link) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -s conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_cv_lib_svld_dlopen=yes
13850else
13851 echo "$as_me: failed program was:" >&5
13852cat conftest.$ac_ext >&5
13853ac_cv_lib_svld_dlopen=no
13854fi
13855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13856LIBS=$ac_check_lib_save_LIBS
13857fi
13858echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13859echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13860if test $ac_cv_lib_svld_dlopen = yes; then
13861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13862else
13863 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13864echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13865if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867else
13868 ac_check_lib_save_LIBS=$LIBS
13869LIBS="-ldld $LIBS"
13870cat >conftest.$ac_ext <<_ACEOF
13871#line $LINENO "configure"
13872#include "confdefs.h"
13873
13874/* Override any gcc2 internal prototype to avoid an error. */
13875#ifdef __cplusplus
13876extern "C"
13877#endif
13878/* We use char because int might match the return type of a gcc2
13879 builtin and then its argument prototype would still apply. */
13880char dld_link ();
13881#ifdef F77_DUMMY_MAIN
13882# ifdef __cplusplus
13883 extern "C"
13884# endif
13885 int F77_DUMMY_MAIN() { return 1; }
13886#endif
13887int
13888main ()
13889{
13890dld_link ();
13891 ;
13892 return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext conftest$ac_exeext
13896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_cv_lib_dld_dld_link=yes
13908else
13909 echo "$as_me: failed program was:" >&5
13910cat conftest.$ac_ext >&5
13911ac_cv_lib_dld_dld_link=no
13912fi
13913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13914LIBS=$ac_check_lib_save_LIBS
13915fi
13916echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13917echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13918if test $ac_cv_lib_dld_dld_link = yes; then
13919 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13920fi
13921
13922
13923fi
13924
13925
13926fi
13927
13928
13929fi
13930
13931
13932fi
13933
13934
13935fi
13936
13937 ;;
13938 esac
13939
13940 if test "x$lt_cv_dlopen" != xno; then
13941 enable_dlopen=yes
13942 else
13943 enable_dlopen=no
13944 fi
13945
13946 case $lt_cv_dlopen in
13947 dlopen)
13948 save_CPPFLAGS="$CPPFLAGS"
13949 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13950
13951 save_LDFLAGS="$LDFLAGS"
13952 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13953
13954 save_LIBS="$LIBS"
13955 LIBS="$lt_cv_dlopen_libs $LIBS"
13956
13957 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13958echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13959if test "${lt_cv_dlopen_self+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961else
13962 if test "$cross_compiling" = yes; then :
13963 lt_cv_dlopen_self=cross
13964else
13965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13966 lt_status=$lt_dlunknown
13967 cat > conftest.$ac_ext <<EOF
aa1e3b4d 13968#line 13968 "configure"
6908b7d7
RC
13969#include "confdefs.h"
13970
13971#if HAVE_DLFCN_H
13972#include <dlfcn.h>
13973#endif
13974
13975#include <stdio.h>
13976
13977#ifdef RTLD_GLOBAL
13978# define LT_DLGLOBAL RTLD_GLOBAL
13979#else
13980# ifdef DL_GLOBAL
13981# define LT_DLGLOBAL DL_GLOBAL
13982# else
13983# define LT_DLGLOBAL 0
13984# endif
13985#endif
13986
13987/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13988 find out it does not work in some platform. */
13989#ifndef LT_DLLAZY_OR_NOW
13990# ifdef RTLD_LAZY
13991# define LT_DLLAZY_OR_NOW RTLD_LAZY
13992# else
13993# ifdef DL_LAZY
13994# define LT_DLLAZY_OR_NOW DL_LAZY
13995# else
13996# ifdef RTLD_NOW
13997# define LT_DLLAZY_OR_NOW RTLD_NOW
13998# else
13999# ifdef DL_NOW
14000# define LT_DLLAZY_OR_NOW DL_NOW
14001# else
14002# define LT_DLLAZY_OR_NOW 0
14003# endif
14004# endif
14005# endif
14006# endif
14007#endif
14008
14009#ifdef __cplusplus
14010extern "C" void exit (int);
14011#endif
14012
14013void fnord() { int i=42;}
14014int main ()
14015{
14016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14017 int status = $lt_dlunknown;
14018
14019 if (self)
14020 {
14021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14023 /* dlclose (self); */
14024 }
14025
14026 exit (status);
14027}
14028EOF
14029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030 (eval $ac_link) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14034 (./conftest; exit; ) 2>/dev/null
14035 lt_status=$?
14036 case x$lt_status in
14037 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14038 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14039 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14040 esac
14041 else :
14042 # compilation failed
14043 lt_cv_dlopen_self=no
14044 fi
14045fi
14046rm -fr conftest*
14047
14048
14049fi
14050echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14051echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14052
14053 if test "x$lt_cv_dlopen_self" = xyes; then
14054 LDFLAGS="$LDFLAGS $link_static_flag"
14055 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14056echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14057if test "${lt_cv_dlopen_self_static+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059else
14060 if test "$cross_compiling" = yes; then :
14061 lt_cv_dlopen_self_static=cross
14062else
14063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14064 lt_status=$lt_dlunknown
14065 cat > conftest.$ac_ext <<EOF
aa1e3b4d 14066#line 14066 "configure"
6908b7d7
RC
14067#include "confdefs.h"
14068
14069#if HAVE_DLFCN_H
14070#include <dlfcn.h>
14071#endif
14072
14073#include <stdio.h>
14074
14075#ifdef RTLD_GLOBAL
14076# define LT_DLGLOBAL RTLD_GLOBAL
14077#else
14078# ifdef DL_GLOBAL
14079# define LT_DLGLOBAL DL_GLOBAL
14080# else
14081# define LT_DLGLOBAL 0
14082# endif
14083#endif
14084
14085/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14086 find out it does not work in some platform. */
14087#ifndef LT_DLLAZY_OR_NOW
14088# ifdef RTLD_LAZY
14089# define LT_DLLAZY_OR_NOW RTLD_LAZY
14090# else
14091# ifdef DL_LAZY
14092# define LT_DLLAZY_OR_NOW DL_LAZY
14093# else
14094# ifdef RTLD_NOW
14095# define LT_DLLAZY_OR_NOW RTLD_NOW
14096# else
14097# ifdef DL_NOW
14098# define LT_DLLAZY_OR_NOW DL_NOW
14099# else
14100# define LT_DLLAZY_OR_NOW 0
14101# endif
14102# endif
14103# endif
14104# endif
14105#endif
14106
14107#ifdef __cplusplus
14108extern "C" void exit (int);
14109#endif
14110
14111void fnord() { int i=42;}
14112int main ()
14113{
14114 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14115 int status = $lt_dlunknown;
14116
14117 if (self)
14118 {
14119 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14120 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14121 /* dlclose (self); */
14122 }
14123
14124 exit (status);
14125}
14126EOF
14127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14128 (eval $ac_link) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14132 (./conftest; exit; ) 2>/dev/null
14133 lt_status=$?
14134 case x$lt_status in
14135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14137 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14138 esac
14139 else :
14140 # compilation failed
14141 lt_cv_dlopen_self_static=no
14142 fi
14143fi
14144rm -fr conftest*
14145
14146
14147fi
14148echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14149echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14150 fi
14151
14152 CPPFLAGS="$save_CPPFLAGS"
14153 LDFLAGS="$save_LDFLAGS"
14154 LIBS="$save_LIBS"
14155 ;;
14156 esac
14157
14158 case $lt_cv_dlopen_self in
14159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14160 *) enable_dlopen_self=unknown ;;
14161 esac
14162
14163 case $lt_cv_dlopen_self_static in
14164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14165 *) enable_dlopen_self_static=unknown ;;
14166 esac
14167fi
14168
14169
14170# The else clause should only fire when bootstrapping the
14171# libtool distribution, otherwise you forgot to ship ltmain.sh
14172# with your package, and you will get complaints that there are
14173# no rules to generate ltmain.sh.
14174if test -f "$ltmain"; then
14175 # Now quote all the things that may contain metacharacters while being
14176 # careful not to overquote the AC_SUBSTed values. We take copies of the
14177 # variables and quote the copies for generation of the libtool script.
14178 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14179 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14180 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14181 deplibs_check_method reload_flag reload_cmds need_locks \
14182 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14183 lt_cv_sys_global_symbol_to_c_name_address \
14184 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14185 old_postinstall_cmds old_postuninstall_cmds \
14186 compiler_GCJ \
14187 CC_GCJ \
14188 LD_GCJ \
14189 lt_prog_compiler_wl_GCJ \
14190 lt_prog_compiler_pic_GCJ \
14191 lt_prog_compiler_static_GCJ \
14192 lt_prog_compiler_no_builtin_flag_GCJ \
14193 export_dynamic_flag_spec_GCJ \
14194 thread_safe_flag_spec_GCJ \
14195 whole_archive_flag_spec_GCJ \
14196 old_archive_cmds_GCJ \
14197 old_archive_from_new_cmds_GCJ \
14198 predep_objects_GCJ \
14199 postdep_objects_GCJ \
14200 predeps_GCJ \
14201 postdeps_GCJ \
14202 compiler_lib_search_path_GCJ \
14203 archive_cmds_GCJ \
14204 archive_expsym_cmds_GCJ \
14205 postinstall_cmds_GCJ \
14206 postuninstall_cmds_GCJ \
14207 old_archive_from_expsyms_cmds_GCJ \
14208 allow_undefined_flag_GCJ \
14209 no_undefined_flag_GCJ \
14210 export_symbols_cmds_GCJ \
14211 hardcode_libdir_flag_spec_GCJ \
14212 hardcode_libdir_separator_GCJ \
14213 lt_cv_prog_compiler_c_o_GCJ \
14214 exclude_expsyms_GCJ \
14215 include_expsyms_GCJ; do
14216
14217 case $var in
14218 old_archive_cmds_GCJ | \
14219 old_archive_from_new_cmds_GCJ | \
14220 archive_cmds_GCJ | \
14221 archive_expsym_cmds_GCJ | \
14222 old_archive_from_expsyms_cmds_GCJ | \
14223 export_symbols_cmds_GCJ | \
14224 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14225 postinstall_cmds | postuninstall_cmds | \
14226 old_postinstall_cmds | old_postuninstall_cmds | \
14227 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14228 # Double-quote double-evaled strings.
14229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14230 ;;
14231 *)
14232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14233 ;;
14234 esac
14235 done
14236
14237 case $lt_echo in
14238 *'\$0 --fallback-echo"')
14239 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14240 ;;
14241 esac
14242
14243cfgfile="$ofile"
14244
14245 cat <<__EOF__ >> "$cfgfile"
14246# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14247
14248# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14249
14250# Shell to use when invoking shell scripts.
14251SHELL=$lt_SHELL
14252
14253# Whether or not to build shared libraries.
14254build_libtool_libs=$enable_shared
14255
14256# Whether or not to build static libraries.
14257build_old_libs=$enable_static
14258
14259# Whether or not to add -lc for building shared libraries.
14260build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14261
14262# Whether or not to optimize for fast installation.
14263fast_install=$enable_fast_install
14264
14265# The host system.
14266host_alias=$host_alias
14267host=$host
14268
14269# An echo program that does not interpret backslashes.
14270echo=$lt_echo
14271
14272# The archiver.
14273AR=$lt_AR
14274AR_FLAGS=$lt_AR_FLAGS
14275
14276# A C compiler.
14277LTCC=$lt_LTCC
14278
14279# A language-specific compiler.
14280CC=$lt_compiler_GCJ
14281
14282# Is the compiler the GNU C compiler?
14283with_gcc=$GCC_GCJ
14284
14285# The linker used to build libraries.
14286LD=$lt_LD_GCJ
14287
14288# Whether we need hard or soft links.
14289LN_S=$lt_LN_S
14290
14291# A BSD-compatible nm program.
14292NM=$lt_NM
14293
14294# A sed program that does not truncate output.
14295SED=$lt_SED
14296
14297# A symbol stripping program
14298STRIP=$STRIP
14299
14300# Used to examine libraries when file_magic_cmd begins "file"
14301MAGIC_CMD=$MAGIC_CMD
14302
14303# Used on cygwin: DLL creation program.
14304DLLTOOL="$DLLTOOL"
14305
14306# Used on cygwin: object dumper.
14307OBJDUMP="$OBJDUMP"
14308
14309# Used on cygwin: assembler.
14310AS="$AS"
14311
14312# The name of the directory that contains temporary libtool files.
14313objdir=$objdir
14314
14315# How to create reloadable object files.
14316reload_flag=$lt_reload_flag
14317reload_cmds=$lt_reload_cmds
14318
14319# How to pass a linker flag through the compiler.
14320wl=$lt_lt_prog_compiler_wl_GCJ
14321
14322# Object file suffix (normally "o").
14323objext="$ac_objext"
14324
14325# Old archive suffix (normally "a").
14326libext="$libext"
14327
14328# Executable file suffix (normally "").
14329exeext="$exeext"
14330
14331# Additional compiler flags for building library objects.
14332pic_flag=$lt_lt_prog_compiler_pic_GCJ
14333pic_mode=$pic_mode
14334
14335# What is the maximum length of a command?
14336max_cmd_len=$lt_cv_sys_max_cmd_len
14337
14338# Does compiler simultaneously support -c and -o options?
14339compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14340
14341# Must we lock files when doing compilation ?
14342need_locks=$lt_need_locks
14343
14344# Do we need the lib prefix for modules?
14345need_lib_prefix=$need_lib_prefix
14346
14347# Do we need a version for libraries?
14348need_version=$need_version
14349
14350# Whether dlopen is supported.
14351dlopen_support=$enable_dlopen
14352
14353# Whether dlopen of programs is supported.
14354dlopen_self=$enable_dlopen_self
14355
14356# Whether dlopen of statically linked programs is supported.
14357dlopen_self_static=$enable_dlopen_self_static
14358
14359# Compiler flag to prevent dynamic linking.
14360link_static_flag=$lt_lt_prog_compiler_static_GCJ
14361
14362# Compiler flag to turn off builtin functions.
14363no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14364
14365# Compiler flag to allow reflexive dlopens.
14366export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14367
14368# Compiler flag to generate shared objects directly from archives.
14369whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14370
14371# Compiler flag to generate thread-safe objects.
14372thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14373
14374# Library versioning type.
14375version_type=$version_type
14376
14377# Format of library name prefix.
14378libname_spec=$lt_libname_spec
14379
14380# List of archive names. First name is the real one, the rest are links.
14381# The last name is the one that the linker finds with -lNAME.
14382library_names_spec=$lt_library_names_spec
14383
14384# The coded name of the library, if different from the real name.
14385soname_spec=$lt_soname_spec
14386
14387# Commands used to build and install an old-style archive.
14388RANLIB=$lt_RANLIB
14389old_archive_cmds=$lt_old_archive_cmds_GCJ
14390old_postinstall_cmds=$lt_old_postinstall_cmds
14391old_postuninstall_cmds=$lt_old_postuninstall_cmds
14392
14393# Create an old-style archive from a shared archive.
14394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
14395
14396# Create a temporary old-style archive to link instead of a shared archive.
14397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
14398
14399# Commands used to build and install a shared archive.
14400archive_cmds=$lt_archive_cmds_GCJ
14401archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
14402postinstall_cmds=$lt_postinstall_cmds
14403postuninstall_cmds=$lt_postuninstall_cmds
14404
14405# Commands to strip libraries.
14406old_striplib=$lt_old_striplib
14407striplib=$lt_striplib
14408
14409# Dependencies to place before the objects being linked to create a
14410# shared library.
14411predep_objects=$lt_predep_objects_GCJ
14412
14413# Dependencies to place after the objects being linked to create a
14414# shared library.
14415postdep_objects=$lt_postdep_objects_GCJ
14416
14417# Dependencies to place before the objects being linked to create a
14418# shared library.
14419predeps=$lt_predeps_GCJ
14420
14421# Dependencies to place after the objects being linked to create a
14422# shared library.
14423postdeps=$lt_postdeps_GCJ
14424
14425# The library search path used internally by the compiler when linking
14426# a shared library.
14427compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
14428
14429# Method to check whether dependent libraries are shared objects.
14430deplibs_check_method=$lt_deplibs_check_method
14431
14432# Command to use when deplibs_check_method == file_magic.
14433file_magic_cmd=$lt_file_magic_cmd
14434
14435# Flag that allows shared libraries with undefined symbols to be built.
14436allow_undefined_flag=$lt_allow_undefined_flag_GCJ
14437
14438# Flag that forces no undefined symbols.
14439no_undefined_flag=$lt_no_undefined_flag_GCJ
14440
14441# Commands used to finish a libtool library installation in a directory.
14442finish_cmds=$lt_finish_cmds
14443
14444# Same as above, but a single script fragment to be evaled but not shown.
14445finish_eval=$lt_finish_eval
14446
14447# Take the output of nm and produce a listing of raw symbols and C names.
14448global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14449
14450# Transform the output of nm in a proper C declaration
14451global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14452
14453# Transform the output of nm in a C name address pair
14454global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14455
14456# This is the shared library runtime path variable.
14457runpath_var=$runpath_var
14458
14459# This is the shared library path variable.
14460shlibpath_var=$shlibpath_var
14461
14462# Is shlibpath searched before the hard-coded library search path?
14463shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14464
14465# How to hardcode a shared library path into an executable.
14466hardcode_action=$hardcode_action_GCJ
14467
14468# Whether we should hardcode library paths into libraries.
14469hardcode_into_libs=$hardcode_into_libs
14470
14471# Flag to hardcode \$libdir into a binary during linking.
14472# This must work even if \$libdir does not exist.
14473hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
14474
14475# Whether we need a single -rpath flag with a separated argument.
14476hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
14477
14478# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14479# resulting binary.
14480hardcode_direct=$hardcode_direct_GCJ
14481
14482# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14483# resulting binary.
14484hardcode_minus_L=$hardcode_minus_L_GCJ
14485
14486# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14487# the resulting binary.
14488hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
14489
14490# Variables whose values should be saved in libtool wrapper scripts and
14491# restored at relink time.
14492variables_saved_for_relink="$variables_saved_for_relink"
14493
14494# Whether libtool must link a program against all its dependency libraries.
14495link_all_deplibs=$link_all_deplibs_GCJ
14496
14497# Compile-time system search path for libraries
14498sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14499
14500# Run-time system search path for libraries
14501sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14502
14503# Fix the shell variable \$srcfile for the compiler.
14504fix_srcfile_path="$fix_srcfile_path_GCJ"
14505
14506# Set to yes if exported symbols are required.
14507always_export_symbols=$always_export_symbols_GCJ
14508
14509# The commands to list exported symbols.
14510export_symbols_cmds=$lt_export_symbols_cmds_GCJ
14511
14512# The commands to extract the exported symbol list from a shared archive.
14513extract_expsyms_cmds=$lt_extract_expsyms_cmds
14514
14515# Symbols that should not be listed in the preloaded symbols.
14516exclude_expsyms=$lt_exclude_expsyms_GCJ
14517
14518# Symbols that must always be exported.
14519include_expsyms=$lt_include_expsyms_GCJ
14520
14521# ### END LIBTOOL TAG CONFIG: $tagname
14522
14523__EOF__
14524
14525
14526else
14527 # If there is no Makefile yet, we rely on a make rule to execute
14528 # `config.status --recheck' to rerun these tests and create the
14529 # libtool script then.
14530 test -f Makefile && make "$ltmain"
14531fi
14532
14533
14534ac_ext=cc
14535ac_cpp='$CXXCPP $CPPFLAGS'
14536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14539
14540CC="$lt_save_CC"
14541
14542 ;;
14543
14544 RC)
14545
14546
14547
14548# Source file extension for RC test sources.
14549ac_ext=rc
14550
14551# Object file extension for compiled RC test sources.
14552objext=o
14553objext_RC=$objext
14554
14555# Code to be used in simple compile tests
14556lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14557
14558# Code to be used in simple link tests
14559lt_simple_link_test_code="$lt_simple_compile_test_code"
14560
14561# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14562
14563# If no C compiler was specified, use CC.
14564LTCC=${LTCC-"$CC"}
14565
14566# Allow CC to be a program name with arguments.
14567set dummy $CC
14568compiler="$2"
14569
14570
14571# Allow CC to be a program name with arguments.
14572lt_save_CC="$CC"
14573CC=${RC-"windres"}
14574set dummy $CC
14575compiler="$2"
14576compiler_RC=$CC
14577lt_cv_prog_compiler_c_o_RC=yes
14578
14579# The else clause should only fire when bootstrapping the
14580# libtool distribution, otherwise you forgot to ship ltmain.sh
14581# with your package, and you will get complaints that there are
14582# no rules to generate ltmain.sh.
14583if test -f "$ltmain"; then
14584 # Now quote all the things that may contain metacharacters while being
14585 # careful not to overquote the AC_SUBSTed values. We take copies of the
14586 # variables and quote the copies for generation of the libtool script.
14587 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14588 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14589 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14590 deplibs_check_method reload_flag reload_cmds need_locks \
14591 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14592 lt_cv_sys_global_symbol_to_c_name_address \
14593 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14594 old_postinstall_cmds old_postuninstall_cmds \
14595 compiler_RC \
14596 CC_RC \
14597 LD_RC \
14598 lt_prog_compiler_wl_RC \
14599 lt_prog_compiler_pic_RC \
14600 lt_prog_compiler_static_RC \
14601 lt_prog_compiler_no_builtin_flag_RC \
14602 export_dynamic_flag_spec_RC \
14603 thread_safe_flag_spec_RC \
14604 whole_archive_flag_spec_RC \
14605 old_archive_cmds_RC \
14606 old_archive_from_new_cmds_RC \
14607 predep_objects_RC \
14608 postdep_objects_RC \
14609 predeps_RC \
14610 postdeps_RC \
14611 compiler_lib_search_path_RC \
14612 archive_cmds_RC \
14613 archive_expsym_cmds_RC \
14614 postinstall_cmds_RC \
14615 postuninstall_cmds_RC \
14616 old_archive_from_expsyms_cmds_RC \
14617 allow_undefined_flag_RC \
14618 no_undefined_flag_RC \
14619 export_symbols_cmds_RC \
14620 hardcode_libdir_flag_spec_RC \
14621 hardcode_libdir_separator_RC \
14622 lt_cv_prog_compiler_c_o_RC \
14623 exclude_expsyms_RC \
14624 include_expsyms_RC; do
14625
14626 case $var in
14627 old_archive_cmds_RC | \
14628 old_archive_from_new_cmds_RC | \
14629 archive_cmds_RC | \
14630 archive_expsym_cmds_RC | \
14631 old_archive_from_expsyms_cmds_RC | \
14632 export_symbols_cmds_RC | \
14633 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14634 postinstall_cmds | postuninstall_cmds | \
14635 old_postinstall_cmds | old_postuninstall_cmds | \
14636 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14637 # Double-quote double-evaled strings.
14638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14639 ;;
14640 *)
14641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14642 ;;
14643 esac
14644 done
14645
14646 case $lt_echo in
14647 *'\$0 --fallback-echo"')
14648 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14649 ;;
14650 esac
14651
14652cfgfile="$ofile"
14653
14654 cat <<__EOF__ >> "$cfgfile"
14655# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14656
14657# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14658
14659# Shell to use when invoking shell scripts.
14660SHELL=$lt_SHELL
14661
14662# Whether or not to build shared libraries.
14663build_libtool_libs=$enable_shared
14664
14665# Whether or not to build static libraries.
14666build_old_libs=$enable_static
14667
14668# Whether or not to add -lc for building shared libraries.
14669build_libtool_need_lc=$archive_cmds_need_lc_RC
14670
14671# Whether or not to optimize for fast installation.
14672fast_install=$enable_fast_install
14673
14674# The host system.
14675host_alias=$host_alias
14676host=$host
14677
14678# An echo program that does not interpret backslashes.
14679echo=$lt_echo
14680
14681# The archiver.
14682AR=$lt_AR
14683AR_FLAGS=$lt_AR_FLAGS
14684
14685# A C compiler.
14686LTCC=$lt_LTCC
14687
14688# A language-specific compiler.
14689CC=$lt_compiler_RC
14690
14691# Is the compiler the GNU C compiler?
14692with_gcc=$GCC_RC
14693
14694# The linker used to build libraries.
14695LD=$lt_LD_RC
14696
14697# Whether we need hard or soft links.
14698LN_S=$lt_LN_S
14699
14700# A BSD-compatible nm program.
14701NM=$lt_NM
14702
14703# A sed program that does not truncate output.
14704SED=$lt_SED
14705
14706# A symbol stripping program
14707STRIP=$STRIP
14708
14709# Used to examine libraries when file_magic_cmd begins "file"
14710MAGIC_CMD=$MAGIC_CMD
14711
14712# Used on cygwin: DLL creation program.
14713DLLTOOL="$DLLTOOL"
14714
14715# Used on cygwin: object dumper.
14716OBJDUMP="$OBJDUMP"
14717
14718# Used on cygwin: assembler.
14719AS="$AS"
14720
14721# The name of the directory that contains temporary libtool files.
14722objdir=$objdir
14723
14724# How to create reloadable object files.
14725reload_flag=$lt_reload_flag
14726reload_cmds=$lt_reload_cmds
14727
14728# How to pass a linker flag through the compiler.
14729wl=$lt_lt_prog_compiler_wl_RC
14730
14731# Object file suffix (normally "o").
14732objext="$ac_objext"
14733
14734# Old archive suffix (normally "a").
14735libext="$libext"
14736
14737# Executable file suffix (normally "").
14738exeext="$exeext"
14739
14740# Additional compiler flags for building library objects.
14741pic_flag=$lt_lt_prog_compiler_pic_RC
14742pic_mode=$pic_mode
14743
14744# What is the maximum length of a command?
14745max_cmd_len=$lt_cv_sys_max_cmd_len
14746
14747# Does compiler simultaneously support -c and -o options?
14748compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14749
14750# Must we lock files when doing compilation ?
14751need_locks=$lt_need_locks
14752
14753# Do we need the lib prefix for modules?
14754need_lib_prefix=$need_lib_prefix
14755
14756# Do we need a version for libraries?
14757need_version=$need_version
14758
14759# Whether dlopen is supported.
14760dlopen_support=$enable_dlopen
14761
14762# Whether dlopen of programs is supported.
14763dlopen_self=$enable_dlopen_self
14764
14765# Whether dlopen of statically linked programs is supported.
14766dlopen_self_static=$enable_dlopen_self_static
14767
14768# Compiler flag to prevent dynamic linking.
14769link_static_flag=$lt_lt_prog_compiler_static_RC
14770
14771# Compiler flag to turn off builtin functions.
14772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14773
14774# Compiler flag to allow reflexive dlopens.
14775export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14776
14777# Compiler flag to generate shared objects directly from archives.
14778whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14779
14780# Compiler flag to generate thread-safe objects.
14781thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14782
14783# Library versioning type.
14784version_type=$version_type
14785
14786# Format of library name prefix.
14787libname_spec=$lt_libname_spec
14788
14789# List of archive names. First name is the real one, the rest are links.
14790# The last name is the one that the linker finds with -lNAME.
14791library_names_spec=$lt_library_names_spec
14792
14793# The coded name of the library, if different from the real name.
14794soname_spec=$lt_soname_spec
14795
14796# Commands used to build and install an old-style archive.
14797RANLIB=$lt_RANLIB
14798old_archive_cmds=$lt_old_archive_cmds_RC
14799old_postinstall_cmds=$lt_old_postinstall_cmds
14800old_postuninstall_cmds=$lt_old_postuninstall_cmds
14801
14802# Create an old-style archive from a shared archive.
14803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14804
14805# Create a temporary old-style archive to link instead of a shared archive.
14806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14807
14808# Commands used to build and install a shared archive.
14809archive_cmds=$lt_archive_cmds_RC
14810archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14811postinstall_cmds=$lt_postinstall_cmds
14812postuninstall_cmds=$lt_postuninstall_cmds
14813
14814# Commands to strip libraries.
14815old_striplib=$lt_old_striplib
14816striplib=$lt_striplib
14817
14818# Dependencies to place before the objects being linked to create a
14819# shared library.
14820predep_objects=$lt_predep_objects_RC
14821
14822# Dependencies to place after the objects being linked to create a
14823# shared library.
14824postdep_objects=$lt_postdep_objects_RC
14825
14826# Dependencies to place before the objects being linked to create a
14827# shared library.
14828predeps=$lt_predeps_RC
14829
14830# Dependencies to place after the objects being linked to create a
14831# shared library.
14832postdeps=$lt_postdeps_RC
14833
14834# The library search path used internally by the compiler when linking
14835# a shared library.
14836compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14837
14838# Method to check whether dependent libraries are shared objects.
14839deplibs_check_method=$lt_deplibs_check_method
14840
14841# Command to use when deplibs_check_method == file_magic.
14842file_magic_cmd=$lt_file_magic_cmd
14843
14844# Flag that allows shared libraries with undefined symbols to be built.
14845allow_undefined_flag=$lt_allow_undefined_flag_RC
14846
14847# Flag that forces no undefined symbols.
14848no_undefined_flag=$lt_no_undefined_flag_RC
14849
14850# Commands used to finish a libtool library installation in a directory.
14851finish_cmds=$lt_finish_cmds
14852
14853# Same as above, but a single script fragment to be evaled but not shown.
14854finish_eval=$lt_finish_eval
14855
14856# Take the output of nm and produce a listing of raw symbols and C names.
14857global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14858
14859# Transform the output of nm in a proper C declaration
14860global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14861
14862# Transform the output of nm in a C name address pair
14863global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14864
14865# This is the shared library runtime path variable.
14866runpath_var=$runpath_var
14867
14868# This is the shared library path variable.
14869shlibpath_var=$shlibpath_var
14870
14871# Is shlibpath searched before the hard-coded library search path?
14872shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14873
14874# How to hardcode a shared library path into an executable.
14875hardcode_action=$hardcode_action_RC
14876
14877# Whether we should hardcode library paths into libraries.
14878hardcode_into_libs=$hardcode_into_libs
14879
14880# Flag to hardcode \$libdir into a binary during linking.
14881# This must work even if \$libdir does not exist.
14882hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14883
14884# Whether we need a single -rpath flag with a separated argument.
14885hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14886
14887# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14888# resulting binary.
14889hardcode_direct=$hardcode_direct_RC
14890
14891# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14892# resulting binary.
14893hardcode_minus_L=$hardcode_minus_L_RC
14894
14895# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14896# the resulting binary.
14897hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14898
14899# Variables whose values should be saved in libtool wrapper scripts and
14900# restored at relink time.
14901variables_saved_for_relink="$variables_saved_for_relink"
14902
14903# Whether libtool must link a program against all its dependency libraries.
14904link_all_deplibs=$link_all_deplibs_RC
14905
14906# Compile-time system search path for libraries
14907sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14908
14909# Run-time system search path for libraries
14910sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14911
14912# Fix the shell variable \$srcfile for the compiler.
14913fix_srcfile_path="$fix_srcfile_path_RC"
14914
14915# Set to yes if exported symbols are required.
14916always_export_symbols=$always_export_symbols_RC
14917
14918# The commands to list exported symbols.
14919export_symbols_cmds=$lt_export_symbols_cmds_RC
14920
14921# The commands to extract the exported symbol list from a shared archive.
14922extract_expsyms_cmds=$lt_extract_expsyms_cmds
14923
14924# Symbols that should not be listed in the preloaded symbols.
14925exclude_expsyms=$lt_exclude_expsyms_RC
14926
14927# Symbols that must always be exported.
14928include_expsyms=$lt_include_expsyms_RC
14929
14930# ### END LIBTOOL TAG CONFIG: $tagname
14931
14932__EOF__
14933
14934
14935else
14936 # If there is no Makefile yet, we rely on a make rule to execute
14937 # `config.status --recheck' to rerun these tests and create the
14938 # libtool script then.
14939 test -f Makefile && make "$ltmain"
14940fi
14941
14942
14943ac_ext=cc
14944ac_cpp='$CXXCPP $CPPFLAGS'
14945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14948
14949CC="$lt_save_CC"
14950
14951 ;;
14952
14953 *)
14954 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14955echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14956 { (exit 1); exit 1; }; }
14957 ;;
14958 esac
14959
14960 # Append the new tag name to the list of available tags.
14961 available_tags="$available_tags $tagname"
14962 fi
14963 done
14964 IFS="$lt_save_ifs"
14965
14966 # Now substitute the updated list of available tags.
14967 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14968 mv "${ofile}T" "$ofile"
14969 chmod +x "$ofile"
14970 else
14971 rm -f "${ofile}T"
14972 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14973echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14974 { (exit 1); exit 1; }; }
14975 fi
14976fi
14977
14978
14979
14980# This can be used to rebuild libtool when needed
14981LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
14982
14983# Always use our own libtool.
14984LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14985
14986# Prevent multiple expansion
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000if test -n "$ac_tool_prefix"; then
15001 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15002set dummy ${ac_tool_prefix}windres; ac_word=$2
15003echo "$as_me:$LINENO: checking for $ac_word" >&5
15004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15005if test "${ac_cv_prog_WINDRES+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007else
15008 if test -n "$WINDRES"; then
15009 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15010else
15011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15012for as_dir in $PATH
15013do
15014 IFS=$as_save_IFS
15015 test -z "$as_dir" && as_dir=.
15016 for ac_exec_ext in '' $ac_executable_extensions; do
15017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15018 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15020 break 2
15021 fi
15022done
15023done
15024
15025fi
15026fi
15027WINDRES=$ac_cv_prog_WINDRES
15028if test -n "$WINDRES"; then
15029 echo "$as_me:$LINENO: result: $WINDRES" >&5
15030echo "${ECHO_T}$WINDRES" >&6
15031else
15032 echo "$as_me:$LINENO: result: no" >&5
15033echo "${ECHO_T}no" >&6
15034fi
15035
15036fi
15037if test -z "$ac_cv_prog_WINDRES"; then
15038 ac_ct_WINDRES=$WINDRES
15039 # Extract the first word of "windres", so it can be a program name with args.
15040set dummy windres; ac_word=$2
15041echo "$as_me:$LINENO: checking for $ac_word" >&5
15042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15043if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045else
15046 if test -n "$ac_ct_WINDRES"; then
15047 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15048else
15049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050for as_dir in $PATH
15051do
15052 IFS=$as_save_IFS
15053 test -z "$as_dir" && as_dir=.
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_ac_ct_WINDRES="windres"
15057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15058 break 2
15059 fi
15060done
15061done
15062
15063 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="windres"
15064fi
15065fi
15066ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15067if test -n "$ac_ct_WINDRES"; then
15068 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15069echo "${ECHO_T}$ac_ct_WINDRES" >&6
15070else
15071 echo "$as_me:$LINENO: result: no" >&5
15072echo "${ECHO_T}no" >&6
15073fi
15074
15075 WINDRES=$ac_ct_WINDRES
15076else
15077 WINDRES="$ac_cv_prog_WINDRES"
15078fi
15079
15080
15081
15082
45e01f23
RC
15083echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
15084echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
15085if test "${ac_cv_lib_mingw32_main+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087else
15088 ac_check_lib_save_LIBS=$LIBS
15089LIBS="-lmingw32 $LIBS"
15090cat >conftest.$ac_ext <<_ACEOF
15091#line $LINENO "configure"
15092#include "confdefs.h"
15093
15094
15095#ifdef F77_DUMMY_MAIN
15096# ifdef __cplusplus
15097 extern "C"
15098# endif
15099 int F77_DUMMY_MAIN() { return 1; }
15100#endif
15101int
15102main ()
15103{
15104main ();
15105 ;
15106 return 0;
15107}
15108_ACEOF
15109rm -f conftest.$ac_objext conftest$ac_exeext
15110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111 (eval $ac_link) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -s conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_lib_mingw32_main=yes
15122else
15123 echo "$as_me: failed program was:" >&5
15124cat conftest.$ac_ext >&5
15125ac_cv_lib_mingw32_main=no
15126fi
15127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15128LIBS=$ac_check_lib_save_LIBS
15129fi
15130echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
15131echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
15132if test $ac_cv_lib_mingw32_main = yes; then
15133 cat >>confdefs.h <<_ACEOF
15134#define HAVE_LIBMINGW32 1
15135_ACEOF
15136
15137 LIBS="-lmingw32 $LIBS"
15138
15139fi
15140
15141
15142
19911586
RC
15143
15144
15145
15146
15147for ac_header in alloca.h \
15148 errno.h \
15149 string \
15150 string.h
45e01f23
RC
15151do
15152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19911586
RC
15153if eval "test \"\${$as_ac_Header+set}\" = set"; then
15154 echo "$as_me:$LINENO: checking for $ac_header" >&5
45e01f23
RC
15155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15156if eval "test \"\${$as_ac_Header+set}\" = set"; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
19911586
RC
15158fi
15159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45e01f23 15161else
19911586
RC
15162 # Is the header compilable?
15163echo "$as_me:$LINENO: checking $ac_header usability" >&5
15164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15165cat >conftest.$ac_ext <<_ACEOF
45e01f23
RC
15166#line $LINENO "configure"
15167#include "confdefs.h"
19911586 15168$ac_includes_default
45e01f23
RC
15169#include <$ac_header>
15170_ACEOF
15171rm -f conftest.$ac_objext
15172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
19911586 15183 ac_header_compiler=yes
45e01f23
RC
15184else
15185 echo "$as_me: failed program was:" >&5
15186cat conftest.$ac_ext >&5
19911586 15187ac_header_compiler=no
45e01f23
RC
15188fi
15189rm -f conftest.$ac_objext conftest.$ac_ext
19911586
RC
15190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15191echo "${ECHO_T}$ac_header_compiler" >&6
15192
15193# Is the header present?
15194echo "$as_me:$LINENO: checking $ac_header presence" >&5
15195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15196cat >conftest.$ac_ext <<_ACEOF
15197#line $LINENO "configure"
15198#include "confdefs.h"
15199#include <$ac_header>
15200_ACEOF
15201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15203 ac_status=$?
15204 egrep -v '^ *\+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } >/dev/null; then
15209 if test -s conftest.err; then
15210 ac_cpp_err=$ac_cxx_preproc_warn_flag
15211 else
15212 ac_cpp_err=
15213 fi
15214else
15215 ac_cpp_err=yes
15216fi
15217if test -z "$ac_cpp_err"; then
15218 ac_header_preproc=yes
15219else
15220 echo "$as_me: failed program was:" >&5
15221 cat conftest.$ac_ext >&5
15222 ac_header_preproc=no
15223fi
15224rm -f conftest.err conftest.$ac_ext
15225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15226echo "${ECHO_T}$ac_header_preproc" >&6
15227
15228# So? What about this header?
15229case $ac_header_compiler:$ac_header_preproc in
15230 yes:no )
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15232echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15235 no:yes )
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15242esac
15243echo "$as_me:$LINENO: checking for $ac_header" >&5
15244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15245if eval "test \"\${$as_ac_Header+set}\" = set"; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247else
15248 eval "$as_ac_Header=$ac_header_preproc"
45e01f23
RC
15249fi
15250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19911586
RC
15252
15253fi
45e01f23
RC
15254if test `eval echo '${'$as_ac_Header'}'` = yes; then
15255 cat >>confdefs.h <<_ACEOF
15256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15257_ACEOF
19911586 15258
45e01f23
RC
15259fi
15260
15261done
15262
15263
15264
6908b7d7
RC
15265
15266subdirs="$subdirs zlib"
15267
15268
15269
15270subdirs="$subdirs bz2lib"
15271
15272
15273
15274subdirs="$subdirs libgetopt++"
db04fc41
RC
15275
15276
2b48ecd0
RC
15277case "$host_os" in
15278mingw32)
15279
15280
15281if true; then
15282 MINGWTARGET_TRUE=
15283 MINGWTARGET_FALSE='#'
15284else
15285 MINGWTARGET_TRUE='#'
15286 MINGWTARGET_FALSE=
15287fi
15288
15289 ;;
15290*)
15291
15292
15293if false; then
15294 MINGWTARGET_TRUE=
15295 MINGWTARGET_FALSE='#'
15296else
15297 MINGWTARGET_TRUE='#'
15298 MINGWTARGET_FALSE=
15299fi
15300
15301 ;;
15302esac
15303
aa1e3b4d 15304 ac_config_files="$ac_config_files Makefile"
db04fc41
RC
15305
15306cat >confcache <<\_ACEOF
739457f4
CF
15307# This file is a shell script that caches the results of configure
15308# tests run on this system so they can be shared between configure
db04fc41
RC
15309# scripts and configure runs, see configure's option --config-cache.
15310# It is not useful on other systems. If it contains results you don't
15311# want to keep, you may remove or edit it.
739457f4 15312#
db04fc41
RC
15313# config.status only pays attention to the cache file if you give it
15314# the --recheck option to rerun configure.
739457f4 15315#
aa1e3b4d 15316# `ac_cv_env_foo' variables (set or unset) will be overridden when
db04fc41
RC
15317# loading this file, other *unset* `ac_cv_foo' will be assigned the
15318# following values.
15319
15320_ACEOF
15321
739457f4
CF
15322# The following way of writing the cache mishandles newlines in values,
15323# but we know of no workaround that is simple, portable, and efficient.
15324# So, don't put newlines in cache variables' values.
15325# Ultrix sh set writes to stderr and can't be redirected directly,
15326# and sets the high bit in the cache file unless we assign to the vars.
db04fc41
RC
15327{
15328 (set) 2>&1 |
15329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15330 *ac_space=\ *)
15331 # `set' does not quote correctly, so add quotes (double-quote
15332 # substitution turns \\\\ into \\, and sed turns \\ into \).
15333 sed -n \
15334 "s/'/'\\\\''/g;
15335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15336 ;;
15337 *)
15338 # `set' quotes correctly as required by POSIX, so do not add quotes.
15339 sed -n \
15340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15341 ;;
15342 esac;
15343} |
15344 sed '
15345 t clear
15346 : clear
15347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15348 t end
15349 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15350 : end' >>confcache
15351if cmp -s $cache_file confcache; then :; else
739457f4 15352 if test -w $cache_file; then
db04fc41
RC
15353 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15354 cat confcache >$cache_file
739457f4
CF
15355 else
15356 echo "not updating unwritable cache $cache_file"
15357 fi
15358fi
15359rm -f confcache
15360
739457f4
CF
15361test "x$prefix" = xNONE && prefix=$ac_default_prefix
15362# Let make expand exec_prefix.
15363test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15364
db04fc41
RC
15365# VPATH may cause trouble with some makes, so we remove $(srcdir),
15366# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15367# trailing colons and then remove the whole line if VPATH becomes empty
15368# (actually we leave an empty line to preserve line numbers).
739457f4 15369if test "x$srcdir" = x.; then
db04fc41
RC
15370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15371s/:*\$(srcdir):*/:/;
15372s/:*\${srcdir}:*/:/;
15373s/:*@srcdir@:*/:/;
15374s/^\([^=]*=[ ]*\):*/\1/;
15375s/:*$//;
15376s/^[^=]*=[ ]*$//;
15377}'
739457f4
CF
15378fi
15379
739457f4
CF
15380# Transform confdefs.h into DEFS.
15381# Protect against shell expansion while executing Makefile rules.
15382# Protect against Makefile macro expansion.
db04fc41
RC
15383#
15384# If the first sed substitution is executed (which looks for macros that
15385# take arguments), then we branch to the quote section. Otherwise,
15386# look for a macro that doesn't take arguments.
15387cat >confdef2opt.sed <<\_ACEOF
15388t clear
15389: clear
15390s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
15391t quote
15392s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
15393t quote
15394d
15395: quote
15396s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
15397s,\[,\\&,g
15398s,\],\\&,g
15399s,\$,$$,g
15400p
15401_ACEOF
15402# We use echo to avoid assuming a particular line-breaking character.
15403# The extra dot is to prevent the shell from consuming trailing
15404# line-breaks from the sub-command output. A line-break within
15405# single-quotes doesn't work because, if this script is created in a
15406# platform that uses two characters for line-breaks (e.g., DOS), tr
15407# would break.
15408ac_LF_and_DOT=`echo; echo .`
15409DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
15410rm -f confdef2opt.sed
739457f4 15411
db04fc41 15412
f6100b6f
RC
15413if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15414 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15415Usually this means the macro was only invoked conditionally." >&5
15416echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15417Usually this means the macro was only invoked conditionally." >&2;}
15418 { (exit 1); exit 1; }; }
15419fi
b401ef47
RC
15420if test -z "${ENABLERSYNC_TRUE}" && test -z "${ENABLERSYNC_FALSE}"; then
15421 { { echo "$as_me:$LINENO: error: conditional \"ENABLERSYNC\" was never defined.
15422Usually this means the macro was only invoked conditionally." >&5
15423echo "$as_me: error: conditional \"ENABLERSYNC\" was never defined.
15424Usually this means the macro was only invoked conditionally." >&2;}
15425 { (exit 1); exit 1; }; }
15426fi
15427if test -z "${ENABLERSYNC_TRUE}" && test -z "${ENABLERSYNC_FALSE}"; then
15428 { { echo "$as_me:$LINENO: error: conditional \"ENABLERSYNC\" was never defined.
15429Usually this means the macro was only invoked conditionally." >&5
15430echo "$as_me: error: conditional \"ENABLERSYNC\" was never defined.
15431Usually this means the macro was only invoked conditionally." >&2;}
15432 { (exit 1); exit 1; }; }
15433fi
f6100b6f
RC
15434if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15435 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15436Usually this means the macro was only invoked conditionally." >&5
15437echo "$as_me: error: conditional \"AMDEP\" was never defined.
15438Usually this means the macro was only invoked conditionally." >&2;}
15439 { (exit 1); exit 1; }; }
15440fi
2b48ecd0
RC
15441if test -z "${MINGWTARGET_TRUE}" && test -z "${MINGWTARGET_FALSE}"; then
15442 { { echo "$as_me:$LINENO: error: conditional \"MINGWTARGET\" was never defined.
15443Usually this means the macro was only invoked conditionally." >&5
15444echo "$as_me: error: conditional \"MINGWTARGET\" was never defined.
15445Usually this means the macro was only invoked conditionally." >&2;}
15446 { (exit 1); exit 1; }; }
15447fi
15448if test -z "${MINGWTARGET_TRUE}" && test -z "${MINGWTARGET_FALSE}"; then
15449 { { echo "$as_me:$LINENO: error: conditional \"MINGWTARGET\" was never defined.
15450Usually this means the macro was only invoked conditionally." >&5
15451echo "$as_me: error: conditional \"MINGWTARGET\" was never defined.
15452Usually this means the macro was only invoked conditionally." >&2;}
15453 { (exit 1); exit 1; }; }
15454fi
db04fc41
RC
15455
15456: ${CONFIG_STATUS=./config.status}
15457ac_clean_files_save=$ac_clean_files
15458ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15459{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15460echo "$as_me: creating $CONFIG_STATUS" >&6;}
15461cat >$CONFIG_STATUS <<_ACEOF
15462#! $SHELL
15463# Generated by $as_me.
739457f4 15464# Run this file to recreate the current configuration.
739457f4 15465# Compiler output produced by configure, useful for debugging
db04fc41 15466# configure, is in config.log if it exists.
739457f4 15467
db04fc41
RC
15468debug=false
15469SHELL=\${CONFIG_SHELL-$SHELL}
15470_ACEOF
15471
15472cat >>$CONFIG_STATUS <<\_ACEOF
db04fc41
RC
15473## --------------------- ##
15474## M4sh Initialization. ##
15475## --------------------- ##
15476
15477# Be Bourne compatible
15478if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15479 emulate sh
15480 NULLCMD=:
aa1e3b4d
RC
15481 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15482 # is contrary to our usage. Disable this feature.
15483 alias -g '${1+"$@"}'='"$@"'
db04fc41
RC
15484elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15485 set -o posix
15486fi
15487
15488# NLS nuisances.
15489# Support unset when possible.
15490if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15491 as_unset=unset
15492else
15493 as_unset=false
15494fi
15495
15496(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15497 { $as_unset LANG || test "${LANG+set}" != set; } ||
15498 { LANG=C; export LANG; }
15499(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15500 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15501 { LC_ALL=C; export LC_ALL; }
15502(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15503 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15504 { LC_TIME=C; export LC_TIME; }
15505(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15506 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15507 { LC_CTYPE=C; export LC_CTYPE; }
15508(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15509 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15510 { LANGUAGE=C; export LANGUAGE; }
15511(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15512 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15513 { LC_COLLATE=C; export LC_COLLATE; }
15514(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15515 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15516 { LC_NUMERIC=C; export LC_NUMERIC; }
15517(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15518 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15519 { LC_MESSAGES=C; export LC_MESSAGES; }
15520
15521
aa1e3b4d
RC
15522# Required to use basename.
15523if expr a : '\(a\)' >/dev/null 2>&1; then
15524 as_expr=expr
15525else
15526 as_expr=false
15527fi
15528
15529if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15530 as_basename=basename
15531else
15532 as_basename=false
15533fi
15534
15535
db04fc41 15536# Name of the executable.
aa1e3b4d 15537as_me=`$as_basename "$0" ||
db04fc41
RC
15538$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15539 X"$0" : 'X\(//\)$' \| \
15540 X"$0" : 'X\(/\)$' \| \
15541 . : '\(.\)' 2>/dev/null ||
15542echo X/"$0" |
15543 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15544 /^X\/\(\/\/\)$/{ s//\1/; q; }
15545 /^X\/\(\/\).*/{ s//\1/; q; }
15546 s/.*/./; q'`
15547
aa1e3b4d 15548
db04fc41
RC
15549# PATH needs CR, and LINENO needs CR and PATH.
15550# Avoid depending upon Character Ranges.
15551as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15552as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15553as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15554as_cr_digits='0123456789'
15555as_cr_alnum=$as_cr_Letters$as_cr_digits
15556
15557# The user is always right.
15558if test "${PATH_SEPARATOR+set}" != set; then
15559 echo "#! /bin/sh" >conftest.sh
15560 echo "exit 0" >>conftest.sh
15561 chmod +x conftest.sh
15562 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15563 PATH_SEPARATOR=';'
15564 else
15565 PATH_SEPARATOR=:
15566 fi
15567 rm -f conftest.sh
15568fi
15569
15570
15571 as_lineno_1=$LINENO
15572 as_lineno_2=$LINENO
15573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15574 test "x$as_lineno_1" != "x$as_lineno_2" &&
15575 test "x$as_lineno_3" = "x$as_lineno_2" || {
15576 # Find who we are. Look in the path if we contain no path at all
15577 # relative or not.
15578 case $0 in
15579 *[\\/]* ) as_myself=$0 ;;
15580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15581for as_dir in $PATH
15582do
15583 IFS=$as_save_IFS
15584 test -z "$as_dir" && as_dir=.
15585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15586done
15587
15588 ;;
15589 esac
15590 # We did not find ourselves, most probably we were run as `sh COMMAND'
15591 # in which case we are not to be found in the path.
15592 if test "x$as_myself" = x; then
15593 as_myself=$0
15594 fi
15595 if test ! -f "$as_myself"; then
15596 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15597echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15598 { (exit 1); exit 1; }; }
15599 fi
15600 case $CONFIG_SHELL in
15601 '')
15602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15603for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15604do
15605 IFS=$as_save_IFS
15606 test -z "$as_dir" && as_dir=.
15607 for as_base in sh bash ksh sh5; do
15608 case $as_dir in
15609 /*)
15610 if ("$as_dir/$as_base" -c '
15611 as_lineno_1=$LINENO
15612 as_lineno_2=$LINENO
15613 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15614 test "x$as_lineno_1" != "x$as_lineno_2" &&
15615 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
aa1e3b4d
RC
15616 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15617 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
db04fc41
RC
15618 CONFIG_SHELL=$as_dir/$as_base
15619 export CONFIG_SHELL
15620 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15621 fi;;
15622 esac
15623 done
15624done
15625;;
15626 esac
15627
15628 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15629 # uniformly replaced by the line number. The first 'sed' inserts a
15630 # line-number line before each line; the second 'sed' does the real
15631 # work. The second script uses 'N' to pair each line-number line
15632 # with the numbered line, and appends trailing '-' during
15633 # substitution so that $LINENO is not a special case at line end.
15634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15635 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15636 sed '=' <$as_myself |
15637 sed '
15638 N
15639 s,$,-,
15640 : loop
15641 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15642 t loop
15643 s,-$,,
15644 s,^['$as_cr_digits']*\n,,
15645 ' >$as_me.lineno &&
15646 chmod +x $as_me.lineno ||
15647 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15648echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15649 { (exit 1); exit 1; }; }
15650
15651 # Don't try to exec as it changes $[0], causing all sort of problems
15652 # (the dirname of $[0] is not the place where we might find the
15653 # original and so on. Autoconf is especially sensible to this).
15654 . ./$as_me.lineno
15655 # Exit status is that of the last command.
15656 exit
15657}
15658
15659
15660case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15661 *c*,-n*) ECHO_N= ECHO_C='
15662' ECHO_T=' ' ;;
15663 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15664 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15665esac
15666
15667if expr a : '\(a\)' >/dev/null 2>&1; then
15668 as_expr=expr
15669else
15670 as_expr=false
15671fi
15672
15673rm -f conf$$ conf$$.exe conf$$.file
15674echo >conf$$.file
15675if ln -s conf$$.file conf$$ 2>/dev/null; then
15676 # We could just check for DJGPP; but this test a) works b) is more generic
15677 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15678 if test -f conf$$.exe; then
15679 # Don't use ln at all; we don't have any links
15680 as_ln_s='cp -p'
15681 else
15682 as_ln_s='ln -s'
15683 fi
15684elif ln conf$$.file conf$$ 2>/dev/null; then
15685 as_ln_s=ln
15686else
15687 as_ln_s='cp -p'
15688fi
15689rm -f conf$$ conf$$.exe conf$$.file
15690
aa1e3b4d
RC
15691if mkdir -p . 2>/dev/null; then
15692 as_mkdir_p=:
15693else
15694 as_mkdir_p=false
15695fi
15696
db04fc41
RC
15697as_executable_p="test -f"
15698
15699# Sed expression to map a string onto a valid CPP name.
15700as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15701
15702# Sed expression to map a string onto a valid variable name.
15703as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15704
15705
15706# IFS
15707# We need space, tab and new line, in precisely that order.
15708as_nl='
15709'
15710IFS=" $as_nl"
15711
15712# CDPATH.
15713$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
15714
15715exec 6>&1
15716
15717# Open the log real soon, to keep \$[0] and so on meaningful, and to
15718# report actual input values of CONFIG_FILES etc. instead of their
15719# values after options handling. Logging --version etc. is OK.
15720exec 5>>config.log
15721{
15722 echo
15723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15724## Running $as_me. ##
15725_ASBOX
15726} >&5
15727cat >&5 <<_CSEOF
15728
15729This file was extended by $as_me, which was
aa1e3b4d 15730generated by GNU Autoconf 2.53a. Invocation command line was
db04fc41
RC
15731
15732 CONFIG_FILES = $CONFIG_FILES
15733 CONFIG_HEADERS = $CONFIG_HEADERS
15734 CONFIG_LINKS = $CONFIG_LINKS
15735 CONFIG_COMMANDS = $CONFIG_COMMANDS
15736 $ $0 $@
15737
15738_CSEOF
15739echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15740echo >&5
15741_ACEOF
15742
15743# Files that config.status was made for.
15744if test -n "$ac_config_files"; then
15745 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15746fi
15747
15748if test -n "$ac_config_headers"; then
15749 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15750fi
15751
15752if test -n "$ac_config_links"; then
15753 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15754fi
15755
15756if test -n "$ac_config_commands"; then
15757 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15758fi
15759
15760cat >>$CONFIG_STATUS <<\_ACEOF
15761
15762ac_cs_usage="\
15763\`$as_me' instantiates files from templates according to the
15764current configuration.
15765
15766Usage: $0 [OPTIONS] [FILE]...
15767
15768 -h, --help print this help, then exit
15769 -V, --version print version number, then exit
15770 -d, --debug don't remove temporary files
15771 --recheck update $as_me by reconfiguring in the same conditions
15772 --file=FILE[:TEMPLATE]
15773 instantiate the configuration file FILE
15774
15775Configuration files:
15776$config_files
15777
f6100b6f
RC
15778Configuration commands:
15779$config_commands
15780
db04fc41
RC
15781Report bugs to <bug-autoconf@gnu.org>."
15782_ACEOF
15783
15784cat >>$CONFIG_STATUS <<_ACEOF
15785ac_cs_version="\\
15786config.status
aa1e3b4d 15787configured by $0, generated by GNU Autoconf 2.53a,
db04fc41
RC
15788 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15789
15790Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15791Free Software Foundation, Inc.
15792This config.status script is free software; the Free Software Foundation
15793gives unlimited permission to copy, distribute and modify it."
15794srcdir=$srcdir
15795INSTALL="$INSTALL"
15796_ACEOF
15797
15798cat >>$CONFIG_STATUS <<\_ACEOF
15799# If no file are specified by the user, then we need to provide default
15800# value. By we need to know if files were specified by the user.
15801ac_need_defaults=:
15802while test $# != 0
739457f4 15803do
db04fc41
RC
15804 case $1 in
15805 --*=*)
15806 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15807 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
aa1e3b4d
RC
15808 ac_shift=:
15809 ;;
15810 -*)
15811 ac_option=$1
15812 ac_optarg=$2
15813 ac_shift=shift
db04fc41 15814 ;;
db04fc41
RC
15815 *) # This is not an option, so the user has probably given explicit
15816 # arguments.
aa1e3b4d 15817 ac_option=$1
db04fc41
RC
15818 ac_need_defaults=false;;
15819 esac
15820
aa1e3b4d 15821 case $ac_option in
db04fc41
RC
15822 # Handling of the options.
15823_ACEOF
15824cat >>$CONFIG_STATUS <<_ACEOF
739457f4 15825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
db04fc41
RC
15826 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15827 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15828_ACEOF
15829cat >>$CONFIG_STATUS <<\_ACEOF
15830 --version | --vers* | -V )
15831 echo "$ac_cs_version"; exit 0 ;;
15832 --he | --h)
15833 # Conflict between --help and --header
15834 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15835Try \`$0 --help' for more information." >&5
15836echo "$as_me: error: ambiguous option: $1
15837Try \`$0 --help' for more information." >&2;}
15838 { (exit 1); exit 1; }; };;
15839 --help | --hel | -h )
15840 echo "$ac_cs_usage"; exit 0 ;;
15841 --debug | --d* | -d )
15842 debug=: ;;
15843 --file | --fil | --fi | --f )
aa1e3b4d
RC
15844 $ac_shift
15845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
db04fc41
RC
15846 ac_need_defaults=false;;
15847 --header | --heade | --head | --hea )
aa1e3b4d
RC
15848 $ac_shift
15849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
db04fc41
RC
15850 ac_need_defaults=false;;
15851
15852 # This is an error.
15853 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15854Try \`$0 --help' for more information." >&5
15855echo "$as_me: error: unrecognized option: $1
15856Try \`$0 --help' for more information." >&2;}
15857 { (exit 1); exit 1; }; } ;;
15858
15859 *) ac_config_targets="$ac_config_targets $1" ;;
15860
739457f4 15861 esac
db04fc41 15862 shift
739457f4
CF
15863done
15864
db04fc41 15865_ACEOF
739457f4 15866
f6100b6f
RC
15867cat >>$CONFIG_STATUS <<_ACEOF
15868#
15869# INIT-COMMANDS section.
15870#
15871
15872AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
739457f4 15873
f6100b6f 15874_ACEOF
739457f4 15875
db04fc41
RC
15876
15877
15878cat >>$CONFIG_STATUS <<\_ACEOF
15879for ac_config_target in $ac_config_targets
15880do
15881 case "$ac_config_target" in
15882 # Handling of arguments.
15883 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
f6100b6f 15884 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
db04fc41
RC
15885 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15886echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15887 { (exit 1); exit 1; }; };;
15888 esac
15889done
15890
15891# If the user did not use the arguments to specify the items to instantiate,
15892# then the envvar interface is used. Set only those that are not.
15893# We use the long form for the default assignment because of an extremely
15894# bizarre bug on SunOS 4.1.3.
15895if $ac_need_defaults; then
15896 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
f6100b6f 15897 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
db04fc41
RC
15898fi
15899
15900# Create a temporary directory, and hook for its removal unless debugging.
15901$debug ||
15902{
15903 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15904 trap '{ (exit 1); exit 1; }' 1 2 13 15
15905}
15906
15907# Create a (secure) tmp directory for tmp files.
15908: ${TMPDIR=/tmp}
15909{
15910 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15911 test -n "$tmp" && test -d "$tmp"
15912} ||
15913{
15914 tmp=$TMPDIR/cs$$-$RANDOM
15915 (umask 077 && mkdir $tmp)
15916} ||
15917{
15918 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15919 { (exit 1); exit 1; }
15920}
15921
15922_ACEOF
15923
15924cat >>$CONFIG_STATUS <<_ACEOF
15925
15926#
15927# CONFIG_FILES section.
15928#
15929
15930# No need to generate the scripts if there are no CONFIG_FILES.
15931# This happens for instance when ./config.status config.h
15932if test -n "\$CONFIG_FILES"; then
15933 # Protect against being on the right side of a sed subst in config.status.
15934 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15935 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15936s,@SHELL@,$SHELL,;t t
15937s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15938s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15939s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15940s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15941s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15942s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15943s,@exec_prefix@,$exec_prefix,;t t
15944s,@prefix@,$prefix,;t t
15945s,@program_transform_name@,$program_transform_name,;t t
15946s,@bindir@,$bindir,;t t
15947s,@sbindir@,$sbindir,;t t
15948s,@libexecdir@,$libexecdir,;t t
15949s,@datadir@,$datadir,;t t
15950s,@sysconfdir@,$sysconfdir,;t t
15951s,@sharedstatedir@,$sharedstatedir,;t t
15952s,@localstatedir@,$localstatedir,;t t
15953s,@libdir@,$libdir,;t t
15954s,@includedir@,$includedir,;t t
15955s,@oldincludedir@,$oldincludedir,;t t
15956s,@infodir@,$infodir,;t t
15957s,@mandir@,$mandir,;t t
15958s,@build_alias@,$build_alias,;t t
15959s,@host_alias@,$host_alias,;t t
15960s,@target_alias@,$target_alias,;t t
15961s,@DEFS@,$DEFS,;t t
15962s,@ECHO_C@,$ECHO_C,;t t
15963s,@ECHO_N@,$ECHO_N,;t t
15964s,@ECHO_T@,$ECHO_T,;t t
15965s,@LIBS@,$LIBS,;t t
f6100b6f
RC
15966s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15967s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15968s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15969s,@PACKAGE@,$PACKAGE,;t t
15970s,@VERSION@,$VERSION,;t t
15971s,@ACLOCAL@,$ACLOCAL,;t t
15972s,@AUTOCONF@,$AUTOCONF,;t t
15973s,@AUTOMAKE@,$AUTOMAKE,;t t
15974s,@AUTOHEADER@,$AUTOHEADER,;t t
15975s,@MAKEINFO@,$MAKEINFO,;t t
15976s,@AMTAR@,$AMTAR,;t t
15977s,@install_sh@,$install_sh,;t t
15978s,@STRIP@,$STRIP,;t t
15979s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15980s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15981s,@AWK@,$AWK,;t t
15982s,@SET_MAKE@,$SET_MAKE,;t t
15983s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15984s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15985s,@MAINT@,$MAINT,;t t
19911586 15986s,@INILINT@,$INILINT,;t t
b401ef47
RC
15987s,@ENABLERSYNC_TRUE@,$ENABLERSYNC_TRUE,;t t
15988s,@ENABLERSYNC_FALSE@,$ENABLERSYNC_FALSE,;t t
15989s,@subdirs@,$subdirs,;t t
15990s,@RSYNC@,$RSYNC,;t t
15991s,@RSYNCLIB@,$RSYNCLIB,;t t
db04fc41
RC
15992s,@CXX@,$CXX,;t t
15993s,@CXXFLAGS@,$CXXFLAGS,;t t
15994s,@LDFLAGS@,$LDFLAGS,;t t
15995s,@CPPFLAGS@,$CPPFLAGS,;t t
15996s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15997s,@EXEEXT@,$EXEEXT,;t t
15998s,@OBJEXT@,$OBJEXT,;t t
f6100b6f
RC
15999s,@DEPDIR@,$DEPDIR,;t t
16000s,@am__include@,$am__include,;t t
16001s,@am__quote@,$am__quote,;t t
16002s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16003s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16004s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16005s,@CXXDEPMODE@,$CXXDEPMODE,;t t
db04fc41
RC
16006s,@CC@,$CC,;t t
16007s,@CFLAGS@,$CFLAGS,;t t
16008s,@ac_ct_CC@,$ac_ct_CC,;t t
f6100b6f
RC
16009s,@CCDEPMODE@,$CCDEPMODE,;t t
16010s,@LEX@,$LEX,;t t
16011s,@LEXLIB@,$LEXLIB,;t t
16012s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16013s,@YACC@,$YACC,;t t
db04fc41
RC
16014s,@build@,$build,;t t
16015s,@build_cpu@,$build_cpu,;t t
16016s,@build_vendor@,$build_vendor,;t t
16017s,@build_os@,$build_os,;t t
16018s,@host@,$host,;t t
16019s,@host_cpu@,$host_cpu,;t t
16020s,@host_vendor@,$host_vendor,;t t
16021s,@host_os@,$host_os,;t t
6908b7d7
RC
16022s,@LN_S@,$LN_S,;t t
16023s,@ECHO@,$ECHO,;t t
16024s,@RANLIB@,$RANLIB,;t t
16025s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16026s,@CPP@,$CPP,;t t
16027s,@CXXCPP@,$CXXCPP,;t t
16028s,@LIBTOOL@,$LIBTOOL,;t t
db04fc41
RC
16029s,@WINDRES@,$WINDRES,;t t
16030s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
2b48ecd0
RC
16031s,@MINGWTARGET_TRUE@,$MINGWTARGET_TRUE,;t t
16032s,@MINGWTARGET_FALSE@,$MINGWTARGET_FALSE,;t t
739457f4 16033CEOF
db04fc41
RC
16034
16035_ACEOF
16036
16037 cat >>$CONFIG_STATUS <<\_ACEOF
16038 # Split the substitutions into bite-sized pieces for seds with
16039 # small command number limits, like on Digital OSF/1 and HP-UX.
16040 ac_max_sed_lines=48
16041 ac_sed_frag=1 # Number of current file.
16042 ac_beg=1 # First line for current file.
16043 ac_end=$ac_max_sed_lines # Line after last line for current file.
16044 ac_more_lines=:
16045 ac_sed_cmds=
16046 while $ac_more_lines; do
16047 if test $ac_beg -gt 1; then
16048 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16049 else
16050 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16051 fi
16052 if test ! -s $tmp/subs.frag; then
16053 ac_more_lines=false
739457f4 16054 else
db04fc41
RC
16055 # The purpose of the label and of the branching condition is to
16056 # speed up the sed processing (if there are no `@' at all, there
16057 # is no need to browse any of the substitutions).
16058 # These are the two extra sed commands mentioned above.
16059 (echo ':t
16060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16061 if test -z "$ac_sed_cmds"; then
16062 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16063 else
16064 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16065 fi
16066 ac_sed_frag=`expr $ac_sed_frag + 1`
16067 ac_beg=$ac_end
16068 ac_end=`expr $ac_end + $ac_max_sed_lines`
739457f4 16069 fi
db04fc41
RC
16070 done
16071 if test -z "$ac_sed_cmds"; then
16072 ac_sed_cmds=cat
739457f4 16073 fi
db04fc41 16074fi # test -n "$CONFIG_FILES"
739457f4 16075
db04fc41
RC
16076_ACEOF
16077cat >>$CONFIG_STATUS <<\_ACEOF
16078for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
739457f4 16079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
db04fc41
RC
16080 case $ac_file in
16081 - | *:- | *:-:* ) # input from stdin
16082 cat >$tmp/stdin
16083 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16085 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16087 * ) ac_file_in=$ac_file.in ;;
16088 esac
16089
16090 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16091 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16092$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16093 X"$ac_file" : 'X\(//\)[^/]' \| \
16094 X"$ac_file" : 'X\(//\)$' \| \
16095 X"$ac_file" : 'X\(/\)' \| \
16096 . : '\(.\)' 2>/dev/null ||
16097echo X"$ac_file" |
16098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16100 /^X\(\/\/\)$/{ s//\1/; q; }
16101 /^X\(\/\).*/{ s//\1/; q; }
16102 s/.*/./; q'`
aa1e3b4d
RC
16103 { if $as_mkdir_p; then
16104 mkdir -p "$ac_dir"
16105 else
16106 as_dir="$ac_dir"
16107 as_dirs=
16108 while test ! -d "$as_dir"; do
16109 as_dirs="$as_dir $as_dirs"
16110 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16112 X"$as_dir" : 'X\(//\)[^/]' \| \
16113 X"$as_dir" : 'X\(//\)$' \| \
16114 X"$as_dir" : 'X\(/\)' \| \
16115 . : '\(.\)' 2>/dev/null ||
16116echo X"$as_dir" |
16117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16119 /^X\(\/\/\)$/{ s//\1/; q; }
16120 /^X\(\/\).*/{ s//\1/; q; }
16121 s/.*/./; q'`
16122 done
16123 test ! -n "$as_dirs" || mkdir $as_dirs
16124 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16125echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16126 { (exit 1); exit 1; }; }; }
739457f4 16127
db04fc41 16128 ac_builddir=.
739457f4 16129
db04fc41
RC
16130if test "$ac_dir" != .; then
16131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16132 # A "../" for each directory in $ac_dir_suffix.
16133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16134else
16135 ac_dir_suffix= ac_top_builddir=
16136fi
739457f4 16137
db04fc41
RC
16138case $srcdir in
16139 .) # No --srcdir option. We are building in place.
16140 ac_srcdir=.
16141 if test -z "$ac_top_builddir"; then
16142 ac_top_srcdir=.
16143 else
16144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16145 fi ;;
16146 [\\/]* | ?:[\\/]* ) # Absolute path.
16147 ac_srcdir=$srcdir$ac_dir_suffix;
16148 ac_top_srcdir=$srcdir ;;
739457f4 16149 *) # Relative path.
db04fc41
RC
16150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16152esac
16153# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16154# absolute.
16155ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
aa1e3b4d 16156ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
db04fc41
RC
16157ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16158ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
739457f4 16159
739457f4 16160
db04fc41
RC
16161 case $INSTALL in
16162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16163 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
739457f4
CF
16164 esac
16165
db04fc41
RC
16166 if test x"$ac_file" != x-; then
16167 { echo "$as_me:$LINENO: creating $ac_file" >&5
16168echo "$as_me: creating $ac_file" >&6;}
16169 rm -f "$ac_file"
16170 fi
16171 # Let's still pretend it is `configure' which instantiates (i.e., don't
16172 # use $as_me), people would be surprised to read:
16173 # /* config.h. Generated by config.status. */
16174 if test x"$ac_file" = x-; then
16175 configure_input=
16176 else
16177 configure_input="$ac_file. "
16178 fi
16179 configure_input=$configure_input"Generated from `echo $ac_file_in |
16180 sed 's,.*/,,'` by configure."
16181
16182 # First look for the input files in the build tree, otherwise in the
16183 # src tree.
16184 ac_file_inputs=`IFS=:
16185 for f in $ac_file_in; do
16186 case $f in
16187 -) echo $tmp/stdin ;;
16188 [\\/$]*)
16189 # Absolute (can't be DOS-style, as IFS=:)
16190 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16191echo "$as_me: error: cannot find input file: $f" >&2;}
16192 { (exit 1); exit 1; }; }
16193 echo $f;;
16194 *) # Relative
16195 if test -f "$f"; then
16196 # Build tree
16197 echo $f
16198 elif test -f "$srcdir/$f"; then
16199 # Source tree
16200 echo $srcdir/$f
16201 else
16202 # /dev/null tree
16203 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16204echo "$as_me: error: cannot find input file: $f" >&2;}
16205 { (exit 1); exit 1; }; }
16206 fi;;
16207 esac
16208 done` || { (exit 1); exit 1; }
16209_ACEOF
16210cat >>$CONFIG_STATUS <<_ACEOF
16211 sed "$ac_vpsub
16212$extrasub
16213_ACEOF
16214cat >>$CONFIG_STATUS <<\_ACEOF
16215:t
16216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16217s,@configure_input@,$configure_input,;t t
16218s,@srcdir@,$ac_srcdir,;t t
16219s,@abs_srcdir@,$ac_abs_srcdir,;t t
16220s,@top_srcdir@,$ac_top_srcdir,;t t
16221s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16222s,@builddir@,$ac_builddir,;t t
16223s,@abs_builddir@,$ac_abs_builddir,;t t
16224s,@top_builddir@,$ac_top_builddir,;t t
16225s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16226s,@INSTALL@,$ac_INSTALL,;t t
16227" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16228 rm -f $tmp/stdin
16229 if test x"$ac_file" != x-; then
16230 mv $tmp/out $ac_file
16231 else
16232 cat $tmp/out
16233 rm -f $tmp/out
16234 fi
739457f4 16235
db04fc41
RC
16236done
16237_ACEOF
f6100b6f
RC
16238cat >>$CONFIG_STATUS <<\_ACEOF
16239
16240#
16241# CONFIG_COMMANDS section.
16242#
16243for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16244 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16245 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16246 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16247$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16248 X"$ac_dest" : 'X\(//\)[^/]' \| \
16249 X"$ac_dest" : 'X\(//\)$' \| \
16250 X"$ac_dest" : 'X\(/\)' \| \
16251 . : '\(.\)' 2>/dev/null ||
16252echo X"$ac_dest" |
16253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16255 /^X\(\/\/\)$/{ s//\1/; q; }
16256 /^X\(\/\).*/{ s//\1/; q; }
16257 s/.*/./; q'`
16258 ac_builddir=.
16259
16260if test "$ac_dir" != .; then
16261 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16262 # A "../" for each directory in $ac_dir_suffix.
16263 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16264else
16265 ac_dir_suffix= ac_top_builddir=
16266fi
16267
16268case $srcdir in
16269 .) # No --srcdir option. We are building in place.
16270 ac_srcdir=.
16271 if test -z "$ac_top_builddir"; then
16272 ac_top_srcdir=.
16273 else
16274 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16275 fi ;;
16276 [\\/]* | ?:[\\/]* ) # Absolute path.
16277 ac_srcdir=$srcdir$ac_dir_suffix;
16278 ac_top_srcdir=$srcdir ;;
16279 *) # Relative path.
16280 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16281 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16282esac
16283# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16284# absolute.
16285ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
aa1e3b4d 16286ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
f6100b6f
RC
16287ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16288ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16289
16290
16291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16292echo "$as_me: executing $ac_dest commands" >&6;}
16293 case $ac_dest in
16294 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16295 # Strip MF so we end up with the name of the file.
16296 mf=`echo "$mf" | sed -e 's/:.*$//'`
16297 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
16298 dirpart=`(dirname "$mf") 2>/dev/null ||
16299$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16300 X"$mf" : 'X\(//\)[^/]' \| \
16301 X"$mf" : 'X\(//\)$' \| \
16302 X"$mf" : 'X\(/\)' \| \
16303 . : '\(.\)' 2>/dev/null ||
16304echo X"$mf" |
16305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16307 /^X\(\/\/\)$/{ s//\1/; q; }
16308 /^X\(\/\).*/{ s//\1/; q; }
16309 s/.*/./; q'`
16310 else
16311 continue
16312 fi
16313 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16314 # Extract the definition of DEP_FILES from the Makefile without
16315 # running `make'.
16316 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16317 test -z "$DEPDIR" && continue
16318 # When using ansi2knr, U may be empty or an underscore; expand it
16319 U=`sed -n -e '/^U = / s///p' < "$mf"`
16320 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16321 # We invoke sed twice because it is the simplest approach to
16322 # changing $(DEPDIR) to its actual value in the expansion.
16323 for file in `sed -n -e '
16324 /^DEP_FILES = .*\\\\$/ {
16325 s/^DEP_FILES = //
16326 :loop
16327 s/\\\\$//
16328 p
16329 n
16330 /\\\\$/ b loop
16331 p
16332 }
16333 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16334 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16335 # Make sure the directory exists.
16336 test -f "$dirpart/$file" && continue
16337 fdir=`(dirname "$file") 2>/dev/null ||
16338$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16339 X"$file" : 'X\(//\)[^/]' \| \
16340 X"$file" : 'X\(//\)$' \| \
16341 X"$file" : 'X\(/\)' \| \
16342 . : '\(.\)' 2>/dev/null ||
16343echo X"$file" |
16344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16346 /^X\(\/\/\)$/{ s//\1/; q; }
16347 /^X\(\/\).*/{ s//\1/; q; }
16348 s/.*/./; q'`
aa1e3b4d
RC
16349 { if $as_mkdir_p; then
16350 mkdir -p $dirpart/$fdir
16351 else
16352 as_dir=$dirpart/$fdir
16353 as_dirs=
16354 while test ! -d "$as_dir"; do
16355 as_dirs="$as_dir $as_dirs"
16356 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16357$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16358 X"$as_dir" : 'X\(//\)[^/]' \| \
16359 X"$as_dir" : 'X\(//\)$' \| \
16360 X"$as_dir" : 'X\(/\)' \| \
16361 . : '\(.\)' 2>/dev/null ||
16362echo X"$as_dir" |
16363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16365 /^X\(\/\/\)$/{ s//\1/; q; }
16366 /^X\(\/\).*/{ s//\1/; q; }
16367 s/.*/./; q'`
16368 done
16369 test ! -n "$as_dirs" || mkdir $as_dirs
16370 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16371echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16372 { (exit 1); exit 1; }; }; }
f6100b6f
RC
16373
16374 # echo "creating $dirpart/$file"
16375 echo '# dummy' > "$dirpart/$file"
16376 done
16377done
16378 ;;
16379 esac
16380done
16381_ACEOF
739457f4 16382
db04fc41 16383cat >>$CONFIG_STATUS <<\_ACEOF
739457f4 16384
db04fc41
RC
16385{ (exit 0); exit 0; }
16386_ACEOF
739457f4 16387chmod +x $CONFIG_STATUS
db04fc41
RC
16388ac_clean_files=$ac_clean_files_save
16389
16390
16391# configure is writing to config.log, and then calls config.status.
16392# config.status does its own redirection, appending to config.log.
16393# Unfortunately, on DOS this fails, as config.log is still kept open
16394# by configure, so config.status won't be able to write to it; its
16395# output is simply discarded. So we exec the FD to /dev/null,
16396# effectively closing config.log, so it can be properly (re)opened and
16397# appended to by config.status. When coming back to configure, we
16398# need to make the FD available again.
16399if test "$no_create" != yes; then
16400 ac_cs_success=:
16401 exec 5>/dev/null
16402 $SHELL $CONFIG_STATUS || ac_cs_success=false
16403 exec 5>>config.log
16404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16405 # would make configure fail if this is the last instruction.
16406 $ac_cs_success || { (exit 1); exit 1; }
16407fi
739457f4 16408
db04fc41
RC
16409#
16410# CONFIG_SUBDIRS section.
16411#
739457f4
CF
16412if test "$no_recursion" != yes; then
16413
16414 # Remove --cache-file and --srcdir arguments so they do not pile up.
16415 ac_sub_configure_args=
16416 ac_prev=
16417 for ac_arg in $ac_configure_args; do
16418 if test -n "$ac_prev"; then
16419 ac_prev=
16420 continue
16421 fi
db04fc41 16422 case $ac_arg in
739457f4
CF
16423 -cache-file | --cache-file | --cache-fil | --cache-fi \
16424 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16425 ac_prev=cache_file ;;
16426 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
db04fc41
RC
16427 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16428 | --c=*)
16429 ;;
16430 --config-cache | -C)
739457f4
CF
16431 ;;
16432 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16433 ac_prev=srcdir ;;
16434 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16435 ;;
db04fc41
RC
16436 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16437 ac_prev=prefix ;;
16438 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16439 ;;
739457f4
CF
16440 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16441 esac
16442 done
16443
db04fc41
RC
16444 # Always prepend --prefix to ensure using the same prefix
16445 # in subdir configurations.
16446 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
16447
16448 ac_popdir=`pwd`
16449 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
739457f4
CF
16450
16451 # Do not complain, so a configure script can configure whichever
16452 # parts of a large source tree are present.
db04fc41 16453 test -d $srcdir/$ac_dir || continue
739457f4 16454
db04fc41
RC
16455 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
16456echo "$as_me: configuring in $ac_dir" >&6;}
aa1e3b4d
RC
16457 { if $as_mkdir_p; then
16458 mkdir -p "$ac_dir"
16459 else
16460 as_dir="$ac_dir"
16461 as_dirs=
16462 while test ! -d "$as_dir"; do
16463 as_dirs="$as_dir $as_dirs"
16464 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16465$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16466 X"$as_dir" : 'X\(//\)[^/]' \| \
16467 X"$as_dir" : 'X\(//\)$' \| \
16468 X"$as_dir" : 'X\(/\)' \| \
16469 . : '\(.\)' 2>/dev/null ||
16470echo X"$as_dir" |
16471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16473 /^X\(\/\/\)$/{ s//\1/; q; }
16474 /^X\(\/\).*/{ s//\1/; q; }
16475 s/.*/./; q'`
16476 done
16477 test ! -n "$as_dirs" || mkdir $as_dirs
16478 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16479echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16480 { (exit 1); exit 1; }; }; }
739457f4 16481
db04fc41 16482 ac_builddir=.
739457f4 16483
db04fc41
RC
16484if test "$ac_dir" != .; then
16485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16486 # A "../" for each directory in $ac_dir_suffix.
16487 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16488else
16489 ac_dir_suffix= ac_top_builddir=
16490fi
16491
16492case $srcdir in
16493 .) # No --srcdir option. We are building in place.
16494 ac_srcdir=.
16495 if test -z "$ac_top_builddir"; then
16496 ac_top_srcdir=.
16497 else
16498 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16499 fi ;;
16500 [\\/]* | ?:[\\/]* ) # Absolute path.
16501 ac_srcdir=$srcdir$ac_dir_suffix;
16502 ac_top_srcdir=$srcdir ;;
16503 *) # Relative path.
16504 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16505 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16506esac
16507# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16508# absolute.
16509ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
aa1e3b4d 16510ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
db04fc41
RC
16511ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16512ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
739457f4 16513
db04fc41
RC
16514
16515 cd $ac_dir
739457f4
CF
16516
16517 # Check for guested configure; otherwise get Cygnus style configure.
db04fc41
RC
16518 if test -f $ac_srcdir/configure.gnu; then
16519 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16520 elif test -f $ac_srcdir/configure; then
16521 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16522 elif test -f $ac_srcdir/configure.in; then
739457f4
CF
16523 ac_sub_configure=$ac_configure
16524 else
db04fc41
RC
16525 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16526echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
739457f4
CF
16527 ac_sub_configure=
16528 fi
16529
16530 # The recursion is here.
16531 if test -n "$ac_sub_configure"; then
739457f4 16532 # Make the cache file name correct relative to the subdirectory.
db04fc41
RC
16533 case $cache_file in
16534 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
739457f4 16535 *) # Relative path.
db04fc41 16536 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
739457f4 16537 esac
739457f4 16538
db04fc41
RC
16539 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16540echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
739457f4 16541 # The eval makes quoting arguments work.
db04fc41
RC
16542 eval $ac_sub_configure $ac_sub_configure_args \
16543 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16544 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16545echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16546 { (exit 1); exit 1; }; }
739457f4
CF
16547 fi
16548
16549 cd $ac_popdir
16550 done
16551fi
16552
This page took 2.328182 seconds and 5 git commands to generate.