Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for libtextwrap 0.01.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
265 :
266 else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
275 $*
276 EOF
277 exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
320 IFS="$lt_save_ifs"
321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${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.
423 PACKAGE_NAME='libtextwrap'
424 PACKAGE_TARNAME='libtextwrap'
425 PACKAGE_VERSION='0.01'
426 PACKAGE_STRING='libtextwrap 0.01'
427 PACKAGE_BUGREPORT='[email protected]'
428
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804 done
805
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
826 do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879 else
880 ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures libtextwrap 0.01 to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1005
1006 cat <<\_ACEOF
1007
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020 case $ac_init_help in
1021 short | recursive ) echo "Configuration of libtextwrap 0.01:";;
1022 esac
1023 cat <<\_ACEOF
1024
1025 Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --disable-dependency-tracking Speeds up one-time builds
1029 --enable-dependency-tracking Do not reject slow dependency extractors
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037
1038 Optional Packages:
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1043 both]
1044 --with-tags[=TAGS]
1045 include additional configurations [automatic]
1046
1047 Some influential environment variables:
1048 CC C compiler command
1049 CFLAGS C compiler flags
1050 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1051 nonstandard directory <lib dir>
1052 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053 headers in a nonstandard directory <include dir>
1054 CPP C preprocessor
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 CXXCPP C++ preprocessor
1058 F77 Fortran 77 compiler command
1059 FFLAGS Fortran 77 compiler flags
1060
1061 Use these variables to override the choices made by `configure' or to help
1062 it to find libraries and programs with nonstandard names/locations.
1063
1064 Report bugs to <[email protected]>.
1065 _ACEOF
1066 fi
1067
1068 if test "$ac_init_help" = "recursive"; then
1069 # If there are subdirs, report their specific --help.
1070 ac_popdir=`pwd`
1071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072 test -d $ac_dir || continue
1073 ac_builddir=.
1074
1075 if test "$ac_dir" != .; then
1076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077 # A "../" for each directory in $ac_dir_suffix.
1078 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 else
1080 ac_dir_suffix= ac_top_builddir=
1081 fi
1082
1083 case $srcdir in
1084 .) # No --srcdir option. We are building in place.
1085 ac_srcdir=.
1086 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=.
1088 else
1089 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090 fi ;;
1091 [\\/]* | ?:[\\/]* ) # Absolute path.
1092 ac_srcdir=$srcdir$ac_dir_suffix;
1093 ac_top_srcdir=$srcdir ;;
1094 *) # Relative path.
1095 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 esac
1098 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1099 # absolute.
1100 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1101 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1102 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1103 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1104
1105 cd $ac_dir
1106 # Check for guested configure; otherwise get Cygnus style configure.
1107 if test -f $ac_srcdir/configure.gnu; then
1108 echo
1109 $SHELL $ac_srcdir/configure.gnu --help=recursive
1110 elif test -f $ac_srcdir/configure; then
1111 echo
1112 $SHELL $ac_srcdir/configure --help=recursive
1113 elif test -f $ac_srcdir/configure.ac ||
1114 test -f $ac_srcdir/configure.in; then
1115 echo
1116 $ac_configure --help
1117 else
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1119 fi
1120 cd "$ac_popdir"
1121 done
1122 fi
1123
1124 test -n "$ac_init_help" && exit 0
1125 if $ac_init_version; then
1126 cat <<\_ACEOF
1127 libtextwrap configure 0.01
1128 generated by GNU Autoconf 2.57
1129
1130 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1131 Free Software Foundation, Inc.
1132 This configure script is free software; the Free Software Foundation
1133 gives unlimited permission to copy, distribute and modify it.
1134 _ACEOF
1135 exit 0
1136 fi
1137 exec 5>config.log
1138 cat >&5 <<_ACEOF
1139 This file contains any messages produced by compilers while
1140 running configure, to aid debugging if configure makes a mistake.
1141
1142 It was created by libtextwrap $as_me 0.01, which was
1143 generated by GNU Autoconf 2.57. Invocation command line was
1144
1145 $ $0 $@
1146
1147 _ACEOF
1148 {
1149 cat <<_ASUNAME
1150 ## --------- ##
1151 ## Platform. ##
1152 ## --------- ##
1153
1154 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1155 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1156 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1157 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1158 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1159
1160 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1161 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1162
1163 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1164 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1165 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1166 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1167 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1168 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1169 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1170
1171 _ASUNAME
1172
1173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1174 for as_dir in $PATH
1175 do
1176 IFS=$as_save_IFS
1177 test -z "$as_dir" && as_dir=.
1178 echo "PATH: $as_dir"
1179 done
1180
1181 } >&5
1182
1183 cat >&5 <<_ACEOF
1184
1185
1186 ## ----------- ##
1187 ## Core tests. ##
1188 ## ----------- ##
1189
1190 _ACEOF
1191
1192
1193 # Keep a trace of the command line.
1194 # Strip out --no-create and --no-recursion so they do not pile up.
1195 # Strip out --silent because we don't want to record it for future runs.
1196 # Also quote any args containing shell meta-characters.
1197 # Make two passes to allow for proper duplicate-argument suppression.
1198 ac_configure_args=
1199 ac_configure_args0=
1200 ac_configure_args1=
1201 ac_sep=
1202 ac_must_keep_next=false
1203 for ac_pass in 1 2
1204 do
1205 for ac_arg
1206 do
1207 case $ac_arg in
1208 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1211 continue ;;
1212 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1214 esac
1215 case $ac_pass in
1216 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1217 2)
1218 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1219 if test $ac_must_keep_next = true; then
1220 ac_must_keep_next=false # Got value, back to normal.
1221 else
1222 case $ac_arg in
1223 *=* | --config-cache | -C | -disable-* | --disable-* \
1224 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1225 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1226 | -with-* | --with-* | -without-* | --without-* | --x)
1227 case "$ac_configure_args0 " in
1228 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1229 esac
1230 ;;
1231 -* ) ac_must_keep_next=true ;;
1232 esac
1233 fi
1234 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1235 # Get rid of the leading space.
1236 ac_sep=" "
1237 ;;
1238 esac
1239 done
1240 done
1241 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1242 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1243
1244 # When interrupted or exit'd, cleanup temporary files, and complete
1245 # config.log. We remove comments because anyway the quotes in there
1246 # would cause problems or look ugly.
1247 # WARNING: Be sure not to use single quotes in there, as some shells,
1248 # such as our DU 5.0 friend, will then `close' the trap.
1249 trap 'exit_status=$?
1250 # Save into config.log some information that might help in debugging.
1251 {
1252 echo
1253
1254 cat <<\_ASBOX
1255 ## ---------------- ##
1256 ## Cache variables. ##
1257 ## ---------------- ##
1258 _ASBOX
1259 echo
1260 # The following way of writing the cache mishandles newlines in values,
1261 {
1262 (set) 2>&1 |
1263 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1264 *ac_space=\ *)
1265 sed -n \
1266 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1268 ;;
1269 *)
1270 sed -n \
1271 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1272 ;;
1273 esac;
1274 }
1275 echo
1276
1277 cat <<\_ASBOX
1278 ## ----------------- ##
1279 ## Output variables. ##
1280 ## ----------------- ##
1281 _ASBOX
1282 echo
1283 for ac_var in $ac_subst_vars
1284 do
1285 eval ac_val=$`echo $ac_var`
1286 echo "$ac_var='"'"'$ac_val'"'"'"
1287 done | sort
1288 echo
1289
1290 if test -n "$ac_subst_files"; then
1291 cat <<\_ASBOX
1292 ## ------------- ##
1293 ## Output files. ##
1294 ## ------------- ##
1295 _ASBOX
1296 echo
1297 for ac_var in $ac_subst_files
1298 do
1299 eval ac_val=$`echo $ac_var`
1300 echo "$ac_var='"'"'$ac_val'"'"'"
1301 done | sort
1302 echo
1303 fi
1304
1305 if test -s confdefs.h; then
1306 cat <<\_ASBOX
1307 ## ----------- ##
1308 ## confdefs.h. ##
1309 ## ----------- ##
1310 _ASBOX
1311 echo
1312 sed "/^$/d" confdefs.h | sort
1313 echo
1314 fi
1315 test "$ac_signal" != 0 &&
1316 echo "$as_me: caught signal $ac_signal"
1317 echo "$as_me: exit $exit_status"
1318 } >&5
1319 rm -f core *.core &&
1320 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1321 exit $exit_status
1322 ' 0
1323 for ac_signal in 1 2 13 15; do
1324 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1325 done
1326 ac_signal=0
1327
1328 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1329 rm -rf conftest* confdefs.h
1330 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1331 echo >confdefs.h
1332
1333 # Predefined preprocessor variables.
1334
1335 cat >>confdefs.h <<_ACEOF
1336 #define PACKAGE_NAME "$PACKAGE_NAME"
1337 _ACEOF
1338
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_STRING "$PACKAGE_STRING"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1357 _ACEOF
1358
1359
1360 # Let the site file select an alternate cache file if it wants to.
1361 # Prefer explicitly selected file to automatically selected ones.
1362 if test -z "$CONFIG_SITE"; then
1363 if test "x$prefix" != xNONE; then
1364 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1365 else
1366 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1367 fi
1368 fi
1369 for ac_site_file in $CONFIG_SITE; do
1370 if test -r "$ac_site_file"; then
1371 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1372 echo "$as_me: loading site script $ac_site_file" >&6;}
1373 sed 's/^/| /' "$ac_site_file" >&5
1374 . "$ac_site_file"
1375 fi
1376 done
1377
1378 if test -r "$cache_file"; then
1379 # Some versions of bash will fail to source /dev/null (special
1380 # files actually), so we avoid doing that.
1381 if test -f "$cache_file"; then
1382 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1383 echo "$as_me: loading cache $cache_file" >&6;}
1384 case $cache_file in
1385 [\\/]* | ?:[\\/]* ) . $cache_file;;
1386 *) . ./$cache_file;;
1387 esac
1388 fi
1389 else
1390 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1391 echo "$as_me: creating cache $cache_file" >&6;}
1392 >$cache_file
1393 fi
1394
1395 # Check that the precious variables saved in the cache have kept the same
1396 # value.
1397 ac_cache_corrupted=false
1398 for ac_var in `(set) 2>&1 |
1399 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1400 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1401 eval ac_new_set=\$ac_env_${ac_var}_set
1402 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1403 eval ac_new_val="\$ac_env_${ac_var}_value"
1404 case $ac_old_set,$ac_new_set in
1405 set,)
1406 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1407 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1408 ac_cache_corrupted=: ;;
1409 ,set)
1410 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1411 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1412 ac_cache_corrupted=: ;;
1413 ,);;
1414 *)
1415 if test "x$ac_old_val" != "x$ac_new_val"; then
1416 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1417 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1418 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1419 echo "$as_me: former value: $ac_old_val" >&2;}
1420 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1421 echo "$as_me: current value: $ac_new_val" >&2;}
1422 ac_cache_corrupted=:
1423 fi;;
1424 esac
1425 # Pass precious variables to config.status.
1426 if test "$ac_new_set" = set; then
1427 case $ac_new_val in
1428 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1429 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1430 *) ac_arg=$ac_var=$ac_new_val ;;
1431 esac
1432 case " $ac_configure_args " in
1433 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1434 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1435 esac
1436 fi
1437 done
1438 if $ac_cache_corrupted; then
1439 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1440 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1441 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1442 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1443 { (exit 1); exit 1; }; }
1444 fi
1445
1446 ac_ext=c
1447 ac_cpp='$CPP $CPPFLAGS'
1448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478 ac_aux_dir=
1479 for ac_dir in config $srcdir/config; do
1480 if test -f $ac_dir/install-sh; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/install-sh -c"
1483 break
1484 elif test -f $ac_dir/install.sh; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/install.sh -c"
1487 break
1488 elif test -f $ac_dir/shtool; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/shtool install -c"
1491 break
1492 fi
1493 done
1494 if test -z "$ac_aux_dir"; then
1495 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1496 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1497 { (exit 1); exit 1; }; }
1498 fi
1499 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502
1503 #AC_CONFIG_SRCDIR(textwrap.c)
1504 ac_config_headers="$ac_config_headers config.h"
1505
1506 am__api_version="1.7"
1507 # Find a good install program. We prefer a C program (faster),
1508 # so one script is as good as another. But avoid the broken or
1509 # incompatible versions:
1510 # SysV /etc/install, /usr/sbin/install
1511 # SunOS /usr/etc/install
1512 # IRIX /sbin/install
1513 # AIX /bin/install
1514 # AmigaOS /C/install, which installs bootblocks on floppy discs
1515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1518 # ./install, which can be erroneously created by make from ./install.sh.
1519 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1520 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1521 if test -z "$INSTALL"; then
1522 if test "${ac_cv_path_install+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 # Account for people who put trailing slashes in PATH elements.
1531 case $as_dir/ in
1532 ./ | .// | /cC/* | \
1533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1534 /usr/ucb/* ) ;;
1535 *)
1536 # OSF1 and SCO ODT 3.0 have their own names for install.
1537 # Don't use installbsd from OSF since it installs stuff as root
1538 # by default.
1539 for ac_prog in ginstall scoinst install; do
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1542 if test $ac_prog = install &&
1543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1544 # AIX install. It has an incompatible calling convention.
1545 :
1546 elif test $ac_prog = install &&
1547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1548 # program-specific install script used by HP pwplus--don't use.
1549 :
1550 else
1551 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1552 break 3
1553 fi
1554 fi
1555 done
1556 done
1557 ;;
1558 esac
1559 done
1560
1561
1562 fi
1563 if test "${ac_cv_path_install+set}" = set; then
1564 INSTALL=$ac_cv_path_install
1565 else
1566 # As a last resort, use the slow shell script. We don't cache a
1567 # path for INSTALL within a source directory, because that will
1568 # break other packages using the cache if that directory is
1569 # removed, or if the path is relative.
1570 INSTALL=$ac_install_sh
1571 fi
1572 fi
1573 echo "$as_me:$LINENO: result: $INSTALL" >&5
1574 echo "${ECHO_T}$INSTALL" >&6
1575
1576 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1577 # It thinks the first close brace ends the variable substitution.
1578 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1579
1580 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1581
1582 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1583
1584 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1585 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1586 # Just in case
1587 sleep 1
1588 echo timestamp > conftest.file
1589 # Do `set' in a subshell so we don't clobber the current shell's
1590 # arguments. Must try -L first in case configure is actually a
1591 # symlink; some systems play weird games with the mod time of symlinks
1592 # (eg FreeBSD returns the mod time of the symlink's containing
1593 # directory).
1594 if (
1595 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1596 if test "$*" = "X"; then
1597 # -L didn't work.
1598 set X `ls -t $srcdir/configure conftest.file`
1599 fi
1600 rm -f conftest.file
1601 if test "$*" != "X $srcdir/configure conftest.file" \
1602 && test "$*" != "X conftest.file $srcdir/configure"; then
1603
1604 # If neither matched, then we have a broken ls. This can happen
1605 # if, for instance, CONFIG_SHELL is bash and it inherits a
1606 # broken ls alias from the environment. This has actually
1607 # happened. Such a system could not be considered "sane".
1608 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1609 alias in your environment" >&5
1610 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1611 alias in your environment" >&2;}
1612 { (exit 1); exit 1; }; }
1613 fi
1614
1615 test "$2" = conftest.file
1616 )
1617 then
1618 # Ok.
1619 :
1620 else
1621 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1622 Check your system clock" >&5
1623 echo "$as_me: error: newly created file is older than distributed files!
1624 Check your system clock" >&2;}
1625 { (exit 1); exit 1; }; }
1626 fi
1627 echo "$as_me:$LINENO: result: yes" >&5
1628 echo "${ECHO_T}yes" >&6
1629 test "$program_prefix" != NONE &&
1630 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1631 # Use a double $ so make ignores it.
1632 test "$program_suffix" != NONE &&
1633 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1634 # Double any \ or $. echo might interpret backslashes.
1635 # By default was `s,x,x', remove it if useless.
1636 cat <<\_ACEOF >conftest.sed
1637 s/[\\$]/&&/g;s/;s,x,x,$//
1638 _ACEOF
1639 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1640 rm conftest.sed
1641
1642
1643 # expand $ac_aux_dir to an absolute path
1644 am_aux_dir=`cd $ac_aux_dir && pwd`
1645
1646 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1647 # Use eval to expand $SHELL
1648 if eval "$MISSING --run true"; then
1649 am_missing_run="$MISSING --run "
1650 else
1651 am_missing_run=
1652 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1653 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1654 fi
1655
1656 for ac_prog in gawk mawk nawk awk
1657 do
1658 # Extract the first word of "$ac_prog", so it can be a program name with args.
1659 set dummy $ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_AWK+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$AWK"; then
1666 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_AWK="$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1678 fi
1679 done
1680 done
1681
1682 fi
1683 fi
1684 AWK=$ac_cv_prog_AWK
1685 if test -n "$AWK"; then
1686 echo "$as_me:$LINENO: result: $AWK" >&5
1687 echo "${ECHO_T}$AWK" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 fi
1692
1693 test -n "$AWK" && break
1694 done
1695
1696 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1697 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1698 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1699 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 cat >conftest.make <<\_ACEOF
1703 all:
1704 @echo 'ac_maketemp="$(MAKE)"'
1705 _ACEOF
1706 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1707 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1708 if test -n "$ac_maketemp"; then
1709 eval ac_cv_prog_make_${ac_make}_set=yes
1710 else
1711 eval ac_cv_prog_make_${ac_make}_set=no
1712 fi
1713 rm -f conftest.make
1714 fi
1715 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1716 echo "$as_me:$LINENO: result: yes" >&5
1717 echo "${ECHO_T}yes" >&6
1718 SET_MAKE=
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 SET_MAKE="MAKE=${MAKE-make}"
1723 fi
1724
1725 rm -rf .tst 2>/dev/null
1726 mkdir .tst 2>/dev/null
1727 if test -d .tst; then
1728 am__leading_dot=.
1729 else
1730 am__leading_dot=_
1731 fi
1732 rmdir .tst 2>/dev/null
1733
1734 # test to see if srcdir already configured
1735 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1736 test -f $srcdir/config.status; then
1737 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1738 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1739 { (exit 1); exit 1; }; }
1740 fi
1741
1742 # test whether we have cygpath
1743 if test -z "$CYGPATH_W"; then
1744 if (cygpath --version) >/dev/null 2>/dev/null; then
1745 CYGPATH_W='cygpath -w'
1746 else
1747 CYGPATH_W=echo
1748 fi
1749 fi
1750
1751
1752 # Define the identity of the package.
1753 PACKAGE=libtexrwrap
1754 VERSION=0.01
1755
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE "$PACKAGE"
1759 _ACEOF
1760
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define VERSION "$VERSION"
1764 _ACEOF
1765
1766 # Some tools Automake needs.
1767
1768 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1769
1770
1771 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1772
1773
1774 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1775
1776
1777 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1778
1779
1780 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1781
1782
1783 AMTAR=${AMTAR-"${am_missing_run}tar"}
1784
1785 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1786
1787 # Installed binaries are usually stripped using `strip' when the user
1788 # run `make install-strip'. However `strip' might not be the right
1789 # tool to use in cross-compilation environments, therefore Automake
1790 # will honor the `STRIP' environment variable to overrule this program.
1791 if test "$cross_compiling" != no; then
1792 if test -n "$ac_tool_prefix"; then
1793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1794 set dummy ${ac_tool_prefix}strip; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_STRIP+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$STRIP"; then
1801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1802 else
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 for as_dir in $PATH
1805 do
1806 IFS=$as_save_IFS
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 break 2
1813 fi
1814 done
1815 done
1816
1817 fi
1818 fi
1819 STRIP=$ac_cv_prog_STRIP
1820 if test -n "$STRIP"; then
1821 echo "$as_me:$LINENO: result: $STRIP" >&5
1822 echo "${ECHO_T}$STRIP" >&6
1823 else
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1826 fi
1827
1828 fi
1829 if test -z "$ac_cv_prog_STRIP"; then
1830 ac_ct_STRIP=$STRIP
1831 # Extract the first word of "strip", so it can be a program name with args.
1832 set dummy strip; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$ac_ct_STRIP"; then
1839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_ac_ct_STRIP="strip"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852 done
1853 done
1854
1855 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1856 fi
1857 fi
1858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1859 if test -n "$ac_ct_STRIP"; then
1860 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1861 echo "${ECHO_T}$ac_ct_STRIP" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867 STRIP=$ac_ct_STRIP
1868 else
1869 STRIP="$ac_cv_prog_STRIP"
1870 fi
1871
1872 fi
1873 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1874
1875 # We need awk for the "check" target. The system "awk" is bad on
1876 # some platforms.
1877
1878
1879
1880
1881 # Checks for programs.
1882 ac_ext=c
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887 if test -n "$ac_tool_prefix"; then
1888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1900 do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909 done
1910 done
1911
1912 fi
1913 fi
1914 CC=$ac_cv_prog_CC
1915 if test -n "$CC"; then
1916 echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6
1918 else
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923 fi
1924 if test -z "$ac_cv_prog_CC"; then
1925 ac_ct_CC=$CC
1926 # Extract the first word of "gcc", so it can be a program name with args.
1927 set dummy gcc; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 if test -n "$ac_ct_CC"; then
1934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1935 else
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939 IFS=$as_save_IFS
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 ac_cv_prog_ac_ct_CC="gcc"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 break 2
1946 fi
1947 done
1948 done
1949
1950 fi
1951 fi
1952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1953 if test -n "$ac_ct_CC"; then
1954 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1955 echo "${ECHO_T}$ac_ct_CC" >&6
1956 else
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1959 fi
1960
1961 CC=$ac_ct_CC
1962 else
1963 CC="$ac_cv_prog_CC"
1964 fi
1965
1966 if test -z "$CC"; then
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}cc; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_CC="${ac_tool_prefix}cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1988 fi
1989 done
1990 done
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1998 else
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2001 fi
2002
2003 fi
2004 if test -z "$ac_cv_prog_CC"; then
2005 ac_ct_CC=$CC
2006 # Extract the first word of "cc", so it can be a program name with args.
2007 set dummy cc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_ac_ct_CC="cc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2026 fi
2027 done
2028 done
2029
2030 fi
2031 fi
2032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2033 if test -n "$ac_ct_CC"; then
2034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2035 echo "${ECHO_T}$ac_ct_CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041 CC=$ac_ct_CC
2042 else
2043 CC="$ac_cv_prog_CC"
2044 fi
2045
2046 fi
2047 if test -z "$CC"; then
2048 # Extract the first word of "cc", so it can be a program name with args.
2049 set dummy cc; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 else
2058 ac_prog_rejected=no
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2067 ac_prog_rejected=yes
2068 continue
2069 fi
2070 ac_cv_prog_CC="cc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2073 fi
2074 done
2075 done
2076
2077 if test $ac_prog_rejected = yes; then
2078 # We found a bogon in the path, so make sure we never use it.
2079 set dummy $ac_cv_prog_CC
2080 shift
2081 if test $# != 0; then
2082 # We chose a different compiler from the bogus one.
2083 # However, it has the same basename, so the bogon will be chosen
2084 # first if we set CC to just the basename; use the full file name.
2085 shift
2086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2087 fi
2088 fi
2089 fi
2090 fi
2091 CC=$ac_cv_prog_CC
2092 if test -n "$CC"; then
2093 echo "$as_me:$LINENO: result: $CC" >&5
2094 echo "${ECHO_T}$CC" >&6
2095 else
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2098 fi
2099
2100 fi
2101 if test -z "$CC"; then
2102 if test -n "$ac_tool_prefix"; then
2103 for ac_prog in cl
2104 do
2105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2107 echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 break 2
2125 fi
2126 done
2127 done
2128
2129 fi
2130 fi
2131 CC=$ac_cv_prog_CC
2132 if test -n "$CC"; then
2133 echo "$as_me:$LINENO: result: $CC" >&5
2134 echo "${ECHO_T}$CC" >&6
2135 else
2136 echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6
2138 fi
2139
2140 test -n "$CC" && break
2141 done
2142 fi
2143 if test -z "$CC"; then
2144 ac_ct_CC=$CC
2145 for ac_prog in cl
2146 do
2147 # Extract the first word of "$ac_prog", so it can be a program name with args.
2148 set dummy $ac_prog; ac_word=$2
2149 echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 if test -n "$ac_ct_CC"; then
2155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2164 ac_cv_prog_ac_ct_CC="$ac_prog"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2167 fi
2168 done
2169 done
2170
2171 fi
2172 fi
2173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2174 if test -n "$ac_ct_CC"; then
2175 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2176 echo "${ECHO_T}$ac_ct_CC" >&6
2177 else
2178 echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6
2180 fi
2181
2182 test -n "$ac_ct_CC" && break
2183 done
2184
2185 CC=$ac_ct_CC
2186 fi
2187
2188 fi
2189
2190
2191 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: no acceptable C compiler found in \$PATH
2194 See \`config.log' for more details." >&2;}
2195 { (exit 1); exit 1; }; }
2196
2197 # Provide some information about the compiler.
2198 echo "$as_me:$LINENO:" \
2199 "checking for C compiler version" >&5
2200 ac_compiler=`set X $ac_compile; echo $2`
2201 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2202 (eval $ac_compiler --version </dev/null >&5) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2207 (eval $ac_compiler -v </dev/null >&5) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2212 (eval $ac_compiler -V </dev/null >&5) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2216
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 /* confdefs.h. */
2220 _ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h. */
2224
2225 int
2226 main ()
2227 {
2228
2229 ;
2230 return 0;
2231 }
2232 _ACEOF
2233 ac_clean_files_save=$ac_clean_files
2234 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2235 # Try to create an executable without -o first, disregard a.out.
2236 # It will help us diagnose broken compilers, and finding out an intuition
2237 # of exeext.
2238 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2239 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2240 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2241 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2242 (eval $ac_link_default) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; then
2246 # Find the output, starting from the most likely. This scheme is
2247 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2248 # resort.
2249
2250 # Be careful to initialize this variable, since it used to be cached.
2251 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2252 ac_cv_exeext=
2253 # b.out is created by i960 compilers.
2254 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2255 do
2256 test -f "$ac_file" || continue
2257 case $ac_file in
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2259 ;;
2260 conftest.$ac_ext )
2261 # This is the source file.
2262 ;;
2263 [ab].out )
2264 # We found the default executable, but exeext='' is most
2265 # certainly right.
2266 break;;
2267 *.* )
2268 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269 # FIXME: I believe we export ac_cv_exeext for Libtool,
2270 # but it would be cool to find out if it's true. Does anybody
2271 # maintain Libtool? --akim.
2272 export ac_cv_exeext
2273 break;;
2274 * )
2275 break;;
2276 esac
2277 done
2278 else
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: C compiler cannot create executables
2285 See \`config.log' for more details." >&2;}
2286 { (exit 77); exit 77; }; }
2287 fi
2288
2289 ac_exeext=$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_file" >&5
2291 echo "${ECHO_T}$ac_file" >&6
2292
2293 # Check the compiler produces executables we can run. If not, either
2294 # the compiler is broken, or we cross compile.
2295 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2296 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2297 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2298 # If not cross compiling, check that we can run a simple program.
2299 if test "$cross_compiling" != yes; then
2300 if { ac_try='./$ac_file'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 cross_compiling=no
2307 else
2308 if test "$cross_compiling" = maybe; then
2309 cross_compiling=yes
2310 else
2311 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2312 If you meant to cross compile, use \`--host'.
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot run C compiled programs.
2315 If you meant to cross compile, use \`--host'.
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2318 fi
2319 fi
2320 fi
2321 echo "$as_me:$LINENO: result: yes" >&5
2322 echo "${ECHO_T}yes" >&6
2323
2324 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2325 ac_clean_files=$ac_clean_files_save
2326 # Check the compiler produces executables we can run. If not, either
2327 # the compiler is broken, or we cross compile.
2328 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2329 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2330 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2331 echo "${ECHO_T}$cross_compiling" >&6
2332
2333 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2334 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2336 (eval $ac_link) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2341 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2342 # work properly (i.e., refer to `conftest.exe'), while it won't with
2343 # `rm'.
2344 for ac_file in conftest.exe conftest conftest.*; do
2345 test -f "$ac_file" || continue
2346 case $ac_file in
2347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349 export ac_cv_exeext
2350 break;;
2351 * ) break;;
2352 esac
2353 done
2354 else
2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2358 See \`config.log' for more details." >&2;}
2359 { (exit 1); exit 1; }; }
2360 fi
2361
2362 rm -f conftest$ac_cv_exeext
2363 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2364 echo "${ECHO_T}$ac_cv_exeext" >&6
2365
2366 rm -f conftest.$ac_ext
2367 EXEEXT=$ac_cv_exeext
2368 ac_exeext=$EXEEXT
2369 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2370 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2371 if test "${ac_cv_objext+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381
2382 int
2383 main ()
2384 {
2385
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.o conftest.obj
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; then
2396 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2397 case $ac_file in
2398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2399 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2400 break;;
2401 esac
2402 done
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2408 See \`config.log' for more details." >&5
2409 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2410 See \`config.log' for more details." >&2;}
2411 { (exit 1); exit 1; }; }
2412 fi
2413
2414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2415 fi
2416 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2417 echo "${ECHO_T}$ac_cv_objext" >&6
2418 OBJEXT=$ac_cv_objext
2419 ac_objext=$OBJEXT
2420 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2421 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2422 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 cat >conftest.$ac_ext <<_ACEOF
2426 #line $LINENO "configure"
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432
2433 int
2434 main ()
2435 {
2436 #ifndef __GNUC__
2437 choke me
2438 #endif
2439
2440 ;
2441 return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 ac_compiler_gnu=yes
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_compiler_gnu=no
2462 fi
2463 rm -f conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465
2466 fi
2467 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2472 CFLAGS="-g"
2473 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line $LINENO "configure"
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485
2486 int
2487 main ()
2488 {
2489
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 ac_cv_prog_cc_g=yes
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 ac_cv_prog_cc_g=no
2512 fi
2513 rm -f conftest.$ac_objext conftest.$ac_ext
2514 fi
2515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2517 if test "$ac_test_CFLAGS" = set; then
2518 CFLAGS=$ac_save_CFLAGS
2519 elif test $ac_cv_prog_cc_g = yes; then
2520 if test "$GCC" = yes; then
2521 CFLAGS="-g -O2"
2522 else
2523 CFLAGS="-g"
2524 fi
2525 else
2526 if test "$GCC" = yes; then
2527 CFLAGS="-O2"
2528 else
2529 CFLAGS=
2530 fi
2531 fi
2532 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2533 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2534 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 ac_cv_prog_cc_stdc=no
2538 ac_save_CC=$CC
2539 cat >conftest.$ac_ext <<_ACEOF
2540 #line $LINENO "configure"
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2546 #include <stdarg.h>
2547 #include <stdio.h>
2548 #include <sys/types.h>
2549 #include <sys/stat.h>
2550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2551 struct buf { int x; };
2552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553 static char *e (p, i)
2554 char **p;
2555 int i;
2556 {
2557 return p[i];
2558 }
2559 static char *f (char * (*g) (char **, int), char **p, ...)
2560 {
2561 char *s;
2562 va_list v;
2563 va_start (v,p);
2564 s = g (p, va_arg (v,int));
2565 va_end (v);
2566 return s;
2567 }
2568 int test (int i, double x);
2569 struct s1 {int (*f) (int a);};
2570 struct s2 {int (*f) (double a);};
2571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2572 int argc;
2573 char **argv;
2574 int
2575 main ()
2576 {
2577 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2578 ;
2579 return 0;
2580 }
2581 _ACEOF
2582 # Don't try gcc -ansi; that turns off useful extensions and
2583 # breaks some systems' header files.
2584 # AIX -qlanglvl=ansi
2585 # Ultrix and OSF/1 -std1
2586 # HP-UX 10.20 and later -Ae
2587 # HP-UX older versions -Aa -D_HPUX_SOURCE
2588 # SVR4 -Xc -D__EXTENSIONS__
2589 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2590 do
2591 CC="$ac_save_CC $ac_arg"
2592 rm -f conftest.$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_cv_prog_cc_stdc=$ac_arg
2605 break
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 fi
2611 rm -f conftest.$ac_objext
2612 done
2613 rm -f conftest.$ac_ext conftest.$ac_objext
2614 CC=$ac_save_CC
2615
2616 fi
2617
2618 case "x$ac_cv_prog_cc_stdc" in
2619 x|xno)
2620 echo "$as_me:$LINENO: result: none needed" >&5
2621 echo "${ECHO_T}none needed" >&6 ;;
2622 *)
2623 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2625 CC="$CC $ac_cv_prog_cc_stdc" ;;
2626 esac
2627
2628 # Some people use a C++ compiler to compile C. Since we use `exit',
2629 # in C++ we need to declare it. In case someone uses the same compiler
2630 # for both compiling C and C++ we need to have the C++ compiler decide
2631 # the declaration of exit, since it's the most demanding environment.
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #ifndef __cplusplus
2634 choke me
2635 #endif
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 for ac_declaration in \
2650 '' \
2651 'extern "C" void std::exit (int) throw (); using std::exit;' \
2652 'extern "C" void std::exit (int); using std::exit;' \
2653 'extern "C" void exit (int) throw ();' \
2654 'extern "C" void exit (int);' \
2655 'void exit (int);'
2656 do
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2664 $ac_declaration
2665 #include <stdlib.h>
2666 int
2667 main ()
2668 {
2669 exit (42);
2670 ;
2671 return 0;
2672 }
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676 (eval $ac_compile) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 :
2687 else
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 continue
2692 fi
2693 rm -f conftest.$ac_objext conftest.$ac_ext
2694 cat >conftest.$ac_ext <<_ACEOF
2695 #line $LINENO "configure"
2696 /* confdefs.h. */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2701 $ac_declaration
2702 int
2703 main ()
2704 {
2705 exit (42);
2706 ;
2707 return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 break
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 fi
2728 rm -f conftest.$ac_objext conftest.$ac_ext
2729 done
2730 rm -f conftest*
2731 if test -n "$ac_declaration"; then
2732 echo '#ifdef __cplusplus' >>confdefs.h
2733 echo $ac_declaration >>confdefs.h
2734 echo '#endif' >>confdefs.h
2735 fi
2736
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 fi
2742 rm -f conftest.$ac_objext conftest.$ac_ext
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 DEPDIR="${am__leading_dot}deps"
2749
2750 ac_config_commands="$ac_config_commands depfiles"
2751
2752
2753 am_make=${MAKE-make}
2754 cat > confinc << 'END'
2755 am__doit:
2756 @echo done
2757 .PHONY: am__doit
2758 END
2759 # If we don't find an include directive, just comment out the code.
2760 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2761 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2762 am__include="#"
2763 am__quote=
2764 _am_result=none
2765 # First try GNU make style include.
2766 echo "include confinc" > confmf
2767 # We grep out `Entering directory' and `Leaving directory'
2768 # messages which can occur if `w' ends up in MAKEFLAGS.
2769 # In particular we don't look at `^make:' because GNU make might
2770 # be invoked under some other name (usually "gmake"), in which
2771 # case it prints its new name instead of `make'.
2772 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2773 am__include=include
2774 am__quote=
2775 _am_result=GNU
2776 fi
2777 # Now try BSD make style include.
2778 if test "$am__include" = "#"; then
2779 echo '.include "confinc"' > confmf
2780 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2781 am__include=.include
2782 am__quote="\""
2783 _am_result=BSD
2784 fi
2785 fi
2786
2787
2788 echo "$as_me:$LINENO: result: $_am_result" >&5
2789 echo "${ECHO_T}$_am_result" >&6
2790 rm -f confinc confmf
2791
2792 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2793 if test "${enable_dependency_tracking+set}" = set; then
2794 enableval="$enable_dependency_tracking"
2795
2796 fi;
2797 if test "x$enable_dependency_tracking" != xno; then
2798 am_depcomp="$ac_aux_dir/depcomp"
2799 AMDEPBACKSLASH='\'
2800 fi
2801
2802
2803 if test "x$enable_dependency_tracking" != xno; then
2804 AMDEP_TRUE=
2805 AMDEP_FALSE='#'
2806 else
2807 AMDEP_TRUE='#'
2808 AMDEP_FALSE=
2809 fi
2810
2811
2812
2813
2814 depcc="$CC" am_compiler_list=
2815
2816 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2817 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2818 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2822 # We make a subdir and do the tests there. Otherwise we can end up
2823 # making bogus files that we don't know about and never remove. For
2824 # instance it was reported that on HP-UX the gcc test will end up
2825 # making a dummy file named `D' -- because `-MD' means `put the output
2826 # in D'.
2827 mkdir conftest.dir
2828 # Copy depcomp to subdir because otherwise we won't find it if we're
2829 # using a relative directory.
2830 cp "$am_depcomp" conftest.dir
2831 cd conftest.dir
2832 # We will build objects and dependencies in a subdirectory because
2833 # it helps to detect inapplicable dependency modes. For instance
2834 # both Tru64's cc and ICC support -MD to output dependencies as a
2835 # side effect of compilation, but ICC will put the dependencies in
2836 # the current directory while Tru64 will put them in the object
2837 # directory.
2838 mkdir sub
2839
2840 am_cv_CC_dependencies_compiler_type=none
2841 if test "$am_compiler_list" = ""; then
2842 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2843 fi
2844 for depmode in $am_compiler_list; do
2845 # Setup a source with many dependencies, because some compilers
2846 # like to wrap large dependency lists on column 80 (with \), and
2847 # we should not choose a depcomp mode which is confused by this.
2848 #
2849 # We need to recreate these files for each test, as the compiler may
2850 # overwrite some of them when testing with obscure command lines.
2851 # This happens at least with the AIX C compiler.
2852 : > sub/conftest.c
2853 for i in 1 2 3 4 5 6; do
2854 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2855 : > sub/conftst$i.h
2856 done
2857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2858
2859 case $depmode in
2860 nosideeffect)
2861 # after this tag, mechanisms are not by side-effect, so they'll
2862 # only be used when explicitly requested
2863 if test "x$enable_dependency_tracking" = xyes; then
2864 continue
2865 else
2866 break
2867 fi
2868 ;;
2869 none) break ;;
2870 esac
2871 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2872 # mode. It turns out that the SunPro C++ compiler does not properly
2873 # handle `-M -o', and we need to detect this.
2874 if depmode=$depmode \
2875 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2876 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2877 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2878 >/dev/null 2>conftest.err &&
2879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2880 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2882 # icc doesn't choke on unknown options, it will just issue warnings
2883 # (even with -Werror). So we grep stderr for any message
2884 # that says an option was ignored.
2885 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2886 am_cv_CC_dependencies_compiler_type=$depmode
2887 break
2888 fi
2889 fi
2890 done
2891
2892 cd ..
2893 rm -rf conftest.dir
2894 else
2895 am_cv_CC_dependencies_compiler_type=none
2896 fi
2897
2898 fi
2899 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2900 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2901 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2902
2903
2904
2905 if
2906 test "x$enable_dependency_tracking" != xno \
2907 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2908 am__fastdepCC_TRUE=
2909 am__fastdepCC_FALSE='#'
2910 else
2911 am__fastdepCC_TRUE='#'
2912 am__fastdepCC_FALSE=
2913 fi
2914
2915
2916 # Find a good install program. We prefer a C program (faster),
2917 # so one script is as good as another. But avoid the broken or
2918 # incompatible versions:
2919 # SysV /etc/install, /usr/sbin/install
2920 # SunOS /usr/etc/install
2921 # IRIX /sbin/install
2922 # AIX /bin/install
2923 # AmigaOS /C/install, which installs bootblocks on floppy discs
2924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2927 # ./install, which can be erroneously created by make from ./install.sh.
2928 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2929 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2930 if test -z "$INSTALL"; then
2931 if test "${ac_cv_path_install+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 # Account for people who put trailing slashes in PATH elements.
2940 case $as_dir/ in
2941 ./ | .// | /cC/* | \
2942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2943 /usr/ucb/* ) ;;
2944 *)
2945 # OSF1 and SCO ODT 3.0 have their own names for install.
2946 # Don't use installbsd from OSF since it installs stuff as root
2947 # by default.
2948 for ac_prog in ginstall scoinst install; do
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2951 if test $ac_prog = install &&
2952 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2953 # AIX install. It has an incompatible calling convention.
2954 :
2955 elif test $ac_prog = install &&
2956 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2957 # program-specific install script used by HP pwplus--don't use.
2958 :
2959 else
2960 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2961 break 3
2962 fi
2963 fi
2964 done
2965 done
2966 ;;
2967 esac
2968 done
2969
2970
2971 fi
2972 if test "${ac_cv_path_install+set}" = set; then
2973 INSTALL=$ac_cv_path_install
2974 else
2975 # As a last resort, use the slow shell script. We don't cache a
2976 # path for INSTALL within a source directory, because that will
2977 # break other packages using the cache if that directory is
2978 # removed, or if the path is relative.
2979 INSTALL=$ac_install_sh
2980 fi
2981 fi
2982 echo "$as_me:$LINENO: result: $INSTALL" >&5
2983 echo "${ECHO_T}$INSTALL" >&6
2984
2985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2986 # It thinks the first close brace ends the variable substitution.
2987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2988
2989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2990
2991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2992
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2996 echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998 if test "${ac_cv_prog_RANLIB+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001 if test -n "$RANLIB"; then
3002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017
3018 fi
3019 fi
3020 RANLIB=$ac_cv_prog_RANLIB
3021 if test -n "$RANLIB"; then
3022 echo "$as_me:$LINENO: result: $RANLIB" >&5
3023 echo "${ECHO_T}$RANLIB" >&6
3024 else
3025 echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3027 fi
3028
3029 fi
3030 if test -z "$ac_cv_prog_RANLIB"; then
3031 ac_ct_RANLIB=$RANLIB
3032 # Extract the first word of "ranlib", so it can be a program name with args.
3033 set dummy ranlib; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 if test -n "$ac_ct_RANLIB"; then
3040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_ac_ct_RANLIB="ranlib"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055
3056 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3057 fi
3058 fi
3059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3060 if test -n "$ac_ct_RANLIB"; then
3061 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3062 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3066 fi
3067
3068 RANLIB=$ac_ct_RANLIB
3069 else
3070 RANLIB="$ac_cv_prog_RANLIB"
3071 fi
3072
3073 # Check whether --enable-shared or --disable-shared was given.
3074 if test "${enable_shared+set}" = set; then
3075 enableval="$enable_shared"
3076 p=${PACKAGE-default}
3077 case $enableval in
3078 yes) enable_shared=yes ;;
3079 no) enable_shared=no ;;
3080 *)
3081 enable_shared=no
3082 # Look at the argument we got. We use all the common list separators.
3083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3084 for pkg in $enableval; do
3085 IFS="$lt_save_ifs"
3086 if test "X$pkg" = "X$p"; then
3087 enable_shared=yes
3088 fi
3089 done
3090 IFS="$lt_save_ifs"
3091 ;;
3092 esac
3093 else
3094 enable_shared=yes
3095 fi;
3096
3097 # Check whether --enable-static or --disable-static was given.
3098 if test "${enable_static+set}" = set; then
3099 enableval="$enable_static"
3100 p=${PACKAGE-default}
3101 case $enableval in
3102 yes) enable_static=yes ;;
3103 no) enable_static=no ;;
3104 *)
3105 enable_static=no
3106 # Look at the argument we got. We use all the common list separators.
3107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3108 for pkg in $enableval; do
3109 IFS="$lt_save_ifs"
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3112 fi
3113 done
3114 IFS="$lt_save_ifs"
3115 ;;
3116 esac
3117 else
3118 enable_static=yes
3119 fi;
3120
3121 # Check whether --enable-fast-install or --disable-fast-install was given.
3122 if test "${enable_fast_install+set}" = set; then
3123 enableval="$enable_fast_install"
3124 p=${PACKAGE-default}
3125 case $enableval in
3126 yes) enable_fast_install=yes ;;
3127 no) enable_fast_install=no ;;
3128 *)
3129 enable_fast_install=no
3130 # Look at the argument we got. We use all the common list separators.
3131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3132 for pkg in $enableval; do
3133 IFS="$lt_save_ifs"
3134 if test "X$pkg" = "X$p"; then
3135 enable_fast_install=yes
3136 fi
3137 done
3138 IFS="$lt_save_ifs"
3139 ;;
3140 esac
3141 else
3142 enable_fast_install=yes
3143 fi;
3144
3145 # Make sure we can run config.sub.
3146 $ac_config_sub sun4 >/dev/null 2>&1 ||
3147 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3148 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3149 { (exit 1); exit 1; }; }
3150
3151 echo "$as_me:$LINENO: checking build system type" >&5
3152 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3153 if test "${ac_cv_build+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 ac_cv_build_alias=$build_alias
3157 test -z "$ac_cv_build_alias" &&
3158 ac_cv_build_alias=`$ac_config_guess`
3159 test -z "$ac_cv_build_alias" &&
3160 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3161 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3162 { (exit 1); exit 1; }; }
3163 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3164 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3165 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3166 { (exit 1); exit 1; }; }
3167
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3170 echo "${ECHO_T}$ac_cv_build" >&6
3171 build=$ac_cv_build
3172 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3173 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3174 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3175
3176
3177 echo "$as_me:$LINENO: checking host system type" >&5
3178 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3179 if test "${ac_cv_host+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 ac_cv_host_alias=$host_alias
3183 test -z "$ac_cv_host_alias" &&
3184 ac_cv_host_alias=$ac_cv_build_alias
3185 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3186 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3187 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3188 { (exit 1); exit 1; }; }
3189
3190 fi
3191 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3192 echo "${ECHO_T}$ac_cv_host" >&6
3193 host=$ac_cv_host
3194 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3195 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3196 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3197
3198
3199 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3200 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3201 if test "${lt_cv_path_SED+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 # Loop through the user's path and test for sed and gsed.
3205 # Then use that list of sed's as ones to test for truncation.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for lt_ac_prog in sed gsed; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3214 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3215 fi
3216 done
3217 done
3218 done
3219 lt_ac_max=0
3220 lt_ac_count=0
3221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3222 # along with /bin/sed that truncates output.
3223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3224 test ! -f $lt_ac_sed && break
3225 cat /dev/null > conftest.in
3226 lt_ac_count=0
3227 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3228 # Check for GNU sed and select it if it is found.
3229 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3230 lt_cv_path_SED=$lt_ac_sed
3231 break
3232 fi
3233 while true; do
3234 cat conftest.in conftest.in >conftest.tmp
3235 mv conftest.tmp conftest.in
3236 cp conftest.in conftest.nl
3237 echo >>conftest.nl
3238 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3239 cmp -s conftest.out conftest.nl || break
3240 # 10000 chars as input seems more than enough
3241 test $lt_ac_count -gt 10 && break
3242 lt_ac_count=`expr $lt_ac_count + 1`
3243 if test $lt_ac_count -gt $lt_ac_max; then
3244 lt_ac_max=$lt_ac_count
3245 lt_cv_path_SED=$lt_ac_sed
3246 fi
3247 done
3248 done
3249 SED=$lt_cv_path_SED
3250
3251 fi
3252
3253 echo "$as_me:$LINENO: result: $SED" >&5
3254 echo "${ECHO_T}$SED" >&6
3255
3256 echo "$as_me:$LINENO: checking for egrep" >&5
3257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3258 if test "${ac_cv_prog_egrep+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3262 then ac_cv_prog_egrep='grep -E'
3263 else ac_cv_prog_egrep='egrep'
3264 fi
3265 fi
3266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3268 EGREP=$ac_cv_prog_egrep
3269
3270
3271
3272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3273 if test "${with_gnu_ld+set}" = set; then
3274 withval="$with_gnu_ld"
3275 test "$withval" = no || with_gnu_ld=yes
3276 else
3277 with_gnu_ld=no
3278 fi;
3279 ac_prog=ld
3280 if test "$GCC" = yes; then
3281 # Check if gcc -print-prog-name=ld gives a path.
3282 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3284 case $host in
3285 *-*-mingw*)
3286 # gcc leaves a trailing carriage return which upsets mingw
3287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3288 *)
3289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3290 esac
3291 case $ac_prog in
3292 # Accept absolute paths.
3293 [\\/]* | ?:[\\/]*)
3294 re_direlt='/[^/][^/]*/\.\./'
3295 # Canonicalize the pathname of ld
3296 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3297 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3298 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3299 done
3300 test -z "$LD" && LD="$ac_prog"
3301 ;;
3302 "")
3303 # If it fails, then pretend we aren't using GCC.
3304 ac_prog=ld
3305 ;;
3306 *)
3307 # If it is relative, then search for the first ld in PATH.
3308 with_gnu_ld=unknown
3309 ;;
3310 esac
3311 elif test "$with_gnu_ld" = yes; then
3312 echo "$as_me:$LINENO: checking for GNU ld" >&5
3313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3314 else
3315 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3317 fi
3318 if test "${lt_cv_path_LD+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -z "$LD"; then
3322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3323 for ac_dir in $PATH; do
3324 IFS="$lt_save_ifs"
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3327 lt_cv_path_LD="$ac_dir/$ac_prog"
3328 # Check to see if the program is GNU ld. I'd rather use --version,
3329 # but apparently some GNU ld's only accept -v.
3330 # Break only if it was the GNU/non-GNU ld that we prefer.
3331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3332 *GNU* | *'with BFD'*)
3333 test "$with_gnu_ld" != no && break
3334 ;;
3335 *)
3336 test "$with_gnu_ld" != yes && break
3337 ;;
3338 esac
3339 fi
3340 done
3341 IFS="$lt_save_ifs"
3342 else
3343 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3344 fi
3345 fi
3346
3347 LD="$lt_cv_path_LD"
3348 if test -n "$LD"; then
3349 echo "$as_me:$LINENO: result: $LD" >&5
3350 echo "${ECHO_T}$LD" >&6
3351 else
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3354 fi
3355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3357 { (exit 1); exit 1; }; }
3358 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3364 case `$LD -v 2>&1 </dev/null` in
3365 *GNU* | *'with BFD'*)
3366 lt_cv_prog_gnu_ld=yes
3367 ;;
3368 *)
3369 lt_cv_prog_gnu_ld=no
3370 ;;
3371 esac
3372 fi
3373 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3375 with_gnu_ld=$lt_cv_prog_gnu_ld
3376
3377
3378 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3380 if test "${lt_cv_ld_reload_flag+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 lt_cv_ld_reload_flag='-r'
3384 fi
3385 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3387 reload_flag=$lt_cv_ld_reload_flag
3388 case $reload_flag in
3389 "" | " "*) ;;
3390 *) reload_flag=" $reload_flag" ;;
3391 esac
3392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3393
3394 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3395 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3396 if test "${lt_cv_path_NM+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 if test -n "$NM"; then
3400 # Let the user override the test.
3401 lt_cv_path_NM="$NM"
3402 else
3403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3404 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3405 IFS="$lt_save_ifs"
3406 test -z "$ac_dir" && ac_dir=.
3407 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3408 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3409 # Check to see if the nm accepts a BSD-compat flag.
3410 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3411 # nm: unknown option "B" ignored
3412 # Tru64's nm complains that /dev/null is an invalid object file
3413 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3414 */dev/null* | *'Invalid file or object type'*)
3415 lt_cv_path_NM="$tmp_nm -B"
3416 break
3417 ;;
3418 *)
3419 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3420 */dev/null*)
3421 lt_cv_path_NM="$tmp_nm -p"
3422 break
3423 ;;
3424 *)
3425 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3426 continue # so that we can try to find one that supports BSD flags
3427 ;;
3428 esac
3429 esac
3430 fi
3431 done
3432 IFS="$lt_save_ifs"
3433 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3434 fi
3435 fi
3436 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3437 echo "${ECHO_T}$lt_cv_path_NM" >&6
3438 NM="$lt_cv_path_NM"
3439
3440 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3441 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3442 LN_S=$as_ln_s
3443 if test "$LN_S" = "ln -s"; then
3444 echo "$as_me:$LINENO: result: yes" >&5
3445 echo "${ECHO_T}yes" >&6
3446 else
3447 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3448 echo "${ECHO_T}no, using $LN_S" >&6
3449 fi
3450
3451 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3452 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3453 if test "${lt_cv_deplibs_check_method+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 lt_cv_file_magic_cmd='$MAGIC_CMD'
3457 lt_cv_file_magic_test_file=
3458 lt_cv_deplibs_check_method='unknown'
3459 # Need to set the preceding variable on all platforms that support
3460 # interlibrary dependencies.
3461 # 'none' -- dependencies not supported.
3462 # `unknown' -- same as none, but documents that we really don't know.
3463 # 'pass_all' -- all dependencies passed with no checks.
3464 # 'test_compile' -- check by making test program.
3465 # 'file_magic [[regex]]' -- check by looking for files in library path
3466 # which responds to the $file_magic_cmd with a given extended regex.
3467 # If you have `file' or equivalent on your system and you're not sure
3468 # whether `pass_all' will *always* work, you probably want this one.
3469
3470 case $host_os in
3471 aix4* | aix5*)
3472 lt_cv_deplibs_check_method=pass_all
3473 ;;
3474
3475 beos*)
3476 lt_cv_deplibs_check_method=pass_all
3477 ;;
3478
3479 bsdi4*)
3480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3481 lt_cv_file_magic_cmd='/usr/bin/file -L'
3482 lt_cv_file_magic_test_file=/shlib/libc.so
3483 ;;
3484
3485 cygwin* | mingw* | pw32*)
3486 # win32_libid is a shell function defined in ltmain.sh
3487 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3488 lt_cv_file_magic_cmd='win32_libid'
3489 ;;
3490
3491 darwin* | rhapsody*)
3492 # this will be overwritten by pass_all, but leave it in just in case
3493 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3494 lt_cv_file_magic_cmd='/usr/bin/file -L'
3495 case "$host_os" in
3496 rhapsody* | darwin1.[012])
3497 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3498 ;;
3499 *) # Darwin 1.3 on
3500 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3501 ;;
3502 esac
3503 lt_cv_deplibs_check_method=pass_all
3504 ;;
3505
3506 freebsd* | kfreebsd*-gnu)
3507 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3508 case $host_cpu in
3509 i*86 )
3510 # Not sure whether the presence of OpenBSD here was a mistake.
3511 # Let's accept both of them until this is cleared up.
3512 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3513 lt_cv_file_magic_cmd=/usr/bin/file
3514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3515 ;;
3516 esac
3517 else
3518 lt_cv_deplibs_check_method=pass_all
3519 fi
3520 ;;
3521
3522 gnu*)
3523 lt_cv_deplibs_check_method=pass_all
3524 ;;
3525
3526 hpux10.20* | hpux11*)
3527 lt_cv_file_magic_cmd=/usr/bin/file
3528 case "$host_cpu" in
3529 ia64*)
3530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3531 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3532 ;;
3533 hppa*64*)
3534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3535 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3536 ;;
3537 *)
3538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3539 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3540 ;;
3541 esac
3542 ;;
3543
3544 irix5* | irix6* | nonstopux*)
3545 case $host_os in
3546 irix5* | nonstopux*)
3547 # this will be overridden with pass_all, but let us keep it just in case
3548 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3549 ;;
3550 *)
3551 case $LD in
3552 *-32|*"-32 ") libmagic=32-bit;;
3553 *-n32|*"-n32 ") libmagic=N32;;
3554 *-64|*"-64 ") libmagic=64-bit;;
3555 *) libmagic=never-match;;
3556 esac
3557 # this will be overridden with pass_all, but let us keep it just in case
3558 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3559 ;;
3560 esac
3561 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3562 lt_cv_deplibs_check_method=pass_all
3563 ;;
3564
3565 # This must be Linux ELF.
3566 linux*)
3567 case $host_cpu in
3568 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
3569 lt_cv_deplibs_check_method=pass_all ;;
3570 *)
3571 # glibc up to 2.1.1 does not perform some relocations on ARM
3572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3573 esac
3574 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3575 ;;
3576
3577 netbsd*)
3578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3580 else
3581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3582 fi
3583 ;;
3584
3585 newos6*)
3586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3587 lt_cv_file_magic_cmd=/usr/bin/file
3588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3589 ;;
3590
3591 nto-qnx*)
3592 lt_cv_deplibs_check_method=unknown
3593 ;;
3594
3595 openbsd*)
3596 lt_cv_file_magic_cmd=/usr/bin/file
3597 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3600 else
3601 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3602 fi
3603 ;;
3604
3605 osf3* | osf4* | osf5*)
3606 # this will be overridden with pass_all, but let us keep it just in case
3607 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3608 lt_cv_file_magic_test_file=/shlib/libc.so
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612 sco3.2v5*)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615
3616 solaris*)
3617 lt_cv_deplibs_check_method=pass_all
3618 lt_cv_file_magic_test_file=/lib/libc.so
3619 ;;
3620
3621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3622 case $host_vendor in
3623 motorola)
3624 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]'
3625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3626 ;;
3627 ncr)
3628 lt_cv_deplibs_check_method=pass_all
3629 ;;
3630 sequent)
3631 lt_cv_file_magic_cmd='/bin/file'
3632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3633 ;;
3634 sni)
3635 lt_cv_file_magic_cmd='/bin/file'
3636 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3637 lt_cv_file_magic_test_file=/lib/libc.so
3638 ;;
3639 siemens)
3640 lt_cv_deplibs_check_method=pass_all
3641 ;;
3642 esac
3643 ;;
3644
3645 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3646 lt_cv_deplibs_check_method=pass_all
3647 ;;
3648 esac
3649
3650 fi
3651 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3652 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3653 file_magic_cmd=$lt_cv_file_magic_cmd
3654 deplibs_check_method=$lt_cv_deplibs_check_method
3655 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3656
3657
3658
3659
3660 # If no C compiler was specified, use CC.
3661 LTCC=${LTCC-"$CC"}
3662
3663 # Allow CC to be a program name with arguments.
3664 compiler=$CC
3665
3666
3667 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3668 if test "${enable_libtool_lock+set}" = set; then
3669 enableval="$enable_libtool_lock"
3670
3671 fi;
3672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3673
3674 # Some flags need to be propagated to the compiler or linker for good
3675 # libtool support.
3676 case $host in
3677 ia64-*-hpux*)
3678 # Find out which ABI we are using.
3679 echo 'int i;' > conftest.$ac_ext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; then
3685 case `/usr/bin/file conftest.$ac_objext` in
3686 *ELF-32*)
3687 HPUX_IA64_MODE="32"
3688 ;;
3689 *ELF-64*)
3690 HPUX_IA64_MODE="64"
3691 ;;
3692 esac
3693 fi
3694 rm -rf conftest*
3695 ;;
3696 *-*-irix6*)
3697 # Find out which ABI we are using.
3698 echo '#line 3698 "configure"' > conftest.$ac_ext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
3704 if test "$lt_cv_prog_gnu_ld" = yes; then
3705 case `/usr/bin/file conftest.$ac_objext` in
3706 *32-bit*)
3707 LD="${LD-ld} -melf32bsmip"
3708 ;;
3709 *N32*)
3710 LD="${LD-ld} -melf32bmipn32"
3711 ;;
3712 *64-bit*)
3713 LD="${LD-ld} -melf64bmip"
3714 ;;
3715 esac
3716 else
3717 case `/usr/bin/file conftest.$ac_objext` in
3718 *32-bit*)
3719 LD="${LD-ld} -32"
3720 ;;
3721 *N32*)
3722 LD="${LD-ld} -n32"
3723 ;;
3724 *64-bit*)
3725 LD="${LD-ld} -64"
3726 ;;
3727 esac
3728 fi
3729 fi
3730 rm -rf conftest*
3731 ;;
3732
3733 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3734 # Find out which ABI we are using.
3735 echo 'int i;' > conftest.$ac_ext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; then
3741 case "`/usr/bin/file conftest.o`" in
3742 *32-bit*)
3743 case $host in
3744 x86_64-*linux*)
3745 LD="${LD-ld} -m elf_i386"
3746 ;;
3747 ppc64-*linux*|powerpc64-*linux*)
3748 LD="${LD-ld} -m elf32ppclinux"
3749 ;;
3750 s390x-*linux*)
3751 LD="${LD-ld} -m elf_s390"
3752 ;;
3753 sparc64-*linux*)
3754 LD="${LD-ld} -m elf32_sparc"
3755 ;;
3756 esac
3757 ;;
3758 *64-bit*)
3759 case $host in
3760 x86_64-*linux*)
3761 LD="${LD-ld} -m elf_x86_64"
3762 ;;
3763 ppc*-*linux*|powerpc*-*linux*)
3764 LD="${LD-ld} -m elf64ppc"
3765 ;;
3766 s390*-*linux*)
3767 LD="${LD-ld} -m elf64_s390"
3768 ;;
3769 sparc*-*linux*)
3770 LD="${LD-ld} -m elf64_sparc"
3771 ;;
3772 esac
3773 ;;
3774 esac
3775 fi
3776 rm -rf conftest*
3777 ;;
3778
3779 *-*-sco3.2v5*)
3780 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3781 SAVE_CFLAGS="$CFLAGS"
3782 CFLAGS="$CFLAGS -belf"
3783 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3784 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3785 if test "${lt_cv_cc_needs_belf+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788 ac_ext=c
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793
3794 cat >conftest.$ac_ext <<_ACEOF
3795 #line $LINENO "configure"
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 rm -f conftest.$ac_objext conftest$ac_exeext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3812 (eval $ac_link) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -s conftest$ac_exeext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 lt_cv_cc_needs_belf=yes
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 lt_cv_cc_needs_belf=no
3828 fi
3829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836 fi
3837 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3838 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3839 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3840 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3841 CFLAGS="$SAVE_CFLAGS"
3842 fi
3843 ;;
3844
3845 esac
3846
3847 need_locks="$enable_libtool_lock"
3848
3849
3850 ac_ext=c
3851 ac_cpp='$CPP $CPPFLAGS'
3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3856 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3857 # On Suns, sometimes $CPP names a directory.
3858 if test -n "$CPP" && test -d "$CPP"; then
3859 CPP=
3860 fi
3861 if test -z "$CPP"; then
3862 if test "${ac_cv_prog_CPP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 # Double quotes because CPP needs to be expanded
3866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3867 do
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3878 #line $LINENO "configure"
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 #ifdef __STDC__
3885 # include <limits.h>
3886 #else
3887 # include <assert.h>
3888 #endif
3889 Syntax error
3890 _ACEOF
3891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null; then
3899 if test -s conftest.err; then
3900 ac_cpp_err=$ac_c_preproc_warn_flag
3901 else
3902 ac_cpp_err=
3903 fi
3904 else
3905 ac_cpp_err=yes
3906 fi
3907 if test -z "$ac_cpp_err"; then
3908 :
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 # Broken: fails on valid input.
3914 continue
3915 fi
3916 rm -f conftest.err conftest.$ac_ext
3917
3918 # OK, works on sane cases. Now check whether non-existent headers
3919 # can be detected and how.
3920 cat >conftest.$ac_ext <<_ACEOF
3921 #line $LINENO "configure"
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 #include <ac_nonexistent.h>
3928 _ACEOF
3929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } >/dev/null; then
3937 if test -s conftest.err; then
3938 ac_cpp_err=$ac_c_preproc_warn_flag
3939 else
3940 ac_cpp_err=
3941 fi
3942 else
3943 ac_cpp_err=yes
3944 fi
3945 if test -z "$ac_cpp_err"; then
3946 # Broken: success on invalid input.
3947 continue
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3955 fi
3956 rm -f conftest.err conftest.$ac_ext
3957
3958 done
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.$ac_ext
3961 if $ac_preproc_ok; then
3962 break
3963 fi
3964
3965 done
3966 ac_cv_prog_CPP=$CPP
3967
3968 fi
3969 CPP=$ac_cv_prog_CPP
3970 else
3971 ac_cv_prog_CPP=$CPP
3972 fi
3973 echo "$as_me:$LINENO: result: $CPP" >&5
3974 echo "${ECHO_T}$CPP" >&6
3975 ac_preproc_ok=false
3976 for ac_c_preproc_warn_flag in '' yes
3977 do
3978 # Use a header file that comes with gcc, so configuring glibc
3979 # with a fresh cross-compiler works.
3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981 # <limits.h> exists even on freestanding compilers.
3982 # On the NeXT, cc -E runs the code through the compiler's parser,
3983 # not just through cpp. "Syntax error" is here to catch this case.
3984 cat >conftest.$ac_ext <<_ACEOF
3985 #line $LINENO "configure"
3986 /* confdefs.h. */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3996 Syntax error
3997 _ACEOF
3998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4000 ac_status=$?
4001 grep -v '^ *+' conftest.er1 >conftest.err
4002 rm -f conftest.er1
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } >/dev/null; then
4006 if test -s conftest.err; then
4007 ac_cpp_err=$ac_c_preproc_warn_flag
4008 else
4009 ac_cpp_err=
4010 fi
4011 else
4012 ac_cpp_err=yes
4013 fi
4014 if test -z "$ac_cpp_err"; then
4015 :
4016 else
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 # Broken: fails on valid input.
4021 continue
4022 fi
4023 rm -f conftest.err conftest.$ac_ext
4024
4025 # OK, works on sane cases. Now check whether non-existent headers
4026 # can be detected and how.
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 #include <ac_nonexistent.h>
4035 _ACEOF
4036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } >/dev/null; then
4044 if test -s conftest.err; then
4045 ac_cpp_err=$ac_c_preproc_warn_flag
4046 else
4047 ac_cpp_err=
4048 fi
4049 else
4050 ac_cpp_err=yes
4051 fi
4052 if test -z "$ac_cpp_err"; then
4053 # Broken: success on invalid input.
4054 continue
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 # Passes both tests.
4060 ac_preproc_ok=:
4061 break
4062 fi
4063 rm -f conftest.err conftest.$ac_ext
4064
4065 done
4066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4067 rm -f conftest.err conftest.$ac_ext
4068 if $ac_preproc_ok; then
4069 :
4070 else
4071 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4072 See \`config.log' for more details." >&5
4073 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4074 See \`config.log' for more details." >&2;}
4075 { (exit 1); exit 1; }; }
4076 fi
4077
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
4084
4085 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4087 if test "${ac_cv_header_stdc+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 cat >conftest.$ac_ext <<_ACEOF
4091 #line $LINENO "configure"
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <stdlib.h>
4098 #include <stdarg.h>
4099 #include <string.h>
4100 #include <float.h>
4101
4102 int
4103 main ()
4104 {
4105
4106 ;
4107 return 0;
4108 }
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -s conftest.$ac_objext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 ac_cv_header_stdc=yes
4123 else
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 ac_cv_header_stdc=no
4128 fi
4129 rm -f conftest.$ac_objext conftest.$ac_ext
4130
4131 if test $ac_cv_header_stdc = yes; then
4132 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4133 cat >conftest.$ac_ext <<_ACEOF
4134 #line $LINENO "configure"
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <string.h>
4141
4142 _ACEOF
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144 $EGREP "memchr" >/dev/null 2>&1; then
4145 :
4146 else
4147 ac_cv_header_stdc=no
4148 fi
4149 rm -f conftest*
4150
4151 fi
4152
4153 if test $ac_cv_header_stdc = yes; then
4154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4155 cat >conftest.$ac_ext <<_ACEOF
4156 #line $LINENO "configure"
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #include <stdlib.h>
4163
4164 _ACEOF
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166 $EGREP "free" >/dev/null 2>&1; then
4167 :
4168 else
4169 ac_cv_header_stdc=no
4170 fi
4171 rm -f conftest*
4172
4173 fi
4174
4175 if test $ac_cv_header_stdc = yes; then
4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177 if test "$cross_compiling" = yes; then
4178 :
4179 else
4180 cat >conftest.$ac_ext <<_ACEOF
4181 #line $LINENO "configure"
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 #include <ctype.h>
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191 #else
4192 # define ISLOWER(c) \
4193 (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197 #endif
4198
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4200 int
4201 main ()
4202 {
4203 int i;
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4207 exit(2);
4208 exit (0);
4209 }
4210 _ACEOF
4211 rm -f conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 :
4223 else
4224 echo "$as_me: program exited with status $ac_status" >&5
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ( exit $ac_status )
4229 ac_cv_header_stdc=no
4230 fi
4231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232 fi
4233 fi
4234 fi
4235 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4237 if test $ac_cv_header_stdc = yes; then
4238
4239 cat >>confdefs.h <<\_ACEOF
4240 #define STDC_HEADERS 1
4241 _ACEOF
4242
4243 fi
4244
4245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4256 inttypes.h stdint.h unistd.h
4257 do
4258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 /* confdefs.h. */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 $ac_includes_default
4272
4273 #include <$ac_header>
4274 _ACEOF
4275 rm -f conftest.$ac_objext
4276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277 (eval $ac_compile) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 eval "$as_ac_Header=yes"
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 eval "$as_ac_Header=no"
4293 fi
4294 rm -f conftest.$ac_objext conftest.$ac_ext
4295 fi
4296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4299 cat >>confdefs.h <<_ACEOF
4300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4301 _ACEOF
4302
4303 fi
4304
4305 done
4306
4307
4308
4309 for ac_header in dlfcn.h
4310 do
4311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4313 echo "$as_me:$LINENO: checking for $ac_header" >&5
4314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 fi
4318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4320 else
4321 # Is the header compilable?
4322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4325 #line $LINENO "configure"
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 $ac_includes_default
4332 #include <$ac_header>
4333 _ACEOF
4334 rm -f conftest.$ac_objext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336 (eval $ac_compile) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_header_compiler=yes
4347 else
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ac_header_compiler=no
4352 fi
4353 rm -f conftest.$ac_objext conftest.$ac_ext
4354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4355 echo "${ECHO_T}$ac_header_compiler" >&6
4356
4357 # Is the header present?
4358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4360 cat >conftest.$ac_ext <<_ACEOF
4361 #line $LINENO "configure"
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <$ac_header>
4368 _ACEOF
4369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } >/dev/null; then
4377 if test -s conftest.err; then
4378 ac_cpp_err=$ac_c_preproc_warn_flag
4379 else
4380 ac_cpp_err=
4381 fi
4382 else
4383 ac_cpp_err=yes
4384 fi
4385 if test -z "$ac_cpp_err"; then
4386 ac_header_preproc=yes
4387 else
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 ac_header_preproc=no
4392 fi
4393 rm -f conftest.err conftest.$ac_ext
4394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4395 echo "${ECHO_T}$ac_header_preproc" >&6
4396
4397 # So? What about this header?
4398 case $ac_header_compiler:$ac_header_preproc in
4399 yes:no )
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4404 (
4405 cat <<\_ASBOX
4406 ## ------------------------------------ ##
4407 ## Report this to [email protected]. ##
4408 ## ------------------------------------ ##
4409 _ASBOX
4410 ) |
4411 sed "s/^/$as_me: WARNING: /" >&2
4412 ;;
4413 no:yes )
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4420 (
4421 cat <<\_ASBOX
4422 ## ------------------------------------ ##
4423 ## Report this to [email protected]. ##
4424 ## ------------------------------------ ##
4425 _ASBOX
4426 ) |
4427 sed "s/^/$as_me: WARNING: /" >&2
4428 ;;
4429 esac
4430 echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 eval "$as_ac_Header=$ac_header_preproc"
4436 fi
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439
4440 fi
4441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4442 cat >>confdefs.h <<_ACEOF
4443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4444 _ACEOF
4445
4446 fi
4447
4448 done
4449
4450 ac_ext=cc
4451 ac_cpp='$CXXCPP $CPPFLAGS'
4452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4455 if test -n "$ac_tool_prefix"; then
4456 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4457 do
4458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_prog_CXX+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 if test -n "$CXX"; then
4466 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479 done
4480 done
4481
4482 fi
4483 fi
4484 CXX=$ac_cv_prog_CXX
4485 if test -n "$CXX"; then
4486 echo "$as_me:$LINENO: result: $CXX" >&5
4487 echo "${ECHO_T}$CXX" >&6
4488 else
4489 echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6
4491 fi
4492
4493 test -n "$CXX" && break
4494 done
4495 fi
4496 if test -z "$CXX"; then
4497 ac_ct_CXX=$CXX
4498 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4499 do
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 if test -n "$ac_ct_CXX"; then
4508 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_ac_ct_CXX="$ac_prog"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521 done
4522 done
4523
4524 fi
4525 fi
4526 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4527 if test -n "$ac_ct_CXX"; then
4528 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4529 echo "${ECHO_T}$ac_ct_CXX" >&6
4530 else
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535 test -n "$ac_ct_CXX" && break
4536 done
4537 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4538
4539 CXX=$ac_ct_CXX
4540 fi
4541
4542
4543 # Provide some information about the compiler.
4544 echo "$as_me:$LINENO:" \
4545 "checking for C++ compiler version" >&5
4546 ac_compiler=`set X $ac_compile; echo $2`
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4548 (eval $ac_compiler --version </dev/null >&5) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4553 (eval $ac_compiler -v </dev/null >&5) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4558 (eval $ac_compiler -V </dev/null >&5) 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }
4562
4563 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 cat >conftest.$ac_ext <<_ACEOF
4569 #line $LINENO "configure"
4570 /* confdefs.h. */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575
4576 int
4577 main ()
4578 {
4579 #ifndef __GNUC__
4580 choke me
4581 #endif
4582
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 ac_compiler_gnu=yes
4600 else
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 ac_compiler_gnu=no
4605 fi
4606 rm -f conftest.$ac_objext conftest.$ac_ext
4607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4608
4609 fi
4610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4612 GXX=`test $ac_compiler_gnu = yes && echo yes`
4613 ac_test_CXXFLAGS=${CXXFLAGS+set}
4614 ac_save_CXXFLAGS=$CXXFLAGS
4615 CXXFLAGS="-g"
4616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4618 if test "${ac_cv_prog_cxx_g+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 cat >conftest.$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628
4629 int
4630 main ()
4631 {
4632
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 rm -f conftest.$ac_objext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639 (eval $ac_compile) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_cv_prog_cxx_g=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654 ac_cv_prog_cxx_g=no
4655 fi
4656 rm -f conftest.$ac_objext conftest.$ac_ext
4657 fi
4658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4660 if test "$ac_test_CXXFLAGS" = set; then
4661 CXXFLAGS=$ac_save_CXXFLAGS
4662 elif test $ac_cv_prog_cxx_g = yes; then
4663 if test "$GXX" = yes; then
4664 CXXFLAGS="-g -O2"
4665 else
4666 CXXFLAGS="-g"
4667 fi
4668 else
4669 if test "$GXX" = yes; then
4670 CXXFLAGS="-O2"
4671 else
4672 CXXFLAGS=
4673 fi
4674 fi
4675 for ac_declaration in \
4676 '' \
4677 'extern "C" void std::exit (int) throw (); using std::exit;' \
4678 'extern "C" void std::exit (int); using std::exit;' \
4679 'extern "C" void exit (int) throw ();' \
4680 'extern "C" void exit (int);' \
4681 'void exit (int);'
4682 do
4683 cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 $ac_declaration
4691 #include <stdlib.h>
4692 int
4693 main ()
4694 {
4695 exit (42);
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 rm -f conftest.$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -s conftest.$ac_objext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 :
4713 else
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 continue
4718 fi
4719 rm -f conftest.$ac_objext conftest.$ac_ext
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_declaration
4728 int
4729 main ()
4730 {
4731 exit (42);
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 break
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 fi
4754 rm -f conftest.$ac_objext conftest.$ac_ext
4755 done
4756 rm -f conftest*
4757 if test -n "$ac_declaration"; then
4758 echo '#ifdef __cplusplus' >>confdefs.h
4759 echo $ac_declaration >>confdefs.h
4760 echo '#endif' >>confdefs.h
4761 fi
4762
4763 ac_ext=cc
4764 ac_cpp='$CXXCPP $CPPFLAGS'
4765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4768
4769 depcc="$CXX" am_compiler_list=
4770
4771 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4772 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4773 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4777 # We make a subdir and do the tests there. Otherwise we can end up
4778 # making bogus files that we don't know about and never remove. For
4779 # instance it was reported that on HP-UX the gcc test will end up
4780 # making a dummy file named `D' -- because `-MD' means `put the output
4781 # in D'.
4782 mkdir conftest.dir
4783 # Copy depcomp to subdir because otherwise we won't find it if we're
4784 # using a relative directory.
4785 cp "$am_depcomp" conftest.dir
4786 cd conftest.dir
4787 # We will build objects and dependencies in a subdirectory because
4788 # it helps to detect inapplicable dependency modes. For instance
4789 # both Tru64's cc and ICC support -MD to output dependencies as a
4790 # side effect of compilation, but ICC will put the dependencies in
4791 # the current directory while Tru64 will put them in the object
4792 # directory.
4793 mkdir sub
4794
4795 am_cv_CXX_dependencies_compiler_type=none
4796 if test "$am_compiler_list" = ""; then
4797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4798 fi
4799 for depmode in $am_compiler_list; do
4800 # Setup a source with many dependencies, because some compilers
4801 # like to wrap large dependency lists on column 80 (with \), and
4802 # we should not choose a depcomp mode which is confused by this.
4803 #
4804 # We need to recreate these files for each test, as the compiler may
4805 # overwrite some of them when testing with obscure command lines.
4806 # This happens at least with the AIX C compiler.
4807 : > sub/conftest.c
4808 for i in 1 2 3 4 5 6; do
4809 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4810 : > sub/conftst$i.h
4811 done
4812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4813
4814 case $depmode in
4815 nosideeffect)
4816 # after this tag, mechanisms are not by side-effect, so they'll
4817 # only be used when explicitly requested
4818 if test "x$enable_dependency_tracking" = xyes; then
4819 continue
4820 else
4821 break
4822 fi
4823 ;;
4824 none) break ;;
4825 esac
4826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4827 # mode. It turns out that the SunPro C++ compiler does not properly
4828 # handle `-M -o', and we need to detect this.
4829 if depmode=$depmode \
4830 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4832 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4833 >/dev/null 2>conftest.err &&
4834 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4835 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4836 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4837 # icc doesn't choke on unknown options, it will just issue warnings
4838 # (even with -Werror). So we grep stderr for any message
4839 # that says an option was ignored.
4840 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4841 am_cv_CXX_dependencies_compiler_type=$depmode
4842 break
4843 fi
4844 fi
4845 done
4846
4847 cd ..
4848 rm -rf conftest.dir
4849 else
4850 am_cv_CXX_dependencies_compiler_type=none
4851 fi
4852
4853 fi
4854 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4855 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4856 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4857
4858
4859
4860 if
4861 test "x$enable_dependency_tracking" != xno \
4862 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4863 am__fastdepCXX_TRUE=
4864 am__fastdepCXX_FALSE='#'
4865 else
4866 am__fastdepCXX_TRUE='#'
4867 am__fastdepCXX_FALSE=
4868 fi
4869
4870
4871 ac_ext=cc
4872 ac_cpp='$CXXCPP $CPPFLAGS'
4873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4876 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4877 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4878 if test -z "$CXXCPP"; then
4879 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 # Double quotes because CXXCPP needs to be expanded
4883 for CXXCPP in "$CXX -E" "/lib/cpp"
4884 do
4885 ac_preproc_ok=false
4886 for ac_cxx_preproc_warn_flag in '' yes
4887 do
4888 # Use a header file that comes with gcc, so configuring glibc
4889 # with a fresh cross-compiler works.
4890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4891 # <limits.h> exists even on freestanding compilers.
4892 # On the NeXT, cc -E runs the code through the compiler's parser,
4893 # not just through cpp. "Syntax error" is here to catch this case.
4894 cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 /* confdefs.h. */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 #ifdef __STDC__
4902 # include <limits.h>
4903 #else
4904 # include <assert.h>
4905 #endif
4906 Syntax error
4907 _ACEOF
4908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } >/dev/null; then
4916 if test -s conftest.err; then
4917 ac_cpp_err=$ac_cxx_preproc_warn_flag
4918 else
4919 ac_cpp_err=
4920 fi
4921 else
4922 ac_cpp_err=yes
4923 fi
4924 if test -z "$ac_cpp_err"; then
4925 :
4926 else
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4929
4930 # Broken: fails on valid input.
4931 continue
4932 fi
4933 rm -f conftest.err conftest.$ac_ext
4934
4935 # OK, works on sane cases. Now check whether non-existent headers
4936 # can be detected and how.
4937 cat >conftest.$ac_ext <<_ACEOF
4938 #line $LINENO "configure"
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944 #include <ac_nonexistent.h>
4945 _ACEOF
4946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } >/dev/null; then
4954 if test -s conftest.err; then
4955 ac_cpp_err=$ac_cxx_preproc_warn_flag
4956 else
4957 ac_cpp_err=
4958 fi
4959 else
4960 ac_cpp_err=yes
4961 fi
4962 if test -z "$ac_cpp_err"; then
4963 # Broken: success on invalid input.
4964 continue
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 # Passes both tests.
4970 ac_preproc_ok=:
4971 break
4972 fi
4973 rm -f conftest.err conftest.$ac_ext
4974
4975 done
4976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4977 rm -f conftest.err conftest.$ac_ext
4978 if $ac_preproc_ok; then
4979 break
4980 fi
4981
4982 done
4983 ac_cv_prog_CXXCPP=$CXXCPP
4984
4985 fi
4986 CXXCPP=$ac_cv_prog_CXXCPP
4987 else
4988 ac_cv_prog_CXXCPP=$CXXCPP
4989 fi
4990 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4991 echo "${ECHO_T}$CXXCPP" >&6
4992 ac_preproc_ok=false
4993 for ac_cxx_preproc_warn_flag in '' yes
4994 do
4995 # Use a header file that comes with gcc, so configuring glibc
4996 # with a fresh cross-compiler works.
4997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998 # <limits.h> exists even on freestanding compilers.
4999 # On the NeXT, cc -E runs the code through the compiler's parser,
5000 # not just through cpp. "Syntax error" is here to catch this case.
5001 cat >conftest.$ac_ext <<_ACEOF
5002 #line $LINENO "configure"
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 #ifdef __STDC__
5009 # include <limits.h>
5010 #else
5011 # include <assert.h>
5012 #endif
5013 Syntax error
5014 _ACEOF
5015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null; then
5023 if test -s conftest.err; then
5024 ac_cpp_err=$ac_cxx_preproc_warn_flag
5025 else
5026 ac_cpp_err=
5027 fi
5028 else
5029 ac_cpp_err=yes
5030 fi
5031 if test -z "$ac_cpp_err"; then
5032 :
5033 else
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037 # Broken: fails on valid input.
5038 continue
5039 fi
5040 rm -f conftest.err conftest.$ac_ext
5041
5042 # OK, works on sane cases. Now check whether non-existent headers
5043 # can be detected and how.
5044 cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 #include <ac_nonexistent.h>
5052 _ACEOF
5053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null; then
5061 if test -s conftest.err; then
5062 ac_cpp_err=$ac_cxx_preproc_warn_flag
5063 else
5064 ac_cpp_err=
5065 fi
5066 else
5067 ac_cpp_err=yes
5068 fi
5069 if test -z "$ac_cpp_err"; then
5070 # Broken: success on invalid input.
5071 continue
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 # Passes both tests.
5077 ac_preproc_ok=:
5078 break
5079 fi
5080 rm -f conftest.err conftest.$ac_ext
5081
5082 done
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.$ac_ext
5085 if $ac_preproc_ok; then
5086 :
5087 else
5088 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5091 See \`config.log' for more details." >&2;}
5092 { (exit 1); exit 1; }; }
5093 fi
5094
5095 ac_ext=cc
5096 ac_cpp='$CXXCPP $CPPFLAGS'
5097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5100
5101
5102 ac_ext=f
5103 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5104 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5106 if test -n "$ac_tool_prefix"; then
5107 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5108 do
5109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5111 echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113 if test "${ac_cv_prog_F77+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 if test -n "$F77"; then
5117 ac_cv_prog_F77="$F77" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132
5133 fi
5134 fi
5135 F77=$ac_cv_prog_F77
5136 if test -n "$F77"; then
5137 echo "$as_me:$LINENO: result: $F77" >&5
5138 echo "${ECHO_T}$F77" >&6
5139 else
5140 echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6
5142 fi
5143
5144 test -n "$F77" && break
5145 done
5146 fi
5147 if test -z "$F77"; then
5148 ac_ct_F77=$F77
5149 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5150 do
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 if test -n "$ac_ct_F77"; then
5159 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_ac_ct_F77="$ac_prog"
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174
5175 fi
5176 fi
5177 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5178 if test -n "$ac_ct_F77"; then
5179 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5180 echo "${ECHO_T}$ac_ct_F77" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6
5184 fi
5185
5186 test -n "$ac_ct_F77" && break
5187 done
5188
5189 F77=$ac_ct_F77
5190 fi
5191
5192
5193 # Provide some information about the compiler.
5194 echo "$as_me:5194:" \
5195 "checking for Fortran 77 compiler version" >&5
5196 ac_compiler=`set X $ac_compile; echo $2`
5197 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5198 (eval $ac_compiler --version </dev/null >&5) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }
5202 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5203 (eval $ac_compiler -v </dev/null >&5) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }
5207 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5208 (eval $ac_compiler -V </dev/null >&5) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }
5212
5213 # If we don't use `.F' as extension, the preprocessor is not run on the
5214 # input file.
5215 ac_save_ext=$ac_ext
5216 ac_ext=F
5217 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5218 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5219 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 cat >conftest.$ac_ext <<_ACEOF
5223 program main
5224 #ifndef __GNUC__
5225 choke me
5226 #endif
5227
5228 end
5229 _ACEOF
5230 rm -f conftest.$ac_objext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5232 (eval $ac_compile) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_compiler_gnu=yes
5243 else
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_compiler_gnu=no
5248 fi
5249 rm -f conftest.$ac_objext conftest.$ac_ext
5250 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5251
5252 fi
5253 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5254 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5255 ac_ext=$ac_save_ext
5256 G77=`test $ac_compiler_gnu = yes && echo yes`
5257 ac_test_FFLAGS=${FFLAGS+set}
5258 ac_save_FFLAGS=$FFLAGS
5259 FFLAGS=
5260 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5261 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5262 if test "${ac_cv_prog_f77_g+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 FFLAGS=-g
5266 cat >conftest.$ac_ext <<_ACEOF
5267 program main
5268
5269 end
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_prog_f77_g=yes
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_cv_prog_f77_g=no
5289 fi
5290 rm -f conftest.$ac_objext conftest.$ac_ext
5291
5292 fi
5293 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5294 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5295 if test "$ac_test_FFLAGS" = set; then
5296 FFLAGS=$ac_save_FFLAGS
5297 elif test $ac_cv_prog_f77_g = yes; then
5298 if test "$G77" = yes; then
5299 FFLAGS="-g -O2"
5300 else
5301 FFLAGS="-g"
5302 fi
5303 else
5304 if test "$G77" = yes; then
5305 FFLAGS="-O2"
5306 else
5307 FFLAGS=
5308 fi
5309 fi
5310 ac_ext=c
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316
5317
5318 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5319
5320 # find the maximum length of command line arguments
5321 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5322 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5323 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 i=0
5327 testring="ABCD"
5328
5329 case $build_os in
5330 msdosdjgpp*)
5331 # On DJGPP, this test can blow up pretty badly due to problems in libc
5332 # (any single argument exceeding 2000 bytes causes a buffer overrun
5333 # during glob expansion). Even if it were fixed, the result of this
5334 # check would be larger than it should be.
5335 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5336 ;;
5337
5338 gnu*)
5339 # Under GNU Hurd, this test is not required because there is
5340 # no limit to the length of command line arguments.
5341 # Libtool will interpret -1 as no limit whatsoever
5342 lt_cv_sys_max_cmd_len=-1;
5343 ;;
5344
5345 cygwin* | mingw*)
5346 # On Win9x/ME, this test blows up -- it succeeds, but takes
5347 # about 5 minutes as the teststring grows exponentially.
5348 # Worse, since 9x/ME are not pre-emptively multitasking,
5349 # you end up with a "frozen" computer, even though with patience
5350 # the test eventually succeeds (with a max line length of 256k).
5351 # Instead, let's just punt: use the minimum linelength reported by
5352 # all of the supported platforms: 8192 (on NT/2K/XP).
5353 lt_cv_sys_max_cmd_len=8192;
5354 ;;
5355
5356 amigaos*)
5357 # On AmigaOS with pdksh, this test takes hours, literally.
5358 # So we just punt and use a minimum line length of 8192.
5359 lt_cv_sys_max_cmd_len=8192;
5360 ;;
5361
5362 *)
5363 # If test is not a shell built-in, we'll probably end up computing a
5364 # maximum length that is only half of the actual maximum length, but
5365 # we can't tell.
5366 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5367 = "XX$testring") >/dev/null 2>&1 &&
5368 new_result=`expr "X$testring" : ".*" 2>&1` &&
5369 lt_cv_sys_max_cmd_len=$new_result &&
5370 test $i != 17 # 1/2 MB should be enough
5371 do
5372 i=`expr $i + 1`
5373 testring=$testring$testring
5374 done
5375 testring=
5376 # Add a significant safety factor because C++ compilers can tack on massive
5377 # amounts of additional arguments before passing them to the linker.
5378 # It appears as though 1/2 is a usable value.
5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5380 ;;
5381 esac
5382
5383 fi
5384
5385 if test -n $lt_cv_sys_max_cmd_len ; then
5386 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5387 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5388 else
5389 echo "$as_me:$LINENO: result: none" >&5
5390 echo "${ECHO_T}none" >&6
5391 fi
5392
5393
5394
5395
5396 # Check for command to grab the raw symbol name followed by C symbol from nm.
5397 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5398 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5399 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402
5403 # These are sane defaults that work on at least a few old systems.
5404 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5405
5406 # Character class describing NM global symbol codes.
5407 symcode='[BCDEGRST]'
5408
5409 # Regexp to match symbols that can be accessed directly from C.
5410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5411
5412 # Transform the above into a raw symbol and a C symbol.
5413 symxfrm='\1 \2\3 \3'
5414
5415 # Transform an extracted symbol line into a proper C declaration
5416 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5417
5418 # Transform an extracted symbol line into symbol name and symbol address
5419 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'"
5420
5421 # Define system-specific variables.
5422 case $host_os in
5423 aix*)
5424 symcode='[BCDT]'
5425 ;;
5426 cygwin* | mingw* | pw32*)
5427 symcode='[ABCDGISTW]'
5428 ;;
5429 hpux*) # Its linker distinguishes data from code symbols
5430 if test "$host_cpu" = ia64; then
5431 symcode='[ABCDEGRST]'
5432 fi
5433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5434 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'"
5435 ;;
5436 irix* | nonstopux*)
5437 symcode='[BCDEGRST]'
5438 ;;
5439 osf*)
5440 symcode='[BCDEGQRST]'
5441 ;;
5442 solaris* | sysv5*)
5443 symcode='[BDRT]'
5444 ;;
5445 sysv4)
5446 symcode='[DFNSTU]'
5447 ;;
5448 esac
5449
5450 # Handle CRLF in mingw tool chain
5451 opt_cr=
5452 case $build_os in
5453 mingw*)
5454 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5455 ;;
5456 esac
5457
5458 # If we're using GNU nm, then use its standard symbol codes.
5459 case `$NM -V 2>&1` in
5460 *GNU* | *'with BFD'*)
5461 symcode='[ABCDGIRSTW]' ;;
5462 esac
5463
5464 # Try without a prefix undercore, then with it.
5465 for ac_symprfx in "" "_"; do
5466
5467 # Write the raw and C identifiers.
5468 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5469
5470 # Check to see that the pipe works correctly.
5471 pipe_works=no
5472
5473 rm -f conftest*
5474 cat > conftest.$ac_ext <<EOF
5475 #ifdef __cplusplus
5476 extern "C" {
5477 #endif
5478 char nm_test_var;
5479 void nm_test_func(){}
5480 #ifdef __cplusplus
5481 }
5482 #endif
5483 int main(){nm_test_var='a';nm_test_func();return(0);}
5484 EOF
5485
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; then
5491 # Now try to grab the symbols.
5492 nlist=conftest.nm
5493 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5494 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && test -s "$nlist"; then
5498 # Try sorting and uniquifying the output.
5499 if sort "$nlist" | uniq > "$nlist"T; then
5500 mv -f "$nlist"T "$nlist"
5501 else
5502 rm -f "$nlist"T
5503 fi
5504
5505 # Make sure that we snagged all the symbols we need.
5506 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5507 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5508 cat <<EOF > conftest.$ac_ext
5509 #ifdef __cplusplus
5510 extern "C" {
5511 #endif
5512
5513 EOF
5514 # Now generate the symbol file.
5515 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5516
5517 cat <<EOF >> conftest.$ac_ext
5518 #if defined (__STDC__) && __STDC__
5519 # define lt_ptr_t void *
5520 #else
5521 # define lt_ptr_t char *
5522 # define const
5523 #endif
5524
5525 /* The mapping between symbol names and symbols. */
5526 const struct {
5527 const char *name;
5528 lt_ptr_t address;
5529 }
5530 lt_preloaded_symbols[] =
5531 {
5532 EOF
5533 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5534 cat <<\EOF >> conftest.$ac_ext
5535 {0, (lt_ptr_t) 0}
5536 };
5537
5538 #ifdef __cplusplus
5539 }
5540 #endif
5541 EOF
5542 # Now try linking the two files.
5543 mv conftest.$ac_objext conftstm.$ac_objext
5544 lt_save_LIBS="$LIBS"
5545 lt_save_CFLAGS="$CFLAGS"
5546 LIBS="conftstm.$ac_objext"
5547 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5553 pipe_works=yes
5554 fi
5555 LIBS="$lt_save_LIBS"
5556 CFLAGS="$lt_save_CFLAGS"
5557 else
5558 echo "cannot find nm_test_func in $nlist" >&5
5559 fi
5560 else
5561 echo "cannot find nm_test_var in $nlist" >&5
5562 fi
5563 else
5564 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5565 fi
5566 else
5567 echo "$progname: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 fi
5570 rm -f conftest* conftst*
5571
5572 # Do not use the global_symbol_pipe unless it works.
5573 if test "$pipe_works" = yes; then
5574 break
5575 else
5576 lt_cv_sys_global_symbol_pipe=
5577 fi
5578 done
5579
5580 fi
5581
5582 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5583 lt_cv_sys_global_symbol_to_cdecl=
5584 fi
5585 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5586 echo "$as_me:$LINENO: result: failed" >&5
5587 echo "${ECHO_T}failed" >&6
5588 else
5589 echo "$as_me:$LINENO: result: ok" >&5
5590 echo "${ECHO_T}ok" >&6
5591 fi
5592
5593 echo "$as_me:$LINENO: checking for objdir" >&5
5594 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5595 if test "${lt_cv_objdir+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 rm -f .libs 2>/dev/null
5599 mkdir .libs 2>/dev/null
5600 if test -d .libs; then
5601 lt_cv_objdir=.libs
5602 else
5603 # MS-DOS does not allow filenames that begin with a dot.
5604 lt_cv_objdir=_libs
5605 fi
5606 rmdir .libs 2>/dev/null
5607 fi
5608 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5609 echo "${ECHO_T}$lt_cv_objdir" >&6
5610 objdir=$lt_cv_objdir
5611
5612
5613
5614
5615
5616 case $host_os in
5617 aix3*)
5618 # AIX sometimes has problems with the GCC collect2 program. For some
5619 # reason, if we set the COLLECT_NAMES environment variable, the problems
5620 # vanish in a puff of smoke.
5621 if test "X${COLLECT_NAMES+set}" != Xset; then
5622 COLLECT_NAMES=
5623 export COLLECT_NAMES
5624 fi
5625 ;;
5626 esac
5627
5628 # Sed substitution that helps us do robust quoting. It backslashifies
5629 # metacharacters that are still active within double-quoted strings.
5630 Xsed='sed -e s/^X//'
5631 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5632
5633 # Same as above, but do not quote variable references.
5634 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5635
5636 # Sed substitution to delay expansion of an escaped shell variable in a
5637 # double_quote_subst'ed string.
5638 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5639
5640 # Sed substitution to avoid accidental globbing in evaled expressions
5641 no_glob_subst='s/\*/\\\*/g'
5642
5643 # Constants:
5644 rm="rm -f"
5645
5646 # Global variables:
5647 default_ofile=libtool
5648 can_build_shared=yes
5649
5650 # All known linkers require a `.a' archive for static linking (except M$VC,
5651 # which needs '.lib').
5652 libext=a
5653 ltmain="$ac_aux_dir/ltmain.sh"
5654 ofile="$default_ofile"
5655 with_gnu_ld="$lt_cv_prog_gnu_ld"
5656
5657 if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5659 set dummy ${ac_tool_prefix}ar; ac_word=$2
5660 echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662 if test "${ac_cv_prog_AR+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665 if test -n "$AR"; then
5666 ac_cv_prog_AR="$AR" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_AR="${ac_tool_prefix}ar"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681
5682 fi
5683 fi
5684 AR=$ac_cv_prog_AR
5685 if test -n "$AR"; then
5686 echo "$as_me:$LINENO: result: $AR" >&5
5687 echo "${ECHO_T}$AR" >&6
5688 else
5689 echo "$as_me:$LINENO: result: no" >&5
5690 echo "${ECHO_T}no" >&6
5691 fi
5692
5693 fi
5694 if test -z "$ac_cv_prog_AR"; then
5695 ac_ct_AR=$AR
5696 # Extract the first word of "ar", so it can be a program name with args.
5697 set dummy ar; ac_word=$2
5698 echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 if test -n "$ac_ct_AR"; then
5704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_ac_ct_AR="ar"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719
5720 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5721 fi
5722 fi
5723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5724 if test -n "$ac_ct_AR"; then
5725 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5726 echo "${ECHO_T}$ac_ct_AR" >&6
5727 else
5728 echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6
5730 fi
5731
5732 AR=$ac_ct_AR
5733 else
5734 AR="$ac_cv_prog_AR"
5735 fi
5736
5737 if test -n "$ac_tool_prefix"; then
5738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5740 echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742 if test "${ac_cv_prog_RANLIB+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745 if test -n "$RANLIB"; then
5746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759 done
5760 done
5761
5762 fi
5763 fi
5764 RANLIB=$ac_cv_prog_RANLIB
5765 if test -n "$RANLIB"; then
5766 echo "$as_me:$LINENO: result: $RANLIB" >&5
5767 echo "${ECHO_T}$RANLIB" >&6
5768 else
5769 echo "$as_me:$LINENO: result: no" >&5
5770 echo "${ECHO_T}no" >&6
5771 fi
5772
5773 fi
5774 if test -z "$ac_cv_prog_RANLIB"; then
5775 ac_ct_RANLIB=$RANLIB
5776 # Extract the first word of "ranlib", so it can be a program name with args.
5777 set dummy ranlib; ac_word=$2
5778 echo "$as_me:$LINENO: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 if test -n "$ac_ct_RANLIB"; then
5784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_ac_ct_RANLIB="ranlib"
5794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797 done
5798 done
5799
5800 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5801 fi
5802 fi
5803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5804 if test -n "$ac_ct_RANLIB"; then
5805 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5806 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5807 else
5808 echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6
5810 fi
5811
5812 RANLIB=$ac_ct_RANLIB
5813 else
5814 RANLIB="$ac_cv_prog_RANLIB"
5815 fi
5816
5817 if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}strip; ac_word=$2
5820 echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822 if test "${ac_cv_prog_STRIP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825 if test -n "$STRIP"; then
5826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841
5842 fi
5843 fi
5844 STRIP=$ac_cv_prog_STRIP
5845 if test -n "$STRIP"; then
5846 echo "$as_me:$LINENO: result: $STRIP" >&5
5847 echo "${ECHO_T}$STRIP" >&6
5848 else
5849 echo "$as_me:$LINENO: result: no" >&5
5850 echo "${ECHO_T}no" >&6
5851 fi
5852
5853 fi
5854 if test -z "$ac_cv_prog_STRIP"; then
5855 ac_ct_STRIP=$STRIP
5856 # Extract the first word of "strip", so it can be a program name with args.
5857 set dummy strip; ac_word=$2
5858 echo "$as_me:$LINENO: checking for $ac_word" >&5
5859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5860 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 if test -n "$ac_ct_STRIP"; then
5864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_ac_ct_STRIP="strip"
5874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877 done
5878 done
5879
5880 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5881 fi
5882 fi
5883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5884 if test -n "$ac_ct_STRIP"; then
5885 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5886 echo "${ECHO_T}$ac_ct_STRIP" >&6
5887 else
5888 echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6
5890 fi
5891
5892 STRIP=$ac_ct_STRIP
5893 else
5894 STRIP="$ac_cv_prog_STRIP"
5895 fi
5896
5897
5898 old_CC="$CC"
5899 old_CFLAGS="$CFLAGS"
5900
5901 # Set sane defaults for various variables
5902 test -z "$AR" && AR=ar
5903 test -z "$AR_FLAGS" && AR_FLAGS=cru
5904 test -z "$AS" && AS=as
5905 test -z "$CC" && CC=cc
5906 test -z "$LTCC" && LTCC=$CC
5907 test -z "$DLLTOOL" && DLLTOOL=dlltool
5908 test -z "$LD" && LD=ld
5909 test -z "$LN_S" && LN_S="ln -s"
5910 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5911 test -z "$NM" && NM=nm
5912 test -z "$SED" && SED=sed
5913 test -z "$OBJDUMP" && OBJDUMP=objdump
5914 test -z "$RANLIB" && RANLIB=:
5915 test -z "$STRIP" && STRIP=:
5916 test -z "$ac_objext" && ac_objext=o
5917
5918 # Determine commands to create old-style static archives.
5919 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5920 old_postinstall_cmds='chmod 644 $oldlib'
5921 old_postuninstall_cmds=
5922
5923 if test -n "$RANLIB"; then
5924 case $host_os in
5925 openbsd*)
5926 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5927 ;;
5928 *)
5929 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5930 ;;
5931 esac
5932 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5933 fi
5934
5935 # Only perform the check for file, if the check method requires it
5936 case $deplibs_check_method in
5937 file_magic*)
5938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5939 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5940 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 case $MAGIC_CMD in
5945 [\\/*] | ?:[\\/]*)
5946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5947 ;;
5948 *)
5949 lt_save_MAGIC_CMD="$MAGIC_CMD"
5950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5952 for ac_dir in $ac_dummy; do
5953 IFS="$lt_save_ifs"
5954 test -z "$ac_dir" && ac_dir=.
5955 if test -f $ac_dir/${ac_tool_prefix}file; then
5956 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5957 if test -n "$file_magic_test_file"; then
5958 case $deplibs_check_method in
5959 "file_magic "*)
5960 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5963 $EGREP "$file_magic_regex" > /dev/null; then
5964 :
5965 else
5966 cat <<EOF 1>&2
5967
5968 *** Warning: the command libtool uses to detect shared libraries,
5969 *** $file_magic_cmd, produces output that libtool cannot recognize.
5970 *** The result is that libtool may fail to recognize shared libraries
5971 *** as such. This will affect the creation of libtool libraries that
5972 *** depend on shared libraries, but programs linked with such libtool
5973 *** libraries will work regardless of this problem. Nevertheless, you
5974 *** may want to report the problem to your system manager and/or to
5975 *** [email protected]
5976
5977 EOF
5978 fi ;;
5979 esac
5980 fi
5981 break
5982 fi
5983 done
5984 IFS="$lt_save_ifs"
5985 MAGIC_CMD="$lt_save_MAGIC_CMD"
5986 ;;
5987 esac
5988 fi
5989
5990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5991 if test -n "$MAGIC_CMD"; then
5992 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5993 echo "${ECHO_T}$MAGIC_CMD" >&6
5994 else
5995 echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6
5997 fi
5998
5999 if test -z "$lt_cv_path_MAGIC_CMD"; then
6000 if test -n "$ac_tool_prefix"; then
6001 echo "$as_me:$LINENO: checking for file" >&5
6002 echo $ECHO_N "checking for file... $ECHO_C" >&6
6003 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006 case $MAGIC_CMD in
6007 [\\/*] | ?:[\\/]*)
6008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6009 ;;
6010 *)
6011 lt_save_MAGIC_CMD="$MAGIC_CMD"
6012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6014 for ac_dir in $ac_dummy; do
6015 IFS="$lt_save_ifs"
6016 test -z "$ac_dir" && ac_dir=.
6017 if test -f $ac_dir/file; then
6018 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6019 if test -n "$file_magic_test_file"; then
6020 case $deplibs_check_method in
6021 "file_magic "*)
6022 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6025 $EGREP "$file_magic_regex" > /dev/null; then
6026 :
6027 else
6028 cat <<EOF 1>&2
6029
6030 *** Warning: the command libtool uses to detect shared libraries,
6031 *** $file_magic_cmd, produces output that libtool cannot recognize.
6032 *** The result is that libtool may fail to recognize shared libraries
6033 *** as such. This will affect the creation of libtool libraries that
6034 *** depend on shared libraries, but programs linked with such libtool
6035 *** libraries will work regardless of this problem. Nevertheless, you
6036 *** may want to report the problem to your system manager and/or to
6037 *** [email protected]
6038
6039 EOF
6040 fi ;;
6041 esac
6042 fi
6043 break
6044 fi
6045 done
6046 IFS="$lt_save_ifs"
6047 MAGIC_CMD="$lt_save_MAGIC_CMD"
6048 ;;
6049 esac
6050 fi
6051
6052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6053 if test -n "$MAGIC_CMD"; then
6054 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6055 echo "${ECHO_T}$MAGIC_CMD" >&6
6056 else
6057 echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6
6059 fi
6060
6061 else
6062 MAGIC_CMD=:
6063 fi
6064 fi
6065
6066 fi
6067 ;;
6068 esac
6069
6070 enable_dlopen=no
6071 enable_win32_dll=no
6072
6073 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6074 if test "${enable_libtool_lock+set}" = set; then
6075 enableval="$enable_libtool_lock"
6076
6077 fi;
6078 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6079
6080
6081 # Check whether --with-pic or --without-pic was given.
6082 if test "${with_pic+set}" = set; then
6083 withval="$with_pic"
6084 pic_mode="$withval"
6085 else
6086 pic_mode=default
6087 fi;
6088 test -z "$pic_mode" && pic_mode=default
6089
6090 # Use C for the default configuration in the libtool script
6091 tagname=
6092 lt_save_CC="$CC"
6093 ac_ext=c
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098
6099
6100 # Source file extension for C test sources.
6101 ac_ext=c
6102
6103 # Object file extension for compiled C test sources.
6104 objext=o
6105 objext=$objext
6106
6107 # Code to be used in simple compile tests
6108 lt_simple_compile_test_code="int some_variable = 0;\n"
6109
6110 # Code to be used in simple link tests
6111 lt_simple_link_test_code='int main(){return(0);}\n'
6112
6113
6114 # If no C compiler was specified, use CC.
6115 LTCC=${LTCC-"$CC"}
6116
6117 # Allow CC to be a program name with arguments.
6118 compiler=$CC
6119
6120
6121 #
6122 # Check for any special shared library compilation flags.
6123 #
6124 lt_prog_cc_shlib=
6125 if test "$GCC" = no; then
6126 case $host_os in
6127 sco3.2v5*)
6128 lt_prog_cc_shlib='-belf'
6129 ;;
6130 esac
6131 fi
6132 if test -n "$lt_prog_cc_shlib"; then
6133 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6134 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6135 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6136 else
6137 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6138 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6139 lt_cv_prog_cc_can_build_shared=no
6140 fi
6141 fi
6142
6143
6144 #
6145 # Check to make sure the static flag actually works.
6146 #
6147 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6148 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6149 if test "${lt_prog_compiler_static_works+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 lt_prog_compiler_static_works=no
6153 save_LDFLAGS="$LDFLAGS"
6154 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6155 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6157 # The compiler can only warn and ignore the option if not recognized
6158 # So say no if there are warnings
6159 if test -s conftest.err; then
6160 # Append any errors to the config.log.
6161 cat conftest.err 1>&5
6162 else
6163 lt_prog_compiler_static_works=yes
6164 fi
6165 fi
6166 $rm conftest*
6167 LDFLAGS="$save_LDFLAGS"
6168
6169 fi
6170 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6171 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6172
6173 if test x"$lt_prog_compiler_static_works" = xyes; then
6174 :
6175 else
6176 lt_prog_compiler_static=
6177 fi
6178
6179
6180
6181
6182 lt_prog_compiler_no_builtin_flag=
6183
6184 if test "$GCC" = yes; then
6185 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6186
6187
6188 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6189 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6190 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 lt_cv_prog_compiler_rtti_exceptions=no
6194 ac_outfile=conftest.$ac_objext
6195 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6196 lt_compiler_flag="-fno-rtti -fno-exceptions"
6197 # Insert the option either (1) after the last *FLAGS variable, or
6198 # (2) before a word containing "conftest.", or (3) at the end.
6199 # Note that $ac_compile itself does not contain backslashes and begins
6200 # with a dollar sign (not a hyphen), so the echo should work correctly.
6201 # The option is referenced via a variable to avoid confusing sed.
6202 lt_compile=`echo "$ac_compile" | $SED \
6203 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6205 -e 's:$: $lt_compiler_flag:'`
6206 (eval echo "\"\$as_me:6206: $lt_compile\"" >&5)
6207 (eval "$lt_compile" 2>conftest.err)
6208 ac_status=$?
6209 cat conftest.err >&5
6210 echo "$as_me:6210: \$? = $ac_status" >&5
6211 if (exit $ac_status) && test -s "$ac_outfile"; then
6212 # The compiler can only warn and ignore the option if not recognized
6213 # So say no if there are warnings
6214 if test ! -s conftest.err; then
6215 lt_cv_prog_compiler_rtti_exceptions=yes
6216 fi
6217 fi
6218 $rm conftest*
6219
6220 fi
6221 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6222 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6223
6224 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6225 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6226 else
6227 :
6228 fi
6229
6230 fi
6231
6232 lt_prog_compiler_wl=
6233 lt_prog_compiler_pic=
6234 lt_prog_compiler_static=
6235
6236 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6237 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6238
6239 if test "$GCC" = yes; then
6240 lt_prog_compiler_wl='-Wl,'
6241 lt_prog_compiler_static='-static'
6242
6243 case $host_os in
6244 aix*)
6245 # All AIX code is PIC.
6246 if test "$host_cpu" = ia64; then
6247 # AIX 5 now supports IA64 processor
6248 lt_prog_compiler_static='-Bstatic'
6249 fi
6250 ;;
6251
6252 amigaos*)
6253 # FIXME: we need at least 68020 code to build shared libraries, but
6254 # adding the `-m68020' flag to GCC prevents building anything better,
6255 # like `-m68040'.
6256 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6257 ;;
6258
6259 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6260 # PIC is the default for these OSes.
6261 ;;
6262
6263 mingw* | pw32* | os2*)
6264 # This hack is so that the source file can tell whether it is being
6265 # built for inclusion in a dll (and should export symbols for example).
6266 lt_prog_compiler_pic='-DDLL_EXPORT'
6267 ;;
6268
6269 darwin* | rhapsody*)
6270 # PIC is the default on this platform
6271 # Common symbols not allowed in MH_DYLIB files
6272 lt_prog_compiler_pic='-fno-common'
6273 ;;
6274
6275 msdosdjgpp*)
6276 # Just because we use GCC doesn't mean we suddenly get shared libraries
6277 # on systems that don't support them.
6278 lt_prog_compiler_can_build_shared=no
6279 enable_shared=no
6280 ;;
6281
6282 sysv4*MP*)
6283 if test -d /usr/nec; then
6284 lt_prog_compiler_pic=-Kconform_pic
6285 fi
6286 ;;
6287
6288 hpux*)
6289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6290 # not for PA HP-UX.
6291 case "$host_cpu" in
6292 hppa*64*|ia64*)
6293 # +Z the default
6294 ;;
6295 *)
6296 lt_prog_compiler_pic='-fPIC'
6297 ;;
6298 esac
6299 ;;
6300
6301 *)
6302 lt_prog_compiler_pic='-fPIC'
6303 ;;
6304 esac
6305 else
6306 # PORTME Check for flag to pass linker flags through the system compiler.
6307 case $host_os in
6308 aix*)
6309 lt_prog_compiler_wl='-Wl,'
6310 if test "$host_cpu" = ia64; then
6311 # AIX 5 now supports IA64 processor
6312 lt_prog_compiler_static='-Bstatic'
6313 else
6314 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6315 fi
6316 ;;
6317
6318 mingw* | pw32* | os2*)
6319 # This hack is so that the source file can tell whether it is being
6320 # built for inclusion in a dll (and should export symbols for example).
6321 lt_prog_compiler_pic='-DDLL_EXPORT'
6322 ;;
6323
6324 hpux9* | hpux10* | hpux11*)
6325 lt_prog_compiler_wl='-Wl,'
6326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6327 # not for PA HP-UX.
6328 case "$host_cpu" in
6329 hppa*64*|ia64*)
6330 # +Z the default
6331 ;;
6332 *)
6333 lt_prog_compiler_pic='+Z'
6334 ;;
6335 esac
6336 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6337 lt_prog_compiler_static='${wl}-a ${wl}archive'
6338 ;;
6339
6340 irix5* | irix6* | nonstopux*)
6341 lt_prog_compiler_wl='-Wl,'
6342 # PIC (with -KPIC) is the default.
6343 lt_prog_compiler_static='-non_shared'
6344 ;;
6345
6346 newsos6)
6347 lt_prog_compiler_pic='-KPIC'
6348 lt_prog_compiler_static='-Bstatic'
6349 ;;
6350
6351 linux*)
6352 case $CC in
6353 icc* | ecc*)
6354 lt_prog_compiler_wl='-Wl,'
6355 lt_prog_compiler_pic='-KPIC'
6356 lt_prog_compiler_static='-static'
6357 ;;
6358 ccc*)
6359 lt_prog_compiler_wl='-Wl,'
6360 # All Alpha code is PIC.
6361 lt_prog_compiler_static='-non_shared'
6362 ;;
6363 esac
6364 ;;
6365
6366 osf3* | osf4* | osf5*)
6367 lt_prog_compiler_wl='-Wl,'
6368 # All OSF/1 code is PIC.
6369 lt_prog_compiler_static='-non_shared'
6370 ;;
6371
6372 sco3.2v5*)
6373 lt_prog_compiler_pic='-Kpic'
6374 lt_prog_compiler_static='-dn'
6375 ;;
6376
6377 solaris*)
6378 lt_prog_compiler_wl='-Wl,'
6379 lt_prog_compiler_pic='-KPIC'
6380 lt_prog_compiler_static='-Bstatic'
6381 ;;
6382
6383 sunos4*)
6384 lt_prog_compiler_wl='-Qoption ld '
6385 lt_prog_compiler_pic='-PIC'
6386 lt_prog_compiler_static='-Bstatic'
6387 ;;
6388
6389 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6390 lt_prog_compiler_wl='-Wl,'
6391 lt_prog_compiler_pic='-KPIC'
6392 lt_prog_compiler_static='-Bstatic'
6393 ;;
6394
6395 sysv4*MP*)
6396 if test -d /usr/nec ;then
6397 lt_prog_compiler_pic='-Kconform_pic'
6398 lt_prog_compiler_static='-Bstatic'
6399 fi
6400 ;;
6401
6402 uts4*)
6403 lt_prog_compiler_pic='-pic'
6404 lt_prog_compiler_static='-Bstatic'
6405 ;;
6406
6407 *)
6408 lt_prog_compiler_can_build_shared=no
6409 ;;
6410 esac
6411 fi
6412
6413 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6414 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6415
6416 #
6417 # Check to make sure the PIC flag actually works.
6418 #
6419 if test -n "$lt_prog_compiler_pic"; then
6420
6421 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6422 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6423 if test "${lt_prog_compiler_pic_works+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 lt_prog_compiler_pic_works=no
6427 ac_outfile=conftest.$ac_objext
6428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6429 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6430 # Insert the option either (1) after the last *FLAGS variable, or
6431 # (2) before a word containing "conftest.", or (3) at the end.
6432 # Note that $ac_compile itself does not contain backslashes and begins
6433 # with a dollar sign (not a hyphen), so the echo should work correctly.
6434 # The option is referenced via a variable to avoid confusing sed.
6435 lt_compile=`echo "$ac_compile" | $SED \
6436 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6438 -e 's:$: $lt_compiler_flag:'`
6439 (eval echo "\"\$as_me:6439: $lt_compile\"" >&5)
6440 (eval "$lt_compile" 2>conftest.err)
6441 ac_status=$?
6442 cat conftest.err >&5
6443 echo "$as_me:6443: \$? = $ac_status" >&5
6444 if (exit $ac_status) && test -s "$ac_outfile"; then
6445 # The compiler can only warn and ignore the option if not recognized
6446 # So say no if there are warnings
6447 if test ! -s conftest.err; then
6448 lt_prog_compiler_pic_works=yes
6449 fi
6450 fi
6451 $rm conftest*
6452
6453 fi
6454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6455 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6456
6457 if test x"$lt_prog_compiler_pic_works" = xyes; then
6458 case $lt_prog_compiler_pic in
6459 "" | " "*) ;;
6460 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6461 esac
6462 else
6463 lt_prog_compiler_pic=
6464 lt_prog_compiler_can_build_shared=no
6465 fi
6466
6467 fi
6468 case "$host_os" in
6469 # For platforms which do not support PIC, -DPIC is meaningless:
6470 *djgpp*)
6471 lt_prog_compiler_pic=
6472 ;;
6473 *)
6474 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6475 ;;
6476 esac
6477
6478 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6479 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6480 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 lt_cv_prog_compiler_c_o=no
6484 $rm -r conftest 2>/dev/null
6485 mkdir conftest
6486 cd conftest
6487 mkdir out
6488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6489
6490 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6491 # that will create temporary files in the current directory regardless of
6492 # the output directory. Thus, making CWD read-only will cause this test
6493 # to fail, enabling locking or at least warning the user not to do parallel
6494 # builds.
6495 chmod -w .
6496
6497 lt_compiler_flag="-o out/conftest2.$ac_objext"
6498 # Insert the option either (1) after the last *FLAGS variable, or
6499 # (2) before a word containing "conftest.", or (3) at the end.
6500 # Note that $ac_compile itself does not contain backslashes and begins
6501 # with a dollar sign (not a hyphen), so the echo should work correctly.
6502 lt_compile=`echo "$ac_compile" | $SED \
6503 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6505 -e 's:$: $lt_compiler_flag:'`
6506 (eval echo "\"\$as_me:6506: $lt_compile\"" >&5)
6507 (eval "$lt_compile" 2>out/conftest.err)
6508 ac_status=$?
6509 cat out/conftest.err >&5
6510 echo "$as_me:6510: \$? = $ac_status" >&5
6511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6512 then
6513 # The compiler can only warn and ignore the option if not recognized
6514 # So say no if there are warnings
6515 if test ! -s out/conftest.err; then
6516 lt_cv_prog_compiler_c_o=yes
6517 fi
6518 fi
6519 chmod u+w .
6520 $rm conftest*
6521 # SGI C++ compiler will create directory out/ii_files/ for
6522 # template instantiation
6523 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6524 $rm out/* && rmdir out
6525 cd ..
6526 rmdir conftest
6527 $rm conftest*
6528
6529 fi
6530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6532
6533
6534 hard_links="nottested"
6535 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6536 # do not overwrite the value of need_locks provided by the user
6537 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6538 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6539 hard_links=yes
6540 $rm conftest*
6541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6542 touch conftest.a
6543 ln conftest.a conftest.b 2>&5 || hard_links=no
6544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6545 echo "$as_me:$LINENO: result: $hard_links" >&5
6546 echo "${ECHO_T}$hard_links" >&6
6547 if test "$hard_links" = no; then
6548 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6549 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6550 need_locks=warn
6551 fi
6552 else
6553 need_locks=no
6554 fi
6555
6556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6558
6559 runpath_var=
6560 allow_undefined_flag=
6561 enable_shared_with_static_runtimes=no
6562 archive_cmds=
6563 archive_expsym_cmds=
6564 old_archive_From_new_cmds=
6565 old_archive_from_expsyms_cmds=
6566 export_dynamic_flag_spec=
6567 whole_archive_flag_spec=
6568 thread_safe_flag_spec=
6569 hardcode_libdir_flag_spec=
6570 hardcode_libdir_flag_spec_ld=
6571 hardcode_libdir_separator=
6572 hardcode_direct=no
6573 hardcode_minus_L=no
6574 hardcode_shlibpath_var=unsupported
6575 link_all_deplibs=unknown
6576 hardcode_automatic=no
6577 module_cmds=
6578 module_expsym_cmds=
6579 always_export_symbols=no
6580 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6581 # include_expsyms should be a list of space-separated symbols to be *always*
6582 # included in the symbol list
6583 include_expsyms=
6584 # exclude_expsyms can be an extended regexp of symbols to exclude
6585 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6586 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6587 # as well as any symbol that contains `d'.
6588 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6589 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6590 # platforms (ab)use it in PIC code, but their linkers get confused if
6591 # the symbol is explicitly referenced. Since portable code cannot
6592 # rely on this symbol name, it's probably fine to never include it in
6593 # preloaded symbol tables.
6594 extract_expsyms_cmds=
6595
6596 case $host_os in
6597 cygwin* | mingw* | pw32*)
6598 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6599 # When not using gcc, we currently assume that we are using
6600 # Microsoft Visual C++.
6601 if test "$GCC" != yes; then
6602 with_gnu_ld=no
6603 fi
6604 ;;
6605 openbsd*)
6606 with_gnu_ld=no
6607 ;;
6608 esac
6609
6610 ld_shlibs=yes
6611 if test "$with_gnu_ld" = yes; then
6612 # If archive_cmds runs LD, not CC, wlarc should be empty
6613 wlarc='${wl}'
6614
6615 # See if GNU ld supports shared libraries.
6616 case $host_os in
6617 aix3* | aix4* | aix5*)
6618 # On AIX/PPC, the GNU linker is very broken
6619 if test "$host_cpu" != ia64; then
6620 ld_shlibs=no
6621 cat <<EOF 1>&2
6622
6623 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6624 *** to be unable to reliably create shared libraries on AIX.
6625 *** Therefore, libtool is disabling shared libraries support. If you
6626 *** really care for shared libraries, you may want to modify your PATH
6627 *** so that a non-GNU linker is found, and then restart.
6628
6629 EOF
6630 fi
6631 ;;
6632
6633 amigaos*)
6634 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)'
6635 hardcode_libdir_flag_spec='-L$libdir'
6636 hardcode_minus_L=yes
6637
6638 # Samuel A. Falvo II <[email protected]> reports
6639 # that the semantics of dynamic libraries on AmigaOS, at least up
6640 # to version 4, is to share data among multiple programs linked
6641 # with the same dynamic library. Since this doesn't match the
6642 # behavior of shared libraries on other platforms, we can't use
6643 # them.
6644 ld_shlibs=no
6645 ;;
6646
6647 beos*)
6648 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6649 allow_undefined_flag=unsupported
6650 # Joseph Beckenbach <[email protected]> says some releases of gcc
6651 # support --undefined. This deserves some investigation. FIXME
6652 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6653 else
6654 ld_shlibs=no
6655 fi
6656 ;;
6657
6658 cygwin* | mingw* | pw32*)
6659 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6660 # as there is no search path for DLLs.
6661 hardcode_libdir_flag_spec='-L$libdir'
6662 allow_undefined_flag=unsupported
6663 always_export_symbols=no
6664 enable_shared_with_static_runtimes=yes
6665 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6666
6667 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6669 # If the export-symbols file already is a .def file (1st line
6670 # is EXPORTS), use it as is; otherwise, prepend...
6671 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6672 cp $export_symbols $output_objdir/$soname.def;
6673 else
6674 echo EXPORTS > $output_objdir/$soname.def;
6675 cat $export_symbols >> $output_objdir/$soname.def;
6676 fi~
6677 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6678 else
6679 ld_shlibs=no
6680 fi
6681 ;;
6682
6683 netbsd*)
6684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6685 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6686 wlarc=
6687 else
6688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6689 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6690 fi
6691 ;;
6692
6693 solaris* | sysv5*)
6694 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6695 ld_shlibs=no
6696 cat <<EOF 1>&2
6697
6698 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6699 *** create shared libraries on Solaris systems. Therefore, libtool
6700 *** is disabling shared libraries support. We urge you to upgrade GNU
6701 *** binutils to release 2.9.1 or newer. Another option is to modify
6702 *** your PATH or compiler configuration so that the native linker is
6703 *** used, and then restart.
6704
6705 EOF
6706 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6709 else
6710 ld_shlibs=no
6711 fi
6712 ;;
6713
6714 sunos4*)
6715 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6716 wlarc=
6717 hardcode_direct=yes
6718 hardcode_shlibpath_var=no
6719 ;;
6720
6721 linux*)
6722 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6723 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6724 archive_cmds="$tmp_archive_cmds"
6725 supports_anon_versioning=no
6726 case `$LD -v 2>/dev/null` in
6727 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6728 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6729 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6730 *\ 2.11.*) ;; # other 2.11 versions
6731 *) supports_anon_versioning=yes ;;
6732 esac
6733 if test $supports_anon_versioning = yes; then
6734 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6736 $echo "local: *; };" >> $output_objdir/$libname.ver~
6737 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6738 else
6739 archive_expsym_cmds="$tmp_archive_cmds"
6740 fi
6741 else
6742 ld_shlibs=no
6743 fi
6744 ;;
6745
6746 *)
6747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6750 else
6751 ld_shlibs=no
6752 fi
6753 ;;
6754 esac
6755
6756 if test "$ld_shlibs" = yes; then
6757 runpath_var=LD_RUN_PATH
6758 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6759 export_dynamic_flag_spec='${wl}--export-dynamic'
6760 # ancient GNU ld didn't support --whole-archive et. al.
6761 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6762 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6763 else
6764 whole_archive_flag_spec=
6765 fi
6766 fi
6767 else
6768 # PORTME fill in a description of your system's linker (not GNU ld)
6769 case $host_os in
6770 aix3*)
6771 allow_undefined_flag=unsupported
6772 always_export_symbols=yes
6773 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'
6774 # Note: this linker hardcodes the directories in LIBPATH if there
6775 # are no directories specified by -L.
6776 hardcode_minus_L=yes
6777 if test "$GCC" = yes && test -z "$link_static_flag"; then
6778 # Neither direct hardcoding nor static linking is supported with a
6779 # broken collect2.
6780 hardcode_direct=unsupported
6781 fi
6782 ;;
6783
6784 aix4* | aix5*)
6785 if test "$host_cpu" = ia64; then
6786 # On IA64, the linker does run time linking by default, so we don't
6787 # have to do anything special.
6788 aix_use_runtimelinking=no
6789 exp_sym_flag='-Bexport'
6790 no_entry_flag=""
6791 else
6792 # If we're using GNU nm, then we don't want the "-C" option.
6793 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6794 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6795 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'
6796 else
6797 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'
6798 fi
6799 aix_use_runtimelinking=no
6800
6801 # Test if we are trying to use run time linking or normal
6802 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6803 # need to do runtime linking.
6804 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6805 for ld_flag in $LDFLAGS; do
6806 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6807 aix_use_runtimelinking=yes
6808 break
6809 fi
6810 done
6811 esac
6812
6813 exp_sym_flag='-bexport'
6814 no_entry_flag='-bnoentry'
6815 fi
6816
6817 # When large executables or shared objects are built, AIX ld can
6818 # have problems creating the table of contents. If linking a library
6819 # or program results in "error TOC overflow" add -mminimal-toc to
6820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6822
6823 archive_cmds=''
6824 hardcode_direct=yes
6825 hardcode_libdir_separator=':'
6826 link_all_deplibs=yes
6827
6828 if test "$GCC" = yes; then
6829 case $host_os in aix4.012|aix4.012.*)
6830 # We only want to do this on AIX 4.2 and lower, the check
6831 # below for broken collect2 doesn't work under 4.3+
6832 collect2name=`${CC} -print-prog-name=collect2`
6833 if test -f "$collect2name" && \
6834 strings "$collect2name" | grep resolve_lib_name >/dev/null
6835 then
6836 # We have reworked collect2
6837 hardcode_direct=yes
6838 else
6839 # We have old collect2
6840 hardcode_direct=unsupported
6841 # It fails to find uninstalled libraries when the uninstalled
6842 # path is not listed in the libpath. Setting hardcode_minus_L
6843 # to unsupported forces relinking
6844 hardcode_minus_L=yes
6845 hardcode_libdir_flag_spec='-L$libdir'
6846 hardcode_libdir_separator=
6847 fi
6848 esac
6849 shared_flag='-shared'
6850 else
6851 # not using gcc
6852 if test "$host_cpu" = ia64; then
6853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6854 # chokes on -Wl,-G. The following line is correct:
6855 shared_flag='-G'
6856 else
6857 if test "$aix_use_runtimelinking" = yes; then
6858 shared_flag='${wl}-G'
6859 else
6860 shared_flag='${wl}-bM:SRE'
6861 fi
6862 fi
6863 fi
6864
6865 # It seems that -bexpall does not export symbols beginning with
6866 # underscore (_), so it is better to generate a list of symbols to export.
6867 always_export_symbols=yes
6868 if test "$aix_use_runtimelinking" = yes; then
6869 # Warning - without using the other runtime loading flags (-brtl),
6870 # -berok will link without error, but may produce a broken library.
6871 allow_undefined_flag='-berok'
6872 # Determine the default libpath from the value encoded in an empty executable.
6873 cat >conftest.$ac_ext <<_ACEOF
6874 #line $LINENO "configure"
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880
6881 int
6882 main ()
6883 {
6884
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891 (eval $ac_link) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -s conftest$ac_exeext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901
6902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6903 }'`
6904 # Check for a 64-bit object if we didn't find anything.
6905 if 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; }
6906 }'`; fi
6907 else
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 fi
6912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6914
6915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6916 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"
6917 else
6918 if test "$host_cpu" = ia64; then
6919 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6920 allow_undefined_flag="-z nodefs"
6921 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"
6922 else
6923 # Determine the default libpath from the value encoded in an empty executable.
6924 cat >conftest.$ac_ext <<_ACEOF
6925 #line $LINENO "configure"
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931
6932 int
6933 main ()
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -s conftest$ac_exeext'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6952
6953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6954 }'`
6955 # Check for a 64-bit object if we didn't find anything.
6956 if 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; }
6957 }'`; fi
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 fi
6963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6965
6966 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6967 # Warning - without using the other run time loading flags,
6968 # -berok will link without error, but may produce a broken library.
6969 no_undefined_flag=' ${wl}-bernotok'
6970 allow_undefined_flag=' ${wl}-berok'
6971 # -bexpall does not export symbols beginning with underscore (_)
6972 always_export_symbols=yes
6973 # Exported symbols can be pulled into shared objects from archives
6974 whole_archive_flag_spec=' '
6975 archive_cmds_need_lc=yes
6976 # This is similar to how AIX traditionally builds it's shared libraries.
6977 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'
6978 fi
6979 fi
6980 ;;
6981
6982 amigaos*)
6983 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)'
6984 hardcode_libdir_flag_spec='-L$libdir'
6985 hardcode_minus_L=yes
6986 # see comment about different semantics on the GNU ld section
6987 ld_shlibs=no
6988 ;;
6989
6990 bsdi4*)
6991 export_dynamic_flag_spec=-rdynamic
6992 ;;
6993
6994 cygwin* | mingw* | pw32*)
6995 # When not using gcc, we currently assume that we are using
6996 # Microsoft Visual C++.
6997 # hardcode_libdir_flag_spec is actually meaningless, as there is
6998 # no search path for DLLs.
6999 hardcode_libdir_flag_spec=' '
7000 allow_undefined_flag=unsupported
7001 # Tell ltmain to make .lib files, not .a files.
7002 libext=lib
7003 # Tell ltmain to make .dll files, not .so files.
7004 shrext=".dll"
7005 # FIXME: Setting linknames here is a bad hack.
7006 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7007 # The linker will automatically build a .lib file if we build a DLL.
7008 old_archive_From_new_cmds='true'
7009 # FIXME: Should let the user specify the lib program.
7010 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7011 fix_srcfile_path='`cygpath -w "$srcfile"`'
7012 enable_shared_with_static_runtimes=yes
7013 ;;
7014
7015 darwin* | rhapsody*)
7016 if test "$GXX" = yes ; then
7017 archive_cmds_need_lc=no
7018 case "$host_os" in
7019 rhapsody* | darwin1.[012])
7020 allow_undefined_flag='-undefined suppress'
7021 ;;
7022 *) # Darwin 1.3 on
7023 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7024 allow_undefined_flag='-flat_namespace -undefined suppress'
7025 else
7026 case ${MACOSX_DEPLOYMENT_TARGET} in
7027 10.[012])
7028 allow_undefined_flag='-flat_namespace -undefined suppress'
7029 ;;
7030 10.*)
7031 allow_undefined_flag='-undefined dynamic_lookup'
7032 ;;
7033 esac
7034 fi
7035 ;;
7036 esac
7037 lt_int_apple_cc_single_mod=no
7038 output_verbose_link_cmd='echo'
7039 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7040 lt_int_apple_cc_single_mod=yes
7041 fi
7042 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7043 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7044 else
7045 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7046 fi
7047 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7049 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7050 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7051 else
7052 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7053 fi
7054 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7055 hardcode_direct=no
7056 hardcode_automatic=yes
7057 hardcode_shlibpath_var=unsupported
7058 whole_archive_flag_spec='-all_load $convenience'
7059 link_all_deplibs=yes
7060 else
7061 ld_shlibs=no
7062 fi
7063 ;;
7064
7065 dgux*)
7066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7067 hardcode_libdir_flag_spec='-L$libdir'
7068 hardcode_shlibpath_var=no
7069 ;;
7070
7071 freebsd1*)
7072 ld_shlibs=no
7073 ;;
7074
7075 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7076 # support. Future versions do this automatically, but an explicit c++rt0.o
7077 # does not break anything, and helps significantly (at the cost of a little
7078 # extra space).
7079 freebsd2.2*)
7080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7081 hardcode_libdir_flag_spec='-R$libdir'
7082 hardcode_direct=yes
7083 hardcode_shlibpath_var=no
7084 ;;
7085
7086 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7087 freebsd2*)
7088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7089 hardcode_direct=yes
7090 hardcode_minus_L=yes
7091 hardcode_shlibpath_var=no
7092 ;;
7093
7094 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7095 freebsd* | kfreebsd*-gnu)
7096 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7097 hardcode_libdir_flag_spec='-R$libdir'
7098 hardcode_direct=yes
7099 hardcode_shlibpath_var=no
7100 ;;
7101
7102 hpux9*)
7103 if test "$GCC" = yes; then
7104 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'
7105 else
7106 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'
7107 fi
7108 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7109 hardcode_libdir_separator=:
7110 hardcode_direct=yes
7111
7112 # hardcode_minus_L: Not really in the search PATH,
7113 # but as the default location of the library.
7114 hardcode_minus_L=yes
7115 export_dynamic_flag_spec='${wl}-E'
7116 ;;
7117
7118 hpux10* | hpux11*)
7119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7120 case "$host_cpu" in
7121 hppa*64*|ia64*)
7122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7123 ;;
7124 *)
7125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7126 ;;
7127 esac
7128 else
7129 case "$host_cpu" in
7130 hppa*64*|ia64*)
7131 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7132 ;;
7133 *)
7134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7135 ;;
7136 esac
7137 fi
7138 if test "$with_gnu_ld" = no; then
7139 case "$host_cpu" in
7140 hppa*64*)
7141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7142 hardcode_libdir_flag_spec_ld='+b $libdir'
7143 hardcode_libdir_separator=:
7144 hardcode_direct=no
7145 hardcode_shlibpath_var=no
7146 ;;
7147 ia64*)
7148 hardcode_libdir_flag_spec='-L$libdir'
7149 hardcode_direct=no
7150 hardcode_shlibpath_var=no
7151
7152 # hardcode_minus_L: Not really in the search PATH,
7153 # but as the default location of the library.
7154 hardcode_minus_L=yes
7155 ;;
7156 *)
7157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7158 hardcode_libdir_separator=:
7159 hardcode_direct=yes
7160 export_dynamic_flag_spec='${wl}-E'
7161
7162 # hardcode_minus_L: Not really in the search PATH,
7163 # but as the default location of the library.
7164 hardcode_minus_L=yes
7165 ;;
7166 esac
7167 fi
7168 ;;
7169
7170 irix5* | irix6* | nonstopux*)
7171 if test "$GCC" = yes; then
7172 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'
7173 else
7174 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'
7175 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7176 fi
7177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7178 hardcode_libdir_separator=:
7179 link_all_deplibs=yes
7180 ;;
7181
7182 netbsd*)
7183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7185 else
7186 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7187 fi
7188 hardcode_libdir_flag_spec='-R$libdir'
7189 hardcode_direct=yes
7190 hardcode_shlibpath_var=no
7191 ;;
7192
7193 newsos6)
7194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7195 hardcode_direct=yes
7196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7197 hardcode_libdir_separator=:
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 openbsd*)
7202 hardcode_direct=yes
7203 hardcode_shlibpath_var=no
7204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7207 export_dynamic_flag_spec='${wl}-E'
7208 else
7209 case $host_os in
7210 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7212 hardcode_libdir_flag_spec='-R$libdir'
7213 ;;
7214 *)
7215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7217 ;;
7218 esac
7219 fi
7220 ;;
7221
7222 os2*)
7223 hardcode_libdir_flag_spec='-L$libdir'
7224 hardcode_minus_L=yes
7225 allow_undefined_flag=unsupported
7226 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'
7227 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7228 ;;
7229
7230 osf3*)
7231 if test "$GCC" = yes; then
7232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7233 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'
7234 else
7235 allow_undefined_flag=' -expect_unresolved \*'
7236 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'
7237 fi
7238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7239 hardcode_libdir_separator=:
7240 ;;
7241
7242 osf4* | osf5*) # as osf3* with the addition of -msym flag
7243 if test "$GCC" = yes; then
7244 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7245 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'
7246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7247 else
7248 allow_undefined_flag=' -expect_unresolved \*'
7249 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'
7250 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7251 $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'
7252
7253 # Both c and cxx compiler support -rpath directly
7254 hardcode_libdir_flag_spec='-rpath $libdir'
7255 fi
7256 hardcode_libdir_separator=:
7257 ;;
7258
7259 sco3.2v5*)
7260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261 hardcode_shlibpath_var=no
7262 export_dynamic_flag_spec='${wl}-Bexport'
7263 runpath_var=LD_RUN_PATH
7264 hardcode_runpath_var=yes
7265 ;;
7266
7267 solaris*)
7268 no_undefined_flag=' -z text'
7269 if test "$GCC" = yes; then
7270 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7271 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7272 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7273 else
7274 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7277 fi
7278 hardcode_libdir_flag_spec='-R$libdir'
7279 hardcode_shlibpath_var=no
7280 case $host_os in
7281 solaris2.[0-5] | solaris2.[0-5].*) ;;
7282 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7283 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7284 esac
7285 link_all_deplibs=yes
7286 ;;
7287
7288 sunos4*)
7289 if test "x$host_vendor" = xsequent; then
7290 # Use $CC to link under sequent, because it throws in some extra .o
7291 # files that make .init and .fini sections work.
7292 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7293 else
7294 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7295 fi
7296 hardcode_libdir_flag_spec='-L$libdir'
7297 hardcode_direct=yes
7298 hardcode_minus_L=yes
7299 hardcode_shlibpath_var=no
7300 ;;
7301
7302 sysv4)
7303 case $host_vendor in
7304 sni)
7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_direct=yes # is this really true???
7307 ;;
7308 siemens)
7309 ## LD is ld it makes a PLAMLIB
7310 ## CC just makes a GrossModule.
7311 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7312 reload_cmds='$CC -r -o $output$reload_objs'
7313 hardcode_direct=no
7314 ;;
7315 motorola)
7316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7318 ;;
7319 esac
7320 runpath_var='LD_RUN_PATH'
7321 hardcode_shlibpath_var=no
7322 ;;
7323
7324 sysv4.3*)
7325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7326 hardcode_shlibpath_var=no
7327 export_dynamic_flag_spec='-Bexport'
7328 ;;
7329
7330 sysv4*MP*)
7331 if test -d /usr/nec; then
7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_shlibpath_var=no
7334 runpath_var=LD_RUN_PATH
7335 hardcode_runpath_var=yes
7336 ld_shlibs=yes
7337 fi
7338 ;;
7339
7340 sysv4.2uw2*)
7341 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_direct=yes
7343 hardcode_minus_L=no
7344 hardcode_shlibpath_var=no
7345 hardcode_runpath_var=yes
7346 runpath_var=LD_RUN_PATH
7347 ;;
7348
7349 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7350 no_undefined_flag='${wl}-z ${wl}text'
7351 if test "$GCC" = yes; then
7352 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7353 else
7354 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7355 fi
7356 runpath_var='LD_RUN_PATH'
7357 hardcode_shlibpath_var=no
7358 ;;
7359
7360 sysv5*)
7361 no_undefined_flag=' -z text'
7362 # $CC -shared without GNU ld will not create a library from C++
7363 # object files and a static libstdc++, better avoid it by now
7364 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7367 hardcode_libdir_flag_spec=
7368 hardcode_shlibpath_var=no
7369 runpath_var='LD_RUN_PATH'
7370 ;;
7371
7372 uts4*)
7373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374 hardcode_libdir_flag_spec='-L$libdir'
7375 hardcode_shlibpath_var=no
7376 ;;
7377
7378 *)
7379 ld_shlibs=no
7380 ;;
7381 esac
7382 fi
7383
7384 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7385 echo "${ECHO_T}$ld_shlibs" >&6
7386 test "$ld_shlibs" = no && can_build_shared=no
7387
7388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7389 if test "$GCC" = yes; then
7390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7391 fi
7392
7393 #
7394 # Do we need to explicitly link libc?
7395 #
7396 case "x$archive_cmds_need_lc" in
7397 x|xyes)
7398 # Assume -lc should be added
7399 archive_cmds_need_lc=yes
7400
7401 if test "$enable_shared" = yes && test "$GCC" = yes; then
7402 case $archive_cmds in
7403 *'~'*)
7404 # FIXME: we may have to deal with multi-command sequences.
7405 ;;
7406 '$CC '*)
7407 # Test whether the compiler implicitly links with -lc since on some
7408 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7409 # to ld, don't add -lc before -lgcc.
7410 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7411 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7412 $rm conftest*
7413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7414
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } 2>conftest.err; then
7420 soname=conftest
7421 lib=conftest
7422 libobjs=conftest.$ac_objext
7423 deplibs=
7424 wl=$lt_prog_compiler_wl
7425 compiler_flags=-v
7426 linker_flags=-v
7427 verstring=
7428 output_objdir=.
7429 libname=conftest
7430 lt_save_allow_undefined_flag=$allow_undefined_flag
7431 allow_undefined_flag=
7432 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7433 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }
7437 then
7438 archive_cmds_need_lc=no
7439 else
7440 archive_cmds_need_lc=yes
7441 fi
7442 allow_undefined_flag=$lt_save_allow_undefined_flag
7443 else
7444 cat conftest.err 1>&5
7445 fi
7446 $rm conftest*
7447 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7448 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7449 ;;
7450 esac
7451 fi
7452 ;;
7453 esac
7454
7455 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7457 library_names_spec=
7458 libname_spec='lib$name'
7459 soname_spec=
7460 shrext=".so"
7461 postinstall_cmds=
7462 postuninstall_cmds=
7463 finish_cmds=
7464 finish_eval=
7465 shlibpath_var=
7466 shlibpath_overrides_runpath=unknown
7467 version_type=none
7468 dynamic_linker="$host_os ld.so"
7469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7470 if test "$GCC" = yes; then
7471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7472 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7473 # if the path contains ";" then we assume it to be the separator
7474 # otherwise default to the standard path separator (i.e. ":") - it is
7475 # assumed that no part of a normal pathname contains ";" but that should
7476 # okay in the real world where ";" in dirpaths is itself problematic.
7477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7478 else
7479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7480 fi
7481 else
7482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7483 fi
7484 need_lib_prefix=unknown
7485 hardcode_into_libs=no
7486
7487 # when you set need_version to no, make sure it does not cause -set_version
7488 # flags to be left without arguments
7489 need_version=unknown
7490
7491 case $host_os in
7492 aix3*)
7493 version_type=linux
7494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7495 shlibpath_var=LIBPATH
7496
7497 # AIX 3 has no versioning support, so we append a major version to the name.
7498 soname_spec='${libname}${release}${shared_ext}$major'
7499 ;;
7500
7501 aix4* | aix5*)
7502 version_type=linux
7503 need_lib_prefix=no
7504 need_version=no
7505 hardcode_into_libs=yes
7506 if test "$host_cpu" = ia64; then
7507 # AIX 5 supports IA64
7508 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7509 shlibpath_var=LD_LIBRARY_PATH
7510 else
7511 # With GCC up to 2.95.x, collect2 would create an import file
7512 # for dependence libraries. The import file would start with
7513 # the line `#! .'. This would cause the generated library to
7514 # depend on `.', always an invalid library. This was fixed in
7515 # development snapshots of GCC prior to 3.0.
7516 case $host_os in
7517 aix4 | aix4.[01] | aix4.[01].*)
7518 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7519 echo ' yes '
7520 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7521 :
7522 else
7523 can_build_shared=no
7524 fi
7525 ;;
7526 esac
7527 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7528 # soname into executable. Probably we can add versioning support to
7529 # collect2, so additional links can be useful in future.
7530 if test "$aix_use_runtimelinking" = yes; then
7531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7532 # instead of lib<name>.a to let people know that these are not
7533 # typical AIX shared libraries.
7534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7535 else
7536 # We preserve .a as extension for shared libraries through AIX4.2
7537 # and later when we are not doing run time linking.
7538 library_names_spec='${libname}${release}.a $libname.a'
7539 soname_spec='${libname}${release}${shared_ext}$major'
7540 fi
7541 shlibpath_var=LIBPATH
7542 fi
7543 ;;
7544
7545 amigaos*)
7546 library_names_spec='$libname.ixlibrary $libname.a'
7547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7548 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'
7549 ;;
7550
7551 beos*)
7552 library_names_spec='${libname}${shared_ext}'
7553 dynamic_linker="$host_os ld.so"
7554 shlibpath_var=LIBRARY_PATH
7555 ;;
7556
7557 bsdi4*)
7558 version_type=linux
7559 need_version=no
7560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7561 soname_spec='${libname}${release}${shared_ext}$major'
7562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7563 shlibpath_var=LD_LIBRARY_PATH
7564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7566 # the default ld.so.conf also contains /usr/contrib/lib and
7567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7568 # libtool to hard-code these into programs
7569 ;;
7570
7571 cygwin* | mingw* | pw32*)
7572 version_type=windows
7573 shrext=".dll"
7574 need_version=no
7575 need_lib_prefix=no
7576
7577 case $GCC,$host_os in
7578 yes,cygwin* | yes,mingw* | yes,pw32*)
7579 library_names_spec='$libname.dll.a'
7580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7581 postinstall_cmds='base_file=`basename \${file}`~
7582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7583 dldir=$destdir/`dirname \$dlpath`~
7584 test -d \$dldir || mkdir -p \$dldir~
7585 $install_prog $dir/$dlname \$dldir/$dlname'
7586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7587 dlpath=$dir/\$dldll~
7588 $rm \$dlpath'
7589 shlibpath_overrides_runpath=yes
7590
7591 case $host_os in
7592 cygwin*)
7593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7595 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7596 ;;
7597 mingw*)
7598 # MinGW DLLs use traditional 'lib' prefix
7599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7601 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7602 # It is most probably a Windows format PATH printed by
7603 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7604 # path with ; separators, and with drive letters. We can handle the
7605 # drive letters (cygwin fileutils understands them), so leave them,
7606 # especially as we might pass files found there to a mingw objdump,
7607 # which wouldn't understand a cygwinified path. Ahh.
7608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7609 else
7610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7611 fi
7612 ;;
7613 pw32*)
7614 # pw32 DLLs use 'pw' prefix rather than 'lib'
7615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7616 ;;
7617 esac
7618 ;;
7619
7620 *)
7621 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7622 ;;
7623 esac
7624 dynamic_linker='Win32 ld.exe'
7625 # FIXME: first we should search . and the directory the executable is in
7626 shlibpath_var=PATH
7627 ;;
7628
7629 darwin* | rhapsody*)
7630 dynamic_linker="$host_os dyld"
7631 version_type=darwin
7632 need_lib_prefix=no
7633 need_version=no
7634 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7635 soname_spec='${libname}${release}${major}$shared_ext'
7636 shlibpath_overrides_runpath=yes
7637 shlibpath_var=DYLD_LIBRARY_PATH
7638 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7639 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7640 if test "$GCC" = yes; then
7641 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7642 else
7643 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7644 fi
7645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7646 ;;
7647
7648 dgux*)
7649 version_type=linux
7650 need_lib_prefix=no
7651 need_version=no
7652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7653 soname_spec='${libname}${release}${shared_ext}$major'
7654 shlibpath_var=LD_LIBRARY_PATH
7655 ;;
7656
7657 freebsd1*)
7658 dynamic_linker=no
7659 ;;
7660
7661 kfreebsd*-gnu)
7662 version_type=linux
7663 need_lib_prefix=no
7664 need_version=no
7665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7666 soname_spec='${libname}${release}${shared_ext}$major'
7667 shlibpath_var=LD_LIBRARY_PATH
7668 shlibpath_overrides_runpath=no
7669 hardcode_into_libs=yes
7670 dynamic_linker='GNU ld.so'
7671 ;;
7672
7673 freebsd*)
7674 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7675 version_type=freebsd-$objformat
7676 case $version_type in
7677 freebsd-elf*)
7678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7679 need_version=no
7680 need_lib_prefix=no
7681 ;;
7682 freebsd-*)
7683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7684 need_version=yes
7685 ;;
7686 esac
7687 shlibpath_var=LD_LIBRARY_PATH
7688 case $host_os in
7689 freebsd2*)
7690 shlibpath_overrides_runpath=yes
7691 ;;
7692 freebsd3.01* | freebsdelf3.01*)
7693 shlibpath_overrides_runpath=yes
7694 hardcode_into_libs=yes
7695 ;;
7696 *) # from 3.2 on
7697 shlibpath_overrides_runpath=no
7698 hardcode_into_libs=yes
7699 ;;
7700 esac
7701 ;;
7702
7703 gnu*)
7704 version_type=linux
7705 need_lib_prefix=no
7706 need_version=no
7707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7708 soname_spec='${libname}${release}${shared_ext}$major'
7709 shlibpath_var=LD_LIBRARY_PATH
7710 hardcode_into_libs=yes
7711 ;;
7712
7713 hpux9* | hpux10* | hpux11*)
7714 # Give a soname corresponding to the major version so that dld.sl refuses to
7715 # link against other versions.
7716 version_type=sunos
7717 need_lib_prefix=no
7718 need_version=no
7719 case "$host_cpu" in
7720 ia64*)
7721 shrext='.so'
7722 hardcode_into_libs=yes
7723 dynamic_linker="$host_os dld.so"
7724 shlibpath_var=LD_LIBRARY_PATH
7725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7727 soname_spec='${libname}${release}${shared_ext}$major'
7728 if test "X$HPUX_IA64_MODE" = X32; then
7729 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7730 else
7731 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7732 fi
7733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7734 ;;
7735 hppa*64*)
7736 shrext='.sl'
7737 hardcode_into_libs=yes
7738 dynamic_linker="$host_os dld.sl"
7739 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7742 soname_spec='${libname}${release}${shared_ext}$major'
7743 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7745 ;;
7746 *)
7747 shrext='.sl'
7748 dynamic_linker="$host_os dld.sl"
7749 shlibpath_var=SHLIB_PATH
7750 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7752 soname_spec='${libname}${release}${shared_ext}$major'
7753 ;;
7754 esac
7755 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7756 postinstall_cmds='chmod 555 $lib'
7757 ;;
7758
7759 irix5* | irix6* | nonstopux*)
7760 case $host_os in
7761 nonstopux*) version_type=nonstopux ;;
7762 *)
7763 if test "$lt_cv_prog_gnu_ld" = yes; then
7764 version_type=linux
7765 else
7766 version_type=irix
7767 fi ;;
7768 esac
7769 need_lib_prefix=no
7770 need_version=no
7771 soname_spec='${libname}${release}${shared_ext}$major'
7772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7773 case $host_os in
7774 irix5* | nonstopux*)
7775 libsuff= shlibsuff=
7776 ;;
7777 *)
7778 case $LD in # libtool.m4 will add one of these switches to LD
7779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7780 libsuff= shlibsuff= libmagic=32-bit;;
7781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7782 libsuff=32 shlibsuff=N32 libmagic=N32;;
7783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7784 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7785 *) libsuff= shlibsuff= libmagic=never-match;;
7786 esac
7787 ;;
7788 esac
7789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7790 shlibpath_overrides_runpath=no
7791 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7792 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7793 hardcode_into_libs=yes
7794 ;;
7795
7796 # No shared lib support for Linux oldld, aout, or coff.
7797 linux*oldld* | linux*aout* | linux*coff*)
7798 dynamic_linker=no
7799 ;;
7800
7801 # This must be Linux ELF.
7802 linux*)
7803 version_type=linux
7804 need_lib_prefix=no
7805 need_version=no
7806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807 soname_spec='${libname}${release}${shared_ext}$major'
7808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7809 shlibpath_var=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath=no
7811 # This implies no fast_install, which is unacceptable.
7812 # Some rework will be needed to allow for fast_install
7813 # before this can be enabled.
7814 hardcode_into_libs=yes
7815
7816 # We used to test for /lib/ld.so.1 and disable shared libraries on
7817 # powerpc, because MkLinux only supported shared libraries with the
7818 # GNU dynamic linker. Since this was broken with cross compilers,
7819 # most powerpc-linux boxes support dynamic linking these days and
7820 # people can always --disable-shared, the test was removed, and we
7821 # assume the GNU/Linux dynamic linker is in use.
7822 dynamic_linker='GNU/Linux ld.so'
7823 ;;
7824
7825 netbsd*)
7826 version_type=sunos
7827 need_lib_prefix=no
7828 need_version=no
7829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7832 dynamic_linker='NetBSD (a.out) ld.so'
7833 else
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 dynamic_linker='NetBSD ld.elf_so'
7837 fi
7838 shlibpath_var=LD_LIBRARY_PATH
7839 shlibpath_overrides_runpath=yes
7840 hardcode_into_libs=yes
7841 ;;
7842
7843 newsos6)
7844 version_type=linux
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846 shlibpath_var=LD_LIBRARY_PATH
7847 shlibpath_overrides_runpath=yes
7848 ;;
7849
7850 nto-qnx*)
7851 version_type=linux
7852 need_lib_prefix=no
7853 need_version=no
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7855 soname_spec='${libname}${release}${shared_ext}$major'
7856 shlibpath_var=LD_LIBRARY_PATH
7857 shlibpath_overrides_runpath=yes
7858 ;;
7859
7860 openbsd*)
7861 version_type=sunos
7862 need_lib_prefix=no
7863 need_version=no
7864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7866 shlibpath_var=LD_LIBRARY_PATH
7867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7868 case $host_os in
7869 openbsd2.[89] | openbsd2.[89].*)
7870 shlibpath_overrides_runpath=no
7871 ;;
7872 *)
7873 shlibpath_overrides_runpath=yes
7874 ;;
7875 esac
7876 else
7877 shlibpath_overrides_runpath=yes
7878 fi
7879 ;;
7880
7881 os2*)
7882 libname_spec='$name'
7883 shrext=".dll"
7884 need_lib_prefix=no
7885 library_names_spec='$libname${shared_ext} $libname.a'
7886 dynamic_linker='OS/2 ld.exe'
7887 shlibpath_var=LIBPATH
7888 ;;
7889
7890 osf3* | osf4* | osf5*)
7891 version_type=osf
7892 need_lib_prefix=no
7893 need_version=no
7894 soname_spec='${libname}${release}${shared_ext}$major'
7895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 shlibpath_var=LD_LIBRARY_PATH
7897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7899 ;;
7900
7901 sco3.2v5*)
7902 version_type=osf
7903 soname_spec='${libname}${release}${shared_ext}$major'
7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905 shlibpath_var=LD_LIBRARY_PATH
7906 ;;
7907
7908 solaris*)
7909 version_type=linux
7910 need_lib_prefix=no
7911 need_version=no
7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7913 soname_spec='${libname}${release}${shared_ext}$major'
7914 shlibpath_var=LD_LIBRARY_PATH
7915 shlibpath_overrides_runpath=yes
7916 hardcode_into_libs=yes
7917 # ldd complains unless libraries are executable
7918 postinstall_cmds='chmod +x $lib'
7919 ;;
7920
7921 sunos4*)
7922 version_type=sunos
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7925 shlibpath_var=LD_LIBRARY_PATH
7926 shlibpath_overrides_runpath=yes
7927 if test "$with_gnu_ld" = yes; then
7928 need_lib_prefix=no
7929 fi
7930 need_version=yes
7931 ;;
7932
7933 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7934 version_type=linux
7935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7936 soname_spec='${libname}${release}${shared_ext}$major'
7937 shlibpath_var=LD_LIBRARY_PATH
7938 case $host_vendor in
7939 sni)
7940 shlibpath_overrides_runpath=no
7941 need_lib_prefix=no
7942 export_dynamic_flag_spec='${wl}-Blargedynsym'
7943 runpath_var=LD_RUN_PATH
7944 ;;
7945 siemens)
7946 need_lib_prefix=no
7947 ;;
7948 motorola)
7949 need_lib_prefix=no
7950 need_version=no
7951 shlibpath_overrides_runpath=no
7952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7953 ;;
7954 esac
7955 ;;
7956
7957 sysv4*MP*)
7958 if test -d /usr/nec ;then
7959 version_type=linux
7960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7961 soname_spec='$libname${shared_ext}.$major'
7962 shlibpath_var=LD_LIBRARY_PATH
7963 fi
7964 ;;
7965
7966 uts4*)
7967 version_type=linux
7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7969 soname_spec='${libname}${release}${shared_ext}$major'
7970 shlibpath_var=LD_LIBRARY_PATH
7971 ;;
7972
7973 *)
7974 dynamic_linker=no
7975 ;;
7976 esac
7977 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7978 echo "${ECHO_T}$dynamic_linker" >&6
7979 test "$dynamic_linker" = no && can_build_shared=no
7980
7981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7983 hardcode_action=
7984 if test -n "$hardcode_libdir_flag_spec" || \
7985 test -n "$runpath_var " || \
7986 test "X$hardcode_automatic"="Xyes" ; then
7987
7988 # We can hardcode non-existant directories.
7989 if test "$hardcode_direct" != no &&
7990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7991 # have to relink, otherwise we might link with an installed library
7992 # when we should be linking with a yet-to-be-installed one
7993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7994 test "$hardcode_minus_L" != no; then
7995 # Linking always hardcodes the temporary library directory.
7996 hardcode_action=relink
7997 else
7998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7999 hardcode_action=immediate
8000 fi
8001 else
8002 # We cannot hardcode anything, or else we can only hardcode existing
8003 # directories.
8004 hardcode_action=unsupported
8005 fi
8006 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8007 echo "${ECHO_T}$hardcode_action" >&6
8008
8009 if test "$hardcode_action" = relink; then
8010 # Fast installation is not supported
8011 enable_fast_install=no
8012 elif test "$shlibpath_overrides_runpath" = yes ||
8013 test "$enable_shared" = no; then
8014 # Fast installation is not necessary
8015 enable_fast_install=needless
8016 fi
8017
8018 striplib=
8019 old_striplib=
8020 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8021 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8022 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8025 echo "$as_me:$LINENO: result: yes" >&5
8026 echo "${ECHO_T}yes" >&6
8027 else
8028 # FIXME - insert some real tests, host_os isn't really good enough
8029 case $host_os in
8030 darwin*)
8031 if test -n "$STRIP" ; then
8032 striplib="$STRIP -x"
8033 echo "$as_me:$LINENO: result: yes" >&5
8034 echo "${ECHO_T}yes" >&6
8035 else
8036 echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8038 fi
8039 ;;
8040 *)
8041 echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8043 ;;
8044 esac
8045 fi
8046
8047 if test "x$enable_dlopen" != xyes; then
8048 enable_dlopen=unknown
8049 enable_dlopen_self=unknown
8050 enable_dlopen_self_static=unknown
8051 else
8052 lt_cv_dlopen=no
8053 lt_cv_dlopen_libs=
8054
8055 case $host_os in
8056 beos*)
8057 lt_cv_dlopen="load_add_on"
8058 lt_cv_dlopen_libs=
8059 lt_cv_dlopen_self=yes
8060 ;;
8061
8062 mingw* | pw32*)
8063 lt_cv_dlopen="LoadLibrary"
8064 lt_cv_dlopen_libs=
8065 ;;
8066
8067 cygwin*)
8068 lt_cv_dlopen="dlopen"
8069 lt_cv_dlopen_libs=
8070 ;;
8071
8072 darwin*)
8073 # if libdl is installed we need to link against it
8074 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8075 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8076 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 ac_check_lib_save_LIBS=$LIBS
8080 LIBS="-ldl $LIBS"
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 #ifdef __cplusplus
8091 extern "C"
8092 #endif
8093 /* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */
8095 char dlopen ();
8096 int
8097 main ()
8098 {
8099 dlopen ();
8100 ;
8101 return 0;
8102 }
8103 _ACEOF
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106 (eval $ac_link) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -s conftest$ac_exeext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 ac_cv_lib_dl_dlopen=yes
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ac_cv_lib_dl_dlopen=no
8122 fi
8123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8124 LIBS=$ac_check_lib_save_LIBS
8125 fi
8126 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8127 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8128 if test $ac_cv_lib_dl_dlopen = yes; then
8129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8130 else
8131
8132 lt_cv_dlopen="dyld"
8133 lt_cv_dlopen_libs=
8134 lt_cv_dlopen_self=yes
8135
8136 fi
8137
8138 ;;
8139
8140 *)
8141 echo "$as_me:$LINENO: checking for shl_load" >&5
8142 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8143 if test "${ac_cv_func_shl_load+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 cat >conftest.$ac_ext <<_ACEOF
8147 #line $LINENO "configure"
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char shl_load (); below.
8155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8156 <limits.h> exists even on freestanding compilers. */
8157 #ifdef __STDC__
8158 # include <limits.h>
8159 #else
8160 # include <assert.h>
8161 #endif
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 #ifdef __cplusplus
8164 extern "C"
8165 {
8166 #endif
8167 /* We use char because int might match the return type of a gcc2
8168 builtin and then its argument prototype would still apply. */
8169 char shl_load ();
8170 /* The GNU C library defines this for functions which it implements
8171 to always fail with ENOSYS. Some functions are actually named
8172 something starting with __ and the normal name is an alias. */
8173 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8174 choke me
8175 #else
8176 char (*f) () = shl_load;
8177 #endif
8178 #ifdef __cplusplus
8179 }
8180 #endif
8181
8182 int
8183 main ()
8184 {
8185 return f != shl_load;
8186 ;
8187 return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -s conftest$ac_exeext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 ac_cv_func_shl_load=yes
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ac_cv_func_shl_load=no
8208 fi
8209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8210 fi
8211 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8212 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8213 if test $ac_cv_func_shl_load = yes; then
8214 lt_cv_dlopen="shl_load"
8215 else
8216 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8217 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8218 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 ac_check_lib_save_LIBS=$LIBS
8222 LIBS="-ldld $LIBS"
8223 cat >conftest.$ac_ext <<_ACEOF
8224 #line $LINENO "configure"
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 #ifdef __cplusplus
8233 extern "C"
8234 #endif
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8237 char shl_load ();
8238 int
8239 main ()
8240 {
8241 shl_load ();
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext conftest$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_lib_dld_shl_load=yes
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 ac_cv_lib_dld_shl_load=no
8264 fi
8265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8266 LIBS=$ac_check_lib_save_LIBS
8267 fi
8268 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8269 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8270 if test $ac_cv_lib_dld_shl_load = yes; then
8271 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8272 else
8273 echo "$as_me:$LINENO: checking for dlopen" >&5
8274 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8275 if test "${ac_cv_func_dlopen+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278 cat >conftest.$ac_ext <<_ACEOF
8279 #line $LINENO "configure"
8280 /* confdefs.h. */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 /* System header to define __stub macros and hopefully few prototypes,
8286 which can conflict with char dlopen (); below.
8287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8288 <limits.h> exists even on freestanding compilers. */
8289 #ifdef __STDC__
8290 # include <limits.h>
8291 #else
8292 # include <assert.h>
8293 #endif
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 #ifdef __cplusplus
8296 extern "C"
8297 {
8298 #endif
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8301 char dlopen ();
8302 /* The GNU C library defines this for functions which it implements
8303 to always fail with ENOSYS. Some functions are actually named
8304 something starting with __ and the normal name is an alias. */
8305 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8306 choke me
8307 #else
8308 char (*f) () = dlopen;
8309 #endif
8310 #ifdef __cplusplus
8311 }
8312 #endif
8313
8314 int
8315 main ()
8316 {
8317 return f != dlopen;
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_func_dlopen=yes
8335 else
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_cv_func_dlopen=no
8340 fi
8341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8342 fi
8343 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8344 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8345 if test $ac_cv_func_dlopen = yes; then
8346 lt_cv_dlopen="dlopen"
8347 else
8348 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8349 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 ac_check_lib_save_LIBS=$LIBS
8354 LIBS="-ldl $LIBS"
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 /* confdefs.h. */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362
8363 /* Override any gcc2 internal prototype to avoid an error. */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8369 char dlopen ();
8370 int
8371 main ()
8372 {
8373 dlopen ();
8374 ;
8375 return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380 (eval $ac_link) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_lib_dl_dlopen=yes
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 ac_cv_lib_dl_dlopen=no
8396 fi
8397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8398 LIBS=$ac_check_lib_save_LIBS
8399 fi
8400 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8402 if test $ac_cv_lib_dl_dlopen = yes; then
8403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8404 else
8405 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8406 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 ac_check_lib_save_LIBS=$LIBS
8411 LIBS="-lsvld $LIBS"
8412 cat >conftest.$ac_ext <<_ACEOF
8413 #line $LINENO "configure"
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419
8420 /* Override any gcc2 internal prototype to avoid an error. */
8421 #ifdef __cplusplus
8422 extern "C"
8423 #endif
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8426 char dlopen ();
8427 int
8428 main ()
8429 {
8430 dlopen ();
8431 ;
8432 return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 ac_cv_lib_svld_dlopen=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ac_cv_lib_svld_dlopen=no
8453 fi
8454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8455 LIBS=$ac_check_lib_save_LIBS
8456 fi
8457 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8458 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8459 if test $ac_cv_lib_svld_dlopen = yes; then
8460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8461 else
8462 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8463 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8464 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467 ac_check_lib_save_LIBS=$LIBS
8468 LIBS="-ldld $LIBS"
8469 cat >conftest.$ac_ext <<_ACEOF
8470 #line $LINENO "configure"
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476
8477 /* Override any gcc2 internal prototype to avoid an error. */
8478 #ifdef __cplusplus
8479 extern "C"
8480 #endif
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8483 char dld_link ();
8484 int
8485 main ()
8486 {
8487 dld_link ();
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_lib_dld_dld_link=yes
8505 else
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_cv_lib_dld_dld_link=no
8510 fi
8511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8512 LIBS=$ac_check_lib_save_LIBS
8513 fi
8514 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8515 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8516 if test $ac_cv_lib_dld_dld_link = yes; then
8517 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8518 fi
8519
8520
8521 fi
8522
8523
8524 fi
8525
8526
8527 fi
8528
8529
8530 fi
8531
8532
8533 fi
8534
8535 ;;
8536 esac
8537
8538 if test "x$lt_cv_dlopen" != xno; then
8539 enable_dlopen=yes
8540 else
8541 enable_dlopen=no
8542 fi
8543
8544 case $lt_cv_dlopen in
8545 dlopen)
8546 save_CPPFLAGS="$CPPFLAGS"
8547 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8548
8549 save_LDFLAGS="$LDFLAGS"
8550 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8551
8552 save_LIBS="$LIBS"
8553 LIBS="$lt_cv_dlopen_libs $LIBS"
8554
8555 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8556 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8557 if test "${lt_cv_dlopen_self+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 if test "$cross_compiling" = yes; then :
8561 lt_cv_dlopen_self=cross
8562 else
8563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8564 lt_status=$lt_dlunknown
8565 cat > conftest.$ac_ext <<EOF
8566 #line 8566 "configure"
8567 #include "confdefs.h"
8568
8569 #if HAVE_DLFCN_H
8570 #include <dlfcn.h>
8571 #endif
8572
8573 #include <stdio.h>
8574
8575 #ifdef RTLD_GLOBAL
8576 # define LT_DLGLOBAL RTLD_GLOBAL
8577 #else
8578 # ifdef DL_GLOBAL
8579 # define LT_DLGLOBAL DL_GLOBAL
8580 # else
8581 # define LT_DLGLOBAL 0
8582 # endif
8583 #endif
8584
8585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8586 find out it does not work in some platform. */
8587 #ifndef LT_DLLAZY_OR_NOW
8588 # ifdef RTLD_LAZY
8589 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8590 # else
8591 # ifdef DL_LAZY
8592 # define LT_DLLAZY_OR_NOW DL_LAZY
8593 # else
8594 # ifdef RTLD_NOW
8595 # define LT_DLLAZY_OR_NOW RTLD_NOW
8596 # else
8597 # ifdef DL_NOW
8598 # define LT_DLLAZY_OR_NOW DL_NOW
8599 # else
8600 # define LT_DLLAZY_OR_NOW 0
8601 # endif
8602 # endif
8603 # endif
8604 # endif
8605 #endif
8606
8607 #ifdef __cplusplus
8608 extern "C" void exit (int);
8609 #endif
8610
8611 void fnord() { int i=42;}
8612 int main ()
8613 {
8614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8615 int status = $lt_dlunknown;
8616
8617 if (self)
8618 {
8619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8620 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8621 /* dlclose (self); */
8622 }
8623
8624 exit (status);
8625 }
8626 EOF
8627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628 (eval $ac_link) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8632 (./conftest; exit; ) 2>/dev/null
8633 lt_status=$?
8634 case x$lt_status in
8635 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8636 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8637 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8638 esac
8639 else :
8640 # compilation failed
8641 lt_cv_dlopen_self=no
8642 fi
8643 fi
8644 rm -fr conftest*
8645
8646
8647 fi
8648 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8649 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8650
8651 if test "x$lt_cv_dlopen_self" = xyes; then
8652 LDFLAGS="$LDFLAGS $link_static_flag"
8653 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8654 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8655 if test "${lt_cv_dlopen_self_static+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658 if test "$cross_compiling" = yes; then :
8659 lt_cv_dlopen_self_static=cross
8660 else
8661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8662 lt_status=$lt_dlunknown
8663 cat > conftest.$ac_ext <<EOF
8664 #line 8664 "configure"
8665 #include "confdefs.h"
8666
8667 #if HAVE_DLFCN_H
8668 #include <dlfcn.h>
8669 #endif
8670
8671 #include <stdio.h>
8672
8673 #ifdef RTLD_GLOBAL
8674 # define LT_DLGLOBAL RTLD_GLOBAL
8675 #else
8676 # ifdef DL_GLOBAL
8677 # define LT_DLGLOBAL DL_GLOBAL
8678 # else
8679 # define LT_DLGLOBAL 0
8680 # endif
8681 #endif
8682
8683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8684 find out it does not work in some platform. */
8685 #ifndef LT_DLLAZY_OR_NOW
8686 # ifdef RTLD_LAZY
8687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8688 # else
8689 # ifdef DL_LAZY
8690 # define LT_DLLAZY_OR_NOW DL_LAZY
8691 # else
8692 # ifdef RTLD_NOW
8693 # define LT_DLLAZY_OR_NOW RTLD_NOW
8694 # else
8695 # ifdef DL_NOW
8696 # define LT_DLLAZY_OR_NOW DL_NOW
8697 # else
8698 # define LT_DLLAZY_OR_NOW 0
8699 # endif
8700 # endif
8701 # endif
8702 # endif
8703 #endif
8704
8705 #ifdef __cplusplus
8706 extern "C" void exit (int);
8707 #endif
8708
8709 void fnord() { int i=42;}
8710 int main ()
8711 {
8712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8713 int status = $lt_dlunknown;
8714
8715 if (self)
8716 {
8717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8719 /* dlclose (self); */
8720 }
8721
8722 exit (status);
8723 }
8724 EOF
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726 (eval $ac_link) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8730 (./conftest; exit; ) 2>/dev/null
8731 lt_status=$?
8732 case x$lt_status in
8733 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8734 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8735 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8736 esac
8737 else :
8738 # compilation failed
8739 lt_cv_dlopen_self_static=no
8740 fi
8741 fi
8742 rm -fr conftest*
8743
8744
8745 fi
8746 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8747 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8748 fi
8749
8750 CPPFLAGS="$save_CPPFLAGS"
8751 LDFLAGS="$save_LDFLAGS"
8752 LIBS="$save_LIBS"
8753 ;;
8754 esac
8755
8756 case $lt_cv_dlopen_self in
8757 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8758 *) enable_dlopen_self=unknown ;;
8759 esac
8760
8761 case $lt_cv_dlopen_self_static in
8762 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8763 *) enable_dlopen_self_static=unknown ;;
8764 esac
8765 fi
8766
8767
8768 # Report which librarie types wil actually be built
8769 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8770 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8771 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8772 echo "${ECHO_T}$can_build_shared" >&6
8773
8774 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8775 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8776 test "$can_build_shared" = "no" && enable_shared=no
8777
8778 # On AIX, shared libraries and static libraries use the same namespace, and
8779 # are all built from PIC.
8780 case "$host_os" in
8781 aix3*)
8782 test "$enable_shared" = yes && enable_static=no
8783 if test -n "$RANLIB"; then
8784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8785 postinstall_cmds='$RANLIB $lib'
8786 fi
8787 ;;
8788
8789 aix4*)
8790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8791 test "$enable_shared" = yes && enable_static=no
8792 fi
8793 ;;
8794 darwin* | rhapsody*)
8795 if test "$GCC" = yes; then
8796 archive_cmds_need_lc=no
8797 case "$host_os" in
8798 rhapsody* | darwin1.[012])
8799 allow_undefined_flag='-undefined suppress'
8800 ;;
8801 *) # Darwin 1.3 on
8802 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8803 allow_undefined_flag='-flat_namespace -undefined suppress'
8804 else
8805 case ${MACOSX_DEPLOYMENT_TARGET} in
8806 10.[012])
8807 allow_undefined_flag='-flat_namespace -undefined suppress'
8808 ;;
8809 10.*)
8810 allow_undefined_flag='-undefined dynamic_lookup'
8811 ;;
8812 esac
8813 fi
8814 ;;
8815 esac
8816 output_verbose_link_cmd='echo'
8817 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8818 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8820 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8821 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8822 hardcode_direct=no
8823 hardcode_automatic=yes
8824 hardcode_shlibpath_var=unsupported
8825 whole_archive_flag_spec='-all_load $convenience'
8826 link_all_deplibs=yes
8827 else
8828 ld_shlibs=no
8829 fi
8830 ;;
8831 esac
8832 echo "$as_me:$LINENO: result: $enable_shared" >&5
8833 echo "${ECHO_T}$enable_shared" >&6
8834
8835 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8836 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8837 # Make sure either enable_shared or enable_static is yes.
8838 test "$enable_shared" = yes || enable_static=yes
8839 echo "$as_me:$LINENO: result: $enable_static" >&5
8840 echo "${ECHO_T}$enable_static" >&6
8841
8842 # The else clause should only fire when bootstrapping the
8843 # libtool distribution, otherwise you forgot to ship ltmain.sh
8844 # with your package, and you will get complaints that there are
8845 # no rules to generate ltmain.sh.
8846 if test -f "$ltmain"; then
8847 # See if we are running on zsh, and set the options which allow our commands through
8848 # without removal of \ escapes.
8849 if test -n "${ZSH_VERSION+set}" ; then
8850 setopt NO_GLOB_SUBST
8851 fi
8852 # Now quote all the things that may contain metacharacters while being
8853 # careful not to overquote the AC_SUBSTed values. We take copies of the
8854 # variables and quote the copies for generation of the libtool script.
8855 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8856 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8857 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8858 deplibs_check_method reload_flag reload_cmds need_locks \
8859 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8860 lt_cv_sys_global_symbol_to_c_name_address \
8861 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8862 old_postinstall_cmds old_postuninstall_cmds \
8863 compiler \
8864 CC \
8865 LD \
8866 lt_prog_compiler_wl \
8867 lt_prog_compiler_pic \
8868 lt_prog_compiler_static \
8869 lt_prog_compiler_no_builtin_flag \
8870 export_dynamic_flag_spec \
8871 thread_safe_flag_spec \
8872 whole_archive_flag_spec \
8873 enable_shared_with_static_runtimes \
8874 old_archive_cmds \
8875 old_archive_from_new_cmds \
8876 predep_objects \
8877 postdep_objects \
8878 predeps \
8879 postdeps \
8880 compiler_lib_search_path \
8881 archive_cmds \
8882 archive_expsym_cmds \
8883 postinstall_cmds \
8884 postuninstall_cmds \
8885 old_archive_from_expsyms_cmds \
8886 allow_undefined_flag \
8887 no_undefined_flag \
8888 export_symbols_cmds \
8889 hardcode_libdir_flag_spec \
8890 hardcode_libdir_flag_spec_ld \
8891 hardcode_libdir_separator \
8892 hardcode_automatic \
8893 module_cmds \
8894 module_expsym_cmds \
8895 lt_cv_prog_compiler_c_o \
8896 exclude_expsyms \
8897 include_expsyms; do
8898
8899 case $var in
8900 old_archive_cmds | \
8901 old_archive_from_new_cmds | \
8902 archive_cmds | \
8903 archive_expsym_cmds | \
8904 module_cmds | \
8905 module_expsym_cmds | \
8906 old_archive_from_expsyms_cmds | \
8907 export_symbols_cmds | \
8908 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8909 postinstall_cmds | postuninstall_cmds | \
8910 old_postinstall_cmds | old_postuninstall_cmds | \
8911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8912 # Double-quote double-evaled strings.
8913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8914 ;;
8915 *)
8916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8917 ;;
8918 esac
8919 done
8920
8921 case $lt_echo in
8922 *'\$0 --fallback-echo"')
8923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8924 ;;
8925 esac
8926
8927 cfgfile="${ofile}T"
8928 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8929 $rm -f "$cfgfile"
8930 { echo "$as_me:$LINENO: creating $ofile" >&5
8931 echo "$as_me: creating $ofile" >&6;}
8932
8933 cat <<__EOF__ >> "$cfgfile"
8934 #! $SHELL
8935
8936 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8937 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8938 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8939 #
8940 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8941 # Free Software Foundation, Inc.
8942 #
8943 # This file is part of GNU Libtool:
8944 # Originally by Gordon Matzigkeit <[email protected]>, 1996
8945 #
8946 # This program is free software; you can redistribute it and/or modify
8947 # it under the terms of the GNU General Public License as published by
8948 # the Free Software Foundation; either version 2 of the License, or
8949 # (at your option) any later version.
8950 #
8951 # This program is distributed in the hope that it will be useful, but
8952 # WITHOUT ANY WARRANTY; without even the implied warranty of
8953 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8954 # General Public License for more details.
8955 #
8956 # You should have received a copy of the GNU General Public License
8957 # along with this program; if not, write to the Free Software
8958 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8959 #
8960 # As a special exception to the GNU General Public License, if you
8961 # distribute this file as part of a program that contains a
8962 # configuration script generated by Autoconf, you may include it under
8963 # the same distribution terms that you use for the rest of that program.
8964
8965 # A sed program that does not truncate output.
8966 SED=$lt_SED
8967
8968 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8969 Xsed="$SED -e s/^X//"
8970
8971 # The HP-UX ksh and POSIX shell print the target directory to stdout
8972 # if CDPATH is set.
8973 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8974
8975 # The names of the tagged configurations supported by this script.
8976 available_tags=
8977
8978 # ### BEGIN LIBTOOL CONFIG
8979
8980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8981
8982 # Shell to use when invoking shell scripts.
8983 SHELL=$lt_SHELL
8984
8985 # Whether or not to build shared libraries.
8986 build_libtool_libs=$enable_shared
8987
8988 # Whether or not to build static libraries.
8989 build_old_libs=$enable_static
8990
8991 # Whether or not to add -lc for building shared libraries.
8992 build_libtool_need_lc=$archive_cmds_need_lc
8993
8994 # Whether or not to disallow shared libs when runtime libs are static
8995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8996
8997 # Whether or not to optimize for fast installation.
8998 fast_install=$enable_fast_install
8999
9000 # The host system.
9001 host_alias=$host_alias
9002 host=$host
9003
9004 # An echo program that does not interpret backslashes.
9005 echo=$lt_echo
9006
9007 # The archiver.
9008 AR=$lt_AR
9009 AR_FLAGS=$lt_AR_FLAGS
9010
9011 # A C compiler.
9012 LTCC=$lt_LTCC
9013
9014 # A language-specific compiler.
9015 CC=$lt_compiler
9016
9017 # Is the compiler the GNU C compiler?
9018 with_gcc=$GCC
9019
9020 # An ERE matcher.
9021 EGREP=$lt_EGREP
9022
9023 # The linker used to build libraries.
9024 LD=$lt_LD
9025
9026 # Whether we need hard or soft links.
9027 LN_S=$lt_LN_S
9028
9029 # A BSD-compatible nm program.
9030 NM=$lt_NM
9031
9032 # A symbol stripping program
9033 STRIP="$STRIP"
9034
9035 # Used to examine libraries when file_magic_cmd begins "file"
9036 MAGIC_CMD=$MAGIC_CMD
9037
9038 # Used on cygwin: DLL creation program.
9039 DLLTOOL="$DLLTOOL"
9040
9041 # Used on cygwin: object dumper.
9042 OBJDUMP="$OBJDUMP"
9043
9044 # Used on cygwin: assembler.
9045 AS="$AS"
9046
9047 # The name of the directory that contains temporary libtool files.
9048 objdir=$objdir
9049
9050 # How to create reloadable object files.
9051 reload_flag=$lt_reload_flag
9052 reload_cmds=$lt_reload_cmds
9053
9054 # How to pass a linker flag through the compiler.
9055 wl=$lt_lt_prog_compiler_wl
9056
9057 # Object file suffix (normally "o").
9058 objext="$ac_objext"
9059
9060 # Old archive suffix (normally "a").
9061 libext="$libext"
9062
9063 # Shared library suffix (normally ".so").
9064 shrext='$shrext'
9065
9066 # Executable file suffix (normally "").
9067 exeext="$exeext"
9068
9069 # Additional compiler flags for building library objects.
9070 pic_flag=$lt_lt_prog_compiler_pic
9071 pic_mode=$pic_mode
9072
9073 # What is the maximum length of a command?
9074 max_cmd_len=$lt_cv_sys_max_cmd_len
9075
9076 # Does compiler simultaneously support -c and -o options?
9077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9078
9079 # Must we lock files when doing compilation ?
9080 need_locks=$lt_need_locks
9081
9082 # Do we need the lib prefix for modules?
9083 need_lib_prefix=$need_lib_prefix
9084
9085 # Do we need a version for libraries?
9086 need_version=$need_version
9087
9088 # Whether dlopen is supported.
9089 dlopen_support=$enable_dlopen
9090
9091 # Whether dlopen of programs is supported.
9092 dlopen_self=$enable_dlopen_self
9093
9094 # Whether dlopen of statically linked programs is supported.
9095 dlopen_self_static=$enable_dlopen_self_static
9096
9097 # Compiler flag to prevent dynamic linking.
9098 link_static_flag=$lt_lt_prog_compiler_static
9099
9100 # Compiler flag to turn off builtin functions.
9101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9102
9103 # Compiler flag to allow reflexive dlopens.
9104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9105
9106 # Compiler flag to generate shared objects directly from archives.
9107 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9108
9109 # Compiler flag to generate thread-safe objects.
9110 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9111
9112 # Library versioning type.
9113 version_type=$version_type
9114
9115 # Format of library name prefix.
9116 libname_spec=$lt_libname_spec
9117
9118 # List of archive names. First name is the real one, the rest are links.
9119 # The last name is the one that the linker finds with -lNAME.
9120 library_names_spec=$lt_library_names_spec
9121
9122 # The coded name of the library, if different from the real name.
9123 soname_spec=$lt_soname_spec
9124
9125 # Commands used to build and install an old-style archive.
9126 RANLIB=$lt_RANLIB
9127 old_archive_cmds=$lt_old_archive_cmds
9128 old_postinstall_cmds=$lt_old_postinstall_cmds
9129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9130
9131 # Create an old-style archive from a shared archive.
9132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9133
9134 # Create a temporary old-style archive to link instead of a shared archive.
9135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9136
9137 # Commands used to build and install a shared archive.
9138 archive_cmds=$lt_archive_cmds
9139 archive_expsym_cmds=$lt_archive_expsym_cmds
9140 postinstall_cmds=$lt_postinstall_cmds
9141 postuninstall_cmds=$lt_postuninstall_cmds
9142
9143 # Commands used to build a loadable module (assumed same as above if empty)
9144 module_cmds=$lt_module_cmds
9145 module_expsym_cmds=$lt_module_expsym_cmds
9146
9147 # Commands to strip libraries.
9148 old_striplib=$lt_old_striplib
9149 striplib=$lt_striplib
9150
9151 # Dependencies to place before the objects being linked to create a
9152 # shared library.
9153 predep_objects=$lt_predep_objects
9154
9155 # Dependencies to place after the objects being linked to create a
9156 # shared library.
9157 postdep_objects=$lt_postdep_objects
9158
9159 # Dependencies to place before the objects being linked to create a
9160 # shared library.
9161 predeps=$lt_predeps
9162
9163 # Dependencies to place after the objects being linked to create a
9164 # shared library.
9165 postdeps=$lt_postdeps
9166
9167 # The library search path used internally by the compiler when linking
9168 # a shared library.
9169 compiler_lib_search_path=$lt_compiler_lib_search_path
9170
9171 # Method to check whether dependent libraries are shared objects.
9172 deplibs_check_method=$lt_deplibs_check_method
9173
9174 # Command to use when deplibs_check_method == file_magic.
9175 file_magic_cmd=$lt_file_magic_cmd
9176
9177 # Flag that allows shared libraries with undefined symbols to be built.
9178 allow_undefined_flag=$lt_allow_undefined_flag
9179
9180 # Flag that forces no undefined symbols.
9181 no_undefined_flag=$lt_no_undefined_flag
9182
9183 # Commands used to finish a libtool library installation in a directory.
9184 finish_cmds=$lt_finish_cmds
9185
9186 # Same as above, but a single script fragment to be evaled but not shown.
9187 finish_eval=$lt_finish_eval
9188
9189 # Take the output of nm and produce a listing of raw symbols and C names.
9190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9191
9192 # Transform the output of nm in a proper C declaration
9193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9194
9195 # Transform the output of nm in a C name address pair
9196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9197
9198 # This is the shared library runtime path variable.
9199 runpath_var=$runpath_var
9200
9201 # This is the shared library path variable.
9202 shlibpath_var=$shlibpath_var
9203
9204 # Is shlibpath searched before the hard-coded library search path?
9205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9206
9207 # How to hardcode a shared library path into an executable.
9208 hardcode_action=$hardcode_action
9209
9210 # Whether we should hardcode library paths into libraries.
9211 hardcode_into_libs=$hardcode_into_libs
9212
9213 # Flag to hardcode \$libdir into a binary during linking.
9214 # This must work even if \$libdir does not exist.
9215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9216
9217 # If ld is used when linking, flag to hardcode \$libdir into
9218 # a binary during linking. This must work even if \$libdir does
9219 # not exist.
9220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9221
9222 # Whether we need a single -rpath flag with a separated argument.
9223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9224
9225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9226 # resulting binary.
9227 hardcode_direct=$hardcode_direct
9228
9229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9230 # resulting binary.
9231 hardcode_minus_L=$hardcode_minus_L
9232
9233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9234 # the resulting binary.
9235 hardcode_shlibpath_var=$hardcode_shlibpath_var
9236
9237 # Set to yes if building a shared library automatically hardcodes DIR into the library
9238 # and all subsequent libraries and executables linked against it.
9239 hardcode_automatic=$hardcode_automatic
9240
9241 # Variables whose values should be saved in libtool wrapper scripts and
9242 # restored at relink time.
9243 variables_saved_for_relink="$variables_saved_for_relink"
9244
9245 # Whether libtool must link a program against all its dependency libraries.
9246 link_all_deplibs=$link_all_deplibs
9247
9248 # Compile-time system search path for libraries
9249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9250
9251 # Run-time system search path for libraries
9252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9253
9254 # Fix the shell variable \$srcfile for the compiler.
9255 fix_srcfile_path="$fix_srcfile_path"
9256
9257 # Set to yes if exported symbols are required.
9258 always_export_symbols=$always_export_symbols
9259
9260 # The commands to list exported symbols.
9261 export_symbols_cmds=$lt_export_symbols_cmds
9262
9263 # The commands to extract the exported symbol list from a shared archive.
9264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9265
9266 # Symbols that should not be listed in the preloaded symbols.
9267 exclude_expsyms=$lt_exclude_expsyms
9268
9269 # Symbols that must always be exported.
9270 include_expsyms=$lt_include_expsyms
9271
9272 # ### END LIBTOOL CONFIG
9273
9274 __EOF__
9275
9276
9277 case $host_os in
9278 aix3*)
9279 cat <<\EOF >> "$cfgfile"
9280
9281 # AIX sometimes has problems with the GCC collect2 program. For some
9282 # reason, if we set the COLLECT_NAMES environment variable, the problems
9283 # vanish in a puff of smoke.
9284 if test "X${COLLECT_NAMES+set}" != Xset; then
9285 COLLECT_NAMES=
9286 export COLLECT_NAMES
9287 fi
9288 EOF
9289 ;;
9290 esac
9291
9292 # We use sed instead of cat because bash on DJGPP gets confused if
9293 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9294 # text mode, it properly converts lines to CR/LF. This bash problem
9295 # is reportedly fixed, but why not run on old versions too?
9296 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9297
9298 mv -f "$cfgfile" "$ofile" || \
9299 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9300 chmod +x "$ofile"
9301
9302 else
9303 # If there is no Makefile yet, we rely on a make rule to execute
9304 # `config.status --recheck' to rerun these tests and create the
9305 # libtool script then.
9306 test -f Makefile && make "$ltmain"
9307 fi
9308
9309
9310 ac_ext=c
9311 ac_cpp='$CPP $CPPFLAGS'
9312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9315
9316 CC="$lt_save_CC"
9317
9318
9319 # Check whether --with-tags or --without-tags was given.
9320 if test "${with_tags+set}" = set; then
9321 withval="$with_tags"
9322 tagnames="$withval"
9323 fi;
9324
9325 if test -f "$ltmain" && test -n "$tagnames"; then
9326 if test ! -f "${ofile}"; then
9327 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9328 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9329 fi
9330
9331 if test -z "$LTCC"; then
9332 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9333 if test -z "$LTCC"; then
9334 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9335 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9336 else
9337 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9338 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9339 fi
9340 fi
9341
9342 # Extract list of available tagged configurations in $ofile.
9343 # Note that this assumes the entire list is on one line.
9344 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9345
9346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9347 for tagname in $tagnames; do
9348 IFS="$lt_save_ifs"
9349 # Check whether tagname contains only valid characters
9350 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9351 "") ;;
9352 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9353 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9354 { (exit 1); exit 1; }; }
9355 ;;
9356 esac
9357
9358 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9359 then
9360 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9361 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9362 { (exit 1); exit 1; }; }
9363 fi
9364
9365 # Update the list of available tags.
9366 if test -n "$tagname"; then
9367 echo appending configuration tag \"$tagname\" to $ofile
9368
9369 case $tagname in
9370 CXX)
9371 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9372 ac_ext=cc
9373 ac_cpp='$CXXCPP $CPPFLAGS'
9374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9377
9378
9379
9380
9381 archive_cmds_need_lc_CXX=no
9382 allow_undefined_flag_CXX=
9383 always_export_symbols_CXX=no
9384 archive_expsym_cmds_CXX=
9385 export_dynamic_flag_spec_CXX=
9386 hardcode_direct_CXX=no
9387 hardcode_libdir_flag_spec_CXX=
9388 hardcode_libdir_flag_spec_ld_CXX=
9389 hardcode_libdir_separator_CXX=
9390 hardcode_minus_L_CXX=no
9391 hardcode_automatic_CXX=no
9392 module_cmds_CXX=
9393 module_expsym_cmds_CXX=
9394 link_all_deplibs_CXX=unknown
9395 old_archive_cmds_CXX=$old_archive_cmds
9396 no_undefined_flag_CXX=
9397 whole_archive_flag_spec_CXX=
9398 enable_shared_with_static_runtimes_CXX=no
9399
9400 # Dependencies to place before and after the object being linked:
9401 predep_objects_CXX=
9402 postdep_objects_CXX=
9403 predeps_CXX=
9404 postdeps_CXX=
9405 compiler_lib_search_path_CXX=
9406
9407 # Source file extension for C++ test sources.
9408 ac_ext=cc
9409
9410 # Object file extension for compiled C++ test sources.
9411 objext=o
9412 objext_CXX=$objext
9413
9414 # Code to be used in simple compile tests
9415 lt_simple_compile_test_code="int some_variable = 0;\n"
9416
9417 # Code to be used in simple link tests
9418 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9419
9420 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9421
9422 # If no C compiler was specified, use CC.
9423 LTCC=${LTCC-"$CC"}
9424
9425 # Allow CC to be a program name with arguments.
9426 compiler=$CC
9427
9428
9429 # Allow CC to be a program name with arguments.
9430 lt_save_CC=$CC
9431 lt_save_LD=$LD
9432 lt_save_GCC=$GCC
9433 GCC=$GXX
9434 lt_save_with_gnu_ld=$with_gnu_ld
9435 lt_save_path_LD=$lt_cv_path_LD
9436 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9437 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9438 else
9439 unset lt_cv_prog_gnu_ld
9440 fi
9441 if test -n "${lt_cv_path_LDCXX+set}"; then
9442 lt_cv_path_LD=$lt_cv_path_LDCXX
9443 else
9444 unset lt_cv_path_LD
9445 fi
9446 test -z "${LDCXX+set}" || LD=$LDCXX
9447 CC=${CXX-"c++"}
9448 compiler=$CC
9449 compiler_CXX=$CC
9450 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9451
9452 # We don't want -fno-exception wen compiling C++ code, so set the
9453 # no_builtin_flag separately
9454 if test "$GXX" = yes; then
9455 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9456 else
9457 lt_prog_compiler_no_builtin_flag_CXX=
9458 fi
9459
9460 if test "$GXX" = yes; then
9461 # Set up default GNU C++ configuration
9462
9463
9464 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9465 if test "${with_gnu_ld+set}" = set; then
9466 withval="$with_gnu_ld"
9467 test "$withval" = no || with_gnu_ld=yes
9468 else
9469 with_gnu_ld=no
9470 fi;
9471 ac_prog=ld
9472 if test "$GCC" = yes; then
9473 # Check if gcc -print-prog-name=ld gives a path.
9474 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9475 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9476 case $host in
9477 *-*-mingw*)
9478 # gcc leaves a trailing carriage return which upsets mingw
9479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9480 *)
9481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9482 esac
9483 case $ac_prog in
9484 # Accept absolute paths.
9485 [\\/]* | ?:[\\/]*)
9486 re_direlt='/[^/][^/]*/\.\./'
9487 # Canonicalize the pathname of ld
9488 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9490 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9491 done
9492 test -z "$LD" && LD="$ac_prog"
9493 ;;
9494 "")
9495 # If it fails, then pretend we aren't using GCC.
9496 ac_prog=ld
9497 ;;
9498 *)
9499 # If it is relative, then search for the first ld in PATH.
9500 with_gnu_ld=unknown
9501 ;;
9502 esac
9503 elif test "$with_gnu_ld" = yes; then
9504 echo "$as_me:$LINENO: checking for GNU ld" >&5
9505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9506 else
9507 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9509 fi
9510 if test "${lt_cv_path_LD+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513 if test -z "$LD"; then
9514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9515 for ac_dir in $PATH; do
9516 IFS="$lt_save_ifs"
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9519 lt_cv_path_LD="$ac_dir/$ac_prog"
9520 # Check to see if the program is GNU ld. I'd rather use --version,
9521 # but apparently some GNU ld's only accept -v.
9522 # Break only if it was the GNU/non-GNU ld that we prefer.
9523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9524 *GNU* | *'with BFD'*)
9525 test "$with_gnu_ld" != no && break
9526 ;;
9527 *)
9528 test "$with_gnu_ld" != yes && break
9529 ;;
9530 esac
9531 fi
9532 done
9533 IFS="$lt_save_ifs"
9534 else
9535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9536 fi
9537 fi
9538
9539 LD="$lt_cv_path_LD"
9540 if test -n "$LD"; then
9541 echo "$as_me:$LINENO: result: $LD" >&5
9542 echo "${ECHO_T}$LD" >&6
9543 else
9544 echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6
9546 fi
9547 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9548 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9549 { (exit 1); exit 1; }; }
9550 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9551 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9552 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9556 case `$LD -v 2>&1 </dev/null` in
9557 *GNU* | *'with BFD'*)
9558 lt_cv_prog_gnu_ld=yes
9559 ;;
9560 *)
9561 lt_cv_prog_gnu_ld=no
9562 ;;
9563 esac
9564 fi
9565 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9566 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9567 with_gnu_ld=$lt_cv_prog_gnu_ld
9568
9569
9570
9571 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9572 # archiving commands below assume that GNU ld is being used.
9573 if test "$with_gnu_ld" = yes; then
9574 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575 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'
9576
9577 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9579
9580 # If archive_cmds runs LD, not CC, wlarc should be empty
9581 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9582 # investigate it a little bit more. (MM)
9583 wlarc='${wl}'
9584
9585 # ancient GNU ld didn't support --whole-archive et. al.
9586 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9587 grep 'no-whole-archive' > /dev/null; then
9588 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9589 else
9590 whole_archive_flag_spec_CXX=
9591 fi
9592 else
9593 with_gnu_ld=no
9594 wlarc=
9595
9596 # A generic and very simple default shared library creation
9597 # command for GNU C++ for the case where it uses the native
9598 # linker, instead of GNU ld. If possible, this setting should
9599 # overridden to take advantage of the native linker features on
9600 # the platform it is being used on.
9601 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9602 fi
9603
9604 # Commands to make compiler produce verbose output that lists
9605 # what "hidden" libraries, object files and flags are used when
9606 # linking a shared library.
9607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9608
9609 else
9610 GXX=no
9611 with_gnu_ld=no
9612 wlarc=
9613 fi
9614
9615 # PORTME: fill in a description of your system's C++ link characteristics
9616 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9618 ld_shlibs_CXX=yes
9619 case $host_os in
9620 aix3*)
9621 # FIXME: insert proper C++ library support
9622 ld_shlibs_CXX=no
9623 ;;
9624 aix4* | aix5*)
9625 if test "$host_cpu" = ia64; then
9626 # On IA64, the linker does run time linking by default, so we don't
9627 # have to do anything special.
9628 aix_use_runtimelinking=no
9629 exp_sym_flag='-Bexport'
9630 no_entry_flag=""
9631 else
9632 aix_use_runtimelinking=no
9633
9634 # Test if we are trying to use run time linking or normal
9635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9636 # need to do runtime linking.
9637 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9638 for ld_flag in $LDFLAGS; do
9639 case $ld_flag in
9640 *-brtl*)
9641 aix_use_runtimelinking=yes
9642 break
9643 ;;
9644 esac
9645 done
9646 esac
9647
9648 exp_sym_flag='-bexport'
9649 no_entry_flag='-bnoentry'
9650 fi
9651
9652 # When large executables or shared objects are built, AIX ld can
9653 # have problems creating the table of contents. If linking a library
9654 # or program results in "error TOC overflow" add -mminimal-toc to
9655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9657
9658 archive_cmds_CXX=''
9659 hardcode_direct_CXX=yes
9660 hardcode_libdir_separator_CXX=':'
9661 link_all_deplibs_CXX=yes
9662
9663 if test "$GXX" = yes; then
9664 case $host_os in aix4.012|aix4.012.*)
9665 # We only want to do this on AIX 4.2 and lower, the check
9666 # below for broken collect2 doesn't work under 4.3+
9667 collect2name=`${CC} -print-prog-name=collect2`
9668 if test -f "$collect2name" && \
9669 strings "$collect2name" | grep resolve_lib_name >/dev/null
9670 then
9671 # We have reworked collect2
9672 hardcode_direct_CXX=yes
9673 else
9674 # We have old collect2
9675 hardcode_direct_CXX=unsupported
9676 # It fails to find uninstalled libraries when the uninstalled
9677 # path is not listed in the libpath. Setting hardcode_minus_L
9678 # to unsupported forces relinking
9679 hardcode_minus_L_CXX=yes
9680 hardcode_libdir_flag_spec_CXX='-L$libdir'
9681 hardcode_libdir_separator_CXX=
9682 fi
9683 esac
9684 shared_flag='-shared'
9685 else
9686 # not using gcc
9687 if test "$host_cpu" = ia64; then
9688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9689 # chokes on -Wl,-G. The following line is correct:
9690 shared_flag='-G'
9691 else
9692 if test "$aix_use_runtimelinking" = yes; then
9693 shared_flag='${wl}-G'
9694 else
9695 shared_flag='${wl}-bM:SRE'
9696 fi
9697 fi
9698 fi
9699
9700 # It seems that -bexpall does not export symbols beginning with
9701 # underscore (_), so it is better to generate a list of symbols to export.
9702 always_export_symbols_CXX=yes
9703 if test "$aix_use_runtimelinking" = yes; then
9704 # Warning - without using the other runtime loading flags (-brtl),
9705 # -berok will link without error, but may produce a broken library.
9706 allow_undefined_flag_CXX='-berok'
9707 # Determine the default libpath from the value encoded in an empty executable.
9708 cat >conftest.$ac_ext <<_ACEOF
9709 #line $LINENO "configure"
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715
9716 int
9717 main ()
9718 {
9719
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726 (eval $ac_link) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -s conftest$ac_exeext'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736
9737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9738 }'`
9739 # Check for a 64-bit object if we didn't find anything.
9740 if 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; }
9741 }'`; fi
9742 else
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 fi
9747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9749
9750 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9751
9752 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"
9753 else
9754 if test "$host_cpu" = ia64; then
9755 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9756 allow_undefined_flag_CXX="-z nodefs"
9757 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"
9758 else
9759 # Determine the default libpath from the value encoded in an empty executable.
9760 cat >conftest.$ac_ext <<_ACEOF
9761 #line $LINENO "configure"
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767
9768 int
9769 main ()
9770 {
9771
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788
9789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9790 }'`
9791 # Check for a 64-bit object if we didn't find anything.
9792 if 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; }
9793 }'`; fi
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 fi
9799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9801
9802 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9803 # Warning - without using the other run time loading flags,
9804 # -berok will link without error, but may produce a broken library.
9805 no_undefined_flag_CXX=' ${wl}-bernotok'
9806 allow_undefined_flag_CXX=' ${wl}-berok'
9807 # -bexpall does not export symbols beginning with underscore (_)
9808 always_export_symbols_CXX=yes
9809 # Exported symbols can be pulled into shared objects from archives
9810 whole_archive_flag_spec_CXX=' '
9811 archive_cmds_need_lc_CXX=yes
9812 # This is similar to how AIX traditionally builds it's shared libraries.
9813 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'
9814 fi
9815 fi
9816 ;;
9817 chorus*)
9818 case $cc_basename in
9819 *)
9820 # FIXME: insert proper C++ library support
9821 ld_shlibs_CXX=no
9822 ;;
9823 esac
9824 ;;
9825
9826 cygwin* | mingw* | pw32*)
9827 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9828 # as there is no search path for DLLs.
9829 hardcode_libdir_flag_spec_CXX='-L$libdir'
9830 allow_undefined_flag_CXX=unsupported
9831 always_export_symbols_CXX=no
9832 enable_shared_with_static_runtimes_CXX=yes
9833
9834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9835 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'
9836 # If the export-symbols file already is a .def file (1st line
9837 # is EXPORTS), use it as is; otherwise, prepend...
9838 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9839 cp $export_symbols $output_objdir/$soname.def;
9840 else
9841 echo EXPORTS > $output_objdir/$soname.def;
9842 cat $export_symbols >> $output_objdir/$soname.def;
9843 fi~
9844 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9845 else
9846 ld_shlibs_CXX=no
9847 fi
9848 ;;
9849
9850 darwin* | rhapsody*)
9851 if test "$GXX" = yes; then
9852 archive_cmds_need_lc_CXX=no
9853 case "$host_os" in
9854 rhapsody* | darwin1.[012])
9855 allow_undefined_flag_CXX='-undefined suppress'
9856 ;;
9857 *) # Darwin 1.3 on
9858 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9859 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9860 else
9861 case ${MACOSX_DEPLOYMENT_TARGET} in
9862 10.[012])
9863 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9864 ;;
9865 10.*)
9866 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9867 ;;
9868 esac
9869 fi
9870 ;;
9871 esac
9872 lt_int_apple_cc_single_mod=no
9873 output_verbose_link_cmd='echo'
9874 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9875 lt_int_apple_cc_single_mod=yes
9876 fi
9877 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9878 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9879 else
9880 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9881 fi
9882 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9883
9884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9885 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9886 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9887 else
9888 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9889 fi
9890 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9891 hardcode_direct_CXX=no
9892 hardcode_automatic_CXX=yes
9893 hardcode_shlibpath_var_CXX=unsupported
9894 whole_archive_flag_spec_CXX='-all_load $convenience'
9895 link_all_deplibs_CXX=yes
9896 else
9897 ld_shlibs_CXX=no
9898 fi
9899 ;;
9900
9901 dgux*)
9902 case $cc_basename in
9903 ec++)
9904 # FIXME: insert proper C++ library support
9905 ld_shlibs_CXX=no
9906 ;;
9907 ghcx)
9908 # Green Hills C++ Compiler
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912 *)
9913 # FIXME: insert proper C++ library support
9914 ld_shlibs_CXX=no
9915 ;;
9916 esac
9917 ;;
9918 freebsd12*)
9919 # C++ shared libraries reported to be fairly broken before switch to ELF
9920 ld_shlibs_CXX=no
9921 ;;
9922 freebsd-elf*)
9923 archive_cmds_need_lc_CXX=no
9924 ;;
9925 freebsd* | kfreebsd*-gnu)
9926 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9927 # conventions
9928 ld_shlibs_CXX=yes
9929 ;;
9930 gnu*)
9931 ;;
9932 hpux9*)
9933 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9934 hardcode_libdir_separator_CXX=:
9935 export_dynamic_flag_spec_CXX='${wl}-E'
9936 hardcode_direct_CXX=yes
9937 hardcode_minus_L_CXX=yes # Not in the search PATH,
9938 # but as the default
9939 # location of the library.
9940
9941 case $cc_basename in
9942 CC)
9943 # FIXME: insert proper C++ library support
9944 ld_shlibs_CXX=no
9945 ;;
9946 aCC)
9947 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'
9948 # Commands to make compiler produce verbose output that lists
9949 # what "hidden" libraries, object files and flags are used when
9950 # linking a shared library.
9951 #
9952 # There doesn't appear to be a way to prevent this compiler from
9953 # explicitly linking system object files so we need to strip them
9954 # from the output so that they don't get included in the library
9955 # dependencies.
9956 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'
9957 ;;
9958 *)
9959 if test "$GXX" = yes; then
9960 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'
9961 else
9962 # FIXME: insert proper C++ library support
9963 ld_shlibs_CXX=no
9964 fi
9965 ;;
9966 esac
9967 ;;
9968 hpux10*|hpux11*)
9969 if test $with_gnu_ld = no; then
9970 case "$host_cpu" in
9971 hppa*64*)
9972 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9973 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9974 hardcode_libdir_separator_CXX=:
9975 ;;
9976 ia64*)
9977 hardcode_libdir_flag_spec_CXX='-L$libdir'
9978 ;;
9979 *)
9980 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9981 hardcode_libdir_separator_CXX=:
9982 export_dynamic_flag_spec_CXX='${wl}-E'
9983 ;;
9984 esac
9985 fi
9986 case "$host_cpu" in
9987 hppa*64*)
9988 hardcode_direct_CXX=no
9989 hardcode_shlibpath_var_CXX=no
9990 ;;
9991 ia64*)
9992 hardcode_direct_CXX=no
9993 hardcode_shlibpath_var_CXX=no
9994 hardcode_minus_L_CXX=yes # Not in the search PATH,
9995 # but as the default
9996 # location of the library.
9997 ;;
9998 *)
9999 hardcode_direct_CXX=yes
10000 hardcode_minus_L_CXX=yes # Not in the search PATH,
10001 # but as the default
10002 # location of the library.
10003 ;;
10004 esac
10005
10006 case $cc_basename in
10007 CC)
10008 # FIXME: insert proper C++ library support
10009 ld_shlibs_CXX=no
10010 ;;
10011 aCC)
10012 case "$host_cpu" in
10013 hppa*64*|ia64*)
10014 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10015 ;;
10016 *)
10017 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10018 ;;
10019 esac
10020 # Commands to make compiler produce verbose output that lists
10021 # what "hidden" libraries, object files and flags are used when
10022 # linking a shared library.
10023 #
10024 # There doesn't appear to be a way to prevent this compiler from
10025 # explicitly linking system object files so we need to strip them
10026 # from the output so that they don't get included in the library
10027 # dependencies.
10028 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10029 ;;
10030 *)
10031 if test "$GXX" = yes; then
10032 if test $with_gnu_ld = no; then
10033 case "$host_cpu" in
10034 ia64*|hppa*64*)
10035 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10036 ;;
10037 *)
10038 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'
10039 ;;
10040 esac
10041 fi
10042 else
10043 # FIXME: insert proper C++ library support
10044 ld_shlibs_CXX=no
10045 fi
10046 ;;
10047 esac
10048 ;;
10049 irix5* | irix6*)
10050 case $cc_basename in
10051 CC)
10052 # SGI C++
10053 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'
10054
10055 # Archives containing C++ object files must be created using
10056 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10057 # necessary to make sure instantiated templates are included
10058 # in the archive.
10059 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10060 ;;
10061 *)
10062 if test "$GXX" = yes; then
10063 if test "$with_gnu_ld" = no; then
10064 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'
10065 else
10066 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10067 fi
10068 fi
10069 link_all_deplibs_CXX=yes
10070 ;;
10071 esac
10072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10073 hardcode_libdir_separator_CXX=:
10074 ;;
10075 linux*)
10076 case $cc_basename in
10077 KCC)
10078 # Kuck and Associates, Inc. (KAI) C++ Compiler
10079
10080 # KCC will only create a shared library if the output file
10081 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10082 # to its proper name (with version) after linking.
10083 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10084 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10085 # Commands to make compiler produce verbose output that lists
10086 # what "hidden" libraries, object files and flags are used when
10087 # linking a shared library.
10088 #
10089 # There doesn't appear to be a way to prevent this compiler from
10090 # explicitly linking system object files so we need to strip them
10091 # from the output so that they don't get included in the library
10092 # dependencies.
10093 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10094
10095 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10097
10098 # Archives containing C++ object files must be created using
10099 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10100 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10101 ;;
10102 icpc)
10103 # Intel C++
10104 with_gnu_ld=yes
10105 archive_cmds_need_lc_CXX=no
10106 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10108 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10109 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10110 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10111 ;;
10112 cxx)
10113 # Compaq C++
10114 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10115 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'
10116
10117 runpath_var=LD_RUN_PATH
10118 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10119 hardcode_libdir_separator_CXX=:
10120
10121 # Commands to make compiler produce verbose output that lists
10122 # what "hidden" libraries, object files and flags are used when
10123 # linking a shared library.
10124 #
10125 # There doesn't appear to be a way to prevent this compiler from
10126 # explicitly linking system object files so we need to strip them
10127 # from the output so that they don't get included in the library
10128 # dependencies.
10129 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'
10130 ;;
10131 esac
10132 ;;
10133 lynxos*)
10134 # FIXME: insert proper C++ library support
10135 ld_shlibs_CXX=no
10136 ;;
10137 m88k*)
10138 # FIXME: insert proper C++ library support
10139 ld_shlibs_CXX=no
10140 ;;
10141 mvs*)
10142 case $cc_basename in
10143 cxx)
10144 # FIXME: insert proper C++ library support
10145 ld_shlibs_CXX=no
10146 ;;
10147 *)
10148 # FIXME: insert proper C++ library support
10149 ld_shlibs_CXX=no
10150 ;;
10151 esac
10152 ;;
10153 netbsd*)
10154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10155 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10156 wlarc=
10157 hardcode_libdir_flag_spec_CXX='-R$libdir'
10158 hardcode_direct_CXX=yes
10159 hardcode_shlibpath_var_CXX=no
10160 fi
10161 # Workaround some broken pre-1.5 toolchains
10162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10163 ;;
10164 osf3*)
10165 case $cc_basename in
10166 KCC)
10167 # Kuck and Associates, Inc. (KAI) C++ Compiler
10168
10169 # KCC will only create a shared library if the output file
10170 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10171 # to its proper name (with version) after linking.
10172 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10173
10174 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10175 hardcode_libdir_separator_CXX=:
10176
10177 # Archives containing C++ object files must be created using
10178 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10179 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10180
10181 ;;
10182 RCC)
10183 # Rational C++ 2.4.1
10184 # FIXME: insert proper C++ library support
10185 ld_shlibs_CXX=no
10186 ;;
10187 cxx)
10188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10189 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'
10190
10191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10192 hardcode_libdir_separator_CXX=:
10193
10194 # Commands to make compiler produce verbose output that lists
10195 # what "hidden" libraries, object files and flags are used when
10196 # linking a shared library.
10197 #
10198 # There doesn't appear to be a way to prevent this compiler from
10199 # explicitly linking system object files so we need to strip them
10200 # from the output so that they don't get included in the library
10201 # dependencies.
10202 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'
10203 ;;
10204 *)
10205 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10206 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10207 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'
10208
10209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10210 hardcode_libdir_separator_CXX=:
10211
10212 # Commands to make compiler produce verbose output that lists
10213 # what "hidden" libraries, object files and flags are used when
10214 # linking a shared library.
10215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10216
10217 else
10218 # FIXME: insert proper C++ library support
10219 ld_shlibs_CXX=no
10220 fi
10221 ;;
10222 esac
10223 ;;
10224 osf4* | osf5*)
10225 case $cc_basename in
10226 KCC)
10227 # Kuck and Associates, Inc. (KAI) C++ Compiler
10228
10229 # KCC will only create a shared library if the output file
10230 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10231 # to its proper name (with version) after linking.
10232 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10233
10234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10235 hardcode_libdir_separator_CXX=:
10236
10237 # Archives containing C++ object files must be created using
10238 # the KAI C++ compiler.
10239 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10240 ;;
10241 RCC)
10242 # Rational C++ 2.4.1
10243 # FIXME: insert proper C++ library support
10244 ld_shlibs_CXX=no
10245 ;;
10246 cxx)
10247 allow_undefined_flag_CXX=' -expect_unresolved \*'
10248 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'
10249 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10250 echo "-hidden">> $lib.exp~
10251 $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~
10252 $rm $lib.exp'
10253
10254 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10255 hardcode_libdir_separator_CXX=:
10256
10257 # Commands to make compiler produce verbose output that lists
10258 # what "hidden" libraries, object files and flags are used when
10259 # linking a shared library.
10260 #
10261 # There doesn't appear to be a way to prevent this compiler from
10262 # explicitly linking system object files so we need to strip them
10263 # from the output so that they don't get included in the library
10264 # dependencies.
10265 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'
10266 ;;
10267 *)
10268 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10269 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10270 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'
10271
10272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10273 hardcode_libdir_separator_CXX=:
10274
10275 # Commands to make compiler produce verbose output that lists
10276 # what "hidden" libraries, object files and flags are used when
10277 # linking a shared library.
10278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10279
10280 else
10281 # FIXME: insert proper C++ library support
10282 ld_shlibs_CXX=no
10283 fi
10284 ;;
10285 esac
10286 ;;
10287 psos*)
10288 # FIXME: insert proper C++ library support
10289 ld_shlibs_CXX=no
10290 ;;
10291 sco*)
10292 archive_cmds_need_lc_CXX=no
10293 case $cc_basename in
10294 CC)
10295 # FIXME: insert proper C++ library support
10296 ld_shlibs_CXX=no
10297 ;;
10298 *)
10299 # FIXME: insert proper C++ library support
10300 ld_shlibs_CXX=no
10301 ;;
10302 esac
10303 ;;
10304 sunos4*)
10305 case $cc_basename in
10306 CC)
10307 # Sun C++ 4.x
10308 # FIXME: insert proper C++ library support
10309 ld_shlibs_CXX=no
10310 ;;
10311 lcc)
10312 # Lucid
10313 # FIXME: insert proper C++ library support
10314 ld_shlibs_CXX=no
10315 ;;
10316 *)
10317 # FIXME: insert proper C++ library support
10318 ld_shlibs_CXX=no
10319 ;;
10320 esac
10321 ;;
10322 solaris*)
10323 case $cc_basename in
10324 CC)
10325 # Sun C++ 4.2, 5.x and Centerline C++
10326 no_undefined_flag_CXX=' -zdefs'
10327 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10328 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10329 $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'
10330
10331 hardcode_libdir_flag_spec_CXX='-R$libdir'
10332 hardcode_shlibpath_var_CXX=no
10333 case $host_os in
10334 solaris2.0-5 | solaris2.0-5.*) ;;
10335 *)
10336 # The C++ compiler is used as linker so we must use $wl
10337 # flag to pass the commands to the underlying system
10338 # linker.
10339 # Supported since Solaris 2.6 (maybe 2.5.1?)
10340 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10341 ;;
10342 esac
10343 link_all_deplibs_CXX=yes
10344
10345 # Commands to make compiler produce verbose output that lists
10346 # what "hidden" libraries, object files and flags are used when
10347 # linking a shared library.
10348 #
10349 # There doesn't appear to be a way to prevent this compiler from
10350 # explicitly linking system object files so we need to strip them
10351 # from the output so that they don't get included in the library
10352 # dependencies.
10353 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10354
10355 # Archives containing C++ object files must be created using
10356 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10357 # necessary to make sure instantiated templates are included
10358 # in the archive.
10359 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10360 ;;
10361 gcx)
10362 # Green Hills C++ Compiler
10363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10364
10365 # The C++ compiler must be used to create the archive.
10366 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10367 ;;
10368 *)
10369 # GNU C++ compiler with Solaris linker
10370 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10371 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10372 if $CC --version | grep -v '^2\.7' > /dev/null; then
10373 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10374 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10375 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10376
10377 # Commands to make compiler produce verbose output that lists
10378 # what "hidden" libraries, object files and flags are used when
10379 # linking a shared library.
10380 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10381 else
10382 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10383 # platform.
10384 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10385 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10386 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10387
10388 # Commands to make compiler produce verbose output that lists
10389 # what "hidden" libraries, object files and flags are used when
10390 # linking a shared library.
10391 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10392 fi
10393
10394 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10395 fi
10396 ;;
10397 esac
10398 ;;
10399 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10400 archive_cmds_need_lc_CXX=no
10401 ;;
10402 tandem*)
10403 case $cc_basename in
10404 NCC)
10405 # NonStop-UX NCC 3.20
10406 # FIXME: insert proper C++ library support
10407 ld_shlibs_CXX=no
10408 ;;
10409 *)
10410 # FIXME: insert proper C++ library support
10411 ld_shlibs_CXX=no
10412 ;;
10413 esac
10414 ;;
10415 vxworks*)
10416 # FIXME: insert proper C++ library support
10417 ld_shlibs_CXX=no
10418 ;;
10419 *)
10420 # FIXME: insert proper C++ library support
10421 ld_shlibs_CXX=no
10422 ;;
10423 esac
10424 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10425 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10426 test "$ld_shlibs_CXX" = no && can_build_shared=no
10427
10428 GCC_CXX="$GXX"
10429 LD_CXX="$LD"
10430
10431
10432 cat > conftest.$ac_ext <<EOF
10433 class Foo
10434 {
10435 public:
10436 Foo (void) { a = 0; }
10437 private:
10438 int a;
10439 };
10440 EOF
10441
10442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10443 (eval $ac_compile) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; then
10447 # Parse the compiler output and extract the necessary
10448 # objects, libraries and library flags.
10449
10450 # Sentinel used to keep track of whether or not we are before
10451 # the conftest object file.
10452 pre_test_object_deps_done=no
10453
10454 # The `*' in the case matches for architectures that use `case' in
10455 # $output_verbose_cmd can trigger glob expansion during the loop
10456 # eval without this substitution.
10457 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10458
10459 for p in `eval $output_verbose_link_cmd`; do
10460 case $p in
10461
10462 -L* | -R* | -l*)
10463 # Some compilers place space between "-{L,R}" and the path.
10464 # Remove the space.
10465 if test $p = "-L" \
10466 || test $p = "-R"; then
10467 prev=$p
10468 continue
10469 else
10470 prev=
10471 fi
10472
10473 if test "$pre_test_object_deps_done" = no; then
10474 case $p in
10475 -L* | -R*)
10476 # Internal compiler library paths should come after those
10477 # provided the user. The postdeps already come after the
10478 # user supplied libs so there is no need to process them.
10479 if test -z "$compiler_lib_search_path_CXX"; then
10480 compiler_lib_search_path_CXX="${prev}${p}"
10481 else
10482 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10483 fi
10484 ;;
10485 # The "-l" case would never come before the object being
10486 # linked, so don't bother handling this case.
10487 esac
10488 else
10489 if test -z "$postdeps_CXX"; then
10490 postdeps_CXX="${prev}${p}"
10491 else
10492 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10493 fi
10494 fi
10495 ;;
10496
10497 *.$objext)
10498 # This assumes that the test object file only shows up
10499 # once in the compiler output.
10500 if test "$p" = "conftest.$objext"; then
10501 pre_test_object_deps_done=yes
10502 continue
10503 fi
10504
10505 if test "$pre_test_object_deps_done" = no; then
10506 if test -z "$predep_objects_CXX"; then
10507 predep_objects_CXX="$p"
10508 else
10509 predep_objects_CXX="$predep_objects_CXX $p"
10510 fi
10511 else
10512 if test -z "$postdep_objects_CXX"; then
10513 postdep_objects_CXX="$p"
10514 else
10515 postdep_objects_CXX="$postdep_objects_CXX $p"
10516 fi
10517 fi
10518 ;;
10519
10520 *) ;; # Ignore the rest.
10521
10522 esac
10523 done
10524
10525 # Clean up.
10526 rm -f a.out a.exe
10527 else
10528 echo "libtool.m4: error: problem compiling CXX test program"
10529 fi
10530
10531 $rm -f confest.$objext
10532
10533 case " $postdeps_CXX " in
10534 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10535 esac
10536
10537 lt_prog_compiler_wl_CXX=
10538 lt_prog_compiler_pic_CXX=
10539 lt_prog_compiler_static_CXX=
10540
10541 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10542 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10543
10544 # C++ specific cases for pic, static, wl, etc.
10545 if test "$GXX" = yes; then
10546 lt_prog_compiler_wl_CXX='-Wl,'
10547 lt_prog_compiler_static_CXX='-static'
10548
10549 case $host_os in
10550 aix*)
10551 # All AIX code is PIC.
10552 if test "$host_cpu" = ia64; then
10553 # AIX 5 now supports IA64 processor
10554 lt_prog_compiler_static_CXX='-Bstatic'
10555 fi
10556 ;;
10557 amigaos*)
10558 # FIXME: we need at least 68020 code to build shared libraries, but
10559 # adding the `-m68020' flag to GCC prevents building anything better,
10560 # like `-m68040'.
10561 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10562 ;;
10563 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10564 # PIC is the default for these OSes.
10565 ;;
10566 mingw* | os2* | pw32*)
10567 # This hack is so that the source file can tell whether it is being
10568 # built for inclusion in a dll (and should export symbols for example).
10569 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10570 ;;
10571 darwin* | rhapsody*)
10572 # PIC is the default on this platform
10573 # Common symbols not allowed in MH_DYLIB files
10574 lt_prog_compiler_pic_CXX='-fno-common'
10575 ;;
10576 *djgpp*)
10577 # DJGPP does not support shared libraries at all
10578 lt_prog_compiler_pic_CXX=
10579 ;;
10580 sysv4*MP*)
10581 if test -d /usr/nec; then
10582 lt_prog_compiler_pic_CXX=-Kconform_pic
10583 fi
10584 ;;
10585 hpux*)
10586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10587 # not for PA HP-UX.
10588 case "$host_cpu" in
10589 hppa*64*|ia64*)
10590 ;;
10591 *)
10592 lt_prog_compiler_pic_CXX='-fPIC'
10593 ;;
10594 esac
10595 ;;
10596 *)
10597 lt_prog_compiler_pic_CXX='-fPIC'
10598 ;;
10599 esac
10600 else
10601 case $host_os in
10602 aix4* | aix5*)
10603 # All AIX code is PIC.
10604 if test "$host_cpu" = ia64; then
10605 # AIX 5 now supports IA64 processor
10606 lt_prog_compiler_static_CXX='-Bstatic'
10607 else
10608 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10609 fi
10610 ;;
10611 chorus*)
10612 case $cc_basename in
10613 cxch68)
10614 # Green Hills C++ Compiler
10615 # _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"
10616 ;;
10617 esac
10618 ;;
10619 dgux*)
10620 case $cc_basename in
10621 ec++)
10622 lt_prog_compiler_pic_CXX='-KPIC'
10623 ;;
10624 ghcx)
10625 # Green Hills C++ Compiler
10626 lt_prog_compiler_pic_CXX='-pic'
10627 ;;
10628 *)
10629 ;;
10630 esac
10631 ;;
10632 freebsd* | kfreebsd*-gnu)
10633 # FreeBSD uses GNU C++
10634 ;;
10635 hpux9* | hpux10* | hpux11*)
10636 case $cc_basename in
10637 CC)
10638 lt_prog_compiler_wl_CXX='-Wl,'
10639 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10640 if test "$host_cpu" != ia64; then
10641 lt_prog_compiler_pic_CXX='+Z'
10642 fi
10643 ;;
10644 aCC)
10645 lt_prog_compiler_wl_CXX='-Wl,'
10646 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10647 case "$host_cpu" in
10648 hppa*64*|ia64*)
10649 # +Z the default
10650 ;;
10651 *)
10652 lt_prog_compiler_pic_CXX='+Z'
10653 ;;
10654 esac
10655 ;;
10656 *)
10657 ;;
10658 esac
10659 ;;
10660 irix5* | irix6* | nonstopux*)
10661 case $cc_basename in
10662 CC)
10663 lt_prog_compiler_wl_CXX='-Wl,'
10664 lt_prog_compiler_static_CXX='-non_shared'
10665 # CC pic flag -KPIC is the default.
10666 ;;
10667 *)
10668 ;;
10669 esac
10670 ;;
10671 linux*)
10672 case $cc_basename in
10673 KCC)
10674 # KAI C++ Compiler
10675 lt_prog_compiler_wl_CXX='--backend -Wl,'
10676 lt_prog_compiler_pic_CXX='-fPIC'
10677 ;;
10678 icpc)
10679 # Intel C++
10680 lt_prog_compiler_wl_CXX='-Wl,'
10681 lt_prog_compiler_pic_CXX='-KPIC'
10682 lt_prog_compiler_static_CXX='-static'
10683 ;;
10684 cxx)
10685 # Compaq C++
10686 # Make sure the PIC flag is empty. It appears that all Alpha
10687 # Linux and Compaq Tru64 Unix objects are PIC.
10688 lt_prog_compiler_pic_CXX=
10689 lt_prog_compiler_static_CXX='-non_shared'
10690 ;;
10691 *)
10692 ;;
10693 esac
10694 ;;
10695 lynxos*)
10696 ;;
10697 m88k*)
10698 ;;
10699 mvs*)
10700 case $cc_basename in
10701 cxx)
10702 lt_prog_compiler_pic_CXX='-W c,exportall'
10703 ;;
10704 *)
10705 ;;
10706 esac
10707 ;;
10708 netbsd*)
10709 ;;
10710 osf3* | osf4* | osf5*)
10711 case $cc_basename in
10712 KCC)
10713 lt_prog_compiler_wl_CXX='--backend -Wl,'
10714 ;;
10715 RCC)
10716 # Rational C++ 2.4.1
10717 lt_prog_compiler_pic_CXX='-pic'
10718 ;;
10719 cxx)
10720 # Digital/Compaq C++
10721 lt_prog_compiler_wl_CXX='-Wl,'
10722 # Make sure the PIC flag is empty. It appears that all Alpha
10723 # Linux and Compaq Tru64 Unix objects are PIC.
10724 lt_prog_compiler_pic_CXX=
10725 lt_prog_compiler_static_CXX='-non_shared'
10726 ;;
10727 *)
10728 ;;
10729 esac
10730 ;;
10731 psos*)
10732 ;;
10733 sco*)
10734 case $cc_basename in
10735 CC)
10736 lt_prog_compiler_pic_CXX='-fPIC'
10737 ;;
10738 *)
10739 ;;
10740 esac
10741 ;;
10742 solaris*)
10743 case $cc_basename in
10744 CC)
10745 # Sun C++ 4.2, 5.x and Centerline C++
10746 lt_prog_compiler_pic_CXX='-KPIC'
10747 lt_prog_compiler_static_CXX='-Bstatic'
10748 lt_prog_compiler_wl_CXX='-Qoption ld '
10749 ;;
10750 gcx)
10751 # Green Hills C++ Compiler
10752 lt_prog_compiler_pic_CXX='-PIC'
10753 ;;
10754 *)
10755 ;;
10756 esac
10757 ;;
10758 sunos4*)
10759 case $cc_basename in
10760 CC)
10761 # Sun C++ 4.x
10762 lt_prog_compiler_pic_CXX='-pic'
10763 lt_prog_compiler_static_CXX='-Bstatic'
10764 ;;
10765 lcc)
10766 # Lucid
10767 lt_prog_compiler_pic_CXX='-pic'
10768 ;;
10769 *)
10770 ;;
10771 esac
10772 ;;
10773 tandem*)
10774 case $cc_basename in
10775 NCC)
10776 # NonStop-UX NCC 3.20
10777 lt_prog_compiler_pic_CXX='-KPIC'
10778 ;;
10779 *)
10780 ;;
10781 esac
10782 ;;
10783 unixware*)
10784 ;;
10785 vxworks*)
10786 ;;
10787 *)
10788 lt_prog_compiler_can_build_shared_CXX=no
10789 ;;
10790 esac
10791 fi
10792
10793 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10794 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10795
10796 #
10797 # Check to make sure the PIC flag actually works.
10798 #
10799 if test -n "$lt_prog_compiler_pic_CXX"; then
10800
10801 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10802 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10803 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806 lt_prog_compiler_pic_works_CXX=no
10807 ac_outfile=conftest.$ac_objext
10808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10809 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10810 # Insert the option either (1) after the last *FLAGS variable, or
10811 # (2) before a word containing "conftest.", or (3) at the end.
10812 # Note that $ac_compile itself does not contain backslashes and begins
10813 # with a dollar sign (not a hyphen), so the echo should work correctly.
10814 # The option is referenced via a variable to avoid confusing sed.
10815 lt_compile=`echo "$ac_compile" | $SED \
10816 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10818 -e 's:$: $lt_compiler_flag:'`
10819 (eval echo "\"\$as_me:10819: $lt_compile\"" >&5)
10820 (eval "$lt_compile" 2>conftest.err)
10821 ac_status=$?
10822 cat conftest.err >&5
10823 echo "$as_me:10823: \$? = $ac_status" >&5
10824 if (exit $ac_status) && test -s "$ac_outfile"; then
10825 # The compiler can only warn and ignore the option if not recognized
10826 # So say no if there are warnings
10827 if test ! -s conftest.err; then
10828 lt_prog_compiler_pic_works_CXX=yes
10829 fi
10830 fi
10831 $rm conftest*
10832
10833 fi
10834 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10835 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10836
10837 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10838 case $lt_prog_compiler_pic_CXX in
10839 "" | " "*) ;;
10840 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10841 esac
10842 else
10843 lt_prog_compiler_pic_CXX=
10844 lt_prog_compiler_can_build_shared_CXX=no
10845 fi
10846
10847 fi
10848 case "$host_os" in
10849 # For platforms which do not support PIC, -DPIC is meaningless:
10850 *djgpp*)
10851 lt_prog_compiler_pic_CXX=
10852 ;;
10853 *)
10854 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10855 ;;
10856 esac
10857
10858 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10860 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 lt_cv_prog_compiler_c_o_CXX=no
10864 $rm -r conftest 2>/dev/null
10865 mkdir conftest
10866 cd conftest
10867 mkdir out
10868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10869
10870 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10871 # that will create temporary files in the current directory regardless of
10872 # the output directory. Thus, making CWD read-only will cause this test
10873 # to fail, enabling locking or at least warning the user not to do parallel
10874 # builds.
10875 chmod -w .
10876
10877 lt_compiler_flag="-o out/conftest2.$ac_objext"
10878 # Insert the option either (1) after the last *FLAGS variable, or
10879 # (2) before a word containing "conftest.", or (3) at the end.
10880 # Note that $ac_compile itself does not contain backslashes and begins
10881 # with a dollar sign (not a hyphen), so the echo should work correctly.
10882 lt_compile=`echo "$ac_compile" | $SED \
10883 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10885 -e 's:$: $lt_compiler_flag:'`
10886 (eval echo "\"\$as_me:10886: $lt_compile\"" >&5)
10887 (eval "$lt_compile" 2>out/conftest.err)
10888 ac_status=$?
10889 cat out/conftest.err >&5
10890 echo "$as_me:10890: \$? = $ac_status" >&5
10891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10892 then
10893 # The compiler can only warn and ignore the option if not recognized
10894 # So say no if there are warnings
10895 if test ! -s out/conftest.err; then
10896 lt_cv_prog_compiler_c_o_CXX=yes
10897 fi
10898 fi
10899 chmod u+w .
10900 $rm conftest*
10901 # SGI C++ compiler will create directory out/ii_files/ for
10902 # template instantiation
10903 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10904 $rm out/* && rmdir out
10905 cd ..
10906 rmdir conftest
10907 $rm conftest*
10908
10909 fi
10910 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10912
10913
10914 hard_links="nottested"
10915 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10916 # do not overwrite the value of need_locks provided by the user
10917 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10918 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10919 hard_links=yes
10920 $rm conftest*
10921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10922 touch conftest.a
10923 ln conftest.a conftest.b 2>&5 || hard_links=no
10924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10925 echo "$as_me:$LINENO: result: $hard_links" >&5
10926 echo "${ECHO_T}$hard_links" >&6
10927 if test "$hard_links" = no; then
10928 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10929 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10930 need_locks=warn
10931 fi
10932 else
10933 need_locks=no
10934 fi
10935
10936 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10937 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10938
10939 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10940 case $host_os in
10941 aix4* | aix5*)
10942 # If we're using GNU nm, then we don't want the "-C" option.
10943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10944 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10945 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'
10946 else
10947 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'
10948 fi
10949 ;;
10950 pw32*)
10951 export_symbols_cmds_CXX="$ltdll_cmds"
10952 ;;
10953 cygwin* | mingw*)
10954 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10955 ;;
10956 *)
10957 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10958 ;;
10959 esac
10960
10961 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10962 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10963 test "$ld_shlibs_CXX" = no && can_build_shared=no
10964
10965 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10966 if test "$GCC" = yes; then
10967 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10968 fi
10969
10970 #
10971 # Do we need to explicitly link libc?
10972 #
10973 case "x$archive_cmds_need_lc_CXX" in
10974 x|xyes)
10975 # Assume -lc should be added
10976 archive_cmds_need_lc_CXX=yes
10977
10978 if test "$enable_shared" = yes && test "$GCC" = yes; then
10979 case $archive_cmds_CXX in
10980 *'~'*)
10981 # FIXME: we may have to deal with multi-command sequences.
10982 ;;
10983 '$CC '*)
10984 # Test whether the compiler implicitly links with -lc since on some
10985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10986 # to ld, don't add -lc before -lgcc.
10987 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10988 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10989 $rm conftest*
10990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10991
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993 (eval $ac_compile) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } 2>conftest.err; then
10997 soname=conftest
10998 lib=conftest
10999 libobjs=conftest.$ac_objext
11000 deplibs=
11001 wl=$lt_prog_compiler_wl_CXX
11002 compiler_flags=-v
11003 linker_flags=-v
11004 verstring=
11005 output_objdir=.
11006 libname=conftest
11007 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11008 allow_undefined_flag_CXX=
11009 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11010 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }
11014 then
11015 archive_cmds_need_lc_CXX=no
11016 else
11017 archive_cmds_need_lc_CXX=yes
11018 fi
11019 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11020 else
11021 cat conftest.err 1>&5
11022 fi
11023 $rm conftest*
11024 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11025 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11026 ;;
11027 esac
11028 fi
11029 ;;
11030 esac
11031
11032 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11033 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11034 library_names_spec=
11035 libname_spec='lib$name'
11036 soname_spec=
11037 shrext=".so"
11038 postinstall_cmds=
11039 postuninstall_cmds=
11040 finish_cmds=
11041 finish_eval=
11042 shlibpath_var=
11043 shlibpath_overrides_runpath=unknown
11044 version_type=none
11045 dynamic_linker="$host_os ld.so"
11046 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11047 if test "$GCC" = yes; then
11048 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11049 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11050 # if the path contains ";" then we assume it to be the separator
11051 # otherwise default to the standard path separator (i.e. ":") - it is
11052 # assumed that no part of a normal pathname contains ";" but that should
11053 # okay in the real world where ";" in dirpaths is itself problematic.
11054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11055 else
11056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11057 fi
11058 else
11059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11060 fi
11061 need_lib_prefix=unknown
11062 hardcode_into_libs=no
11063
11064 # when you set need_version to no, make sure it does not cause -set_version
11065 # flags to be left without arguments
11066 need_version=unknown
11067
11068 case $host_os in
11069 aix3*)
11070 version_type=linux
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11072 shlibpath_var=LIBPATH
11073
11074 # AIX 3 has no versioning support, so we append a major version to the name.
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 ;;
11077
11078 aix4* | aix5*)
11079 version_type=linux
11080 need_lib_prefix=no
11081 need_version=no
11082 hardcode_into_libs=yes
11083 if test "$host_cpu" = ia64; then
11084 # AIX 5 supports IA64
11085 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 else
11088 # With GCC up to 2.95.x, collect2 would create an import file
11089 # for dependence libraries. The import file would start with
11090 # the line `#! .'. This would cause the generated library to
11091 # depend on `.', always an invalid library. This was fixed in
11092 # development snapshots of GCC prior to 3.0.
11093 case $host_os in
11094 aix4 | aix4.[01] | aix4.[01].*)
11095 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11096 echo ' yes '
11097 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11098 :
11099 else
11100 can_build_shared=no
11101 fi
11102 ;;
11103 esac
11104 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11105 # soname into executable. Probably we can add versioning support to
11106 # collect2, so additional links can be useful in future.
11107 if test "$aix_use_runtimelinking" = yes; then
11108 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11109 # instead of lib<name>.a to let people know that these are not
11110 # typical AIX shared libraries.
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 else
11113 # We preserve .a as extension for shared libraries through AIX4.2
11114 # and later when we are not doing run time linking.
11115 library_names_spec='${libname}${release}.a $libname.a'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 fi
11118 shlibpath_var=LIBPATH
11119 fi
11120 ;;
11121
11122 amigaos*)
11123 library_names_spec='$libname.ixlibrary $libname.a'
11124 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11125 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'
11126 ;;
11127
11128 beos*)
11129 library_names_spec='${libname}${shared_ext}'
11130 dynamic_linker="$host_os ld.so"
11131 shlibpath_var=LIBRARY_PATH
11132 ;;
11133
11134 bsdi4*)
11135 version_type=linux
11136 need_version=no
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11142 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11143 # the default ld.so.conf also contains /usr/contrib/lib and
11144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11145 # libtool to hard-code these into programs
11146 ;;
11147
11148 cygwin* | mingw* | pw32*)
11149 version_type=windows
11150 shrext=".dll"
11151 need_version=no
11152 need_lib_prefix=no
11153
11154 case $GCC,$host_os in
11155 yes,cygwin* | yes,mingw* | yes,pw32*)
11156 library_names_spec='$libname.dll.a'
11157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11158 postinstall_cmds='base_file=`basename \${file}`~
11159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11160 dldir=$destdir/`dirname \$dlpath`~
11161 test -d \$dldir || mkdir -p \$dldir~
11162 $install_prog $dir/$dlname \$dldir/$dlname'
11163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11164 dlpath=$dir/\$dldll~
11165 $rm \$dlpath'
11166 shlibpath_overrides_runpath=yes
11167
11168 case $host_os in
11169 cygwin*)
11170 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11171 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11172 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11173 ;;
11174 mingw*)
11175 # MinGW DLLs use traditional 'lib' prefix
11176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11177 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11178 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11179 # It is most probably a Windows format PATH printed by
11180 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11181 # path with ; separators, and with drive letters. We can handle the
11182 # drive letters (cygwin fileutils understands them), so leave them,
11183 # especially as we might pass files found there to a mingw objdump,
11184 # which wouldn't understand a cygwinified path. Ahh.
11185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11186 else
11187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11188 fi
11189 ;;
11190 pw32*)
11191 # pw32 DLLs use 'pw' prefix rather than 'lib'
11192 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11193 ;;
11194 esac
11195 ;;
11196
11197 *)
11198 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11199 ;;
11200 esac
11201 dynamic_linker='Win32 ld.exe'
11202 # FIXME: first we should search . and the directory the executable is in
11203 shlibpath_var=PATH
11204 ;;
11205
11206 darwin* | rhapsody*)
11207 dynamic_linker="$host_os dyld"
11208 version_type=darwin
11209 need_lib_prefix=no
11210 need_version=no
11211 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11212 soname_spec='${libname}${release}${major}$shared_ext'
11213 shlibpath_overrides_runpath=yes
11214 shlibpath_var=DYLD_LIBRARY_PATH
11215 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11216 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11217 if test "$GCC" = yes; then
11218 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11219 else
11220 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11221 fi
11222 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11223 ;;
11224
11225 dgux*)
11226 version_type=linux
11227 need_lib_prefix=no
11228 need_version=no
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 ;;
11233
11234 freebsd1*)
11235 dynamic_linker=no
11236 ;;
11237
11238 kfreebsd*-gnu)
11239 version_type=linux
11240 need_lib_prefix=no
11241 need_version=no
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=no
11246 hardcode_into_libs=yes
11247 dynamic_linker='GNU ld.so'
11248 ;;
11249
11250 freebsd*)
11251 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11252 version_type=freebsd-$objformat
11253 case $version_type in
11254 freebsd-elf*)
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11256 need_version=no
11257 need_lib_prefix=no
11258 ;;
11259 freebsd-*)
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11261 need_version=yes
11262 ;;
11263 esac
11264 shlibpath_var=LD_LIBRARY_PATH
11265 case $host_os in
11266 freebsd2*)
11267 shlibpath_overrides_runpath=yes
11268 ;;
11269 freebsd3.01* | freebsdelf3.01*)
11270 shlibpath_overrides_runpath=yes
11271 hardcode_into_libs=yes
11272 ;;
11273 *) # from 3.2 on
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11276 ;;
11277 esac
11278 ;;
11279
11280 gnu*)
11281 version_type=linux
11282 need_lib_prefix=no
11283 need_version=no
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 hardcode_into_libs=yes
11288 ;;
11289
11290 hpux9* | hpux10* | hpux11*)
11291 # Give a soname corresponding to the major version so that dld.sl refuses to
11292 # link against other versions.
11293 version_type=sunos
11294 need_lib_prefix=no
11295 need_version=no
11296 case "$host_cpu" in
11297 ia64*)
11298 shrext='.so'
11299 hardcode_into_libs=yes
11300 dynamic_linker="$host_os dld.so"
11301 shlibpath_var=LD_LIBRARY_PATH
11302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 if test "X$HPUX_IA64_MODE" = X32; then
11306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11307 else
11308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11309 fi
11310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11311 ;;
11312 hppa*64*)
11313 shrext='.sl'
11314 hardcode_into_libs=yes
11315 dynamic_linker="$host_os dld.sl"
11316 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11322 ;;
11323 *)
11324 shrext='.sl'
11325 dynamic_linker="$host_os dld.sl"
11326 shlibpath_var=SHLIB_PATH
11327 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 ;;
11331 esac
11332 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11333 postinstall_cmds='chmod 555 $lib'
11334 ;;
11335
11336 irix5* | irix6* | nonstopux*)
11337 case $host_os in
11338 nonstopux*) version_type=nonstopux ;;
11339 *)
11340 if test "$lt_cv_prog_gnu_ld" = yes; then
11341 version_type=linux
11342 else
11343 version_type=irix
11344 fi ;;
11345 esac
11346 need_lib_prefix=no
11347 need_version=no
11348 soname_spec='${libname}${release}${shared_ext}$major'
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11350 case $host_os in
11351 irix5* | nonstopux*)
11352 libsuff= shlibsuff=
11353 ;;
11354 *)
11355 case $LD in # libtool.m4 will add one of these switches to LD
11356 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11357 libsuff= shlibsuff= libmagic=32-bit;;
11358 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11359 libsuff=32 shlibsuff=N32 libmagic=N32;;
11360 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11361 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11362 *) libsuff= shlibsuff= libmagic=never-match;;
11363 esac
11364 ;;
11365 esac
11366 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11367 shlibpath_overrides_runpath=no
11368 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11369 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11370 hardcode_into_libs=yes
11371 ;;
11372
11373 # No shared lib support for Linux oldld, aout, or coff.
11374 linux*oldld* | linux*aout* | linux*coff*)
11375 dynamic_linker=no
11376 ;;
11377
11378 # This must be Linux ELF.
11379 linux*)
11380 version_type=linux
11381 need_lib_prefix=no
11382 need_version=no
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11386 shlibpath_var=LD_LIBRARY_PATH
11387 shlibpath_overrides_runpath=no
11388 # This implies no fast_install, which is unacceptable.
11389 # Some rework will be needed to allow for fast_install
11390 # before this can be enabled.
11391 hardcode_into_libs=yes
11392
11393 # We used to test for /lib/ld.so.1 and disable shared libraries on
11394 # powerpc, because MkLinux only supported shared libraries with the
11395 # GNU dynamic linker. Since this was broken with cross compilers,
11396 # most powerpc-linux boxes support dynamic linking these days and
11397 # people can always --disable-shared, the test was removed, and we
11398 # assume the GNU/Linux dynamic linker is in use.
11399 dynamic_linker='GNU/Linux ld.so'
11400 ;;
11401
11402 netbsd*)
11403 version_type=sunos
11404 need_lib_prefix=no
11405 need_version=no
11406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11409 dynamic_linker='NetBSD (a.out) ld.so'
11410 else
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 dynamic_linker='NetBSD ld.elf_so'
11414 fi
11415 shlibpath_var=LD_LIBRARY_PATH
11416 shlibpath_overrides_runpath=yes
11417 hardcode_into_libs=yes
11418 ;;
11419
11420 newsos6)
11421 version_type=linux
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 ;;
11426
11427 nto-qnx*)
11428 version_type=linux
11429 need_lib_prefix=no
11430 need_version=no
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes
11435 ;;
11436
11437 openbsd*)
11438 version_type=sunos
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11445 case $host_os in
11446 openbsd2.[89] | openbsd2.[89].*)
11447 shlibpath_overrides_runpath=no
11448 ;;
11449 *)
11450 shlibpath_overrides_runpath=yes
11451 ;;
11452 esac
11453 else
11454 shlibpath_overrides_runpath=yes
11455 fi
11456 ;;
11457
11458 os2*)
11459 libname_spec='$name'
11460 shrext=".dll"
11461 need_lib_prefix=no
11462 library_names_spec='$libname${shared_ext} $libname.a'
11463 dynamic_linker='OS/2 ld.exe'
11464 shlibpath_var=LIBPATH
11465 ;;
11466
11467 osf3* | osf4* | osf5*)
11468 version_type=osf
11469 need_lib_prefix=no
11470 need_version=no
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11476 ;;
11477
11478 sco3.2v5*)
11479 version_type=osf
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 ;;
11484
11485 solaris*)
11486 version_type=linux
11487 need_lib_prefix=no
11488 need_version=no
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=yes
11493 hardcode_into_libs=yes
11494 # ldd complains unless libraries are executable
11495 postinstall_cmds='chmod +x $lib'
11496 ;;
11497
11498 sunos4*)
11499 version_type=sunos
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11504 if test "$with_gnu_ld" = yes; then
11505 need_lib_prefix=no
11506 fi
11507 need_version=yes
11508 ;;
11509
11510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11511 version_type=linux
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 case $host_vendor in
11516 sni)
11517 shlibpath_overrides_runpath=no
11518 need_lib_prefix=no
11519 export_dynamic_flag_spec='${wl}-Blargedynsym'
11520 runpath_var=LD_RUN_PATH
11521 ;;
11522 siemens)
11523 need_lib_prefix=no
11524 ;;
11525 motorola)
11526 need_lib_prefix=no
11527 need_version=no
11528 shlibpath_overrides_runpath=no
11529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11530 ;;
11531 esac
11532 ;;
11533
11534 sysv4*MP*)
11535 if test -d /usr/nec ;then
11536 version_type=linux
11537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11538 soname_spec='$libname${shared_ext}.$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 fi
11541 ;;
11542
11543 uts4*)
11544 version_type=linux
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546 soname_spec='${libname}${release}${shared_ext}$major'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 ;;
11549
11550 *)
11551 dynamic_linker=no
11552 ;;
11553 esac
11554 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11555 echo "${ECHO_T}$dynamic_linker" >&6
11556 test "$dynamic_linker" = no && can_build_shared=no
11557
11558 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11559 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11560 hardcode_action_CXX=
11561 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11562 test -n "$runpath_var CXX" || \
11563 test "X$hardcode_automatic_CXX"="Xyes" ; then
11564
11565 # We can hardcode non-existant directories.
11566 if test "$hardcode_direct_CXX" != no &&
11567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11568 # have to relink, otherwise we might link with an installed library
11569 # when we should be linking with a yet-to-be-installed one
11570 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11571 test "$hardcode_minus_L_CXX" != no; then
11572 # Linking always hardcodes the temporary library directory.
11573 hardcode_action_CXX=relink
11574 else
11575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11576 hardcode_action_CXX=immediate
11577 fi
11578 else
11579 # We cannot hardcode anything, or else we can only hardcode existing
11580 # directories.
11581 hardcode_action_CXX=unsupported
11582 fi
11583 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11584 echo "${ECHO_T}$hardcode_action_CXX" >&6
11585
11586 if test "$hardcode_action_CXX" = relink; then
11587 # Fast installation is not supported
11588 enable_fast_install=no
11589 elif test "$shlibpath_overrides_runpath" = yes ||
11590 test "$enable_shared" = no; then
11591 # Fast installation is not necessary
11592 enable_fast_install=needless
11593 fi
11594
11595 striplib=
11596 old_striplib=
11597 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11598 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11599 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11600 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11601 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11602 echo "$as_me:$LINENO: result: yes" >&5
11603 echo "${ECHO_T}yes" >&6
11604 else
11605 # FIXME - insert some real tests, host_os isn't really good enough
11606 case $host_os in
11607 darwin*)
11608 if test -n "$STRIP" ; then
11609 striplib="$STRIP -x"
11610 echo "$as_me:$LINENO: result: yes" >&5
11611 echo "${ECHO_T}yes" >&6
11612 else
11613 echo "$as_me:$LINENO: result: no" >&5
11614 echo "${ECHO_T}no" >&6
11615 fi
11616 ;;
11617 *)
11618 echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6
11620 ;;
11621 esac
11622 fi
11623
11624 if test "x$enable_dlopen" != xyes; then
11625 enable_dlopen=unknown
11626 enable_dlopen_self=unknown
11627 enable_dlopen_self_static=unknown
11628 else
11629 lt_cv_dlopen=no
11630 lt_cv_dlopen_libs=
11631
11632 case $host_os in
11633 beos*)
11634 lt_cv_dlopen="load_add_on"
11635 lt_cv_dlopen_libs=
11636 lt_cv_dlopen_self=yes
11637 ;;
11638
11639 mingw* | pw32*)
11640 lt_cv_dlopen="LoadLibrary"
11641 lt_cv_dlopen_libs=
11642 ;;
11643
11644 cygwin*)
11645 lt_cv_dlopen="dlopen"
11646 lt_cv_dlopen_libs=
11647 ;;
11648
11649 darwin*)
11650 # if libdl is installed we need to link against it
11651 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11652 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-ldl $LIBS"
11658 cat >conftest.$ac_ext <<_ACEOF
11659 #line $LINENO "configure"
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665
11666 /* Override any gcc2 internal prototype to avoid an error. */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 /* We use char because int might match the return type of a gcc2
11671 builtin and then its argument prototype would still apply. */
11672 char dlopen ();
11673 int
11674 main ()
11675 {
11676 dlopen ();
11677 ;
11678 return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683 (eval $ac_link) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -s conftest$ac_exeext'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 ac_cv_lib_dl_dlopen=yes
11694 else
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 ac_cv_lib_dl_dlopen=no
11699 fi
11700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11701 LIBS=$ac_check_lib_save_LIBS
11702 fi
11703 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11705 if test $ac_cv_lib_dl_dlopen = yes; then
11706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11707 else
11708
11709 lt_cv_dlopen="dyld"
11710 lt_cv_dlopen_libs=
11711 lt_cv_dlopen_self=yes
11712
11713 fi
11714
11715 ;;
11716
11717 *)
11718 echo "$as_me:$LINENO: checking for shl_load" >&5
11719 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11720 if test "${ac_cv_func_shl_load+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723 cat >conftest.$ac_ext <<_ACEOF
11724 #line $LINENO "configure"
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 /* System header to define __stub macros and hopefully few prototypes,
11731 which can conflict with char shl_load (); below.
11732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11733 <limits.h> exists even on freestanding compilers. */
11734 #ifdef __STDC__
11735 # include <limits.h>
11736 #else
11737 # include <assert.h>
11738 #endif
11739 /* Override any gcc2 internal prototype to avoid an error. */
11740 #ifdef __cplusplus
11741 extern "C"
11742 {
11743 #endif
11744 /* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */
11746 char shl_load ();
11747 /* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11751 choke me
11752 #else
11753 char (*f) () = shl_load;
11754 #endif
11755 #ifdef __cplusplus
11756 }
11757 #endif
11758
11759 int
11760 main ()
11761 {
11762 return f != shl_load;
11763 ;
11764 return 0;
11765 }
11766 _ACEOF
11767 rm -f conftest.$ac_objext conftest$ac_exeext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11769 (eval $ac_link) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -s conftest$ac_exeext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_cv_func_shl_load=yes
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 ac_cv_func_shl_load=no
11785 fi
11786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11787 fi
11788 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11789 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11790 if test $ac_cv_func_shl_load = yes; then
11791 lt_cv_dlopen="shl_load"
11792 else
11793 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11794 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11795 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 ac_check_lib_save_LIBS=$LIBS
11799 LIBS="-ldld $LIBS"
11800 cat >conftest.$ac_ext <<_ACEOF
11801 #line $LINENO "configure"
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807
11808 /* Override any gcc2 internal prototype to avoid an error. */
11809 #ifdef __cplusplus
11810 extern "C"
11811 #endif
11812 /* We use char because int might match the return type of a gcc2
11813 builtin and then its argument prototype would still apply. */
11814 char shl_load ();
11815 int
11816 main ()
11817 {
11818 shl_load ();
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11825 (eval $ac_link) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -s conftest$ac_exeext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_lib_dld_shl_load=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 ac_cv_lib_dld_shl_load=no
11841 fi
11842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11844 fi
11845 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11846 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11847 if test $ac_cv_lib_dld_shl_load = yes; then
11848 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11849 else
11850 echo "$as_me:$LINENO: checking for dlopen" >&5
11851 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11852 if test "${ac_cv_func_dlopen+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855 cat >conftest.$ac_ext <<_ACEOF
11856 #line $LINENO "configure"
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 /* System header to define __stub macros and hopefully few prototypes,
11863 which can conflict with char dlopen (); below.
11864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 <limits.h> exists even on freestanding compilers. */
11866 #ifdef __STDC__
11867 # include <limits.h>
11868 #else
11869 # include <assert.h>
11870 #endif
11871 /* Override any gcc2 internal prototype to avoid an error. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 {
11875 #endif
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11878 char dlopen ();
11879 /* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11883 choke me
11884 #else
11885 char (*f) () = dlopen;
11886 #endif
11887 #ifdef __cplusplus
11888 }
11889 #endif
11890
11891 int
11892 main ()
11893 {
11894 return f != dlopen;
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901 (eval $ac_link) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 ac_cv_func_dlopen=yes
11912 else
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ac_cv_func_dlopen=no
11917 fi
11918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11919 fi
11920 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11921 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11922 if test $ac_cv_func_dlopen = yes; then
11923 lt_cv_dlopen="dlopen"
11924 else
11925 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11926 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11927 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 else
11930 ac_check_lib_save_LIBS=$LIBS
11931 LIBS="-ldl $LIBS"
11932 cat >conftest.$ac_ext <<_ACEOF
11933 #line $LINENO "configure"
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939
11940 /* Override any gcc2 internal prototype to avoid an error. */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 /* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11946 char dlopen ();
11947 int
11948 main ()
11949 {
11950 dlopen ();
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -s conftest$ac_exeext'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11967 ac_cv_lib_dl_dlopen=yes
11968 else
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972 ac_cv_lib_dl_dlopen=no
11973 fi
11974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11975 LIBS=$ac_check_lib_save_LIBS
11976 fi
11977 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11979 if test $ac_cv_lib_dl_dlopen = yes; then
11980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11981 else
11982 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11983 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11984 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987 ac_check_lib_save_LIBS=$LIBS
11988 LIBS="-lsvld $LIBS"
11989 cat >conftest.$ac_ext <<_ACEOF
11990 #line $LINENO "configure"
11991 /* confdefs.h. */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996
11997 /* Override any gcc2 internal prototype to avoid an error. */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 /* We use char because int might match the return type of a gcc2
12002 builtin and then its argument prototype would still apply. */
12003 char dlopen ();
12004 int
12005 main ()
12006 {
12007 dlopen ();
12008 ;
12009 return 0;
12010 }
12011 _ACEOF
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12014 (eval $ac_link) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -s conftest$ac_exeext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_cv_lib_svld_dlopen=yes
12025 else
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 ac_cv_lib_svld_dlopen=no
12030 fi
12031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12033 fi
12034 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12035 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12036 if test $ac_cv_lib_svld_dlopen = yes; then
12037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12038 else
12039 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12040 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12041 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044 ac_check_lib_save_LIBS=$LIBS
12045 LIBS="-ldld $LIBS"
12046 cat >conftest.$ac_ext <<_ACEOF
12047 #line $LINENO "configure"
12048 /* confdefs.h. */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053
12054 /* Override any gcc2 internal prototype to avoid an error. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12060 char dld_link ();
12061 int
12062 main ()
12063 {
12064 dld_link ();
12065 ;
12066 return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12071 (eval $ac_link) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_lib_dld_dld_link=yes
12082 else
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12085
12086 ac_cv_lib_dld_dld_link=no
12087 fi
12088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12090 fi
12091 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12092 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12093 if test $ac_cv_lib_dld_dld_link = yes; then
12094 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12095 fi
12096
12097
12098 fi
12099
12100
12101 fi
12102
12103
12104 fi
12105
12106
12107 fi
12108
12109
12110 fi
12111
12112 ;;
12113 esac
12114
12115 if test "x$lt_cv_dlopen" != xno; then
12116 enable_dlopen=yes
12117 else
12118 enable_dlopen=no
12119 fi
12120
12121 case $lt_cv_dlopen in
12122 dlopen)
12123 save_CPPFLAGS="$CPPFLAGS"
12124 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12125
12126 save_LDFLAGS="$LDFLAGS"
12127 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12128
12129 save_LIBS="$LIBS"
12130 LIBS="$lt_cv_dlopen_libs $LIBS"
12131
12132 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12133 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12134 if test "${lt_cv_dlopen_self+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137 if test "$cross_compiling" = yes; then :
12138 lt_cv_dlopen_self=cross
12139 else
12140 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12141 lt_status=$lt_dlunknown
12142 cat > conftest.$ac_ext <<EOF
12143 #line 12143 "configure"
12144 #include "confdefs.h"
12145
12146 #if HAVE_DLFCN_H
12147 #include <dlfcn.h>
12148 #endif
12149
12150 #include <stdio.h>
12151
12152 #ifdef RTLD_GLOBAL
12153 # define LT_DLGLOBAL RTLD_GLOBAL
12154 #else
12155 # ifdef DL_GLOBAL
12156 # define LT_DLGLOBAL DL_GLOBAL
12157 # else
12158 # define LT_DLGLOBAL 0
12159 # endif
12160 #endif
12161
12162 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12163 find out it does not work in some platform. */
12164 #ifndef LT_DLLAZY_OR_NOW
12165 # ifdef RTLD_LAZY
12166 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12167 # else
12168 # ifdef DL_LAZY
12169 # define LT_DLLAZY_OR_NOW DL_LAZY
12170 # else
12171 # ifdef RTLD_NOW
12172 # define LT_DLLAZY_OR_NOW RTLD_NOW
12173 # else
12174 # ifdef DL_NOW
12175 # define LT_DLLAZY_OR_NOW DL_NOW
12176 # else
12177 # define LT_DLLAZY_OR_NOW 0
12178 # endif
12179 # endif
12180 # endif
12181 # endif
12182 #endif
12183
12184 #ifdef __cplusplus
12185 extern "C" void exit (int);
12186 #endif
12187
12188 void fnord() { int i=42;}
12189 int main ()
12190 {
12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192 int status = $lt_dlunknown;
12193
12194 if (self)
12195 {
12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12197 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12198 /* dlclose (self); */
12199 }
12200
12201 exit (status);
12202 }
12203 EOF
12204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12205 (eval $ac_link) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12209 (./conftest; exit; ) 2>/dev/null
12210 lt_status=$?
12211 case x$lt_status in
12212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12214 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12215 esac
12216 else :
12217 # compilation failed
12218 lt_cv_dlopen_self=no
12219 fi
12220 fi
12221 rm -fr conftest*
12222
12223
12224 fi
12225 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12226 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12227
12228 if test "x$lt_cv_dlopen_self" = xyes; then
12229 LDFLAGS="$LDFLAGS $link_static_flag"
12230 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12231 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12232 if test "${lt_cv_dlopen_self_static+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235 if test "$cross_compiling" = yes; then :
12236 lt_cv_dlopen_self_static=cross
12237 else
12238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12239 lt_status=$lt_dlunknown
12240 cat > conftest.$ac_ext <<EOF
12241 #line 12241 "configure"
12242 #include "confdefs.h"
12243
12244 #if HAVE_DLFCN_H
12245 #include <dlfcn.h>
12246 #endif
12247
12248 #include <stdio.h>
12249
12250 #ifdef RTLD_GLOBAL
12251 # define LT_DLGLOBAL RTLD_GLOBAL
12252 #else
12253 # ifdef DL_GLOBAL
12254 # define LT_DLGLOBAL DL_GLOBAL
12255 # else
12256 # define LT_DLGLOBAL 0
12257 # endif
12258 #endif
12259
12260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12261 find out it does not work in some platform. */
12262 #ifndef LT_DLLAZY_OR_NOW
12263 # ifdef RTLD_LAZY
12264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12265 # else
12266 # ifdef DL_LAZY
12267 # define LT_DLLAZY_OR_NOW DL_LAZY
12268 # else
12269 # ifdef RTLD_NOW
12270 # define LT_DLLAZY_OR_NOW RTLD_NOW
12271 # else
12272 # ifdef DL_NOW
12273 # define LT_DLLAZY_OR_NOW DL_NOW
12274 # else
12275 # define LT_DLLAZY_OR_NOW 0
12276 # endif
12277 # endif
12278 # endif
12279 # endif
12280 #endif
12281
12282 #ifdef __cplusplus
12283 extern "C" void exit (int);
12284 #endif
12285
12286 void fnord() { int i=42;}
12287 int main ()
12288 {
12289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12290 int status = $lt_dlunknown;
12291
12292 if (self)
12293 {
12294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12296 /* dlclose (self); */
12297 }
12298
12299 exit (status);
12300 }
12301 EOF
12302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12307 (./conftest; exit; ) 2>/dev/null
12308 lt_status=$?
12309 case x$lt_status in
12310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12312 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12313 esac
12314 else :
12315 # compilation failed
12316 lt_cv_dlopen_self_static=no
12317 fi
12318 fi
12319 rm -fr conftest*
12320
12321
12322 fi
12323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12324 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12325 fi
12326
12327 CPPFLAGS="$save_CPPFLAGS"
12328 LDFLAGS="$save_LDFLAGS"
12329 LIBS="$save_LIBS"
12330 ;;
12331 esac
12332
12333 case $lt_cv_dlopen_self in
12334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12335 *) enable_dlopen_self=unknown ;;
12336 esac
12337
12338 case $lt_cv_dlopen_self_static in
12339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12340 *) enable_dlopen_self_static=unknown ;;
12341 esac
12342 fi
12343
12344
12345 # The else clause should only fire when bootstrapping the
12346 # libtool distribution, otherwise you forgot to ship ltmain.sh
12347 # with your package, and you will get complaints that there are
12348 # no rules to generate ltmain.sh.
12349 if test -f "$ltmain"; then
12350 # See if we are running on zsh, and set the options which allow our commands through
12351 # without removal of \ escapes.
12352 if test -n "${ZSH_VERSION+set}" ; then
12353 setopt NO_GLOB_SUBST
12354 fi
12355 # Now quote all the things that may contain metacharacters while being
12356 # careful not to overquote the AC_SUBSTed values. We take copies of the
12357 # variables and quote the copies for generation of the libtool script.
12358 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12359 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12360 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12361 deplibs_check_method reload_flag reload_cmds need_locks \
12362 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12363 lt_cv_sys_global_symbol_to_c_name_address \
12364 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12365 old_postinstall_cmds old_postuninstall_cmds \
12366 compiler_CXX \
12367 CC_CXX \
12368 LD_CXX \
12369 lt_prog_compiler_wl_CXX \
12370 lt_prog_compiler_pic_CXX \
12371 lt_prog_compiler_static_CXX \
12372 lt_prog_compiler_no_builtin_flag_CXX \
12373 export_dynamic_flag_spec_CXX \
12374 thread_safe_flag_spec_CXX \
12375 whole_archive_flag_spec_CXX \
12376 enable_shared_with_static_runtimes_CXX \
12377 old_archive_cmds_CXX \
12378 old_archive_from_new_cmds_CXX \
12379 predep_objects_CXX \
12380 postdep_objects_CXX \
12381 predeps_CXX \
12382 postdeps_CXX \
12383 compiler_lib_search_path_CXX \
12384 archive_cmds_CXX \
12385 archive_expsym_cmds_CXX \
12386 postinstall_cmds_CXX \
12387 postuninstall_cmds_CXX \
12388 old_archive_from_expsyms_cmds_CXX \
12389 allow_undefined_flag_CXX \
12390 no_undefined_flag_CXX \
12391 export_symbols_cmds_CXX \
12392 hardcode_libdir_flag_spec_CXX \
12393 hardcode_libdir_flag_spec_ld_CXX \
12394 hardcode_libdir_separator_CXX \
12395 hardcode_automatic_CXX \
12396 module_cmds_CXX \
12397 module_expsym_cmds_CXX \
12398 lt_cv_prog_compiler_c_o_CXX \
12399 exclude_expsyms_CXX \
12400 include_expsyms_CXX; do
12401
12402 case $var in
12403 old_archive_cmds_CXX | \
12404 old_archive_from_new_cmds_CXX | \
12405 archive_cmds_CXX | \
12406 archive_expsym_cmds_CXX | \
12407 module_cmds_CXX | \
12408 module_expsym_cmds_CXX | \
12409 old_archive_from_expsyms_cmds_CXX | \
12410 export_symbols_cmds_CXX | \
12411 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12412 postinstall_cmds | postuninstall_cmds | \
12413 old_postinstall_cmds | old_postuninstall_cmds | \
12414 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12415 # Double-quote double-evaled strings.
12416 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12417 ;;
12418 *)
12419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12420 ;;
12421 esac
12422 done
12423
12424 case $lt_echo in
12425 *'\$0 --fallback-echo"')
12426 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12427 ;;
12428 esac
12429
12430 cfgfile="$ofile"
12431
12432 cat <<__EOF__ >> "$cfgfile"
12433 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12434
12435 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12436
12437 # Shell to use when invoking shell scripts.
12438 SHELL=$lt_SHELL
12439
12440 # Whether or not to build shared libraries.
12441 build_libtool_libs=$enable_shared
12442
12443 # Whether or not to build static libraries.
12444 build_old_libs=$enable_static
12445
12446 # Whether or not to add -lc for building shared libraries.
12447 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12448
12449 # Whether or not to disallow shared libs when runtime libs are static
12450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12451
12452 # Whether or not to optimize for fast installation.
12453 fast_install=$enable_fast_install
12454
12455 # The host system.
12456 host_alias=$host_alias
12457 host=$host
12458
12459 # An echo program that does not interpret backslashes.
12460 echo=$lt_echo
12461
12462 # The archiver.
12463 AR=$lt_AR
12464 AR_FLAGS=$lt_AR_FLAGS
12465
12466 # A C compiler.
12467 LTCC=$lt_LTCC
12468
12469 # A language-specific compiler.
12470 CC=$lt_compiler_CXX
12471
12472 # Is the compiler the GNU C compiler?
12473 with_gcc=$GCC_CXX
12474
12475 # An ERE matcher.
12476 EGREP=$lt_EGREP
12477
12478 # The linker used to build libraries.
12479 LD=$lt_LD_CXX
12480
12481 # Whether we need hard or soft links.
12482 LN_S=$lt_LN_S
12483
12484 # A BSD-compatible nm program.
12485 NM=$lt_NM
12486
12487 # A symbol stripping program
12488 STRIP="$STRIP"
12489
12490 # Used to examine libraries when file_magic_cmd begins "file"
12491 MAGIC_CMD=$MAGIC_CMD
12492
12493 # Used on cygwin: DLL creation program.
12494 DLLTOOL="$DLLTOOL"
12495
12496 # Used on cygwin: object dumper.
12497 OBJDUMP="$OBJDUMP"
12498
12499 # Used on cygwin: assembler.
12500 AS="$AS"
12501
12502 # The name of the directory that contains temporary libtool files.
12503 objdir=$objdir
12504
12505 # How to create reloadable object files.
12506 reload_flag=$lt_reload_flag
12507 reload_cmds=$lt_reload_cmds
12508
12509 # How to pass a linker flag through the compiler.
12510 wl=$lt_lt_prog_compiler_wl_CXX
12511
12512 # Object file suffix (normally "o").
12513 objext="$ac_objext"
12514
12515 # Old archive suffix (normally "a").
12516 libext="$libext"
12517
12518 # Shared library suffix (normally ".so").
12519 shrext='$shrext'
12520
12521 # Executable file suffix (normally "").
12522 exeext="$exeext"
12523
12524 # Additional compiler flags for building library objects.
12525 pic_flag=$lt_lt_prog_compiler_pic_CXX
12526 pic_mode=$pic_mode
12527
12528 # What is the maximum length of a command?
12529 max_cmd_len=$lt_cv_sys_max_cmd_len
12530
12531 # Does compiler simultaneously support -c and -o options?
12532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12533
12534 # Must we lock files when doing compilation ?
12535 need_locks=$lt_need_locks
12536
12537 # Do we need the lib prefix for modules?
12538 need_lib_prefix=$need_lib_prefix
12539
12540 # Do we need a version for libraries?
12541 need_version=$need_version
12542
12543 # Whether dlopen is supported.
12544 dlopen_support=$enable_dlopen
12545
12546 # Whether dlopen of programs is supported.
12547 dlopen_self=$enable_dlopen_self
12548
12549 # Whether dlopen of statically linked programs is supported.
12550 dlopen_self_static=$enable_dlopen_self_static
12551
12552 # Compiler flag to prevent dynamic linking.
12553 link_static_flag=$lt_lt_prog_compiler_static_CXX
12554
12555 # Compiler flag to turn off builtin functions.
12556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12557
12558 # Compiler flag to allow reflexive dlopens.
12559 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12560
12561 # Compiler flag to generate shared objects directly from archives.
12562 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12563
12564 # Compiler flag to generate thread-safe objects.
12565 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12566
12567 # Library versioning type.
12568 version_type=$version_type
12569
12570 # Format of library name prefix.
12571 libname_spec=$lt_libname_spec
12572
12573 # List of archive names. First name is the real one, the rest are links.
12574 # The last name is the one that the linker finds with -lNAME.
12575 library_names_spec=$lt_library_names_spec
12576
12577 # The coded name of the library, if different from the real name.
12578 soname_spec=$lt_soname_spec
12579
12580 # Commands used to build and install an old-style archive.
12581 RANLIB=$lt_RANLIB
12582 old_archive_cmds=$lt_old_archive_cmds_CXX
12583 old_postinstall_cmds=$lt_old_postinstall_cmds
12584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12585
12586 # Create an old-style archive from a shared archive.
12587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12588
12589 # Create a temporary old-style archive to link instead of a shared archive.
12590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12591
12592 # Commands used to build and install a shared archive.
12593 archive_cmds=$lt_archive_cmds_CXX
12594 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12595 postinstall_cmds=$lt_postinstall_cmds
12596 postuninstall_cmds=$lt_postuninstall_cmds
12597
12598 # Commands used to build a loadable module (assumed same as above if empty)
12599 module_cmds=$lt_module_cmds_CXX
12600 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12601
12602 # Commands to strip libraries.
12603 old_striplib=$lt_old_striplib
12604 striplib=$lt_striplib
12605
12606 # Dependencies to place before the objects being linked to create a
12607 # shared library.
12608 predep_objects=$lt_predep_objects_CXX
12609
12610 # Dependencies to place after the objects being linked to create a
12611 # shared library.
12612 postdep_objects=$lt_postdep_objects_CXX
12613
12614 # Dependencies to place before the objects being linked to create a
12615 # shared library.
12616 predeps=$lt_predeps_CXX
12617
12618 # Dependencies to place after the objects being linked to create a
12619 # shared library.
12620 postdeps=$lt_postdeps_CXX
12621
12622 # The library search path used internally by the compiler when linking
12623 # a shared library.
12624 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12625
12626 # Method to check whether dependent libraries are shared objects.
12627 deplibs_check_method=$lt_deplibs_check_method
12628
12629 # Command to use when deplibs_check_method == file_magic.
12630 file_magic_cmd=$lt_file_magic_cmd
12631
12632 # Flag that allows shared libraries with undefined symbols to be built.
12633 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12634
12635 # Flag that forces no undefined symbols.
12636 no_undefined_flag=$lt_no_undefined_flag_CXX
12637
12638 # Commands used to finish a libtool library installation in a directory.
12639 finish_cmds=$lt_finish_cmds
12640
12641 # Same as above, but a single script fragment to be evaled but not shown.
12642 finish_eval=$lt_finish_eval
12643
12644 # Take the output of nm and produce a listing of raw symbols and C names.
12645 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12646
12647 # Transform the output of nm in a proper C declaration
12648 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12649
12650 # Transform the output of nm in a C name address pair
12651 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12652
12653 # This is the shared library runtime path variable.
12654 runpath_var=$runpath_var
12655
12656 # This is the shared library path variable.
12657 shlibpath_var=$shlibpath_var
12658
12659 # Is shlibpath searched before the hard-coded library search path?
12660 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12661
12662 # How to hardcode a shared library path into an executable.
12663 hardcode_action=$hardcode_action_CXX
12664
12665 # Whether we should hardcode library paths into libraries.
12666 hardcode_into_libs=$hardcode_into_libs
12667
12668 # Flag to hardcode \$libdir into a binary during linking.
12669 # This must work even if \$libdir does not exist.
12670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12671
12672 # If ld is used when linking, flag to hardcode \$libdir into
12673 # a binary during linking. This must work even if \$libdir does
12674 # not exist.
12675 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12676
12677 # Whether we need a single -rpath flag with a separated argument.
12678 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12679
12680 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12681 # resulting binary.
12682 hardcode_direct=$hardcode_direct_CXX
12683
12684 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12685 # resulting binary.
12686 hardcode_minus_L=$hardcode_minus_L_CXX
12687
12688 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12689 # the resulting binary.
12690 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12691
12692 # Set to yes if building a shared library automatically hardcodes DIR into the library
12693 # and all subsequent libraries and executables linked against it.
12694 hardcode_automatic=$hardcode_automatic_CXX
12695
12696 # Variables whose values should be saved in libtool wrapper scripts and
12697 # restored at relink time.
12698 variables_saved_for_relink="$variables_saved_for_relink"
12699
12700 # Whether libtool must link a program against all its dependency libraries.
12701 link_all_deplibs=$link_all_deplibs_CXX
12702
12703 # Compile-time system search path for libraries
12704 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12705
12706 # Run-time system search path for libraries
12707 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12708
12709 # Fix the shell variable \$srcfile for the compiler.
12710 fix_srcfile_path="$fix_srcfile_path_CXX"
12711
12712 # Set to yes if exported symbols are required.
12713 always_export_symbols=$always_export_symbols_CXX
12714
12715 # The commands to list exported symbols.
12716 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12717
12718 # The commands to extract the exported symbol list from a shared archive.
12719 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12720
12721 # Symbols that should not be listed in the preloaded symbols.
12722 exclude_expsyms=$lt_exclude_expsyms_CXX
12723
12724 # Symbols that must always be exported.
12725 include_expsyms=$lt_include_expsyms_CXX
12726
12727 # ### END LIBTOOL TAG CONFIG: $tagname
12728
12729 __EOF__
12730
12731
12732 else
12733 # If there is no Makefile yet, we rely on a make rule to execute
12734 # `config.status --recheck' to rerun these tests and create the
12735 # libtool script then.
12736 test -f Makefile && make "$ltmain"
12737 fi
12738
12739
12740 ac_ext=c
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745
12746 CC=$lt_save_CC
12747 LDCXX=$LD
12748 LD=$lt_save_LD
12749 GCC=$lt_save_GCC
12750 with_gnu_ldcxx=$with_gnu_ld
12751 with_gnu_ld=$lt_save_with_gnu_ld
12752 lt_cv_path_LDCXX=$lt_cv_path_LD
12753 lt_cv_path_LD=$lt_save_path_LD
12754 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12755 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12756
12757 else
12758 tagname=""
12759 fi
12760 ;;
12761
12762 F77)
12763 if test -n "$F77" && test "X$F77" != "Xno"; then
12764
12765 ac_ext=f
12766 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12767 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12769
12770
12771 archive_cmds_need_lc_F77=no
12772 allow_undefined_flag_F77=
12773 always_export_symbols_F77=no
12774 archive_expsym_cmds_F77=
12775 export_dynamic_flag_spec_F77=
12776 hardcode_direct_F77=no
12777 hardcode_libdir_flag_spec_F77=
12778 hardcode_libdir_flag_spec_ld_F77=
12779 hardcode_libdir_separator_F77=
12780 hardcode_minus_L_F77=no
12781 hardcode_automatic_F77=no
12782 module_cmds_F77=
12783 module_expsym_cmds_F77=
12784 link_all_deplibs_F77=unknown
12785 old_archive_cmds_F77=$old_archive_cmds
12786 no_undefined_flag_F77=
12787 whole_archive_flag_spec_F77=
12788 enable_shared_with_static_runtimes_F77=no
12789
12790 # Source file extension for f77 test sources.
12791 ac_ext=f
12792
12793 # Object file extension for compiled f77 test sources.
12794 objext=o
12795 objext_F77=$objext
12796
12797 # Code to be used in simple compile tests
12798 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12799
12800 # Code to be used in simple link tests
12801 lt_simple_link_test_code=" program t\n end\n"
12802
12803 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12804
12805 # If no C compiler was specified, use CC.
12806 LTCC=${LTCC-"$CC"}
12807
12808 # Allow CC to be a program name with arguments.
12809 compiler=$CC
12810
12811
12812 # Allow CC to be a program name with arguments.
12813 lt_save_CC="$CC"
12814 CC=${F77-"f77"}
12815 compiler=$CC
12816 compiler_F77=$CC
12817 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12818
12819 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12820 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12821 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12822 echo "${ECHO_T}$can_build_shared" >&6
12823
12824 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12825 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12826 test "$can_build_shared" = "no" && enable_shared=no
12827
12828 # On AIX, shared libraries and static libraries use the same namespace, and
12829 # are all built from PIC.
12830 case "$host_os" in
12831 aix3*)
12832 test "$enable_shared" = yes && enable_static=no
12833 if test -n "$RANLIB"; then
12834 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12835 postinstall_cmds='$RANLIB $lib'
12836 fi
12837 ;;
12838 aix4*)
12839 test "$enable_shared" = yes && enable_static=no
12840 ;;
12841 esac
12842 echo "$as_me:$LINENO: result: $enable_shared" >&5
12843 echo "${ECHO_T}$enable_shared" >&6
12844
12845 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12846 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12847 # Make sure either enable_shared or enable_static is yes.
12848 test "$enable_shared" = yes || enable_static=yes
12849 echo "$as_me:$LINENO: result: $enable_static" >&5
12850 echo "${ECHO_T}$enable_static" >&6
12851
12852 test "$ld_shlibs_F77" = no && can_build_shared=no
12853
12854 GCC_F77="$G77"
12855 LD_F77="$LD"
12856
12857 lt_prog_compiler_wl_F77=
12858 lt_prog_compiler_pic_F77=
12859 lt_prog_compiler_static_F77=
12860
12861 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12862 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12863
12864 if test "$GCC" = yes; then
12865 lt_prog_compiler_wl_F77='-Wl,'
12866 lt_prog_compiler_static_F77='-static'
12867
12868 case $host_os in
12869 aix*)
12870 # All AIX code is PIC.
12871 if test "$host_cpu" = ia64; then
12872 # AIX 5 now supports IA64 processor
12873 lt_prog_compiler_static_F77='-Bstatic'
12874 fi
12875 ;;
12876
12877 amigaos*)
12878 # FIXME: we need at least 68020 code to build shared libraries, but
12879 # adding the `-m68020' flag to GCC prevents building anything better,
12880 # like `-m68040'.
12881 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12882 ;;
12883
12884 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12885 # PIC is the default for these OSes.
12886 ;;
12887
12888 mingw* | pw32* | os2*)
12889 # This hack is so that the source file can tell whether it is being
12890 # built for inclusion in a dll (and should export symbols for example).
12891 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12892 ;;
12893
12894 darwin* | rhapsody*)
12895 # PIC is the default on this platform
12896 # Common symbols not allowed in MH_DYLIB files
12897 lt_prog_compiler_pic_F77='-fno-common'
12898 ;;
12899
12900 msdosdjgpp*)
12901 # Just because we use GCC doesn't mean we suddenly get shared libraries
12902 # on systems that don't support them.
12903 lt_prog_compiler_can_build_shared_F77=no
12904 enable_shared=no
12905 ;;
12906
12907 sysv4*MP*)
12908 if test -d /usr/nec; then
12909 lt_prog_compiler_pic_F77=-Kconform_pic
12910 fi
12911 ;;
12912
12913 hpux*)
12914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12915 # not for PA HP-UX.
12916 case "$host_cpu" in
12917 hppa*64*|ia64*)
12918 # +Z the default
12919 ;;
12920 *)
12921 lt_prog_compiler_pic_F77='-fPIC'
12922 ;;
12923 esac
12924 ;;
12925
12926 *)
12927 lt_prog_compiler_pic_F77='-fPIC'
12928 ;;
12929 esac
12930 else
12931 # PORTME Check for flag to pass linker flags through the system compiler.
12932 case $host_os in
12933 aix*)
12934 lt_prog_compiler_wl_F77='-Wl,'
12935 if test "$host_cpu" = ia64; then
12936 # AIX 5 now supports IA64 processor
12937 lt_prog_compiler_static_F77='-Bstatic'
12938 else
12939 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12940 fi
12941 ;;
12942
12943 mingw* | pw32* | os2*)
12944 # This hack is so that the source file can tell whether it is being
12945 # built for inclusion in a dll (and should export symbols for example).
12946 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12947 ;;
12948
12949 hpux9* | hpux10* | hpux11*)
12950 lt_prog_compiler_wl_F77='-Wl,'
12951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12952 # not for PA HP-UX.
12953 case "$host_cpu" in
12954 hppa*64*|ia64*)
12955 # +Z the default
12956 ;;
12957 *)
12958 lt_prog_compiler_pic_F77='+Z'
12959 ;;
12960 esac
12961 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12962 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12963 ;;
12964
12965 irix5* | irix6* | nonstopux*)
12966 lt_prog_compiler_wl_F77='-Wl,'
12967 # PIC (with -KPIC) is the default.
12968 lt_prog_compiler_static_F77='-non_shared'
12969 ;;
12970
12971 newsos6)
12972 lt_prog_compiler_pic_F77='-KPIC'
12973 lt_prog_compiler_static_F77='-Bstatic'
12974 ;;
12975
12976 linux*)
12977 case $CC in
12978 icc* | ecc*)
12979 lt_prog_compiler_wl_F77='-Wl,'
12980 lt_prog_compiler_pic_F77='-KPIC'
12981 lt_prog_compiler_static_F77='-static'
12982 ;;
12983 ccc*)
12984 lt_prog_compiler_wl_F77='-Wl,'
12985 # All Alpha code is PIC.
12986 lt_prog_compiler_static_F77='-non_shared'
12987 ;;
12988 esac
12989 ;;
12990
12991 osf3* | osf4* | osf5*)
12992 lt_prog_compiler_wl_F77='-Wl,'
12993 # All OSF/1 code is PIC.
12994 lt_prog_compiler_static_F77='-non_shared'
12995 ;;
12996
12997 sco3.2v5*)
12998 lt_prog_compiler_pic_F77='-Kpic'
12999 lt_prog_compiler_static_F77='-dn'
13000 ;;
13001
13002 solaris*)
13003 lt_prog_compiler_wl_F77='-Wl,'
13004 lt_prog_compiler_pic_F77='-KPIC'
13005 lt_prog_compiler_static_F77='-Bstatic'
13006 ;;
13007
13008 sunos4*)
13009 lt_prog_compiler_wl_F77='-Qoption ld '
13010 lt_prog_compiler_pic_F77='-PIC'
13011 lt_prog_compiler_static_F77='-Bstatic'
13012 ;;
13013
13014 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13015 lt_prog_compiler_wl_F77='-Wl,'
13016 lt_prog_compiler_pic_F77='-KPIC'
13017 lt_prog_compiler_static_F77='-Bstatic'
13018 ;;
13019
13020 sysv4*MP*)
13021 if test -d /usr/nec ;then
13022 lt_prog_compiler_pic_F77='-Kconform_pic'
13023 lt_prog_compiler_static_F77='-Bstatic'
13024 fi
13025 ;;
13026
13027 uts4*)
13028 lt_prog_compiler_pic_F77='-pic'
13029 lt_prog_compiler_static_F77='-Bstatic'
13030 ;;
13031
13032 *)
13033 lt_prog_compiler_can_build_shared_F77=no
13034 ;;
13035 esac
13036 fi
13037
13038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13039 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13040
13041 #
13042 # Check to make sure the PIC flag actually works.
13043 #
13044 if test -n "$lt_prog_compiler_pic_F77"; then
13045
13046 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13048 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 else
13051 lt_prog_compiler_pic_works_F77=no
13052 ac_outfile=conftest.$ac_objext
13053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13054 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13055 # Insert the option either (1) after the last *FLAGS variable, or
13056 # (2) before a word containing "conftest.", or (3) at the end.
13057 # Note that $ac_compile itself does not contain backslashes and begins
13058 # with a dollar sign (not a hyphen), so the echo should work correctly.
13059 # The option is referenced via a variable to avoid confusing sed.
13060 lt_compile=`echo "$ac_compile" | $SED \
13061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13063 -e 's:$: $lt_compiler_flag:'`
13064 (eval echo "\"\$as_me:13064: $lt_compile\"" >&5)
13065 (eval "$lt_compile" 2>conftest.err)
13066 ac_status=$?
13067 cat conftest.err >&5
13068 echo "$as_me:13068: \$? = $ac_status" >&5
13069 if (exit $ac_status) && test -s "$ac_outfile"; then
13070 # The compiler can only warn and ignore the option if not recognized
13071 # So say no if there are warnings
13072 if test ! -s conftest.err; then
13073 lt_prog_compiler_pic_works_F77=yes
13074 fi
13075 fi
13076 $rm conftest*
13077
13078 fi
13079 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13080 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13081
13082 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13083 case $lt_prog_compiler_pic_F77 in
13084 "" | " "*) ;;
13085 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13086 esac
13087 else
13088 lt_prog_compiler_pic_F77=
13089 lt_prog_compiler_can_build_shared_F77=no
13090 fi
13091
13092 fi
13093 case "$host_os" in
13094 # For platforms which do not support PIC, -DPIC is meaningless:
13095 *djgpp*)
13096 lt_prog_compiler_pic_F77=
13097 ;;
13098 *)
13099 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13100 ;;
13101 esac
13102
13103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13105 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108 lt_cv_prog_compiler_c_o_F77=no
13109 $rm -r conftest 2>/dev/null
13110 mkdir conftest
13111 cd conftest
13112 mkdir out
13113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13114
13115 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13116 # that will create temporary files in the current directory regardless of
13117 # the output directory. Thus, making CWD read-only will cause this test
13118 # to fail, enabling locking or at least warning the user not to do parallel
13119 # builds.
13120 chmod -w .
13121
13122 lt_compiler_flag="-o out/conftest2.$ac_objext"
13123 # Insert the option either (1) after the last *FLAGS variable, or
13124 # (2) before a word containing "conftest.", or (3) at the end.
13125 # Note that $ac_compile itself does not contain backslashes and begins
13126 # with a dollar sign (not a hyphen), so the echo should work correctly.
13127 lt_compile=`echo "$ac_compile" | $SED \
13128 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13130 -e 's:$: $lt_compiler_flag:'`
13131 (eval echo "\"\$as_me:13131: $lt_compile\"" >&5)
13132 (eval "$lt_compile" 2>out/conftest.err)
13133 ac_status=$?
13134 cat out/conftest.err >&5
13135 echo "$as_me:13135: \$? = $ac_status" >&5
13136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13137 then
13138 # The compiler can only warn and ignore the option if not recognized
13139 # So say no if there are warnings
13140 if test ! -s out/conftest.err; then
13141 lt_cv_prog_compiler_c_o_F77=yes
13142 fi
13143 fi
13144 chmod u+w .
13145 $rm conftest*
13146 # SGI C++ compiler will create directory out/ii_files/ for
13147 # template instantiation
13148 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13149 $rm out/* && rmdir out
13150 cd ..
13151 rmdir conftest
13152 $rm conftest*
13153
13154 fi
13155 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13157
13158
13159 hard_links="nottested"
13160 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13161 # do not overwrite the value of need_locks provided by the user
13162 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13163 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13164 hard_links=yes
13165 $rm conftest*
13166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13167 touch conftest.a
13168 ln conftest.a conftest.b 2>&5 || hard_links=no
13169 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13170 echo "$as_me:$LINENO: result: $hard_links" >&5
13171 echo "${ECHO_T}$hard_links" >&6
13172 if test "$hard_links" = no; then
13173 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13174 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13175 need_locks=warn
13176 fi
13177 else
13178 need_locks=no
13179 fi
13180
13181 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13182 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13183
13184 runpath_var=
13185 allow_undefined_flag_F77=
13186 enable_shared_with_static_runtimes_F77=no
13187 archive_cmds_F77=
13188 archive_expsym_cmds_F77=
13189 old_archive_From_new_cmds_F77=
13190 old_archive_from_expsyms_cmds_F77=
13191 export_dynamic_flag_spec_F77=
13192 whole_archive_flag_spec_F77=
13193 thread_safe_flag_spec_F77=
13194 hardcode_libdir_flag_spec_F77=
13195 hardcode_libdir_flag_spec_ld_F77=
13196 hardcode_libdir_separator_F77=
13197 hardcode_direct_F77=no
13198 hardcode_minus_L_F77=no
13199 hardcode_shlibpath_var_F77=unsupported
13200 link_all_deplibs_F77=unknown
13201 hardcode_automatic_F77=no
13202 module_cmds_F77=
13203 module_expsym_cmds_F77=
13204 always_export_symbols_F77=no
13205 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13206 # include_expsyms should be a list of space-separated symbols to be *always*
13207 # included in the symbol list
13208 include_expsyms_F77=
13209 # exclude_expsyms can be an extended regexp of symbols to exclude
13210 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13211 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13212 # as well as any symbol that contains `d'.
13213 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13214 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13215 # platforms (ab)use it in PIC code, but their linkers get confused if
13216 # the symbol is explicitly referenced. Since portable code cannot
13217 # rely on this symbol name, it's probably fine to never include it in
13218 # preloaded symbol tables.
13219 extract_expsyms_cmds=
13220
13221 case $host_os in
13222 cygwin* | mingw* | pw32*)
13223 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13224 # When not using gcc, we currently assume that we are using
13225 # Microsoft Visual C++.
13226 if test "$GCC" != yes; then
13227 with_gnu_ld=no
13228 fi
13229 ;;
13230 openbsd*)
13231 with_gnu_ld=no
13232 ;;
13233 esac
13234
13235 ld_shlibs_F77=yes
13236 if test "$with_gnu_ld" = yes; then
13237 # If archive_cmds runs LD, not CC, wlarc should be empty
13238 wlarc='${wl}'
13239
13240 # See if GNU ld supports shared libraries.
13241 case $host_os in
13242 aix3* | aix4* | aix5*)
13243 # On AIX/PPC, the GNU linker is very broken
13244 if test "$host_cpu" != ia64; then
13245 ld_shlibs_F77=no
13246 cat <<EOF 1>&2
13247
13248 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13249 *** to be unable to reliably create shared libraries on AIX.
13250 *** Therefore, libtool is disabling shared libraries support. If you
13251 *** really care for shared libraries, you may want to modify your PATH
13252 *** so that a non-GNU linker is found, and then restart.
13253
13254 EOF
13255 fi
13256 ;;
13257
13258 amigaos*)
13259 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13260 hardcode_libdir_flag_spec_F77='-L$libdir'
13261 hardcode_minus_L_F77=yes
13262
13263 # Samuel A. Falvo II <[email protected]> reports
13264 # that the semantics of dynamic libraries on AmigaOS, at least up
13265 # to version 4, is to share data among multiple programs linked
13266 # with the same dynamic library. Since this doesn't match the
13267 # behavior of shared libraries on other platforms, we can't use
13268 # them.
13269 ld_shlibs_F77=no
13270 ;;
13271
13272 beos*)
13273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13274 allow_undefined_flag_F77=unsupported
13275 # Joseph Beckenbach <[email protected]> says some releases of gcc
13276 # support --undefined. This deserves some investigation. FIXME
13277 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278 else
13279 ld_shlibs_F77=no
13280 fi
13281 ;;
13282
13283 cygwin* | mingw* | pw32*)
13284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13285 # as there is no search path for DLLs.
13286 hardcode_libdir_flag_spec_F77='-L$libdir'
13287 allow_undefined_flag_F77=unsupported
13288 always_export_symbols_F77=no
13289 enable_shared_with_static_runtimes_F77=yes
13290 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13291
13292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13293 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13294 # If the export-symbols file already is a .def file (1st line
13295 # is EXPORTS), use it as is; otherwise, prepend...
13296 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13297 cp $export_symbols $output_objdir/$soname.def;
13298 else
13299 echo EXPORTS > $output_objdir/$soname.def;
13300 cat $export_symbols >> $output_objdir/$soname.def;
13301 fi~
13302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13303 else
13304 ld_shlibs=no
13305 fi
13306 ;;
13307
13308 netbsd*)
13309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13310 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13311 wlarc=
13312 else
13313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13315 fi
13316 ;;
13317
13318 solaris* | sysv5*)
13319 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13320 ld_shlibs_F77=no
13321 cat <<EOF 1>&2
13322
13323 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13324 *** create shared libraries on Solaris systems. Therefore, libtool
13325 *** is disabling shared libraries support. We urge you to upgrade GNU
13326 *** binutils to release 2.9.1 or newer. Another option is to modify
13327 *** your PATH or compiler configuration so that the native linker is
13328 *** used, and then restart.
13329
13330 EOF
13331 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13332 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13334 else
13335 ld_shlibs_F77=no
13336 fi
13337 ;;
13338
13339 sunos4*)
13340 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13341 wlarc=
13342 hardcode_direct_F77=yes
13343 hardcode_shlibpath_var_F77=no
13344 ;;
13345
13346 linux*)
13347 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13348 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13349 archive_cmds_F77="$tmp_archive_cmds"
13350 supports_anon_versioning=no
13351 case `$LD -v 2>/dev/null` in
13352 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13355 *\ 2.11.*) ;; # other 2.11 versions
13356 *) supports_anon_versioning=yes ;;
13357 esac
13358 if test $supports_anon_versioning = yes; then
13359 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13361 $echo "local: *; };" >> $output_objdir/$libname.ver~
13362 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13363 else
13364 archive_expsym_cmds_F77="$tmp_archive_cmds"
13365 fi
13366 else
13367 ld_shlibs_F77=no
13368 fi
13369 ;;
13370
13371 *)
13372 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13373 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13375 else
13376 ld_shlibs_F77=no
13377 fi
13378 ;;
13379 esac
13380
13381 if test "$ld_shlibs_F77" = yes; then
13382 runpath_var=LD_RUN_PATH
13383 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13384 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13385 # ancient GNU ld didn't support --whole-archive et. al.
13386 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13387 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13388 else
13389 whole_archive_flag_spec_F77=
13390 fi
13391 fi
13392 else
13393 # PORTME fill in a description of your system's linker (not GNU ld)
13394 case $host_os in
13395 aix3*)
13396 allow_undefined_flag_F77=unsupported
13397 always_export_symbols_F77=yes
13398 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13399 # Note: this linker hardcodes the directories in LIBPATH if there
13400 # are no directories specified by -L.
13401 hardcode_minus_L_F77=yes
13402 if test "$GCC" = yes && test -z "$link_static_flag"; then
13403 # Neither direct hardcoding nor static linking is supported with a
13404 # broken collect2.
13405 hardcode_direct_F77=unsupported
13406 fi
13407 ;;
13408
13409 aix4* | aix5*)
13410 if test "$host_cpu" = ia64; then
13411 # On IA64, the linker does run time linking by default, so we don't
13412 # have to do anything special.
13413 aix_use_runtimelinking=no
13414 exp_sym_flag='-Bexport'
13415 no_entry_flag=""
13416 else
13417 # If we're using GNU nm, then we don't want the "-C" option.
13418 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13419 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13420 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13421 else
13422 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13423 fi
13424 aix_use_runtimelinking=no
13425
13426 # Test if we are trying to use run time linking or normal
13427 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13428 # need to do runtime linking.
13429 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13430 for ld_flag in $LDFLAGS; do
13431 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13432 aix_use_runtimelinking=yes
13433 break
13434 fi
13435 done
13436 esac
13437
13438 exp_sym_flag='-bexport'
13439 no_entry_flag='-bnoentry'
13440 fi
13441
13442 # When large executables or shared objects are built, AIX ld can
13443 # have problems creating the table of contents. If linking a library
13444 # or program results in "error TOC overflow" add -mminimal-toc to
13445 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13446 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13447
13448 archive_cmds_F77=''
13449 hardcode_direct_F77=yes
13450 hardcode_libdir_separator_F77=':'
13451 link_all_deplibs_F77=yes
13452
13453 if test "$GCC" = yes; then
13454 case $host_os in aix4.012|aix4.012.*)
13455 # We only want to do this on AIX 4.2 and lower, the check
13456 # below for broken collect2 doesn't work under 4.3+
13457 collect2name=`${CC} -print-prog-name=collect2`
13458 if test -f "$collect2name" && \
13459 strings "$collect2name" | grep resolve_lib_name >/dev/null
13460 then
13461 # We have reworked collect2
13462 hardcode_direct_F77=yes
13463 else
13464 # We have old collect2
13465 hardcode_direct_F77=unsupported
13466 # It fails to find uninstalled libraries when the uninstalled
13467 # path is not listed in the libpath. Setting hardcode_minus_L
13468 # to unsupported forces relinking
13469 hardcode_minus_L_F77=yes
13470 hardcode_libdir_flag_spec_F77='-L$libdir'
13471 hardcode_libdir_separator_F77=
13472 fi
13473 esac
13474 shared_flag='-shared'
13475 else
13476 # not using gcc
13477 if test "$host_cpu" = ia64; then
13478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13479 # chokes on -Wl,-G. The following line is correct:
13480 shared_flag='-G'
13481 else
13482 if test "$aix_use_runtimelinking" = yes; then
13483 shared_flag='${wl}-G'
13484 else
13485 shared_flag='${wl}-bM:SRE'
13486 fi
13487 fi
13488 fi
13489
13490 # It seems that -bexpall does not export symbols beginning with
13491 # underscore (_), so it is better to generate a list of symbols to export.
13492 always_export_symbols_F77=yes
13493 if test "$aix_use_runtimelinking" = yes; then
13494 # Warning - without using the other runtime loading flags (-brtl),
13495 # -berok will link without error, but may produce a broken library.
13496 allow_undefined_flag_F77='-berok'
13497 # Determine the default libpath from the value encoded in an empty executable.
13498 cat >conftest.$ac_ext <<_ACEOF
13499 program main
13500
13501 end
13502 _ACEOF
13503 rm -f conftest.$ac_objext conftest$ac_exeext
13504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13505 (eval $ac_link) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
13509 { ac_try='test -s conftest$ac_exeext'
13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; }; then
13515
13516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13517 }'`
13518 # Check for a 64-bit object if we didn't find anything.
13519 if 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; }
13520 }'`; fi
13521 else
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 fi
13526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13528
13529 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13530 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13531 else
13532 if test "$host_cpu" = ia64; then
13533 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13534 allow_undefined_flag_F77="-z nodefs"
13535 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13536 else
13537 # Determine the default libpath from the value encoded in an empty executable.
13538 cat >conftest.$ac_ext <<_ACEOF
13539 program main
13540
13541 end
13542 _ACEOF
13543 rm -f conftest.$ac_objext conftest$ac_exeext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13545 (eval $ac_link) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -s conftest$ac_exeext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555
13556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13557 }'`
13558 # Check for a 64-bit object if we didn't find anything.
13559 if 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; }
13560 }'`; fi
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 fi
13566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13568
13569 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13570 # Warning - without using the other run time loading flags,
13571 # -berok will link without error, but may produce a broken library.
13572 no_undefined_flag_F77=' ${wl}-bernotok'
13573 allow_undefined_flag_F77=' ${wl}-berok'
13574 # -bexpall does not export symbols beginning with underscore (_)
13575 always_export_symbols_F77=yes
13576 # Exported symbols can be pulled into shared objects from archives
13577 whole_archive_flag_spec_F77=' '
13578 archive_cmds_need_lc_F77=yes
13579 # This is similar to how AIX traditionally builds it's shared libraries.
13580 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13581 fi
13582 fi
13583 ;;
13584
13585 amigaos*)
13586 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13587 hardcode_libdir_flag_spec_F77='-L$libdir'
13588 hardcode_minus_L_F77=yes
13589 # see comment about different semantics on the GNU ld section
13590 ld_shlibs_F77=no
13591 ;;
13592
13593 bsdi4*)
13594 export_dynamic_flag_spec_F77=-rdynamic
13595 ;;
13596
13597 cygwin* | mingw* | pw32*)
13598 # When not using gcc, we currently assume that we are using
13599 # Microsoft Visual C++.
13600 # hardcode_libdir_flag_spec is actually meaningless, as there is
13601 # no search path for DLLs.
13602 hardcode_libdir_flag_spec_F77=' '
13603 allow_undefined_flag_F77=unsupported
13604 # Tell ltmain to make .lib files, not .a files.
13605 libext=lib
13606 # Tell ltmain to make .dll files, not .so files.
13607 shrext=".dll"
13608 # FIXME: Setting linknames here is a bad hack.
13609 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13610 # The linker will automatically build a .lib file if we build a DLL.
13611 old_archive_From_new_cmds_F77='true'
13612 # FIXME: Should let the user specify the lib program.
13613 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13614 fix_srcfile_path='`cygpath -w "$srcfile"`'
13615 enable_shared_with_static_runtimes_F77=yes
13616 ;;
13617
13618 darwin* | rhapsody*)
13619 if test "$GXX" = yes ; then
13620 archive_cmds_need_lc_F77=no
13621 case "$host_os" in
13622 rhapsody* | darwin1.[012])
13623 allow_undefined_flag_F77='-undefined suppress'
13624 ;;
13625 *) # Darwin 1.3 on
13626 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13627 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13628 else
13629 case ${MACOSX_DEPLOYMENT_TARGET} in
13630 10.[012])
13631 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13632 ;;
13633 10.*)
13634 allow_undefined_flag_F77='-undefined dynamic_lookup'
13635 ;;
13636 esac
13637 fi
13638 ;;
13639 esac
13640 lt_int_apple_cc_single_mod=no
13641 output_verbose_link_cmd='echo'
13642 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13643 lt_int_apple_cc_single_mod=yes
13644 fi
13645 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13646 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13647 else
13648 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13649 fi
13650 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13652 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13653 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13654 else
13655 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13656 fi
13657 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13658 hardcode_direct_F77=no
13659 hardcode_automatic_F77=yes
13660 hardcode_shlibpath_var_F77=unsupported
13661 whole_archive_flag_spec_F77='-all_load $convenience'
13662 link_all_deplibs_F77=yes
13663 else
13664 ld_shlibs_F77=no
13665 fi
13666 ;;
13667
13668 dgux*)
13669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13670 hardcode_libdir_flag_spec_F77='-L$libdir'
13671 hardcode_shlibpath_var_F77=no
13672 ;;
13673
13674 freebsd1*)
13675 ld_shlibs_F77=no
13676 ;;
13677
13678 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13679 # support. Future versions do this automatically, but an explicit c++rt0.o
13680 # does not break anything, and helps significantly (at the cost of a little
13681 # extra space).
13682 freebsd2.2*)
13683 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13684 hardcode_libdir_flag_spec_F77='-R$libdir'
13685 hardcode_direct_F77=yes
13686 hardcode_shlibpath_var_F77=no
13687 ;;
13688
13689 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13690 freebsd2*)
13691 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13692 hardcode_direct_F77=yes
13693 hardcode_minus_L_F77=yes
13694 hardcode_shlibpath_var_F77=no
13695 ;;
13696
13697 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13698 freebsd* | kfreebsd*-gnu)
13699 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13700 hardcode_libdir_flag_spec_F77='-R$libdir'
13701 hardcode_direct_F77=yes
13702 hardcode_shlibpath_var_F77=no
13703 ;;
13704
13705 hpux9*)
13706 if test "$GCC" = yes; then
13707 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13708 else
13709 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13710 fi
13711 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13712 hardcode_libdir_separator_F77=:
13713 hardcode_direct_F77=yes
13714
13715 # hardcode_minus_L: Not really in the search PATH,
13716 # but as the default location of the library.
13717 hardcode_minus_L_F77=yes
13718 export_dynamic_flag_spec_F77='${wl}-E'
13719 ;;
13720
13721 hpux10* | hpux11*)
13722 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13723 case "$host_cpu" in
13724 hppa*64*|ia64*)
13725 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13726 ;;
13727 *)
13728 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13729 ;;
13730 esac
13731 else
13732 case "$host_cpu" in
13733 hppa*64*|ia64*)
13734 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13735 ;;
13736 *)
13737 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13738 ;;
13739 esac
13740 fi
13741 if test "$with_gnu_ld" = no; then
13742 case "$host_cpu" in
13743 hppa*64*)
13744 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13745 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13746 hardcode_libdir_separator_F77=:
13747 hardcode_direct_F77=no
13748 hardcode_shlibpath_var_F77=no
13749 ;;
13750 ia64*)
13751 hardcode_libdir_flag_spec_F77='-L$libdir'
13752 hardcode_direct_F77=no
13753 hardcode_shlibpath_var_F77=no
13754
13755 # hardcode_minus_L: Not really in the search PATH,
13756 # but as the default location of the library.
13757 hardcode_minus_L_F77=yes
13758 ;;
13759 *)
13760 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13761 hardcode_libdir_separator_F77=:
13762 hardcode_direct_F77=yes
13763 export_dynamic_flag_spec_F77='${wl}-E'
13764
13765 # hardcode_minus_L: Not really in the search PATH,
13766 # but as the default location of the library.
13767 hardcode_minus_L_F77=yes
13768 ;;
13769 esac
13770 fi
13771 ;;
13772
13773 irix5* | irix6* | nonstopux*)
13774 if test "$GCC" = yes; then
13775 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13776 else
13777 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13778 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13779 fi
13780 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13781 hardcode_libdir_separator_F77=:
13782 link_all_deplibs_F77=yes
13783 ;;
13784
13785 netbsd*)
13786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13787 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13788 else
13789 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13790 fi
13791 hardcode_libdir_flag_spec_F77='-R$libdir'
13792 hardcode_direct_F77=yes
13793 hardcode_shlibpath_var_F77=no
13794 ;;
13795
13796 newsos6)
13797 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_direct_F77=yes
13799 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13800 hardcode_libdir_separator_F77=:
13801 hardcode_shlibpath_var_F77=no
13802 ;;
13803
13804 openbsd*)
13805 hardcode_direct_F77=yes
13806 hardcode_shlibpath_var_F77=no
13807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13808 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13809 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13810 export_dynamic_flag_spec_F77='${wl}-E'
13811 else
13812 case $host_os in
13813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13815 hardcode_libdir_flag_spec_F77='-R$libdir'
13816 ;;
13817 *)
13818 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13820 ;;
13821 esac
13822 fi
13823 ;;
13824
13825 os2*)
13826 hardcode_libdir_flag_spec_F77='-L$libdir'
13827 hardcode_minus_L_F77=yes
13828 allow_undefined_flag_F77=unsupported
13829 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13830 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13831 ;;
13832
13833 osf3*)
13834 if test "$GCC" = yes; then
13835 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13836 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13837 else
13838 allow_undefined_flag_F77=' -expect_unresolved \*'
13839 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13840 fi
13841 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13842 hardcode_libdir_separator_F77=:
13843 ;;
13844
13845 osf4* | osf5*) # as osf3* with the addition of -msym flag
13846 if test "$GCC" = yes; then
13847 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13848 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13849 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13850 else
13851 allow_undefined_flag_F77=' -expect_unresolved \*'
13852 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13853 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13854 $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'
13855
13856 # Both c and cxx compiler support -rpath directly
13857 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13858 fi
13859 hardcode_libdir_separator_F77=:
13860 ;;
13861
13862 sco3.2v5*)
13863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864 hardcode_shlibpath_var_F77=no
13865 export_dynamic_flag_spec_F77='${wl}-Bexport'
13866 runpath_var=LD_RUN_PATH
13867 hardcode_runpath_var=yes
13868 ;;
13869
13870 solaris*)
13871 no_undefined_flag_F77=' -z text'
13872 if test "$GCC" = yes; then
13873 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13874 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13875 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13876 else
13877 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13880 fi
13881 hardcode_libdir_flag_spec_F77='-R$libdir'
13882 hardcode_shlibpath_var_F77=no
13883 case $host_os in
13884 solaris2.[0-5] | solaris2.[0-5].*) ;;
13885 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13886 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13887 esac
13888 link_all_deplibs_F77=yes
13889 ;;
13890
13891 sunos4*)
13892 if test "x$host_vendor" = xsequent; then
13893 # Use $CC to link under sequent, because it throws in some extra .o
13894 # files that make .init and .fini sections work.
13895 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13896 else
13897 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13898 fi
13899 hardcode_libdir_flag_spec_F77='-L$libdir'
13900 hardcode_direct_F77=yes
13901 hardcode_minus_L_F77=yes
13902 hardcode_shlibpath_var_F77=no
13903 ;;
13904
13905 sysv4)
13906 case $host_vendor in
13907 sni)
13908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13909 hardcode_direct_F77=yes # is this really true???
13910 ;;
13911 siemens)
13912 ## LD is ld it makes a PLAMLIB
13913 ## CC just makes a GrossModule.
13914 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13915 reload_cmds_F77='$CC -r -o $output$reload_objs'
13916 hardcode_direct_F77=no
13917 ;;
13918 motorola)
13919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13920 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13921 ;;
13922 esac
13923 runpath_var='LD_RUN_PATH'
13924 hardcode_shlibpath_var_F77=no
13925 ;;
13926
13927 sysv4.3*)
13928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13929 hardcode_shlibpath_var_F77=no
13930 export_dynamic_flag_spec_F77='-Bexport'
13931 ;;
13932
13933 sysv4*MP*)
13934 if test -d /usr/nec; then
13935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13936 hardcode_shlibpath_var_F77=no
13937 runpath_var=LD_RUN_PATH
13938 hardcode_runpath_var=yes
13939 ld_shlibs_F77=yes
13940 fi
13941 ;;
13942
13943 sysv4.2uw2*)
13944 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13945 hardcode_direct_F77=yes
13946 hardcode_minus_L_F77=no
13947 hardcode_shlibpath_var_F77=no
13948 hardcode_runpath_var=yes
13949 runpath_var=LD_RUN_PATH
13950 ;;
13951
13952 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13953 no_undefined_flag_F77='${wl}-z ${wl}text'
13954 if test "$GCC" = yes; then
13955 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 else
13957 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13958 fi
13959 runpath_var='LD_RUN_PATH'
13960 hardcode_shlibpath_var_F77=no
13961 ;;
13962
13963 sysv5*)
13964 no_undefined_flag_F77=' -z text'
13965 # $CC -shared without GNU ld will not create a library from C++
13966 # object files and a static libstdc++, better avoid it by now
13967 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13968 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13970 hardcode_libdir_flag_spec_F77=
13971 hardcode_shlibpath_var_F77=no
13972 runpath_var='LD_RUN_PATH'
13973 ;;
13974
13975 uts4*)
13976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13977 hardcode_libdir_flag_spec_F77='-L$libdir'
13978 hardcode_shlibpath_var_F77=no
13979 ;;
13980
13981 *)
13982 ld_shlibs_F77=no
13983 ;;
13984 esac
13985 fi
13986
13987 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13988 echo "${ECHO_T}$ld_shlibs_F77" >&6
13989 test "$ld_shlibs_F77" = no && can_build_shared=no
13990
13991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13992 if test "$GCC" = yes; then
13993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13994 fi
13995
13996 #
13997 # Do we need to explicitly link libc?
13998 #
13999 case "x$archive_cmds_need_lc_F77" in
14000 x|xyes)
14001 # Assume -lc should be added
14002 archive_cmds_need_lc_F77=yes
14003
14004 if test "$enable_shared" = yes && test "$GCC" = yes; then
14005 case $archive_cmds_F77 in
14006 *'~'*)
14007 # FIXME: we may have to deal with multi-command sequences.
14008 ;;
14009 '$CC '*)
14010 # Test whether the compiler implicitly links with -lc since on some
14011 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14012 # to ld, don't add -lc before -lgcc.
14013 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14014 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14015 $rm conftest*
14016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14017
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } 2>conftest.err; then
14023 soname=conftest
14024 lib=conftest
14025 libobjs=conftest.$ac_objext
14026 deplibs=
14027 wl=$lt_prog_compiler_wl_F77
14028 compiler_flags=-v
14029 linker_flags=-v
14030 verstring=
14031 output_objdir=.
14032 libname=conftest
14033 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14034 allow_undefined_flag_F77=
14035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14036 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }
14040 then
14041 archive_cmds_need_lc_F77=no
14042 else
14043 archive_cmds_need_lc_F77=yes
14044 fi
14045 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14046 else
14047 cat conftest.err 1>&5
14048 fi
14049 $rm conftest*
14050 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14051 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14052 ;;
14053 esac
14054 fi
14055 ;;
14056 esac
14057
14058 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14059 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14060 library_names_spec=
14061 libname_spec='lib$name'
14062 soname_spec=
14063 shrext=".so"
14064 postinstall_cmds=
14065 postuninstall_cmds=
14066 finish_cmds=
14067 finish_eval=
14068 shlibpath_var=
14069 shlibpath_overrides_runpath=unknown
14070 version_type=none
14071 dynamic_linker="$host_os ld.so"
14072 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14073 if test "$GCC" = yes; then
14074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14075 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14076 # if the path contains ";" then we assume it to be the separator
14077 # otherwise default to the standard path separator (i.e. ":") - it is
14078 # assumed that no part of a normal pathname contains ";" but that should
14079 # okay in the real world where ";" in dirpaths is itself problematic.
14080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14081 else
14082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14083 fi
14084 else
14085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14086 fi
14087 need_lib_prefix=unknown
14088 hardcode_into_libs=no
14089
14090 # when you set need_version to no, make sure it does not cause -set_version
14091 # flags to be left without arguments
14092 need_version=unknown
14093
14094 case $host_os in
14095 aix3*)
14096 version_type=linux
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14098 shlibpath_var=LIBPATH
14099
14100 # AIX 3 has no versioning support, so we append a major version to the name.
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 ;;
14103
14104 aix4* | aix5*)
14105 version_type=linux
14106 need_lib_prefix=no
14107 need_version=no
14108 hardcode_into_libs=yes
14109 if test "$host_cpu" = ia64; then
14110 # AIX 5 supports IA64
14111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 else
14114 # With GCC up to 2.95.x, collect2 would create an import file
14115 # for dependence libraries. The import file would start with
14116 # the line `#! .'. This would cause the generated library to
14117 # depend on `.', always an invalid library. This was fixed in
14118 # development snapshots of GCC prior to 3.0.
14119 case $host_os in
14120 aix4 | aix4.[01] | aix4.[01].*)
14121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14122 echo ' yes '
14123 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14124 :
14125 else
14126 can_build_shared=no
14127 fi
14128 ;;
14129 esac
14130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14131 # soname into executable. Probably we can add versioning support to
14132 # collect2, so additional links can be useful in future.
14133 if test "$aix_use_runtimelinking" = yes; then
14134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14135 # instead of lib<name>.a to let people know that these are not
14136 # typical AIX shared libraries.
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 else
14139 # We preserve .a as extension for shared libraries through AIX4.2
14140 # and later when we are not doing run time linking.
14141 library_names_spec='${libname}${release}.a $libname.a'
14142 soname_spec='${libname}${release}${shared_ext}$major'
14143 fi
14144 shlibpath_var=LIBPATH
14145 fi
14146 ;;
14147
14148 amigaos*)
14149 library_names_spec='$libname.ixlibrary $libname.a'
14150 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14151 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'
14152 ;;
14153
14154 beos*)
14155 library_names_spec='${libname}${shared_ext}'
14156 dynamic_linker="$host_os ld.so"
14157 shlibpath_var=LIBRARY_PATH
14158 ;;
14159
14160 bsdi4*)
14161 version_type=linux
14162 need_version=no
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164 soname_spec='${libname}${release}${shared_ext}$major'
14165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14169 # the default ld.so.conf also contains /usr/contrib/lib and
14170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14171 # libtool to hard-code these into programs
14172 ;;
14173
14174 cygwin* | mingw* | pw32*)
14175 version_type=windows
14176 shrext=".dll"
14177 need_version=no
14178 need_lib_prefix=no
14179
14180 case $GCC,$host_os in
14181 yes,cygwin* | yes,mingw* | yes,pw32*)
14182 library_names_spec='$libname.dll.a'
14183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14184 postinstall_cmds='base_file=`basename \${file}`~
14185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14186 dldir=$destdir/`dirname \$dlpath`~
14187 test -d \$dldir || mkdir -p \$dldir~
14188 $install_prog $dir/$dlname \$dldir/$dlname'
14189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14190 dlpath=$dir/\$dldll~
14191 $rm \$dlpath'
14192 shlibpath_overrides_runpath=yes
14193
14194 case $host_os in
14195 cygwin*)
14196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14198 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14199 ;;
14200 mingw*)
14201 # MinGW DLLs use traditional 'lib' prefix
14202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14203 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14204 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14205 # It is most probably a Windows format PATH printed by
14206 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14207 # path with ; separators, and with drive letters. We can handle the
14208 # drive letters (cygwin fileutils understands them), so leave them,
14209 # especially as we might pass files found there to a mingw objdump,
14210 # which wouldn't understand a cygwinified path. Ahh.
14211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14212 else
14213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14214 fi
14215 ;;
14216 pw32*)
14217 # pw32 DLLs use 'pw' prefix rather than 'lib'
14218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14219 ;;
14220 esac
14221 ;;
14222
14223 *)
14224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14225 ;;
14226 esac
14227 dynamic_linker='Win32 ld.exe'
14228 # FIXME: first we should search . and the directory the executable is in
14229 shlibpath_var=PATH
14230 ;;
14231
14232 darwin* | rhapsody*)
14233 dynamic_linker="$host_os dyld"
14234 version_type=darwin
14235 need_lib_prefix=no
14236 need_version=no
14237 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14238 soname_spec='${libname}${release}${major}$shared_ext'
14239 shlibpath_overrides_runpath=yes
14240 shlibpath_var=DYLD_LIBRARY_PATH
14241 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14242 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14243 if test "$GCC" = yes; then
14244 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14245 else
14246 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14247 fi
14248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14249 ;;
14250
14251 dgux*)
14252 version_type=linux
14253 need_lib_prefix=no
14254 need_version=no
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 ;;
14259
14260 freebsd1*)
14261 dynamic_linker=no
14262 ;;
14263
14264 kfreebsd*-gnu)
14265 version_type=linux
14266 need_lib_prefix=no
14267 need_version=no
14268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14269 soname_spec='${libname}${release}${shared_ext}$major'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 shlibpath_overrides_runpath=no
14272 hardcode_into_libs=yes
14273 dynamic_linker='GNU ld.so'
14274 ;;
14275
14276 freebsd*)
14277 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14278 version_type=freebsd-$objformat
14279 case $version_type in
14280 freebsd-elf*)
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14282 need_version=no
14283 need_lib_prefix=no
14284 ;;
14285 freebsd-*)
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14287 need_version=yes
14288 ;;
14289 esac
14290 shlibpath_var=LD_LIBRARY_PATH
14291 case $host_os in
14292 freebsd2*)
14293 shlibpath_overrides_runpath=yes
14294 ;;
14295 freebsd3.01* | freebsdelf3.01*)
14296 shlibpath_overrides_runpath=yes
14297 hardcode_into_libs=yes
14298 ;;
14299 *) # from 3.2 on
14300 shlibpath_overrides_runpath=no
14301 hardcode_into_libs=yes
14302 ;;
14303 esac
14304 ;;
14305
14306 gnu*)
14307 version_type=linux
14308 need_lib_prefix=no
14309 need_version=no
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14311 soname_spec='${libname}${release}${shared_ext}$major'
14312 shlibpath_var=LD_LIBRARY_PATH
14313 hardcode_into_libs=yes
14314 ;;
14315
14316 hpux9* | hpux10* | hpux11*)
14317 # Give a soname corresponding to the major version so that dld.sl refuses to
14318 # link against other versions.
14319 version_type=sunos
14320 need_lib_prefix=no
14321 need_version=no
14322 case "$host_cpu" in
14323 ia64*)
14324 shrext='.so'
14325 hardcode_into_libs=yes
14326 dynamic_linker="$host_os dld.so"
14327 shlibpath_var=LD_LIBRARY_PATH
14328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330 soname_spec='${libname}${release}${shared_ext}$major'
14331 if test "X$HPUX_IA64_MODE" = X32; then
14332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14333 else
14334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14335 fi
14336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14337 ;;
14338 hppa*64*)
14339 shrext='.sl'
14340 hardcode_into_libs=yes
14341 dynamic_linker="$host_os dld.sl"
14342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14348 ;;
14349 *)
14350 shrext='.sl'
14351 dynamic_linker="$host_os dld.sl"
14352 shlibpath_var=SHLIB_PATH
14353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14355 soname_spec='${libname}${release}${shared_ext}$major'
14356 ;;
14357 esac
14358 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14359 postinstall_cmds='chmod 555 $lib'
14360 ;;
14361
14362 irix5* | irix6* | nonstopux*)
14363 case $host_os in
14364 nonstopux*) version_type=nonstopux ;;
14365 *)
14366 if test "$lt_cv_prog_gnu_ld" = yes; then
14367 version_type=linux
14368 else
14369 version_type=irix
14370 fi ;;
14371 esac
14372 need_lib_prefix=no
14373 need_version=no
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14376 case $host_os in
14377 irix5* | nonstopux*)
14378 libsuff= shlibsuff=
14379 ;;
14380 *)
14381 case $LD in # libtool.m4 will add one of these switches to LD
14382 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14383 libsuff= shlibsuff= libmagic=32-bit;;
14384 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14385 libsuff=32 shlibsuff=N32 libmagic=N32;;
14386 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14387 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14388 *) libsuff= shlibsuff= libmagic=never-match;;
14389 esac
14390 ;;
14391 esac
14392 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14393 shlibpath_overrides_runpath=no
14394 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14395 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14396 hardcode_into_libs=yes
14397 ;;
14398
14399 # No shared lib support for Linux oldld, aout, or coff.
14400 linux*oldld* | linux*aout* | linux*coff*)
14401 dynamic_linker=no
14402 ;;
14403
14404 # This must be Linux ELF.
14405 linux*)
14406 version_type=linux
14407 need_lib_prefix=no
14408 need_version=no
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 shlibpath_overrides_runpath=no
14414 # This implies no fast_install, which is unacceptable.
14415 # Some rework will be needed to allow for fast_install
14416 # before this can be enabled.
14417 hardcode_into_libs=yes
14418
14419 # We used to test for /lib/ld.so.1 and disable shared libraries on
14420 # powerpc, because MkLinux only supported shared libraries with the
14421 # GNU dynamic linker. Since this was broken with cross compilers,
14422 # most powerpc-linux boxes support dynamic linking these days and
14423 # people can always --disable-shared, the test was removed, and we
14424 # assume the GNU/Linux dynamic linker is in use.
14425 dynamic_linker='GNU/Linux ld.so'
14426 ;;
14427
14428 netbsd*)
14429 version_type=sunos
14430 need_lib_prefix=no
14431 need_version=no
14432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14435 dynamic_linker='NetBSD (a.out) ld.so'
14436 else
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 dynamic_linker='NetBSD ld.elf_so'
14440 fi
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=yes
14443 hardcode_into_libs=yes
14444 ;;
14445
14446 newsos6)
14447 version_type=linux
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14451 ;;
14452
14453 nto-qnx*)
14454 version_type=linux
14455 need_lib_prefix=no
14456 need_version=no
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 shlibpath_overrides_runpath=yes
14461 ;;
14462
14463 openbsd*)
14464 version_type=sunos
14465 need_lib_prefix=no
14466 need_version=no
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14471 case $host_os in
14472 openbsd2.[89] | openbsd2.[89].*)
14473 shlibpath_overrides_runpath=no
14474 ;;
14475 *)
14476 shlibpath_overrides_runpath=yes
14477 ;;
14478 esac
14479 else
14480 shlibpath_overrides_runpath=yes
14481 fi
14482 ;;
14483
14484 os2*)
14485 libname_spec='$name'
14486 shrext=".dll"
14487 need_lib_prefix=no
14488 library_names_spec='$libname${shared_ext} $libname.a'
14489 dynamic_linker='OS/2 ld.exe'
14490 shlibpath_var=LIBPATH
14491 ;;
14492
14493 osf3* | osf4* | osf5*)
14494 version_type=osf
14495 need_lib_prefix=no
14496 need_version=no
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14501 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14502 ;;
14503
14504 sco3.2v5*)
14505 version_type=osf
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 ;;
14510
14511 solaris*)
14512 version_type=linux
14513 need_lib_prefix=no
14514 need_version=no
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=yes
14519 hardcode_into_libs=yes
14520 # ldd complains unless libraries are executable
14521 postinstall_cmds='chmod +x $lib'
14522 ;;
14523
14524 sunos4*)
14525 version_type=sunos
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes
14530 if test "$with_gnu_ld" = yes; then
14531 need_lib_prefix=no
14532 fi
14533 need_version=yes
14534 ;;
14535
14536 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14537 version_type=linux
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 case $host_vendor in
14542 sni)
14543 shlibpath_overrides_runpath=no
14544 need_lib_prefix=no
14545 export_dynamic_flag_spec='${wl}-Blargedynsym'
14546 runpath_var=LD_RUN_PATH
14547 ;;
14548 siemens)
14549 need_lib_prefix=no
14550 ;;
14551 motorola)
14552 need_lib_prefix=no
14553 need_version=no
14554 shlibpath_overrides_runpath=no
14555 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14556 ;;
14557 esac
14558 ;;
14559
14560 sysv4*MP*)
14561 if test -d /usr/nec ;then
14562 version_type=linux
14563 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14564 soname_spec='$libname${shared_ext}.$major'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 fi
14567 ;;
14568
14569 uts4*)
14570 version_type=linux
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 ;;
14575
14576 *)
14577 dynamic_linker=no
14578 ;;
14579 esac
14580 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14581 echo "${ECHO_T}$dynamic_linker" >&6
14582 test "$dynamic_linker" = no && can_build_shared=no
14583
14584 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14585 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14586 hardcode_action_F77=
14587 if test -n "$hardcode_libdir_flag_spec_F77" || \
14588 test -n "$runpath_var F77" || \
14589 test "X$hardcode_automatic_F77"="Xyes" ; then
14590
14591 # We can hardcode non-existant directories.
14592 if test "$hardcode_direct_F77" != no &&
14593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14594 # have to relink, otherwise we might link with an installed library
14595 # when we should be linking with a yet-to-be-installed one
14596 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14597 test "$hardcode_minus_L_F77" != no; then
14598 # Linking always hardcodes the temporary library directory.
14599 hardcode_action_F77=relink
14600 else
14601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14602 hardcode_action_F77=immediate
14603 fi
14604 else
14605 # We cannot hardcode anything, or else we can only hardcode existing
14606 # directories.
14607 hardcode_action_F77=unsupported
14608 fi
14609 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14610 echo "${ECHO_T}$hardcode_action_F77" >&6
14611
14612 if test "$hardcode_action_F77" = relink; then
14613 # Fast installation is not supported
14614 enable_fast_install=no
14615 elif test "$shlibpath_overrides_runpath" = yes ||
14616 test "$enable_shared" = no; then
14617 # Fast installation is not necessary
14618 enable_fast_install=needless
14619 fi
14620
14621 striplib=
14622 old_striplib=
14623 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14624 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14625 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14626 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14627 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14628 echo "$as_me:$LINENO: result: yes" >&5
14629 echo "${ECHO_T}yes" >&6
14630 else
14631 # FIXME - insert some real tests, host_os isn't really good enough
14632 case $host_os in
14633 darwin*)
14634 if test -n "$STRIP" ; then
14635 striplib="$STRIP -x"
14636 echo "$as_me:$LINENO: result: yes" >&5
14637 echo "${ECHO_T}yes" >&6
14638 else
14639 echo "$as_me:$LINENO: result: no" >&5
14640 echo "${ECHO_T}no" >&6
14641 fi
14642 ;;
14643 *)
14644 echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6
14646 ;;
14647 esac
14648 fi
14649
14650
14651
14652 # The else clause should only fire when bootstrapping the
14653 # libtool distribution, otherwise you forgot to ship ltmain.sh
14654 # with your package, and you will get complaints that there are
14655 # no rules to generate ltmain.sh.
14656 if test -f "$ltmain"; then
14657 # See if we are running on zsh, and set the options which allow our commands through
14658 # without removal of \ escapes.
14659 if test -n "${ZSH_VERSION+set}" ; then
14660 setopt NO_GLOB_SUBST
14661 fi
14662 # Now quote all the things that may contain metacharacters while being
14663 # careful not to overquote the AC_SUBSTed values. We take copies of the
14664 # variables and quote the copies for generation of the libtool script.
14665 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14666 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14667 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14668 deplibs_check_method reload_flag reload_cmds need_locks \
14669 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14670 lt_cv_sys_global_symbol_to_c_name_address \
14671 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14672 old_postinstall_cmds old_postuninstall_cmds \
14673 compiler_F77 \
14674 CC_F77 \
14675 LD_F77 \
14676 lt_prog_compiler_wl_F77 \
14677 lt_prog_compiler_pic_F77 \
14678 lt_prog_compiler_static_F77 \
14679 lt_prog_compiler_no_builtin_flag_F77 \
14680 export_dynamic_flag_spec_F77 \
14681 thread_safe_flag_spec_F77 \
14682 whole_archive_flag_spec_F77 \
14683 enable_shared_with_static_runtimes_F77 \
14684 old_archive_cmds_F77 \
14685 old_archive_from_new_cmds_F77 \
14686 predep_objects_F77 \
14687 postdep_objects_F77 \
14688 predeps_F77 \
14689 postdeps_F77 \
14690 compiler_lib_search_path_F77 \
14691 archive_cmds_F77 \
14692 archive_expsym_cmds_F77 \
14693 postinstall_cmds_F77 \
14694 postuninstall_cmds_F77 \
14695 old_archive_from_expsyms_cmds_F77 \
14696 allow_undefined_flag_F77 \
14697 no_undefined_flag_F77 \
14698 export_symbols_cmds_F77 \
14699 hardcode_libdir_flag_spec_F77 \
14700 hardcode_libdir_flag_spec_ld_F77 \
14701 hardcode_libdir_separator_F77 \
14702 hardcode_automatic_F77 \
14703 module_cmds_F77 \
14704 module_expsym_cmds_F77 \
14705 lt_cv_prog_compiler_c_o_F77 \
14706 exclude_expsyms_F77 \
14707 include_expsyms_F77; do
14708
14709 case $var in
14710 old_archive_cmds_F77 | \
14711 old_archive_from_new_cmds_F77 | \
14712 archive_cmds_F77 | \
14713 archive_expsym_cmds_F77 | \
14714 module_cmds_F77 | \
14715 module_expsym_cmds_F77 | \
14716 old_archive_from_expsyms_cmds_F77 | \
14717 export_symbols_cmds_F77 | \
14718 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14719 postinstall_cmds | postuninstall_cmds | \
14720 old_postinstall_cmds | old_postuninstall_cmds | \
14721 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14722 # Double-quote double-evaled strings.
14723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14724 ;;
14725 *)
14726 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14727 ;;
14728 esac
14729 done
14730
14731 case $lt_echo in
14732 *'\$0 --fallback-echo"')
14733 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14734 ;;
14735 esac
14736
14737 cfgfile="$ofile"
14738
14739 cat <<__EOF__ >> "$cfgfile"
14740 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14741
14742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14743
14744 # Shell to use when invoking shell scripts.
14745 SHELL=$lt_SHELL
14746
14747 # Whether or not to build shared libraries.
14748 build_libtool_libs=$enable_shared
14749
14750 # Whether or not to build static libraries.
14751 build_old_libs=$enable_static
14752
14753 # Whether or not to add -lc for building shared libraries.
14754 build_libtool_need_lc=$archive_cmds_need_lc_F77
14755
14756 # Whether or not to disallow shared libs when runtime libs are static
14757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14758
14759 # Whether or not to optimize for fast installation.
14760 fast_install=$enable_fast_install
14761
14762 # The host system.
14763 host_alias=$host_alias
14764 host=$host
14765
14766 # An echo program that does not interpret backslashes.
14767 echo=$lt_echo
14768
14769 # The archiver.
14770 AR=$lt_AR
14771 AR_FLAGS=$lt_AR_FLAGS
14772
14773 # A C compiler.
14774 LTCC=$lt_LTCC
14775
14776 # A language-specific compiler.
14777 CC=$lt_compiler_F77
14778
14779 # Is the compiler the GNU C compiler?
14780 with_gcc=$GCC_F77
14781
14782 # An ERE matcher.
14783 EGREP=$lt_EGREP
14784
14785 # The linker used to build libraries.
14786 LD=$lt_LD_F77
14787
14788 # Whether we need hard or soft links.
14789 LN_S=$lt_LN_S
14790
14791 # A BSD-compatible nm program.
14792 NM=$lt_NM
14793
14794 # A symbol stripping program
14795 STRIP="$STRIP"
14796
14797 # Used to examine libraries when file_magic_cmd begins "file"
14798 MAGIC_CMD=$MAGIC_CMD
14799
14800 # Used on cygwin: DLL creation program.
14801 DLLTOOL="$DLLTOOL"
14802
14803 # Used on cygwin: object dumper.
14804 OBJDUMP="$OBJDUMP"
14805
14806 # Used on cygwin: assembler.
14807 AS="$AS"
14808
14809 # The name of the directory that contains temporary libtool files.
14810 objdir=$objdir
14811
14812 # How to create reloadable object files.
14813 reload_flag=$lt_reload_flag
14814 reload_cmds=$lt_reload_cmds
14815
14816 # How to pass a linker flag through the compiler.
14817 wl=$lt_lt_prog_compiler_wl_F77
14818
14819 # Object file suffix (normally "o").
14820 objext="$ac_objext"
14821
14822 # Old archive suffix (normally "a").
14823 libext="$libext"
14824
14825 # Shared library suffix (normally ".so").
14826 shrext='$shrext'
14827
14828 # Executable file suffix (normally "").
14829 exeext="$exeext"
14830
14831 # Additional compiler flags for building library objects.
14832 pic_flag=$lt_lt_prog_compiler_pic_F77
14833 pic_mode=$pic_mode
14834
14835 # What is the maximum length of a command?
14836 max_cmd_len=$lt_cv_sys_max_cmd_len
14837
14838 # Does compiler simultaneously support -c and -o options?
14839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14840
14841 # Must we lock files when doing compilation ?
14842 need_locks=$lt_need_locks
14843
14844 # Do we need the lib prefix for modules?
14845 need_lib_prefix=$need_lib_prefix
14846
14847 # Do we need a version for libraries?
14848 need_version=$need_version
14849
14850 # Whether dlopen is supported.
14851 dlopen_support=$enable_dlopen
14852
14853 # Whether dlopen of programs is supported.
14854 dlopen_self=$enable_dlopen_self
14855
14856 # Whether dlopen of statically linked programs is supported.
14857 dlopen_self_static=$enable_dlopen_self_static
14858
14859 # Compiler flag to prevent dynamic linking.
14860 link_static_flag=$lt_lt_prog_compiler_static_F77
14861
14862 # Compiler flag to turn off builtin functions.
14863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14864
14865 # Compiler flag to allow reflexive dlopens.
14866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14867
14868 # Compiler flag to generate shared objects directly from archives.
14869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14870
14871 # Compiler flag to generate thread-safe objects.
14872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14873
14874 # Library versioning type.
14875 version_type=$version_type
14876
14877 # Format of library name prefix.
14878 libname_spec=$lt_libname_spec
14879
14880 # List of archive names. First name is the real one, the rest are links.
14881 # The last name is the one that the linker finds with -lNAME.
14882 library_names_spec=$lt_library_names_spec
14883
14884 # The coded name of the library, if different from the real name.
14885 soname_spec=$lt_soname_spec
14886
14887 # Commands used to build and install an old-style archive.
14888 RANLIB=$lt_RANLIB
14889 old_archive_cmds=$lt_old_archive_cmds_F77
14890 old_postinstall_cmds=$lt_old_postinstall_cmds
14891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14892
14893 # Create an old-style archive from a shared archive.
14894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14895
14896 # Create a temporary old-style archive to link instead of a shared archive.
14897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14898
14899 # Commands used to build and install a shared archive.
14900 archive_cmds=$lt_archive_cmds_F77
14901 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14902 postinstall_cmds=$lt_postinstall_cmds
14903 postuninstall_cmds=$lt_postuninstall_cmds
14904
14905 # Commands used to build a loadable module (assumed same as above if empty)
14906 module_cmds=$lt_module_cmds_F77
14907 module_expsym_cmds=$lt_module_expsym_cmds_F77
14908
14909 # Commands to strip libraries.
14910 old_striplib=$lt_old_striplib
14911 striplib=$lt_striplib
14912
14913 # Dependencies to place before the objects being linked to create a
14914 # shared library.
14915 predep_objects=$lt_predep_objects_F77
14916
14917 # Dependencies to place after the objects being linked to create a
14918 # shared library.
14919 postdep_objects=$lt_postdep_objects_F77
14920
14921 # Dependencies to place before the objects being linked to create a
14922 # shared library.
14923 predeps=$lt_predeps_F77
14924
14925 # Dependencies to place after the objects being linked to create a
14926 # shared library.
14927 postdeps=$lt_postdeps_F77
14928
14929 # The library search path used internally by the compiler when linking
14930 # a shared library.
14931 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14932
14933 # Method to check whether dependent libraries are shared objects.
14934 deplibs_check_method=$lt_deplibs_check_method
14935
14936 # Command to use when deplibs_check_method == file_magic.
14937 file_magic_cmd=$lt_file_magic_cmd
14938
14939 # Flag that allows shared libraries with undefined symbols to be built.
14940 allow_undefined_flag=$lt_allow_undefined_flag_F77
14941
14942 # Flag that forces no undefined symbols.
14943 no_undefined_flag=$lt_no_undefined_flag_F77
14944
14945 # Commands used to finish a libtool library installation in a directory.
14946 finish_cmds=$lt_finish_cmds
14947
14948 # Same as above, but a single script fragment to be evaled but not shown.
14949 finish_eval=$lt_finish_eval
14950
14951 # Take the output of nm and produce a listing of raw symbols and C names.
14952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14953
14954 # Transform the output of nm in a proper C declaration
14955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14956
14957 # Transform the output of nm in a C name address pair
14958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14959
14960 # This is the shared library runtime path variable.
14961 runpath_var=$runpath_var
14962
14963 # This is the shared library path variable.
14964 shlibpath_var=$shlibpath_var
14965
14966 # Is shlibpath searched before the hard-coded library search path?
14967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14968
14969 # How to hardcode a shared library path into an executable.
14970 hardcode_action=$hardcode_action_F77
14971
14972 # Whether we should hardcode library paths into libraries.
14973 hardcode_into_libs=$hardcode_into_libs
14974
14975 # Flag to hardcode \$libdir into a binary during linking.
14976 # This must work even if \$libdir does not exist.
14977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14978
14979 # If ld is used when linking, flag to hardcode \$libdir into
14980 # a binary during linking. This must work even if \$libdir does
14981 # not exist.
14982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14983
14984 # Whether we need a single -rpath flag with a separated argument.
14985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14986
14987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14988 # resulting binary.
14989 hardcode_direct=$hardcode_direct_F77
14990
14991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14992 # resulting binary.
14993 hardcode_minus_L=$hardcode_minus_L_F77
14994
14995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14996 # the resulting binary.
14997 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14998
14999 # Set to yes if building a shared library automatically hardcodes DIR into the library
15000 # and all subsequent libraries and executables linked against it.
15001 hardcode_automatic=$hardcode_automatic_F77
15002
15003 # Variables whose values should be saved in libtool wrapper scripts and
15004 # restored at relink time.
15005 variables_saved_for_relink="$variables_saved_for_relink"
15006
15007 # Whether libtool must link a program against all its dependency libraries.
15008 link_all_deplibs=$link_all_deplibs_F77
15009
15010 # Compile-time system search path for libraries
15011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15012
15013 # Run-time system search path for libraries
15014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15015
15016 # Fix the shell variable \$srcfile for the compiler.
15017 fix_srcfile_path="$fix_srcfile_path_F77"
15018
15019 # Set to yes if exported symbols are required.
15020 always_export_symbols=$always_export_symbols_F77
15021
15022 # The commands to list exported symbols.
15023 export_symbols_cmds=$lt_export_symbols_cmds_F77
15024
15025 # The commands to extract the exported symbol list from a shared archive.
15026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15027
15028 # Symbols that should not be listed in the preloaded symbols.
15029 exclude_expsyms=$lt_exclude_expsyms_F77
15030
15031 # Symbols that must always be exported.
15032 include_expsyms=$lt_include_expsyms_F77
15033
15034 # ### END LIBTOOL TAG CONFIG: $tagname
15035
15036 __EOF__
15037
15038
15039 else
15040 # If there is no Makefile yet, we rely on a make rule to execute
15041 # `config.status --recheck' to rerun these tests and create the
15042 # libtool script then.
15043 test -f Makefile && make "$ltmain"
15044 fi
15045
15046
15047 ac_ext=c
15048 ac_cpp='$CPP $CPPFLAGS'
15049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15052
15053 CC="$lt_save_CC"
15054
15055 else
15056 tagname=""
15057 fi
15058 ;;
15059
15060 GCJ)
15061 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15062
15063
15064
15065 # Source file extension for Java test sources.
15066 ac_ext=java
15067
15068 # Object file extension for compiled Java test sources.
15069 objext=o
15070 objext_GCJ=$objext
15071
15072 # Code to be used in simple compile tests
15073 lt_simple_compile_test_code="class foo {}\n"
15074
15075 # Code to be used in simple link tests
15076 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15077
15078 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15079
15080 # If no C compiler was specified, use CC.
15081 LTCC=${LTCC-"$CC"}
15082
15083 # Allow CC to be a program name with arguments.
15084 compiler=$CC
15085
15086
15087 # Allow CC to be a program name with arguments.
15088 lt_save_CC="$CC"
15089 CC=${GCJ-"gcj"}
15090 compiler=$CC
15091 compiler_GCJ=$CC
15092
15093 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15094 archive_cmds_need_lc_GCJ=no
15095
15096
15097 lt_prog_compiler_no_builtin_flag_GCJ=
15098
15099 if test "$GCC" = yes; then
15100 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15101
15102
15103 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15104 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15105 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108 lt_cv_prog_compiler_rtti_exceptions=no
15109 ac_outfile=conftest.$ac_objext
15110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15111 lt_compiler_flag="-fno-rtti -fno-exceptions"
15112 # Insert the option either (1) after the last *FLAGS variable, or
15113 # (2) before a word containing "conftest.", or (3) at the end.
15114 # Note that $ac_compile itself does not contain backslashes and begins
15115 # with a dollar sign (not a hyphen), so the echo should work correctly.
15116 # The option is referenced via a variable to avoid confusing sed.
15117 lt_compile=`echo "$ac_compile" | $SED \
15118 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120 -e 's:$: $lt_compiler_flag:'`
15121 (eval echo "\"\$as_me:15121: $lt_compile\"" >&5)
15122 (eval "$lt_compile" 2>conftest.err)
15123 ac_status=$?
15124 cat conftest.err >&5
15125 echo "$as_me:15125: \$? = $ac_status" >&5
15126 if (exit $ac_status) && test -s "$ac_outfile"; then
15127 # The compiler can only warn and ignore the option if not recognized
15128 # So say no if there are warnings
15129 if test ! -s conftest.err; then
15130 lt_cv_prog_compiler_rtti_exceptions=yes
15131 fi
15132 fi
15133 $rm conftest*
15134
15135 fi
15136 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15137 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15138
15139 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15140 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15141 else
15142 :
15143 fi
15144
15145 fi
15146
15147 lt_prog_compiler_wl_GCJ=
15148 lt_prog_compiler_pic_GCJ=
15149 lt_prog_compiler_static_GCJ=
15150
15151 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15152 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15153
15154 if test "$GCC" = yes; then
15155 lt_prog_compiler_wl_GCJ='-Wl,'
15156 lt_prog_compiler_static_GCJ='-static'
15157
15158 case $host_os in
15159 aix*)
15160 # All AIX code is PIC.
15161 if test "$host_cpu" = ia64; then
15162 # AIX 5 now supports IA64 processor
15163 lt_prog_compiler_static_GCJ='-Bstatic'
15164 fi
15165 ;;
15166
15167 amigaos*)
15168 # FIXME: we need at least 68020 code to build shared libraries, but
15169 # adding the `-m68020' flag to GCC prevents building anything better,
15170 # like `-m68040'.
15171 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15172 ;;
15173
15174 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15175 # PIC is the default for these OSes.
15176 ;;
15177
15178 mingw* | pw32* | os2*)
15179 # This hack is so that the source file can tell whether it is being
15180 # built for inclusion in a dll (and should export symbols for example).
15181 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15182 ;;
15183
15184 darwin* | rhapsody*)
15185 # PIC is the default on this platform
15186 # Common symbols not allowed in MH_DYLIB files
15187 lt_prog_compiler_pic_GCJ='-fno-common'
15188 ;;
15189
15190 msdosdjgpp*)
15191 # Just because we use GCC doesn't mean we suddenly get shared libraries
15192 # on systems that don't support them.
15193 lt_prog_compiler_can_build_shared_GCJ=no
15194 enable_shared=no
15195 ;;
15196
15197 sysv4*MP*)
15198 if test -d /usr/nec; then
15199 lt_prog_compiler_pic_GCJ=-Kconform_pic
15200 fi
15201 ;;
15202
15203 hpux*)
15204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15205 # not for PA HP-UX.
15206 case "$host_cpu" in
15207 hppa*64*|ia64*)
15208 # +Z the default
15209 ;;
15210 *)
15211 lt_prog_compiler_pic_GCJ='-fPIC'
15212 ;;
15213 esac
15214 ;;
15215
15216 *)
15217 lt_prog_compiler_pic_GCJ='-fPIC'
15218 ;;
15219 esac
15220 else
15221 # PORTME Check for flag to pass linker flags through the system compiler.
15222 case $host_os in
15223 aix*)
15224 lt_prog_compiler_wl_GCJ='-Wl,'
15225 if test "$host_cpu" = ia64; then
15226 # AIX 5 now supports IA64 processor
15227 lt_prog_compiler_static_GCJ='-Bstatic'
15228 else
15229 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15230 fi
15231 ;;
15232
15233 mingw* | pw32* | os2*)
15234 # This hack is so that the source file can tell whether it is being
15235 # built for inclusion in a dll (and should export symbols for example).
15236 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15237 ;;
15238
15239 hpux9* | hpux10* | hpux11*)
15240 lt_prog_compiler_wl_GCJ='-Wl,'
15241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15242 # not for PA HP-UX.
15243 case "$host_cpu" in
15244 hppa*64*|ia64*)
15245 # +Z the default
15246 ;;
15247 *)
15248 lt_prog_compiler_pic_GCJ='+Z'
15249 ;;
15250 esac
15251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15252 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15253 ;;
15254
15255 irix5* | irix6* | nonstopux*)
15256 lt_prog_compiler_wl_GCJ='-Wl,'
15257 # PIC (with -KPIC) is the default.
15258 lt_prog_compiler_static_GCJ='-non_shared'
15259 ;;
15260
15261 newsos6)
15262 lt_prog_compiler_pic_GCJ='-KPIC'
15263 lt_prog_compiler_static_GCJ='-Bstatic'
15264 ;;
15265
15266 linux*)
15267 case $CC in
15268 icc* | ecc*)
15269 lt_prog_compiler_wl_GCJ='-Wl,'
15270 lt_prog_compiler_pic_GCJ='-KPIC'
15271 lt_prog_compiler_static_GCJ='-static'
15272 ;;
15273 ccc*)
15274 lt_prog_compiler_wl_GCJ='-Wl,'
15275 # All Alpha code is PIC.
15276 lt_prog_compiler_static_GCJ='-non_shared'
15277 ;;
15278 esac
15279 ;;
15280
15281 osf3* | osf4* | osf5*)
15282 lt_prog_compiler_wl_GCJ='-Wl,'
15283 # All OSF/1 code is PIC.
15284 lt_prog_compiler_static_GCJ='-non_shared'
15285 ;;
15286
15287 sco3.2v5*)
15288 lt_prog_compiler_pic_GCJ='-Kpic'
15289 lt_prog_compiler_static_GCJ='-dn'
15290 ;;
15291
15292 solaris*)
15293 lt_prog_compiler_wl_GCJ='-Wl,'
15294 lt_prog_compiler_pic_GCJ='-KPIC'
15295 lt_prog_compiler_static_GCJ='-Bstatic'
15296 ;;
15297
15298 sunos4*)
15299 lt_prog_compiler_wl_GCJ='-Qoption ld '
15300 lt_prog_compiler_pic_GCJ='-PIC'
15301 lt_prog_compiler_static_GCJ='-Bstatic'
15302 ;;
15303
15304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15305 lt_prog_compiler_wl_GCJ='-Wl,'
15306 lt_prog_compiler_pic_GCJ='-KPIC'
15307 lt_prog_compiler_static_GCJ='-Bstatic'
15308 ;;
15309
15310 sysv4*MP*)
15311 if test -d /usr/nec ;then
15312 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15313 lt_prog_compiler_static_GCJ='-Bstatic'
15314 fi
15315 ;;
15316
15317 uts4*)
15318 lt_prog_compiler_pic_GCJ='-pic'
15319 lt_prog_compiler_static_GCJ='-Bstatic'
15320 ;;
15321
15322 *)
15323 lt_prog_compiler_can_build_shared_GCJ=no
15324 ;;
15325 esac
15326 fi
15327
15328 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15329 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15330
15331 #
15332 # Check to make sure the PIC flag actually works.
15333 #
15334 if test -n "$lt_prog_compiler_pic_GCJ"; then
15335
15336 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15337 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15338 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341 lt_prog_compiler_pic_works_GCJ=no
15342 ac_outfile=conftest.$ac_objext
15343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15344 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15345 # Insert the option either (1) after the last *FLAGS variable, or
15346 # (2) before a word containing "conftest.", or (3) at the end.
15347 # Note that $ac_compile itself does not contain backslashes and begins
15348 # with a dollar sign (not a hyphen), so the echo should work correctly.
15349 # The option is referenced via a variable to avoid confusing sed.
15350 lt_compile=`echo "$ac_compile" | $SED \
15351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15353 -e 's:$: $lt_compiler_flag:'`
15354 (eval echo "\"\$as_me:15354: $lt_compile\"" >&5)
15355 (eval "$lt_compile" 2>conftest.err)
15356 ac_status=$?
15357 cat conftest.err >&5
15358 echo "$as_me:15358: \$? = $ac_status" >&5
15359 if (exit $ac_status) && test -s "$ac_outfile"; then
15360 # The compiler can only warn and ignore the option if not recognized
15361 # So say no if there are warnings
15362 if test ! -s conftest.err; then
15363 lt_prog_compiler_pic_works_GCJ=yes
15364 fi
15365 fi
15366 $rm conftest*
15367
15368 fi
15369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15370 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15371
15372 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15373 case $lt_prog_compiler_pic_GCJ in
15374 "" | " "*) ;;
15375 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15376 esac
15377 else
15378 lt_prog_compiler_pic_GCJ=
15379 lt_prog_compiler_can_build_shared_GCJ=no
15380 fi
15381
15382 fi
15383 case "$host_os" in
15384 # For platforms which do not support PIC, -DPIC is meaningless:
15385 *djgpp*)
15386 lt_prog_compiler_pic_GCJ=
15387 ;;
15388 *)
15389 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15390 ;;
15391 esac
15392
15393 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15394 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15395 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 lt_cv_prog_compiler_c_o_GCJ=no
15399 $rm -r conftest 2>/dev/null
15400 mkdir conftest
15401 cd conftest
15402 mkdir out
15403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15404
15405 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15406 # that will create temporary files in the current directory regardless of
15407 # the output directory. Thus, making CWD read-only will cause this test
15408 # to fail, enabling locking or at least warning the user not to do parallel
15409 # builds.
15410 chmod -w .
15411
15412 lt_compiler_flag="-o out/conftest2.$ac_objext"
15413 # Insert the option either (1) after the last *FLAGS variable, or
15414 # (2) before a word containing "conftest.", or (3) at the end.
15415 # Note that $ac_compile itself does not contain backslashes and begins
15416 # with a dollar sign (not a hyphen), so the echo should work correctly.
15417 lt_compile=`echo "$ac_compile" | $SED \
15418 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15420 -e 's:$: $lt_compiler_flag:'`
15421 (eval echo "\"\$as_me:15421: $lt_compile\"" >&5)
15422 (eval "$lt_compile" 2>out/conftest.err)
15423 ac_status=$?
15424 cat out/conftest.err >&5
15425 echo "$as_me:15425: \$? = $ac_status" >&5
15426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15427 then
15428 # The compiler can only warn and ignore the option if not recognized
15429 # So say no if there are warnings
15430 if test ! -s out/conftest.err; then
15431 lt_cv_prog_compiler_c_o_GCJ=yes
15432 fi
15433 fi
15434 chmod u+w .
15435 $rm conftest*
15436 # SGI C++ compiler will create directory out/ii_files/ for
15437 # template instantiation
15438 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15439 $rm out/* && rmdir out
15440 cd ..
15441 rmdir conftest
15442 $rm conftest*
15443
15444 fi
15445 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15446 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15447
15448
15449 hard_links="nottested"
15450 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15451 # do not overwrite the value of need_locks provided by the user
15452 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15453 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15454 hard_links=yes
15455 $rm conftest*
15456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15457 touch conftest.a
15458 ln conftest.a conftest.b 2>&5 || hard_links=no
15459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15460 echo "$as_me:$LINENO: result: $hard_links" >&5
15461 echo "${ECHO_T}$hard_links" >&6
15462 if test "$hard_links" = no; then
15463 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15464 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15465 need_locks=warn
15466 fi
15467 else
15468 need_locks=no
15469 fi
15470
15471 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15472 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15473
15474 runpath_var=
15475 allow_undefined_flag_GCJ=
15476 enable_shared_with_static_runtimes_GCJ=no
15477 archive_cmds_GCJ=
15478 archive_expsym_cmds_GCJ=
15479 old_archive_From_new_cmds_GCJ=
15480 old_archive_from_expsyms_cmds_GCJ=
15481 export_dynamic_flag_spec_GCJ=
15482 whole_archive_flag_spec_GCJ=
15483 thread_safe_flag_spec_GCJ=
15484 hardcode_libdir_flag_spec_GCJ=
15485 hardcode_libdir_flag_spec_ld_GCJ=
15486 hardcode_libdir_separator_GCJ=
15487 hardcode_direct_GCJ=no
15488 hardcode_minus_L_GCJ=no
15489 hardcode_shlibpath_var_GCJ=unsupported
15490 link_all_deplibs_GCJ=unknown
15491 hardcode_automatic_GCJ=no
15492 module_cmds_GCJ=
15493 module_expsym_cmds_GCJ=
15494 always_export_symbols_GCJ=no
15495 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15496 # include_expsyms should be a list of space-separated symbols to be *always*
15497 # included in the symbol list
15498 include_expsyms_GCJ=
15499 # exclude_expsyms can be an extended regexp of symbols to exclude
15500 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15501 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15502 # as well as any symbol that contains `d'.
15503 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15504 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15505 # platforms (ab)use it in PIC code, but their linkers get confused if
15506 # the symbol is explicitly referenced. Since portable code cannot
15507 # rely on this symbol name, it's probably fine to never include it in
15508 # preloaded symbol tables.
15509 extract_expsyms_cmds=
15510
15511 case $host_os in
15512 cygwin* | mingw* | pw32*)
15513 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15514 # When not using gcc, we currently assume that we are using
15515 # Microsoft Visual C++.
15516 if test "$GCC" != yes; then
15517 with_gnu_ld=no
15518 fi
15519 ;;
15520 openbsd*)
15521 with_gnu_ld=no
15522 ;;
15523 esac
15524
15525 ld_shlibs_GCJ=yes
15526 if test "$with_gnu_ld" = yes; then
15527 # If archive_cmds runs LD, not CC, wlarc should be empty
15528 wlarc='${wl}'
15529
15530 # See if GNU ld supports shared libraries.
15531 case $host_os in
15532 aix3* | aix4* | aix5*)
15533 # On AIX/PPC, the GNU linker is very broken
15534 if test "$host_cpu" != ia64; then
15535 ld_shlibs_GCJ=no
15536 cat <<EOF 1>&2
15537
15538 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15539 *** to be unable to reliably create shared libraries on AIX.
15540 *** Therefore, libtool is disabling shared libraries support. If you
15541 *** really care for shared libraries, you may want to modify your PATH
15542 *** so that a non-GNU linker is found, and then restart.
15543
15544 EOF
15545 fi
15546 ;;
15547
15548 amigaos*)
15549 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)'
15550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15551 hardcode_minus_L_GCJ=yes
15552
15553 # Samuel A. Falvo II <[email protected]> reports
15554 # that the semantics of dynamic libraries on AmigaOS, at least up
15555 # to version 4, is to share data among multiple programs linked
15556 # with the same dynamic library. Since this doesn't match the
15557 # behavior of shared libraries on other platforms, we can't use
15558 # them.
15559 ld_shlibs_GCJ=no
15560 ;;
15561
15562 beos*)
15563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15564 allow_undefined_flag_GCJ=unsupported
15565 # Joseph Beckenbach <[email protected]> says some releases of gcc
15566 # support --undefined. This deserves some investigation. FIXME
15567 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15568 else
15569 ld_shlibs_GCJ=no
15570 fi
15571 ;;
15572
15573 cygwin* | mingw* | pw32*)
15574 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15575 # as there is no search path for DLLs.
15576 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15577 allow_undefined_flag_GCJ=unsupported
15578 always_export_symbols_GCJ=no
15579 enable_shared_with_static_runtimes_GCJ=yes
15580 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15581
15582 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15583 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15584 # If the export-symbols file already is a .def file (1st line
15585 # is EXPORTS), use it as is; otherwise, prepend...
15586 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15587 cp $export_symbols $output_objdir/$soname.def;
15588 else
15589 echo EXPORTS > $output_objdir/$soname.def;
15590 cat $export_symbols >> $output_objdir/$soname.def;
15591 fi~
15592 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15593 else
15594 ld_shlibs=no
15595 fi
15596 ;;
15597
15598 netbsd*)
15599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15600 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15601 wlarc=
15602 else
15603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15604 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15605 fi
15606 ;;
15607
15608 solaris* | sysv5*)
15609 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15610 ld_shlibs_GCJ=no
15611 cat <<EOF 1>&2
15612
15613 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15614 *** create shared libraries on Solaris systems. Therefore, libtool
15615 *** is disabling shared libraries support. We urge you to upgrade GNU
15616 *** binutils to release 2.9.1 or newer. Another option is to modify
15617 *** your PATH or compiler configuration so that the native linker is
15618 *** used, and then restart.
15619
15620 EOF
15621 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15623 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15624 else
15625 ld_shlibs_GCJ=no
15626 fi
15627 ;;
15628
15629 sunos4*)
15630 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15631 wlarc=
15632 hardcode_direct_GCJ=yes
15633 hardcode_shlibpath_var_GCJ=no
15634 ;;
15635
15636 linux*)
15637 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15638 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15639 archive_cmds_GCJ="$tmp_archive_cmds"
15640 supports_anon_versioning=no
15641 case `$LD -v 2>/dev/null` in
15642 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15643 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15644 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15645 *\ 2.11.*) ;; # other 2.11 versions
15646 *) supports_anon_versioning=yes ;;
15647 esac
15648 if test $supports_anon_versioning = yes; then
15649 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15650 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15651 $echo "local: *; };" >> $output_objdir/$libname.ver~
15652 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15653 else
15654 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15655 fi
15656 else
15657 ld_shlibs_GCJ=no
15658 fi
15659 ;;
15660
15661 *)
15662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15663 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15664 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15665 else
15666 ld_shlibs_GCJ=no
15667 fi
15668 ;;
15669 esac
15670
15671 if test "$ld_shlibs_GCJ" = yes; then
15672 runpath_var=LD_RUN_PATH
15673 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15674 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15675 # ancient GNU ld didn't support --whole-archive et. al.
15676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15677 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15678 else
15679 whole_archive_flag_spec_GCJ=
15680 fi
15681 fi
15682 else
15683 # PORTME fill in a description of your system's linker (not GNU ld)
15684 case $host_os in
15685 aix3*)
15686 allow_undefined_flag_GCJ=unsupported
15687 always_export_symbols_GCJ=yes
15688 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'
15689 # Note: this linker hardcodes the directories in LIBPATH if there
15690 # are no directories specified by -L.
15691 hardcode_minus_L_GCJ=yes
15692 if test "$GCC" = yes && test -z "$link_static_flag"; then
15693 # Neither direct hardcoding nor static linking is supported with a
15694 # broken collect2.
15695 hardcode_direct_GCJ=unsupported
15696 fi
15697 ;;
15698
15699 aix4* | aix5*)
15700 if test "$host_cpu" = ia64; then
15701 # On IA64, the linker does run time linking by default, so we don't
15702 # have to do anything special.
15703 aix_use_runtimelinking=no
15704 exp_sym_flag='-Bexport'
15705 no_entry_flag=""
15706 else
15707 # If we're using GNU nm, then we don't want the "-C" option.
15708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15710 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'
15711 else
15712 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'
15713 fi
15714 aix_use_runtimelinking=no
15715
15716 # Test if we are trying to use run time linking or normal
15717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15718 # need to do runtime linking.
15719 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15720 for ld_flag in $LDFLAGS; do
15721 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15722 aix_use_runtimelinking=yes
15723 break
15724 fi
15725 done
15726 esac
15727
15728 exp_sym_flag='-bexport'
15729 no_entry_flag='-bnoentry'
15730 fi
15731
15732 # When large executables or shared objects are built, AIX ld can
15733 # have problems creating the table of contents. If linking a library
15734 # or program results in "error TOC overflow" add -mminimal-toc to
15735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15737
15738 archive_cmds_GCJ=''
15739 hardcode_direct_GCJ=yes
15740 hardcode_libdir_separator_GCJ=':'
15741 link_all_deplibs_GCJ=yes
15742
15743 if test "$GCC" = yes; then
15744 case $host_os in aix4.012|aix4.012.*)
15745 # We only want to do this on AIX 4.2 and lower, the check
15746 # below for broken collect2 doesn't work under 4.3+
15747 collect2name=`${CC} -print-prog-name=collect2`
15748 if test -f "$collect2name" && \
15749 strings "$collect2name" | grep resolve_lib_name >/dev/null
15750 then
15751 # We have reworked collect2
15752 hardcode_direct_GCJ=yes
15753 else
15754 # We have old collect2
15755 hardcode_direct_GCJ=unsupported
15756 # It fails to find uninstalled libraries when the uninstalled
15757 # path is not listed in the libpath. Setting hardcode_minus_L
15758 # to unsupported forces relinking
15759 hardcode_minus_L_GCJ=yes
15760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761 hardcode_libdir_separator_GCJ=
15762 fi
15763 esac
15764 shared_flag='-shared'
15765 else
15766 # not using gcc
15767 if test "$host_cpu" = ia64; then
15768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15769 # chokes on -Wl,-G. The following line is correct:
15770 shared_flag='-G'
15771 else
15772 if test "$aix_use_runtimelinking" = yes; then
15773 shared_flag='${wl}-G'
15774 else
15775 shared_flag='${wl}-bM:SRE'
15776 fi
15777 fi
15778 fi
15779
15780 # It seems that -bexpall does not export symbols beginning with
15781 # underscore (_), so it is better to generate a list of symbols to export.
15782 always_export_symbols_GCJ=yes
15783 if test "$aix_use_runtimelinking" = yes; then
15784 # Warning - without using the other runtime loading flags (-brtl),
15785 # -berok will link without error, but may produce a broken library.
15786 allow_undefined_flag_GCJ='-berok'
15787 # Determine the default libpath from the value encoded in an empty executable.
15788 cat >conftest.$ac_ext <<_ACEOF
15789 #line $LINENO "configure"
15790 /* confdefs.h. */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795
15796 int
15797 main ()
15798 {
15799
15800 ;
15801 return 0;
15802 }
15803 _ACEOF
15804 rm -f conftest.$ac_objext conftest$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806 (eval $ac_link) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -s conftest$ac_exeext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816
15817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15818 }'`
15819 # Check for a 64-bit object if we didn't find anything.
15820 if 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; }
15821 }'`; fi
15822 else
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15825
15826 fi
15827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15829
15830 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15831 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"
15832 else
15833 if test "$host_cpu" = ia64; then
15834 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15835 allow_undefined_flag_GCJ="-z nodefs"
15836 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"
15837 else
15838 # Determine the default libpath from the value encoded in an empty executable.
15839 cat >conftest.$ac_ext <<_ACEOF
15840 #line $LINENO "configure"
15841 /* confdefs.h. */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h. */
15846
15847 int
15848 main ()
15849 {
15850
15851 ;
15852 return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
15861 { ac_try='test -s conftest$ac_exeext'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867
15868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15869 }'`
15870 # Check for a 64-bit object if we didn't find anything.
15871 if 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; }
15872 }'`; fi
15873 else
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15876
15877 fi
15878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15880
15881 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15882 # Warning - without using the other run time loading flags,
15883 # -berok will link without error, but may produce a broken library.
15884 no_undefined_flag_GCJ=' ${wl}-bernotok'
15885 allow_undefined_flag_GCJ=' ${wl}-berok'
15886 # -bexpall does not export symbols beginning with underscore (_)
15887 always_export_symbols_GCJ=yes
15888 # Exported symbols can be pulled into shared objects from archives
15889 whole_archive_flag_spec_GCJ=' '
15890 archive_cmds_need_lc_GCJ=yes
15891 # This is similar to how AIX traditionally builds it's shared libraries.
15892 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'
15893 fi
15894 fi
15895 ;;
15896
15897 amigaos*)
15898 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)'
15899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15900 hardcode_minus_L_GCJ=yes
15901 # see comment about different semantics on the GNU ld section
15902 ld_shlibs_GCJ=no
15903 ;;
15904
15905 bsdi4*)
15906 export_dynamic_flag_spec_GCJ=-rdynamic
15907 ;;
15908
15909 cygwin* | mingw* | pw32*)
15910 # When not using gcc, we currently assume that we are using
15911 # Microsoft Visual C++.
15912 # hardcode_libdir_flag_spec is actually meaningless, as there is
15913 # no search path for DLLs.
15914 hardcode_libdir_flag_spec_GCJ=' '
15915 allow_undefined_flag_GCJ=unsupported
15916 # Tell ltmain to make .lib files, not .a files.
15917 libext=lib
15918 # Tell ltmain to make .dll files, not .so files.
15919 shrext=".dll"
15920 # FIXME: Setting linknames here is a bad hack.
15921 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15922 # The linker will automatically build a .lib file if we build a DLL.
15923 old_archive_From_new_cmds_GCJ='true'
15924 # FIXME: Should let the user specify the lib program.
15925 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15926 fix_srcfile_path='`cygpath -w "$srcfile"`'
15927 enable_shared_with_static_runtimes_GCJ=yes
15928 ;;
15929
15930 darwin* | rhapsody*)
15931 if test "$GXX" = yes ; then
15932 archive_cmds_need_lc_GCJ=no
15933 case "$host_os" in
15934 rhapsody* | darwin1.[012])
15935 allow_undefined_flag_GCJ='-undefined suppress'
15936 ;;
15937 *) # Darwin 1.3 on
15938 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15939 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15940 else
15941 case ${MACOSX_DEPLOYMENT_TARGET} in
15942 10.[012])
15943 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15944 ;;
15945 10.*)
15946 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15947 ;;
15948 esac
15949 fi
15950 ;;
15951 esac
15952 lt_int_apple_cc_single_mod=no
15953 output_verbose_link_cmd='echo'
15954 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15955 lt_int_apple_cc_single_mod=yes
15956 fi
15957 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15958 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15959 else
15960 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15961 fi
15962 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15963 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15964 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15965 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15966 else
15967 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15968 fi
15969 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15970 hardcode_direct_GCJ=no
15971 hardcode_automatic_GCJ=yes
15972 hardcode_shlibpath_var_GCJ=unsupported
15973 whole_archive_flag_spec_GCJ='-all_load $convenience'
15974 link_all_deplibs_GCJ=yes
15975 else
15976 ld_shlibs_GCJ=no
15977 fi
15978 ;;
15979
15980 dgux*)
15981 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15982 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15983 hardcode_shlibpath_var_GCJ=no
15984 ;;
15985
15986 freebsd1*)
15987 ld_shlibs_GCJ=no
15988 ;;
15989
15990 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15991 # support. Future versions do this automatically, but an explicit c++rt0.o
15992 # does not break anything, and helps significantly (at the cost of a little
15993 # extra space).
15994 freebsd2.2*)
15995 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15996 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15997 hardcode_direct_GCJ=yes
15998 hardcode_shlibpath_var_GCJ=no
15999 ;;
16000
16001 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16002 freebsd2*)
16003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16004 hardcode_direct_GCJ=yes
16005 hardcode_minus_L_GCJ=yes
16006 hardcode_shlibpath_var_GCJ=no
16007 ;;
16008
16009 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16010 freebsd* | kfreebsd*-gnu)
16011 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16012 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16013 hardcode_direct_GCJ=yes
16014 hardcode_shlibpath_var_GCJ=no
16015 ;;
16016
16017 hpux9*)
16018 if test "$GCC" = yes; then
16019 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'
16020 else
16021 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'
16022 fi
16023 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16024 hardcode_libdir_separator_GCJ=:
16025 hardcode_direct_GCJ=yes
16026
16027 # hardcode_minus_L: Not really in the search PATH,
16028 # but as the default location of the library.
16029 hardcode_minus_L_GCJ=yes
16030 export_dynamic_flag_spec_GCJ='${wl}-E'
16031 ;;
16032
16033 hpux10* | hpux11*)
16034 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16035 case "$host_cpu" in
16036 hppa*64*|ia64*)
16037 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16038 ;;
16039 *)
16040 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16041 ;;
16042 esac
16043 else
16044 case "$host_cpu" in
16045 hppa*64*|ia64*)
16046 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 ;;
16048 *)
16049 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16050 ;;
16051 esac
16052 fi
16053 if test "$with_gnu_ld" = no; then
16054 case "$host_cpu" in
16055 hppa*64*)
16056 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16057 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16058 hardcode_libdir_separator_GCJ=:
16059 hardcode_direct_GCJ=no
16060 hardcode_shlibpath_var_GCJ=no
16061 ;;
16062 ia64*)
16063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16064 hardcode_direct_GCJ=no
16065 hardcode_shlibpath_var_GCJ=no
16066
16067 # hardcode_minus_L: Not really in the search PATH,
16068 # but as the default location of the library.
16069 hardcode_minus_L_GCJ=yes
16070 ;;
16071 *)
16072 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16073 hardcode_libdir_separator_GCJ=:
16074 hardcode_direct_GCJ=yes
16075 export_dynamic_flag_spec_GCJ='${wl}-E'
16076
16077 # hardcode_minus_L: Not really in the search PATH,
16078 # but as the default location of the library.
16079 hardcode_minus_L_GCJ=yes
16080 ;;
16081 esac
16082 fi
16083 ;;
16084
16085 irix5* | irix6* | nonstopux*)
16086 if test "$GCC" = yes; then
16087 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'
16088 else
16089 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'
16090 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16091 fi
16092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16093 hardcode_libdir_separator_GCJ=:
16094 link_all_deplibs_GCJ=yes
16095 ;;
16096
16097 netbsd*)
16098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16099 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16100 else
16101 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16102 fi
16103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16104 hardcode_direct_GCJ=yes
16105 hardcode_shlibpath_var_GCJ=no
16106 ;;
16107
16108 newsos6)
16109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110 hardcode_direct_GCJ=yes
16111 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16112 hardcode_libdir_separator_GCJ=:
16113 hardcode_shlibpath_var_GCJ=no
16114 ;;
16115
16116 openbsd*)
16117 hardcode_direct_GCJ=yes
16118 hardcode_shlibpath_var_GCJ=no
16119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16120 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16121 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16122 export_dynamic_flag_spec_GCJ='${wl}-E'
16123 else
16124 case $host_os in
16125 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16126 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16128 ;;
16129 *)
16130 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16131 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16132 ;;
16133 esac
16134 fi
16135 ;;
16136
16137 os2*)
16138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16139 hardcode_minus_L_GCJ=yes
16140 allow_undefined_flag_GCJ=unsupported
16141 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'
16142 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16143 ;;
16144
16145 osf3*)
16146 if test "$GCC" = yes; then
16147 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16148 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'
16149 else
16150 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16151 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'
16152 fi
16153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16154 hardcode_libdir_separator_GCJ=:
16155 ;;
16156
16157 osf4* | osf5*) # as osf3* with the addition of -msym flag
16158 if test "$GCC" = yes; then
16159 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16160 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'
16161 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16162 else
16163 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16164 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'
16165 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16166 $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'
16167
16168 # Both c and cxx compiler support -rpath directly
16169 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16170 fi
16171 hardcode_libdir_separator_GCJ=:
16172 ;;
16173
16174 sco3.2v5*)
16175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_shlibpath_var_GCJ=no
16177 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16178 runpath_var=LD_RUN_PATH
16179 hardcode_runpath_var=yes
16180 ;;
16181
16182 solaris*)
16183 no_undefined_flag_GCJ=' -z text'
16184 if test "$GCC" = yes; then
16185 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16186 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16187 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16188 else
16189 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16190 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16191 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16192 fi
16193 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16194 hardcode_shlibpath_var_GCJ=no
16195 case $host_os in
16196 solaris2.[0-5] | solaris2.[0-5].*) ;;
16197 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16198 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16199 esac
16200 link_all_deplibs_GCJ=yes
16201 ;;
16202
16203 sunos4*)
16204 if test "x$host_vendor" = xsequent; then
16205 # Use $CC to link under sequent, because it throws in some extra .o
16206 # files that make .init and .fini sections work.
16207 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16208 else
16209 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16210 fi
16211 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16212 hardcode_direct_GCJ=yes
16213 hardcode_minus_L_GCJ=yes
16214 hardcode_shlibpath_var_GCJ=no
16215 ;;
16216
16217 sysv4)
16218 case $host_vendor in
16219 sni)
16220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16221 hardcode_direct_GCJ=yes # is this really true???
16222 ;;
16223 siemens)
16224 ## LD is ld it makes a PLAMLIB
16225 ## CC just makes a GrossModule.
16226 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16227 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16228 hardcode_direct_GCJ=no
16229 ;;
16230 motorola)
16231 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16233 ;;
16234 esac
16235 runpath_var='LD_RUN_PATH'
16236 hardcode_shlibpath_var_GCJ=no
16237 ;;
16238
16239 sysv4.3*)
16240 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16241 hardcode_shlibpath_var_GCJ=no
16242 export_dynamic_flag_spec_GCJ='-Bexport'
16243 ;;
16244
16245 sysv4*MP*)
16246 if test -d /usr/nec; then
16247 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16248 hardcode_shlibpath_var_GCJ=no
16249 runpath_var=LD_RUN_PATH
16250 hardcode_runpath_var=yes
16251 ld_shlibs_GCJ=yes
16252 fi
16253 ;;
16254
16255 sysv4.2uw2*)
16256 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_direct_GCJ=yes
16258 hardcode_minus_L_GCJ=no
16259 hardcode_shlibpath_var_GCJ=no
16260 hardcode_runpath_var=yes
16261 runpath_var=LD_RUN_PATH
16262 ;;
16263
16264 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16265 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16266 if test "$GCC" = yes; then
16267 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16268 else
16269 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16270 fi
16271 runpath_var='LD_RUN_PATH'
16272 hardcode_shlibpath_var_GCJ=no
16273 ;;
16274
16275 sysv5*)
16276 no_undefined_flag_GCJ=' -z text'
16277 # $CC -shared without GNU ld will not create a library from C++
16278 # object files and a static libstdc++, better avoid it by now
16279 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16280 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16281 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16282 hardcode_libdir_flag_spec_GCJ=
16283 hardcode_shlibpath_var_GCJ=no
16284 runpath_var='LD_RUN_PATH'
16285 ;;
16286
16287 uts4*)
16288 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16290 hardcode_shlibpath_var_GCJ=no
16291 ;;
16292
16293 *)
16294 ld_shlibs_GCJ=no
16295 ;;
16296 esac
16297 fi
16298
16299 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16300 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16301 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16302
16303 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16304 if test "$GCC" = yes; then
16305 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16306 fi
16307
16308 #
16309 # Do we need to explicitly link libc?
16310 #
16311 case "x$archive_cmds_need_lc_GCJ" in
16312 x|xyes)
16313 # Assume -lc should be added
16314 archive_cmds_need_lc_GCJ=yes
16315
16316 if test "$enable_shared" = yes && test "$GCC" = yes; then
16317 case $archive_cmds_GCJ in
16318 *'~'*)
16319 # FIXME: we may have to deal with multi-command sequences.
16320 ;;
16321 '$CC '*)
16322 # Test whether the compiler implicitly links with -lc since on some
16323 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16324 # to ld, don't add -lc before -lgcc.
16325 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16326 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16327 $rm conftest*
16328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16329
16330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16331 (eval $ac_compile) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } 2>conftest.err; then
16335 soname=conftest
16336 lib=conftest
16337 libobjs=conftest.$ac_objext
16338 deplibs=
16339 wl=$lt_prog_compiler_wl_GCJ
16340 compiler_flags=-v
16341 linker_flags=-v
16342 verstring=
16343 output_objdir=.
16344 libname=conftest
16345 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16346 allow_undefined_flag_GCJ=
16347 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16348 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }
16352 then
16353 archive_cmds_need_lc_GCJ=no
16354 else
16355 archive_cmds_need_lc_GCJ=yes
16356 fi
16357 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16358 else
16359 cat conftest.err 1>&5
16360 fi
16361 $rm conftest*
16362 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16363 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16364 ;;
16365 esac
16366 fi
16367 ;;
16368 esac
16369
16370 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16371 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16372 library_names_spec=
16373 libname_spec='lib$name'
16374 soname_spec=
16375 shrext=".so"
16376 postinstall_cmds=
16377 postuninstall_cmds=
16378 finish_cmds=
16379 finish_eval=
16380 shlibpath_var=
16381 shlibpath_overrides_runpath=unknown
16382 version_type=none
16383 dynamic_linker="$host_os ld.so"
16384 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16385 if test "$GCC" = yes; then
16386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16387 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16388 # if the path contains ";" then we assume it to be the separator
16389 # otherwise default to the standard path separator (i.e. ":") - it is
16390 # assumed that no part of a normal pathname contains ";" but that should
16391 # okay in the real world where ";" in dirpaths is itself problematic.
16392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16393 else
16394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16395 fi
16396 else
16397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16398 fi
16399 need_lib_prefix=unknown
16400 hardcode_into_libs=no
16401
16402 # when you set need_version to no, make sure it does not cause -set_version
16403 # flags to be left without arguments
16404 need_version=unknown
16405
16406 case $host_os in
16407 aix3*)
16408 version_type=linux
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16410 shlibpath_var=LIBPATH
16411
16412 # AIX 3 has no versioning support, so we append a major version to the name.
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 ;;
16415
16416 aix4* | aix5*)
16417 version_type=linux
16418 need_lib_prefix=no
16419 need_version=no
16420 hardcode_into_libs=yes
16421 if test "$host_cpu" = ia64; then
16422 # AIX 5 supports IA64
16423 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 else
16426 # With GCC up to 2.95.x, collect2 would create an import file
16427 # for dependence libraries. The import file would start with
16428 # the line `#! .'. This would cause the generated library to
16429 # depend on `.', always an invalid library. This was fixed in
16430 # development snapshots of GCC prior to 3.0.
16431 case $host_os in
16432 aix4 | aix4.[01] | aix4.[01].*)
16433 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16434 echo ' yes '
16435 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16436 :
16437 else
16438 can_build_shared=no
16439 fi
16440 ;;
16441 esac
16442 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16443 # soname into executable. Probably we can add versioning support to
16444 # collect2, so additional links can be useful in future.
16445 if test "$aix_use_runtimelinking" = yes; then
16446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16447 # instead of lib<name>.a to let people know that these are not
16448 # typical AIX shared libraries.
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450 else
16451 # We preserve .a as extension for shared libraries through AIX4.2
16452 # and later when we are not doing run time linking.
16453 library_names_spec='${libname}${release}.a $libname.a'
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 fi
16456 shlibpath_var=LIBPATH
16457 fi
16458 ;;
16459
16460 amigaos*)
16461 library_names_spec='$libname.ixlibrary $libname.a'
16462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16463 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'
16464 ;;
16465
16466 beos*)
16467 library_names_spec='${libname}${shared_ext}'
16468 dynamic_linker="$host_os ld.so"
16469 shlibpath_var=LIBRARY_PATH
16470 ;;
16471
16472 bsdi4*)
16473 version_type=linux
16474 need_version=no
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16478 shlibpath_var=LD_LIBRARY_PATH
16479 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16480 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16481 # the default ld.so.conf also contains /usr/contrib/lib and
16482 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16483 # libtool to hard-code these into programs
16484 ;;
16485
16486 cygwin* | mingw* | pw32*)
16487 version_type=windows
16488 shrext=".dll"
16489 need_version=no
16490 need_lib_prefix=no
16491
16492 case $GCC,$host_os in
16493 yes,cygwin* | yes,mingw* | yes,pw32*)
16494 library_names_spec='$libname.dll.a'
16495 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16496 postinstall_cmds='base_file=`basename \${file}`~
16497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16498 dldir=$destdir/`dirname \$dlpath`~
16499 test -d \$dldir || mkdir -p \$dldir~
16500 $install_prog $dir/$dlname \$dldir/$dlname'
16501 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16502 dlpath=$dir/\$dldll~
16503 $rm \$dlpath'
16504 shlibpath_overrides_runpath=yes
16505
16506 case $host_os in
16507 cygwin*)
16508 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16509 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16510 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16511 ;;
16512 mingw*)
16513 # MinGW DLLs use traditional 'lib' prefix
16514 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16515 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16516 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16517 # It is most probably a Windows format PATH printed by
16518 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16519 # path with ; separators, and with drive letters. We can handle the
16520 # drive letters (cygwin fileutils understands them), so leave them,
16521 # especially as we might pass files found there to a mingw objdump,
16522 # which wouldn't understand a cygwinified path. Ahh.
16523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16524 else
16525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16526 fi
16527 ;;
16528 pw32*)
16529 # pw32 DLLs use 'pw' prefix rather than 'lib'
16530 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16531 ;;
16532 esac
16533 ;;
16534
16535 *)
16536 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16537 ;;
16538 esac
16539 dynamic_linker='Win32 ld.exe'
16540 # FIXME: first we should search . and the directory the executable is in
16541 shlibpath_var=PATH
16542 ;;
16543
16544 darwin* | rhapsody*)
16545 dynamic_linker="$host_os dyld"
16546 version_type=darwin
16547 need_lib_prefix=no
16548 need_version=no
16549 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16550 soname_spec='${libname}${release}${major}$shared_ext'
16551 shlibpath_overrides_runpath=yes
16552 shlibpath_var=DYLD_LIBRARY_PATH
16553 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16554 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16555 if test "$GCC" = yes; then
16556 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16557 else
16558 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16559 fi
16560 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16561 ;;
16562
16563 dgux*)
16564 version_type=linux
16565 need_lib_prefix=no
16566 need_version=no
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 ;;
16571
16572 freebsd1*)
16573 dynamic_linker=no
16574 ;;
16575
16576 kfreebsd*-gnu)
16577 version_type=linux
16578 need_lib_prefix=no
16579 need_version=no
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 shlibpath_var=LD_LIBRARY_PATH
16583 shlibpath_overrides_runpath=no
16584 hardcode_into_libs=yes
16585 dynamic_linker='GNU ld.so'
16586 ;;
16587
16588 freebsd*)
16589 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16590 version_type=freebsd-$objformat
16591 case $version_type in
16592 freebsd-elf*)
16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16594 need_version=no
16595 need_lib_prefix=no
16596 ;;
16597 freebsd-*)
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16599 need_version=yes
16600 ;;
16601 esac
16602 shlibpath_var=LD_LIBRARY_PATH
16603 case $host_os in
16604 freebsd2*)
16605 shlibpath_overrides_runpath=yes
16606 ;;
16607 freebsd3.01* | freebsdelf3.01*)
16608 shlibpath_overrides_runpath=yes
16609 hardcode_into_libs=yes
16610 ;;
16611 *) # from 3.2 on
16612 shlibpath_overrides_runpath=no
16613 hardcode_into_libs=yes
16614 ;;
16615 esac
16616 ;;
16617
16618 gnu*)
16619 version_type=linux
16620 need_lib_prefix=no
16621 need_version=no
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 hardcode_into_libs=yes
16626 ;;
16627
16628 hpux9* | hpux10* | hpux11*)
16629 # Give a soname corresponding to the major version so that dld.sl refuses to
16630 # link against other versions.
16631 version_type=sunos
16632 need_lib_prefix=no
16633 need_version=no
16634 case "$host_cpu" in
16635 ia64*)
16636 shrext='.so'
16637 hardcode_into_libs=yes
16638 dynamic_linker="$host_os dld.so"
16639 shlibpath_var=LD_LIBRARY_PATH
16640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 if test "X$HPUX_IA64_MODE" = X32; then
16644 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16645 else
16646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16647 fi
16648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16649 ;;
16650 hppa*64*)
16651 shrext='.sl'
16652 hardcode_into_libs=yes
16653 dynamic_linker="$host_os dld.sl"
16654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16660 ;;
16661 *)
16662 shrext='.sl'
16663 dynamic_linker="$host_os dld.sl"
16664 shlibpath_var=SHLIB_PATH
16665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 ;;
16669 esac
16670 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16671 postinstall_cmds='chmod 555 $lib'
16672 ;;
16673
16674 irix5* | irix6* | nonstopux*)
16675 case $host_os in
16676 nonstopux*) version_type=nonstopux ;;
16677 *)
16678 if test "$lt_cv_prog_gnu_ld" = yes; then
16679 version_type=linux
16680 else
16681 version_type=irix
16682 fi ;;
16683 esac
16684 need_lib_prefix=no
16685 need_version=no
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16688 case $host_os in
16689 irix5* | nonstopux*)
16690 libsuff= shlibsuff=
16691 ;;
16692 *)
16693 case $LD in # libtool.m4 will add one of these switches to LD
16694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16695 libsuff= shlibsuff= libmagic=32-bit;;
16696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16697 libsuff=32 shlibsuff=N32 libmagic=N32;;
16698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16700 *) libsuff= shlibsuff= libmagic=never-match;;
16701 esac
16702 ;;
16703 esac
16704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16705 shlibpath_overrides_runpath=no
16706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16708 hardcode_into_libs=yes
16709 ;;
16710
16711 # No shared lib support for Linux oldld, aout, or coff.
16712 linux*oldld* | linux*aout* | linux*coff*)
16713 dynamic_linker=no
16714 ;;
16715
16716 # This must be Linux ELF.
16717 linux*)
16718 version_type=linux
16719 need_lib_prefix=no
16720 need_version=no
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16722 soname_spec='${libname}${release}${shared_ext}$major'
16723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16724 shlibpath_var=LD_LIBRARY_PATH
16725 shlibpath_overrides_runpath=no
16726 # This implies no fast_install, which is unacceptable.
16727 # Some rework will be needed to allow for fast_install
16728 # before this can be enabled.
16729 hardcode_into_libs=yes
16730
16731 # We used to test for /lib/ld.so.1 and disable shared libraries on
16732 # powerpc, because MkLinux only supported shared libraries with the
16733 # GNU dynamic linker. Since this was broken with cross compilers,
16734 # most powerpc-linux boxes support dynamic linking these days and
16735 # people can always --disable-shared, the test was removed, and we
16736 # assume the GNU/Linux dynamic linker is in use.
16737 dynamic_linker='GNU/Linux ld.so'
16738 ;;
16739
16740 netbsd*)
16741 version_type=sunos
16742 need_lib_prefix=no
16743 need_version=no
16744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16747 dynamic_linker='NetBSD (a.out) ld.so'
16748 else
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 dynamic_linker='NetBSD ld.elf_so'
16752 fi
16753 shlibpath_var=LD_LIBRARY_PATH
16754 shlibpath_overrides_runpath=yes
16755 hardcode_into_libs=yes
16756 ;;
16757
16758 newsos6)
16759 version_type=linux
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 shlibpath_overrides_runpath=yes
16763 ;;
16764
16765 nto-qnx*)
16766 version_type=linux
16767 need_lib_prefix=no
16768 need_version=no
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 shlibpath_var=LD_LIBRARY_PATH
16772 shlibpath_overrides_runpath=yes
16773 ;;
16774
16775 openbsd*)
16776 version_type=sunos
16777 need_lib_prefix=no
16778 need_version=no
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16781 shlibpath_var=LD_LIBRARY_PATH
16782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16783 case $host_os in
16784 openbsd2.[89] | openbsd2.[89].*)
16785 shlibpath_overrides_runpath=no
16786 ;;
16787 *)
16788 shlibpath_overrides_runpath=yes
16789 ;;
16790 esac
16791 else
16792 shlibpath_overrides_runpath=yes
16793 fi
16794 ;;
16795
16796 os2*)
16797 libname_spec='$name'
16798 shrext=".dll"
16799 need_lib_prefix=no
16800 library_names_spec='$libname${shared_ext} $libname.a'
16801 dynamic_linker='OS/2 ld.exe'
16802 shlibpath_var=LIBPATH
16803 ;;
16804
16805 osf3* | osf4* | osf5*)
16806 version_type=osf
16807 need_lib_prefix=no
16808 need_version=no
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16813 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16814 ;;
16815
16816 sco3.2v5*)
16817 version_type=osf
16818 soname_spec='${libname}${release}${shared_ext}$major'
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 ;;
16822
16823 solaris*)
16824 version_type=linux
16825 need_lib_prefix=no
16826 need_version=no
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 shlibpath_var=LD_LIBRARY_PATH
16830 shlibpath_overrides_runpath=yes
16831 hardcode_into_libs=yes
16832 # ldd complains unless libraries are executable
16833 postinstall_cmds='chmod +x $lib'
16834 ;;
16835
16836 sunos4*)
16837 version_type=sunos
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16839 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 shlibpath_overrides_runpath=yes
16842 if test "$with_gnu_ld" = yes; then
16843 need_lib_prefix=no
16844 fi
16845 need_version=yes
16846 ;;
16847
16848 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16849 version_type=linux
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 case $host_vendor in
16854 sni)
16855 shlibpath_overrides_runpath=no
16856 need_lib_prefix=no
16857 export_dynamic_flag_spec='${wl}-Blargedynsym'
16858 runpath_var=LD_RUN_PATH
16859 ;;
16860 siemens)
16861 need_lib_prefix=no
16862 ;;
16863 motorola)
16864 need_lib_prefix=no
16865 need_version=no
16866 shlibpath_overrides_runpath=no
16867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16868 ;;
16869 esac
16870 ;;
16871
16872 sysv4*MP*)
16873 if test -d /usr/nec ;then
16874 version_type=linux
16875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16876 soname_spec='$libname${shared_ext}.$major'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 fi
16879 ;;
16880
16881 uts4*)
16882 version_type=linux
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 shlibpath_var=LD_LIBRARY_PATH
16886 ;;
16887
16888 *)
16889 dynamic_linker=no
16890 ;;
16891 esac
16892 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16893 echo "${ECHO_T}$dynamic_linker" >&6
16894 test "$dynamic_linker" = no && can_build_shared=no
16895
16896 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16897 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16898 hardcode_action_GCJ=
16899 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16900 test -n "$runpath_var GCJ" || \
16901 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16902
16903 # We can hardcode non-existant directories.
16904 if test "$hardcode_direct_GCJ" != no &&
16905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16906 # have to relink, otherwise we might link with an installed library
16907 # when we should be linking with a yet-to-be-installed one
16908 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16909 test "$hardcode_minus_L_GCJ" != no; then
16910 # Linking always hardcodes the temporary library directory.
16911 hardcode_action_GCJ=relink
16912 else
16913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16914 hardcode_action_GCJ=immediate
16915 fi
16916 else
16917 # We cannot hardcode anything, or else we can only hardcode existing
16918 # directories.
16919 hardcode_action_GCJ=unsupported
16920 fi
16921 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16922 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16923
16924 if test "$hardcode_action_GCJ" = relink; then
16925 # Fast installation is not supported
16926 enable_fast_install=no
16927 elif test "$shlibpath_overrides_runpath" = yes ||
16928 test "$enable_shared" = no; then
16929 # Fast installation is not necessary
16930 enable_fast_install=needless
16931 fi
16932
16933 striplib=
16934 old_striplib=
16935 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16936 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16937 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16938 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16939 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16940 echo "$as_me:$LINENO: result: yes" >&5
16941 echo "${ECHO_T}yes" >&6
16942 else
16943 # FIXME - insert some real tests, host_os isn't really good enough
16944 case $host_os in
16945 darwin*)
16946 if test -n "$STRIP" ; then
16947 striplib="$STRIP -x"
16948 echo "$as_me:$LINENO: result: yes" >&5
16949 echo "${ECHO_T}yes" >&6
16950 else
16951 echo "$as_me:$LINENO: result: no" >&5
16952 echo "${ECHO_T}no" >&6
16953 fi
16954 ;;
16955 *)
16956 echo "$as_me:$LINENO: result: no" >&5
16957 echo "${ECHO_T}no" >&6
16958 ;;
16959 esac
16960 fi
16961
16962 if test "x$enable_dlopen" != xyes; then
16963 enable_dlopen=unknown
16964 enable_dlopen_self=unknown
16965 enable_dlopen_self_static=unknown
16966 else
16967 lt_cv_dlopen=no
16968 lt_cv_dlopen_libs=
16969
16970 case $host_os in
16971 beos*)
16972 lt_cv_dlopen="load_add_on"
16973 lt_cv_dlopen_libs=
16974 lt_cv_dlopen_self=yes
16975 ;;
16976
16977 mingw* | pw32*)
16978 lt_cv_dlopen="LoadLibrary"
16979 lt_cv_dlopen_libs=
16980 ;;
16981
16982 cygwin*)
16983 lt_cv_dlopen="dlopen"
16984 lt_cv_dlopen_libs=
16985 ;;
16986
16987 darwin*)
16988 # if libdl is installed we need to link against it
16989 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16990 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16991 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994 ac_check_lib_save_LIBS=$LIBS
16995 LIBS="-ldl $LIBS"
16996 cat >conftest.$ac_ext <<_ACEOF
16997 #line $LINENO "configure"
16998 /* confdefs.h. */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003
17004 /* Override any gcc2 internal prototype to avoid an error. */
17005 #ifdef __cplusplus
17006 extern "C"
17007 #endif
17008 /* We use char because int might match the return type of a gcc2
17009 builtin and then its argument prototype would still apply. */
17010 char dlopen ();
17011 int
17012 main ()
17013 {
17014 dlopen ();
17015 ;
17016 return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17021 (eval $ac_link) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_lib_dl_dlopen=yes
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 ac_cv_lib_dl_dlopen=no
17037 fi
17038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17039 LIBS=$ac_check_lib_save_LIBS
17040 fi
17041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17043 if test $ac_cv_lib_dl_dlopen = yes; then
17044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17045 else
17046
17047 lt_cv_dlopen="dyld"
17048 lt_cv_dlopen_libs=
17049 lt_cv_dlopen_self=yes
17050
17051 fi
17052
17053 ;;
17054
17055 *)
17056 echo "$as_me:$LINENO: checking for shl_load" >&5
17057 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17058 if test "${ac_cv_func_shl_load+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17063 /* confdefs.h. */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 /* System header to define __stub macros and hopefully few prototypes,
17069 which can conflict with char shl_load (); below.
17070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17071 <limits.h> exists even on freestanding compilers. */
17072 #ifdef __STDC__
17073 # include <limits.h>
17074 #else
17075 # include <assert.h>
17076 #endif
17077 /* Override any gcc2 internal prototype to avoid an error. */
17078 #ifdef __cplusplus
17079 extern "C"
17080 {
17081 #endif
17082 /* We use char because int might match the return type of a gcc2
17083 builtin and then its argument prototype would still apply. */
17084 char shl_load ();
17085 /* The GNU C library defines this for functions which it implements
17086 to always fail with ENOSYS. Some functions are actually named
17087 something starting with __ and the normal name is an alias. */
17088 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17089 choke me
17090 #else
17091 char (*f) () = shl_load;
17092 #endif
17093 #ifdef __cplusplus
17094 }
17095 #endif
17096
17097 int
17098 main ()
17099 {
17100 return f != shl_load;
17101 ;
17102 return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17107 (eval $ac_link) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -s conftest$ac_exeext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_func_shl_load=yes
17118 else
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 ac_cv_func_shl_load=no
17123 fi
17124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17125 fi
17126 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17127 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17128 if test $ac_cv_func_shl_load = yes; then
17129 lt_cv_dlopen="shl_load"
17130 else
17131 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17132 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17133 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136 ac_check_lib_save_LIBS=$LIBS
17137 LIBS="-ldld $LIBS"
17138 cat >conftest.$ac_ext <<_ACEOF
17139 #line $LINENO "configure"
17140 /* confdefs.h. */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145
17146 /* Override any gcc2 internal prototype to avoid an error. */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 /* We use char because int might match the return type of a gcc2
17151 builtin and then its argument prototype would still apply. */
17152 char shl_load ();
17153 int
17154 main ()
17155 {
17156 shl_load ();
17157 ;
17158 return 0;
17159 }
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17163 (eval $ac_link) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -s conftest$ac_exeext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_cv_lib_dld_shl_load=yes
17174 else
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 ac_cv_lib_dld_shl_load=no
17179 fi
17180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17181 LIBS=$ac_check_lib_save_LIBS
17182 fi
17183 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17184 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17185 if test $ac_cv_lib_dld_shl_load = yes; then
17186 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17187 else
17188 echo "$as_me:$LINENO: checking for dlopen" >&5
17189 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17190 if test "${ac_cv_func_dlopen+set}" = set; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193 cat >conftest.$ac_ext <<_ACEOF
17194 #line $LINENO "configure"
17195 /* confdefs.h. */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 /* System header to define __stub macros and hopefully few prototypes,
17201 which can conflict with char dlopen (); below.
17202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17203 <limits.h> exists even on freestanding compilers. */
17204 #ifdef __STDC__
17205 # include <limits.h>
17206 #else
17207 # include <assert.h>
17208 #endif
17209 /* Override any gcc2 internal prototype to avoid an error. */
17210 #ifdef __cplusplus
17211 extern "C"
17212 {
17213 #endif
17214 /* We use char because int might match the return type of a gcc2
17215 builtin and then its argument prototype would still apply. */
17216 char dlopen ();
17217 /* The GNU C library defines this for functions which it implements
17218 to always fail with ENOSYS. Some functions are actually named
17219 something starting with __ and the normal name is an alias. */
17220 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17221 choke me
17222 #else
17223 char (*f) () = dlopen;
17224 #endif
17225 #ifdef __cplusplus
17226 }
17227 #endif
17228
17229 int
17230 main ()
17231 {
17232 return f != dlopen;
17233 ;
17234 return 0;
17235 }
17236 _ACEOF
17237 rm -f conftest.$ac_objext conftest$ac_exeext
17238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17239 (eval $ac_link) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -s conftest$ac_exeext'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 ac_cv_func_dlopen=yes
17250 else
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17253
17254 ac_cv_func_dlopen=no
17255 fi
17256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17257 fi
17258 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17259 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17260 if test $ac_cv_func_dlopen = yes; then
17261 lt_cv_dlopen="dlopen"
17262 else
17263 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17264 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 ac_check_lib_save_LIBS=$LIBS
17269 LIBS="-ldl $LIBS"
17270 cat >conftest.$ac_ext <<_ACEOF
17271 #line $LINENO "configure"
17272 /* confdefs.h. */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277
17278 /* Override any gcc2 internal prototype to avoid an error. */
17279 #ifdef __cplusplus
17280 extern "C"
17281 #endif
17282 /* We use char because int might match the return type of a gcc2
17283 builtin and then its argument prototype would still apply. */
17284 char dlopen ();
17285 int
17286 main ()
17287 {
17288 dlopen ();
17289 ;
17290 return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295 (eval $ac_link) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -s conftest$ac_exeext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 ac_cv_lib_dl_dlopen=yes
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 ac_cv_lib_dl_dlopen=no
17311 fi
17312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17313 LIBS=$ac_check_lib_save_LIBS
17314 fi
17315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17317 if test $ac_cv_lib_dl_dlopen = yes; then
17318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17319 else
17320 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17323 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 else
17325 ac_check_lib_save_LIBS=$LIBS
17326 LIBS="-lsvld $LIBS"
17327 cat >conftest.$ac_ext <<_ACEOF
17328 #line $LINENO "configure"
17329 /* confdefs.h. */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334
17335 /* Override any gcc2 internal prototype to avoid an error. */
17336 #ifdef __cplusplus
17337 extern "C"
17338 #endif
17339 /* We use char because int might match the return type of a gcc2
17340 builtin and then its argument prototype would still apply. */
17341 char dlopen ();
17342 int
17343 main ()
17344 {
17345 dlopen ();
17346 ;
17347 return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352 (eval $ac_link) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -s conftest$ac_exeext'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 ac_cv_lib_svld_dlopen=yes
17363 else
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 ac_cv_lib_svld_dlopen=no
17368 fi
17369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17370 LIBS=$ac_check_lib_save_LIBS
17371 fi
17372 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17373 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17374 if test $ac_cv_lib_svld_dlopen = yes; then
17375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17376 else
17377 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17378 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17379 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382 ac_check_lib_save_LIBS=$LIBS
17383 LIBS="-ldld $LIBS"
17384 cat >conftest.$ac_ext <<_ACEOF
17385 #line $LINENO "configure"
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391
17392 /* Override any gcc2 internal prototype to avoid an error. */
17393 #ifdef __cplusplus
17394 extern "C"
17395 #endif
17396 /* We use char because int might match the return type of a gcc2
17397 builtin and then its argument prototype would still apply. */
17398 char dld_link ();
17399 int
17400 main ()
17401 {
17402 dld_link ();
17403 ;
17404 return 0;
17405 }
17406 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409 (eval $ac_link) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
17413 { ac_try='test -s conftest$ac_exeext'
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 ac_cv_lib_dld_dld_link=yes
17420 else
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424 ac_cv_lib_dld_dld_link=no
17425 fi
17426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17427 LIBS=$ac_check_lib_save_LIBS
17428 fi
17429 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17430 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17431 if test $ac_cv_lib_dld_dld_link = yes; then
17432 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17433 fi
17434
17435
17436 fi
17437
17438
17439 fi
17440
17441
17442 fi
17443
17444
17445 fi
17446
17447
17448 fi
17449
17450 ;;
17451 esac
17452
17453 if test "x$lt_cv_dlopen" != xno; then
17454 enable_dlopen=yes
17455 else
17456 enable_dlopen=no
17457 fi
17458
17459 case $lt_cv_dlopen in
17460 dlopen)
17461 save_CPPFLAGS="$CPPFLAGS"
17462 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17463
17464 save_LDFLAGS="$LDFLAGS"
17465 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17466
17467 save_LIBS="$LIBS"
17468 LIBS="$lt_cv_dlopen_libs $LIBS"
17469
17470 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17471 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17472 if test "${lt_cv_dlopen_self+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 if test "$cross_compiling" = yes; then :
17476 lt_cv_dlopen_self=cross
17477 else
17478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17479 lt_status=$lt_dlunknown
17480 cat > conftest.$ac_ext <<EOF
17481 #line 17481 "configure"
17482 #include "confdefs.h"
17483
17484 #if HAVE_DLFCN_H
17485 #include <dlfcn.h>
17486 #endif
17487
17488 #include <stdio.h>
17489
17490 #ifdef RTLD_GLOBAL
17491 # define LT_DLGLOBAL RTLD_GLOBAL
17492 #else
17493 # ifdef DL_GLOBAL
17494 # define LT_DLGLOBAL DL_GLOBAL
17495 # else
17496 # define LT_DLGLOBAL 0
17497 # endif
17498 #endif
17499
17500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17501 find out it does not work in some platform. */
17502 #ifndef LT_DLLAZY_OR_NOW
17503 # ifdef RTLD_LAZY
17504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17505 # else
17506 # ifdef DL_LAZY
17507 # define LT_DLLAZY_OR_NOW DL_LAZY
17508 # else
17509 # ifdef RTLD_NOW
17510 # define LT_DLLAZY_OR_NOW RTLD_NOW
17511 # else
17512 # ifdef DL_NOW
17513 # define LT_DLLAZY_OR_NOW DL_NOW
17514 # else
17515 # define LT_DLLAZY_OR_NOW 0
17516 # endif
17517 # endif
17518 # endif
17519 # endif
17520 #endif
17521
17522 #ifdef __cplusplus
17523 extern "C" void exit (int);
17524 #endif
17525
17526 void fnord() { int i=42;}
17527 int main ()
17528 {
17529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17530 int status = $lt_dlunknown;
17531
17532 if (self)
17533 {
17534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17535 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17536 /* dlclose (self); */
17537 }
17538
17539 exit (status);
17540 }
17541 EOF
17542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17543 (eval $ac_link) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17547 (./conftest; exit; ) 2>/dev/null
17548 lt_status=$?
17549 case x$lt_status in
17550 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17551 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17552 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17553 esac
17554 else :
17555 # compilation failed
17556 lt_cv_dlopen_self=no
17557 fi
17558 fi
17559 rm -fr conftest*
17560
17561
17562 fi
17563 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17564 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17565
17566 if test "x$lt_cv_dlopen_self" = xyes; then
17567 LDFLAGS="$LDFLAGS $link_static_flag"
17568 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17569 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17570 if test "${lt_cv_dlopen_self_static+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573 if test "$cross_compiling" = yes; then :
17574 lt_cv_dlopen_self_static=cross
17575 else
17576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17577 lt_status=$lt_dlunknown
17578 cat > conftest.$ac_ext <<EOF
17579 #line 17579 "configure"
17580 #include "confdefs.h"
17581
17582 #if HAVE_DLFCN_H
17583 #include <dlfcn.h>
17584 #endif
17585
17586 #include <stdio.h>
17587
17588 #ifdef RTLD_GLOBAL
17589 # define LT_DLGLOBAL RTLD_GLOBAL
17590 #else
17591 # ifdef DL_GLOBAL
17592 # define LT_DLGLOBAL DL_GLOBAL
17593 # else
17594 # define LT_DLGLOBAL 0
17595 # endif
17596 #endif
17597
17598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17599 find out it does not work in some platform. */
17600 #ifndef LT_DLLAZY_OR_NOW
17601 # ifdef RTLD_LAZY
17602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17603 # else
17604 # ifdef DL_LAZY
17605 # define LT_DLLAZY_OR_NOW DL_LAZY
17606 # else
17607 # ifdef RTLD_NOW
17608 # define LT_DLLAZY_OR_NOW RTLD_NOW
17609 # else
17610 # ifdef DL_NOW
17611 # define LT_DLLAZY_OR_NOW DL_NOW
17612 # else
17613 # define LT_DLLAZY_OR_NOW 0
17614 # endif
17615 # endif
17616 # endif
17617 # endif
17618 #endif
17619
17620 #ifdef __cplusplus
17621 extern "C" void exit (int);
17622 #endif
17623
17624 void fnord() { int i=42;}
17625 int main ()
17626 {
17627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17628 int status = $lt_dlunknown;
17629
17630 if (self)
17631 {
17632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17633 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17634 /* dlclose (self); */
17635 }
17636
17637 exit (status);
17638 }
17639 EOF
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17645 (./conftest; exit; ) 2>/dev/null
17646 lt_status=$?
17647 case x$lt_status in
17648 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17649 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17650 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17651 esac
17652 else :
17653 # compilation failed
17654 lt_cv_dlopen_self_static=no
17655 fi
17656 fi
17657 rm -fr conftest*
17658
17659
17660 fi
17661 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17662 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17663 fi
17664
17665 CPPFLAGS="$save_CPPFLAGS"
17666 LDFLAGS="$save_LDFLAGS"
17667 LIBS="$save_LIBS"
17668 ;;
17669 esac
17670
17671 case $lt_cv_dlopen_self in
17672 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17673 *) enable_dlopen_self=unknown ;;
17674 esac
17675
17676 case $lt_cv_dlopen_self_static in
17677 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17678 *) enable_dlopen_self_static=unknown ;;
17679 esac
17680 fi
17681
17682
17683 # The else clause should only fire when bootstrapping the
17684 # libtool distribution, otherwise you forgot to ship ltmain.sh
17685 # with your package, and you will get complaints that there are
17686 # no rules to generate ltmain.sh.
17687 if test -f "$ltmain"; then
17688 # See if we are running on zsh, and set the options which allow our commands through
17689 # without removal of \ escapes.
17690 if test -n "${ZSH_VERSION+set}" ; then
17691 setopt NO_GLOB_SUBST
17692 fi
17693 # Now quote all the things that may contain metacharacters while being
17694 # careful not to overquote the AC_SUBSTed values. We take copies of the
17695 # variables and quote the copies for generation of the libtool script.
17696 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17697 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17698 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17699 deplibs_check_method reload_flag reload_cmds need_locks \
17700 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17701 lt_cv_sys_global_symbol_to_c_name_address \
17702 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17703 old_postinstall_cmds old_postuninstall_cmds \
17704 compiler_GCJ \
17705 CC_GCJ \
17706 LD_GCJ \
17707 lt_prog_compiler_wl_GCJ \
17708 lt_prog_compiler_pic_GCJ \
17709 lt_prog_compiler_static_GCJ \
17710 lt_prog_compiler_no_builtin_flag_GCJ \
17711 export_dynamic_flag_spec_GCJ \
17712 thread_safe_flag_spec_GCJ \
17713 whole_archive_flag_spec_GCJ \
17714 enable_shared_with_static_runtimes_GCJ \
17715 old_archive_cmds_GCJ \
17716 old_archive_from_new_cmds_GCJ \
17717 predep_objects_GCJ \
17718 postdep_objects_GCJ \
17719 predeps_GCJ \
17720 postdeps_GCJ \
17721 compiler_lib_search_path_GCJ \
17722 archive_cmds_GCJ \
17723 archive_expsym_cmds_GCJ \
17724 postinstall_cmds_GCJ \
17725 postuninstall_cmds_GCJ \
17726 old_archive_from_expsyms_cmds_GCJ \
17727 allow_undefined_flag_GCJ \
17728 no_undefined_flag_GCJ \
17729 export_symbols_cmds_GCJ \
17730 hardcode_libdir_flag_spec_GCJ \
17731 hardcode_libdir_flag_spec_ld_GCJ \
17732 hardcode_libdir_separator_GCJ \
17733 hardcode_automatic_GCJ \
17734 module_cmds_GCJ \
17735 module_expsym_cmds_GCJ \
17736 lt_cv_prog_compiler_c_o_GCJ \
17737 exclude_expsyms_GCJ \
17738 include_expsyms_GCJ; do
17739
17740 case $var in
17741 old_archive_cmds_GCJ | \
17742 old_archive_from_new_cmds_GCJ | \
17743 archive_cmds_GCJ | \
17744 archive_expsym_cmds_GCJ | \
17745 module_cmds_GCJ | \
17746 module_expsym_cmds_GCJ | \
17747 old_archive_from_expsyms_cmds_GCJ | \
17748 export_symbols_cmds_GCJ | \
17749 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17750 postinstall_cmds | postuninstall_cmds | \
17751 old_postinstall_cmds | old_postuninstall_cmds | \
17752 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17753 # Double-quote double-evaled strings.
17754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17755 ;;
17756 *)
17757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17758 ;;
17759 esac
17760 done
17761
17762 case $lt_echo in
17763 *'\$0 --fallback-echo"')
17764 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17765 ;;
17766 esac
17767
17768 cfgfile="$ofile"
17769
17770 cat <<__EOF__ >> "$cfgfile"
17771 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17772
17773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17774
17775 # Shell to use when invoking shell scripts.
17776 SHELL=$lt_SHELL
17777
17778 # Whether or not to build shared libraries.
17779 build_libtool_libs=$enable_shared
17780
17781 # Whether or not to build static libraries.
17782 build_old_libs=$enable_static
17783
17784 # Whether or not to add -lc for building shared libraries.
17785 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17786
17787 # Whether or not to disallow shared libs when runtime libs are static
17788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17789
17790 # Whether or not to optimize for fast installation.
17791 fast_install=$enable_fast_install
17792
17793 # The host system.
17794 host_alias=$host_alias
17795 host=$host
17796
17797 # An echo program that does not interpret backslashes.
17798 echo=$lt_echo
17799
17800 # The archiver.
17801 AR=$lt_AR
17802 AR_FLAGS=$lt_AR_FLAGS
17803
17804 # A C compiler.
17805 LTCC=$lt_LTCC
17806
17807 # A language-specific compiler.
17808 CC=$lt_compiler_GCJ
17809
17810 # Is the compiler the GNU C compiler?
17811 with_gcc=$GCC_GCJ
17812
17813 # An ERE matcher.
17814 EGREP=$lt_EGREP
17815
17816 # The linker used to build libraries.
17817 LD=$lt_LD_GCJ
17818
17819 # Whether we need hard or soft links.
17820 LN_S=$lt_LN_S
17821
17822 # A BSD-compatible nm program.
17823 NM=$lt_NM
17824
17825 # A symbol stripping program
17826 STRIP="$STRIP"
17827
17828 # Used to examine libraries when file_magic_cmd begins "file"
17829 MAGIC_CMD=$MAGIC_CMD
17830
17831 # Used on cygwin: DLL creation program.
17832 DLLTOOL="$DLLTOOL"
17833
17834 # Used on cygwin: object dumper.
17835 OBJDUMP="$OBJDUMP"
17836
17837 # Used on cygwin: assembler.
17838 AS="$AS"
17839
17840 # The name of the directory that contains temporary libtool files.
17841 objdir=$objdir
17842
17843 # How to create reloadable object files.
17844 reload_flag=$lt_reload_flag
17845 reload_cmds=$lt_reload_cmds
17846
17847 # How to pass a linker flag through the compiler.
17848 wl=$lt_lt_prog_compiler_wl_GCJ
17849
17850 # Object file suffix (normally "o").
17851 objext="$ac_objext"
17852
17853 # Old archive suffix (normally "a").
17854 libext="$libext"
17855
17856 # Shared library suffix (normally ".so").
17857 shrext='$shrext'
17858
17859 # Executable file suffix (normally "").
17860 exeext="$exeext"
17861
17862 # Additional compiler flags for building library objects.
17863 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17864 pic_mode=$pic_mode
17865
17866 # What is the maximum length of a command?
17867 max_cmd_len=$lt_cv_sys_max_cmd_len
17868
17869 # Does compiler simultaneously support -c and -o options?
17870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17871
17872 # Must we lock files when doing compilation ?
17873 need_locks=$lt_need_locks
17874
17875 # Do we need the lib prefix for modules?
17876 need_lib_prefix=$need_lib_prefix
17877
17878 # Do we need a version for libraries?
17879 need_version=$need_version
17880
17881 # Whether dlopen is supported.
17882 dlopen_support=$enable_dlopen
17883
17884 # Whether dlopen of programs is supported.
17885 dlopen_self=$enable_dlopen_self
17886
17887 # Whether dlopen of statically linked programs is supported.
17888 dlopen_self_static=$enable_dlopen_self_static
17889
17890 # Compiler flag to prevent dynamic linking.
17891 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17892
17893 # Compiler flag to turn off builtin functions.
17894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17895
17896 # Compiler flag to allow reflexive dlopens.
17897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17898
17899 # Compiler flag to generate shared objects directly from archives.
17900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17901
17902 # Compiler flag to generate thread-safe objects.
17903 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17904
17905 # Library versioning type.
17906 version_type=$version_type
17907
17908 # Format of library name prefix.
17909 libname_spec=$lt_libname_spec
17910
17911 # List of archive names. First name is the real one, the rest are links.
17912 # The last name is the one that the linker finds with -lNAME.
17913 library_names_spec=$lt_library_names_spec
17914
17915 # The coded name of the library, if different from the real name.
17916 soname_spec=$lt_soname_spec
17917
17918 # Commands used to build and install an old-style archive.
17919 RANLIB=$lt_RANLIB
17920 old_archive_cmds=$lt_old_archive_cmds_GCJ
17921 old_postinstall_cmds=$lt_old_postinstall_cmds
17922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17923
17924 # Create an old-style archive from a shared archive.
17925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17926
17927 # Create a temporary old-style archive to link instead of a shared archive.
17928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17929
17930 # Commands used to build and install a shared archive.
17931 archive_cmds=$lt_archive_cmds_GCJ
17932 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17933 postinstall_cmds=$lt_postinstall_cmds
17934 postuninstall_cmds=$lt_postuninstall_cmds
17935
17936 # Commands used to build a loadable module (assumed same as above if empty)
17937 module_cmds=$lt_module_cmds_GCJ
17938 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17939
17940 # Commands to strip libraries.
17941 old_striplib=$lt_old_striplib
17942 striplib=$lt_striplib
17943
17944 # Dependencies to place before the objects being linked to create a
17945 # shared library.
17946 predep_objects=$lt_predep_objects_GCJ
17947
17948 # Dependencies to place after the objects being linked to create a
17949 # shared library.
17950 postdep_objects=$lt_postdep_objects_GCJ
17951
17952 # Dependencies to place before the objects being linked to create a
17953 # shared library.
17954 predeps=$lt_predeps_GCJ
17955
17956 # Dependencies to place after the objects being linked to create a
17957 # shared library.
17958 postdeps=$lt_postdeps_GCJ
17959
17960 # The library search path used internally by the compiler when linking
17961 # a shared library.
17962 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17963
17964 # Method to check whether dependent libraries are shared objects.
17965 deplibs_check_method=$lt_deplibs_check_method
17966
17967 # Command to use when deplibs_check_method == file_magic.
17968 file_magic_cmd=$lt_file_magic_cmd
17969
17970 # Flag that allows shared libraries with undefined symbols to be built.
17971 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17972
17973 # Flag that forces no undefined symbols.
17974 no_undefined_flag=$lt_no_undefined_flag_GCJ
17975
17976 # Commands used to finish a libtool library installation in a directory.
17977 finish_cmds=$lt_finish_cmds
17978
17979 # Same as above, but a single script fragment to be evaled but not shown.
17980 finish_eval=$lt_finish_eval
17981
17982 # Take the output of nm and produce a listing of raw symbols and C names.
17983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17984
17985 # Transform the output of nm in a proper C declaration
17986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17987
17988 # Transform the output of nm in a C name address pair
17989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17990
17991 # This is the shared library runtime path variable.
17992 runpath_var=$runpath_var
17993
17994 # This is the shared library path variable.
17995 shlibpath_var=$shlibpath_var
17996
17997 # Is shlibpath searched before the hard-coded library search path?
17998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17999
18000 # How to hardcode a shared library path into an executable.
18001 hardcode_action=$hardcode_action_GCJ
18002
18003 # Whether we should hardcode library paths into libraries.
18004 hardcode_into_libs=$hardcode_into_libs
18005
18006 # Flag to hardcode \$libdir into a binary during linking.
18007 # This must work even if \$libdir does not exist.
18008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18009
18010 # If ld is used when linking, flag to hardcode \$libdir into
18011 # a binary during linking. This must work even if \$libdir does
18012 # not exist.
18013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18014
18015 # Whether we need a single -rpath flag with a separated argument.
18016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18017
18018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18019 # resulting binary.
18020 hardcode_direct=$hardcode_direct_GCJ
18021
18022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18023 # resulting binary.
18024 hardcode_minus_L=$hardcode_minus_L_GCJ
18025
18026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18027 # the resulting binary.
18028 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18029
18030 # Set to yes if building a shared library automatically hardcodes DIR into the library
18031 # and all subsequent libraries and executables linked against it.
18032 hardcode_automatic=$hardcode_automatic_GCJ
18033
18034 # Variables whose values should be saved in libtool wrapper scripts and
18035 # restored at relink time.
18036 variables_saved_for_relink="$variables_saved_for_relink"
18037
18038 # Whether libtool must link a program against all its dependency libraries.
18039 link_all_deplibs=$link_all_deplibs_GCJ
18040
18041 # Compile-time system search path for libraries
18042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18043
18044 # Run-time system search path for libraries
18045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18046
18047 # Fix the shell variable \$srcfile for the compiler.
18048 fix_srcfile_path="$fix_srcfile_path_GCJ"
18049
18050 # Set to yes if exported symbols are required.
18051 always_export_symbols=$always_export_symbols_GCJ
18052
18053 # The commands to list exported symbols.
18054 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18055
18056 # The commands to extract the exported symbol list from a shared archive.
18057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18058
18059 # Symbols that should not be listed in the preloaded symbols.
18060 exclude_expsyms=$lt_exclude_expsyms_GCJ
18061
18062 # Symbols that must always be exported.
18063 include_expsyms=$lt_include_expsyms_GCJ
18064
18065 # ### END LIBTOOL TAG CONFIG: $tagname
18066
18067 __EOF__
18068
18069
18070 else
18071 # If there is no Makefile yet, we rely on a make rule to execute
18072 # `config.status --recheck' to rerun these tests and create the
18073 # libtool script then.
18074 test -f Makefile && make "$ltmain"
18075 fi
18076
18077
18078 ac_ext=c
18079 ac_cpp='$CPP $CPPFLAGS'
18080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18083
18084 CC="$lt_save_CC"
18085
18086 else
18087 tagname=""
18088 fi
18089 ;;
18090
18091 RC)
18092
18093
18094
18095 # Source file extension for RC test sources.
18096 ac_ext=rc
18097
18098 # Object file extension for compiled RC test sources.
18099 objext=o
18100 objext_RC=$objext
18101
18102 # Code to be used in simple compile tests
18103 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18104
18105 # Code to be used in simple link tests
18106 lt_simple_link_test_code="$lt_simple_compile_test_code"
18107
18108 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18109
18110 # If no C compiler was specified, use CC.
18111 LTCC=${LTCC-"$CC"}
18112
18113 # Allow CC to be a program name with arguments.
18114 compiler=$CC
18115
18116
18117 # Allow CC to be a program name with arguments.
18118 lt_save_CC="$CC"
18119 CC=${RC-"windres"}
18120 compiler=$CC
18121 compiler_RC=$CC
18122 lt_cv_prog_compiler_c_o_RC=yes
18123
18124 # The else clause should only fire when bootstrapping the
18125 # libtool distribution, otherwise you forgot to ship ltmain.sh
18126 # with your package, and you will get complaints that there are
18127 # no rules to generate ltmain.sh.
18128 if test -f "$ltmain"; then
18129 # See if we are running on zsh, and set the options which allow our commands through
18130 # without removal of \ escapes.
18131 if test -n "${ZSH_VERSION+set}" ; then
18132 setopt NO_GLOB_SUBST
18133 fi
18134 # Now quote all the things that may contain metacharacters while being
18135 # careful not to overquote the AC_SUBSTed values. We take copies of the
18136 # variables and quote the copies for generation of the libtool script.
18137 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18138 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18139 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18140 deplibs_check_method reload_flag reload_cmds need_locks \
18141 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18142 lt_cv_sys_global_symbol_to_c_name_address \
18143 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18144 old_postinstall_cmds old_postuninstall_cmds \
18145 compiler_RC \
18146 CC_RC \
18147 LD_RC \
18148 lt_prog_compiler_wl_RC \
18149 lt_prog_compiler_pic_RC \
18150 lt_prog_compiler_static_RC \
18151 lt_prog_compiler_no_builtin_flag_RC \
18152 export_dynamic_flag_spec_RC \
18153 thread_safe_flag_spec_RC \
18154 whole_archive_flag_spec_RC \
18155 enable_shared_with_static_runtimes_RC \
18156 old_archive_cmds_RC \
18157 old_archive_from_new_cmds_RC \
18158 predep_objects_RC \
18159 postdep_objects_RC \
18160 predeps_RC \
18161 postdeps_RC \
18162 compiler_lib_search_path_RC \
18163 archive_cmds_RC \
18164 archive_expsym_cmds_RC \
18165 postinstall_cmds_RC \
18166 postuninstall_cmds_RC \
18167 old_archive_from_expsyms_cmds_RC \
18168 allow_undefined_flag_RC \
18169 no_undefined_flag_RC \
18170 export_symbols_cmds_RC \
18171 hardcode_libdir_flag_spec_RC \
18172 hardcode_libdir_flag_spec_ld_RC \
18173 hardcode_libdir_separator_RC \
18174 hardcode_automatic_RC \
18175 module_cmds_RC \
18176 module_expsym_cmds_RC \
18177 lt_cv_prog_compiler_c_o_RC \
18178 exclude_expsyms_RC \
18179 include_expsyms_RC; do
18180
18181 case $var in
18182 old_archive_cmds_RC | \
18183 old_archive_from_new_cmds_RC | \
18184 archive_cmds_RC | \
18185 archive_expsym_cmds_RC | \
18186 module_cmds_RC | \
18187 module_expsym_cmds_RC | \
18188 old_archive_from_expsyms_cmds_RC | \
18189 export_symbols_cmds_RC | \
18190 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18191 postinstall_cmds | postuninstall_cmds | \
18192 old_postinstall_cmds | old_postuninstall_cmds | \
18193 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18194 # Double-quote double-evaled strings.
18195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18196 ;;
18197 *)
18198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18199 ;;
18200 esac
18201 done
18202
18203 case $lt_echo in
18204 *'\$0 --fallback-echo"')
18205 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18206 ;;
18207 esac
18208
18209 cfgfile="$ofile"
18210
18211 cat <<__EOF__ >> "$cfgfile"
18212 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18213
18214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18215
18216 # Shell to use when invoking shell scripts.
18217 SHELL=$lt_SHELL
18218
18219 # Whether or not to build shared libraries.
18220 build_libtool_libs=$enable_shared
18221
18222 # Whether or not to build static libraries.
18223 build_old_libs=$enable_static
18224
18225 # Whether or not to add -lc for building shared libraries.
18226 build_libtool_need_lc=$archive_cmds_need_lc_RC
18227
18228 # Whether or not to disallow shared libs when runtime libs are static
18229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18230
18231 # Whether or not to optimize for fast installation.
18232 fast_install=$enable_fast_install
18233
18234 # The host system.
18235 host_alias=$host_alias
18236 host=$host
18237
18238 # An echo program that does not interpret backslashes.
18239 echo=$lt_echo
18240
18241 # The archiver.
18242 AR=$lt_AR
18243 AR_FLAGS=$lt_AR_FLAGS
18244
18245 # A C compiler.
18246 LTCC=$lt_LTCC
18247
18248 # A language-specific compiler.
18249 CC=$lt_compiler_RC
18250
18251 # Is the compiler the GNU C compiler?
18252 with_gcc=$GCC_RC
18253
18254 # An ERE matcher.
18255 EGREP=$lt_EGREP
18256
18257 # The linker used to build libraries.
18258 LD=$lt_LD_RC
18259
18260 # Whether we need hard or soft links.
18261 LN_S=$lt_LN_S
18262
18263 # A BSD-compatible nm program.
18264 NM=$lt_NM
18265
18266 # A symbol stripping program
18267 STRIP="$STRIP"
18268
18269 # Used to examine libraries when file_magic_cmd begins "file"
18270 MAGIC_CMD=$MAGIC_CMD
18271
18272 # Used on cygwin: DLL creation program.
18273 DLLTOOL="$DLLTOOL"
18274
18275 # Used on cygwin: object dumper.
18276 OBJDUMP="$OBJDUMP"
18277
18278 # Used on cygwin: assembler.
18279 AS="$AS"
18280
18281 # The name of the directory that contains temporary libtool files.
18282 objdir=$objdir
18283
18284 # How to create reloadable object files.
18285 reload_flag=$lt_reload_flag
18286 reload_cmds=$lt_reload_cmds
18287
18288 # How to pass a linker flag through the compiler.
18289 wl=$lt_lt_prog_compiler_wl_RC
18290
18291 # Object file suffix (normally "o").
18292 objext="$ac_objext"
18293
18294 # Old archive suffix (normally "a").
18295 libext="$libext"
18296
18297 # Shared library suffix (normally ".so").
18298 shrext='$shrext'
18299
18300 # Executable file suffix (normally "").
18301 exeext="$exeext"
18302
18303 # Additional compiler flags for building library objects.
18304 pic_flag=$lt_lt_prog_compiler_pic_RC
18305 pic_mode=$pic_mode
18306
18307 # What is the maximum length of a command?
18308 max_cmd_len=$lt_cv_sys_max_cmd_len
18309
18310 # Does compiler simultaneously support -c and -o options?
18311 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18312
18313 # Must we lock files when doing compilation ?
18314 need_locks=$lt_need_locks
18315
18316 # Do we need the lib prefix for modules?
18317 need_lib_prefix=$need_lib_prefix
18318
18319 # Do we need a version for libraries?
18320 need_version=$need_version
18321
18322 # Whether dlopen is supported.
18323 dlopen_support=$enable_dlopen
18324
18325 # Whether dlopen of programs is supported.
18326 dlopen_self=$enable_dlopen_self
18327
18328 # Whether dlopen of statically linked programs is supported.
18329 dlopen_self_static=$enable_dlopen_self_static
18330
18331 # Compiler flag to prevent dynamic linking.
18332 link_static_flag=$lt_lt_prog_compiler_static_RC
18333
18334 # Compiler flag to turn off builtin functions.
18335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18336
18337 # Compiler flag to allow reflexive dlopens.
18338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18339
18340 # Compiler flag to generate shared objects directly from archives.
18341 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18342
18343 # Compiler flag to generate thread-safe objects.
18344 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18345
18346 # Library versioning type.
18347 version_type=$version_type
18348
18349 # Format of library name prefix.
18350 libname_spec=$lt_libname_spec
18351
18352 # List of archive names. First name is the real one, the rest are links.
18353 # The last name is the one that the linker finds with -lNAME.
18354 library_names_spec=$lt_library_names_spec
18355
18356 # The coded name of the library, if different from the real name.
18357 soname_spec=$lt_soname_spec
18358
18359 # Commands used to build and install an old-style archive.
18360 RANLIB=$lt_RANLIB
18361 old_archive_cmds=$lt_old_archive_cmds_RC
18362 old_postinstall_cmds=$lt_old_postinstall_cmds
18363 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18364
18365 # Create an old-style archive from a shared archive.
18366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18367
18368 # Create a temporary old-style archive to link instead of a shared archive.
18369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18370
18371 # Commands used to build and install a shared archive.
18372 archive_cmds=$lt_archive_cmds_RC
18373 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18374 postinstall_cmds=$lt_postinstall_cmds
18375 postuninstall_cmds=$lt_postuninstall_cmds
18376
18377 # Commands used to build a loadable module (assumed same as above if empty)
18378 module_cmds=$lt_module_cmds_RC
18379 module_expsym_cmds=$lt_module_expsym_cmds_RC
18380
18381 # Commands to strip libraries.
18382 old_striplib=$lt_old_striplib
18383 striplib=$lt_striplib
18384
18385 # Dependencies to place before the objects being linked to create a
18386 # shared library.
18387 predep_objects=$lt_predep_objects_RC
18388
18389 # Dependencies to place after the objects being linked to create a
18390 # shared library.
18391 postdep_objects=$lt_postdep_objects_RC
18392
18393 # Dependencies to place before the objects being linked to create a
18394 # shared library.
18395 predeps=$lt_predeps_RC
18396
18397 # Dependencies to place after the objects being linked to create a
18398 # shared library.
18399 postdeps=$lt_postdeps_RC
18400
18401 # The library search path used internally by the compiler when linking
18402 # a shared library.
18403 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18404
18405 # Method to check whether dependent libraries are shared objects.
18406 deplibs_check_method=$lt_deplibs_check_method
18407
18408 # Command to use when deplibs_check_method == file_magic.
18409 file_magic_cmd=$lt_file_magic_cmd
18410
18411 # Flag that allows shared libraries with undefined symbols to be built.
18412 allow_undefined_flag=$lt_allow_undefined_flag_RC
18413
18414 # Flag that forces no undefined symbols.
18415 no_undefined_flag=$lt_no_undefined_flag_RC
18416
18417 # Commands used to finish a libtool library installation in a directory.
18418 finish_cmds=$lt_finish_cmds
18419
18420 # Same as above, but a single script fragment to be evaled but not shown.
18421 finish_eval=$lt_finish_eval
18422
18423 # Take the output of nm and produce a listing of raw symbols and C names.
18424 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18425
18426 # Transform the output of nm in a proper C declaration
18427 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18428
18429 # Transform the output of nm in a C name address pair
18430 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18431
18432 # This is the shared library runtime path variable.
18433 runpath_var=$runpath_var
18434
18435 # This is the shared library path variable.
18436 shlibpath_var=$shlibpath_var
18437
18438 # Is shlibpath searched before the hard-coded library search path?
18439 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18440
18441 # How to hardcode a shared library path into an executable.
18442 hardcode_action=$hardcode_action_RC
18443
18444 # Whether we should hardcode library paths into libraries.
18445 hardcode_into_libs=$hardcode_into_libs
18446
18447 # Flag to hardcode \$libdir into a binary during linking.
18448 # This must work even if \$libdir does not exist.
18449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18450
18451 # If ld is used when linking, flag to hardcode \$libdir into
18452 # a binary during linking. This must work even if \$libdir does
18453 # not exist.
18454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18455
18456 # Whether we need a single -rpath flag with a separated argument.
18457 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18458
18459 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18460 # resulting binary.
18461 hardcode_direct=$hardcode_direct_RC
18462
18463 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18464 # resulting binary.
18465 hardcode_minus_L=$hardcode_minus_L_RC
18466
18467 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18468 # the resulting binary.
18469 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18470
18471 # Set to yes if building a shared library automatically hardcodes DIR into the library
18472 # and all subsequent libraries and executables linked against it.
18473 hardcode_automatic=$hardcode_automatic_RC
18474
18475 # Variables whose values should be saved in libtool wrapper scripts and
18476 # restored at relink time.
18477 variables_saved_for_relink="$variables_saved_for_relink"
18478
18479 # Whether libtool must link a program against all its dependency libraries.
18480 link_all_deplibs=$link_all_deplibs_RC
18481
18482 # Compile-time system search path for libraries
18483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18484
18485 # Run-time system search path for libraries
18486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18487
18488 # Fix the shell variable \$srcfile for the compiler.
18489 fix_srcfile_path="$fix_srcfile_path_RC"
18490
18491 # Set to yes if exported symbols are required.
18492 always_export_symbols=$always_export_symbols_RC
18493
18494 # The commands to list exported symbols.
18495 export_symbols_cmds=$lt_export_symbols_cmds_RC
18496
18497 # The commands to extract the exported symbol list from a shared archive.
18498 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18499
18500 # Symbols that should not be listed in the preloaded symbols.
18501 exclude_expsyms=$lt_exclude_expsyms_RC
18502
18503 # Symbols that must always be exported.
18504 include_expsyms=$lt_include_expsyms_RC
18505
18506 # ### END LIBTOOL TAG CONFIG: $tagname
18507
18508 __EOF__
18509
18510
18511 else
18512 # If there is no Makefile yet, we rely on a make rule to execute
18513 # `config.status --recheck' to rerun these tests and create the
18514 # libtool script then.
18515 test -f Makefile && make "$ltmain"
18516 fi
18517
18518
18519 ac_ext=c
18520 ac_cpp='$CPP $CPPFLAGS'
18521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18524
18525 CC="$lt_save_CC"
18526
18527 ;;
18528
18529 *)
18530 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18531 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18532 { (exit 1); exit 1; }; }
18533 ;;
18534 esac
18535
18536 # Append the new tag name to the list of available tags.
18537 if test -n "$tagname" ; then
18538 available_tags="$available_tags $tagname"
18539 fi
18540 fi
18541 done
18542 IFS="$lt_save_ifs"
18543
18544 # Now substitute the updated list of available tags.
18545 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18546 mv "${ofile}T" "$ofile"
18547 chmod +x "$ofile"
18548 else
18549 rm -f "${ofile}T"
18550 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18551 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18552 { (exit 1); exit 1; }; }
18553 fi
18554 fi
18555
18556
18557
18558 # This can be used to rebuild libtool when needed
18559 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18560
18561 # Always use our own libtool.
18562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18563
18564 # Prevent multiple expansion
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586 # Checks for libraries.
18587
18588 # Checks for header files.
18589 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18590 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18591 if test "${ac_cv_header_stdc+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594 cat >conftest.$ac_ext <<_ACEOF
18595 #line $LINENO "configure"
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <stdlib.h>
18602 #include <stdarg.h>
18603 #include <string.h>
18604 #include <float.h>
18605
18606 int
18607 main ()
18608 {
18609
18610 ;
18611 return 0;
18612 }
18613 _ACEOF
18614 rm -f conftest.$ac_objext
18615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18616 (eval $ac_compile) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -s conftest.$ac_objext'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_header_stdc=yes
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631 ac_cv_header_stdc=no
18632 fi
18633 rm -f conftest.$ac_objext conftest.$ac_ext
18634
18635 if test $ac_cv_header_stdc = yes; then
18636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18637 cat >conftest.$ac_ext <<_ACEOF
18638 #line $LINENO "configure"
18639 /* confdefs.h. */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18644 #include <string.h>
18645
18646 _ACEOF
18647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18648 $EGREP "memchr" >/dev/null 2>&1; then
18649 :
18650 else
18651 ac_cv_header_stdc=no
18652 fi
18653 rm -f conftest*
18654
18655 fi
18656
18657 if test $ac_cv_header_stdc = yes; then
18658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18659 cat >conftest.$ac_ext <<_ACEOF
18660 #line $LINENO "configure"
18661 /* confdefs.h. */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 #include <stdlib.h>
18667
18668 _ACEOF
18669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18670 $EGREP "free" >/dev/null 2>&1; then
18671 :
18672 else
18673 ac_cv_header_stdc=no
18674 fi
18675 rm -f conftest*
18676
18677 fi
18678
18679 if test $ac_cv_header_stdc = yes; then
18680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18681 if test "$cross_compiling" = yes; then
18682 :
18683 else
18684 cat >conftest.$ac_ext <<_ACEOF
18685 #line $LINENO "configure"
18686 /* confdefs.h. */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18691 #include <ctype.h>
18692 #if ((' ' & 0x0FF) == 0x020)
18693 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18694 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18695 #else
18696 # define ISLOWER(c) \
18697 (('a' <= (c) && (c) <= 'i') \
18698 || ('j' <= (c) && (c) <= 'r') \
18699 || ('s' <= (c) && (c) <= 'z'))
18700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18701 #endif
18702
18703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18704 int
18705 main ()
18706 {
18707 int i;
18708 for (i = 0; i < 256; i++)
18709 if (XOR (islower (i), ISLOWER (i))
18710 || toupper (i) != TOUPPER (i))
18711 exit(2);
18712 exit (0);
18713 }
18714 _ACEOF
18715 rm -f conftest$ac_exeext
18716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18717 (eval $ac_link) 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 :
18727 else
18728 echo "$as_me: program exited with status $ac_status" >&5
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18731
18732 ( exit $ac_status )
18733 ac_cv_header_stdc=no
18734 fi
18735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18736 fi
18737 fi
18738 fi
18739 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18740 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18741 if test $ac_cv_header_stdc = yes; then
18742
18743 cat >>confdefs.h <<\_ACEOF
18744 #define STDC_HEADERS 1
18745 _ACEOF
18746
18747 fi
18748
18749
18750
18751
18752
18753
18754 for ac_header in langinfo.h locale.h stdlib.h string.h wchar.h
18755 do
18756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18758 echo "$as_me:$LINENO: checking for $ac_header" >&5
18759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 fi
18763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18765 else
18766 # Is the header compilable?
18767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18769 cat >conftest.$ac_ext <<_ACEOF
18770 #line $LINENO "configure"
18771 /* confdefs.h. */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 $ac_includes_default
18777 #include <$ac_header>
18778 _ACEOF
18779 rm -f conftest.$ac_objext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781 (eval $ac_compile) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_header_compiler=yes
18792 else
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796 ac_header_compiler=no
18797 fi
18798 rm -f conftest.$ac_objext conftest.$ac_ext
18799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18800 echo "${ECHO_T}$ac_header_compiler" >&6
18801
18802 # Is the header present?
18803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18805 cat >conftest.$ac_ext <<_ACEOF
18806 #line $LINENO "configure"
18807 /* confdefs.h. */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 #include <$ac_header>
18813 _ACEOF
18814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18816 ac_status=$?
18817 grep -v '^ *+' conftest.er1 >conftest.err
18818 rm -f conftest.er1
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } >/dev/null; then
18822 if test -s conftest.err; then
18823 ac_cpp_err=$ac_c_preproc_warn_flag
18824 else
18825 ac_cpp_err=
18826 fi
18827 else
18828 ac_cpp_err=yes
18829 fi
18830 if test -z "$ac_cpp_err"; then
18831 ac_header_preproc=yes
18832 else
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18835
18836 ac_header_preproc=no
18837 fi
18838 rm -f conftest.err conftest.$ac_ext
18839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18840 echo "${ECHO_T}$ac_header_preproc" >&6
18841
18842 # So? What about this header?
18843 case $ac_header_compiler:$ac_header_preproc in
18844 yes:no )
18845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18849 (
18850 cat <<\_ASBOX
18851 ## ------------------------------------ ##
18852 ## Report this to [email protected]. ##
18853 ## ------------------------------------ ##
18854 _ASBOX
18855 ) |
18856 sed "s/^/$as_me: WARNING: /" >&2
18857 ;;
18858 no:yes )
18859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18865 (
18866 cat <<\_ASBOX
18867 ## ------------------------------------ ##
18868 ## Report this to [email protected]. ##
18869 ## ------------------------------------ ##
18870 _ASBOX
18871 ) |
18872 sed "s/^/$as_me: WARNING: /" >&2
18873 ;;
18874 esac
18875 echo "$as_me:$LINENO: checking for $ac_header" >&5
18876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880 eval "$as_ac_Header=$ac_header_preproc"
18881 fi
18882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18884
18885 fi
18886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18887 cat >>confdefs.h <<_ACEOF
18888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18889 _ACEOF
18890
18891 fi
18892
18893 done
18894
18895
18896 # Checks for typedefs, structures, and compiler characteristics.
18897 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18898 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18899 if test "${ac_cv_c_const+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902 cat >conftest.$ac_ext <<_ACEOF
18903 #line $LINENO "configure"
18904 /* confdefs.h. */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909
18910 int
18911 main ()
18912 {
18913 /* FIXME: Include the comments suggested by Paul. */
18914 #ifndef __cplusplus
18915 /* Ultrix mips cc rejects this. */
18916 typedef int charset[2];
18917 const charset x;
18918 /* SunOS 4.1.1 cc rejects this. */
18919 char const *const *ccp;
18920 char **p;
18921 /* NEC SVR4.0.2 mips cc rejects this. */
18922 struct point {int x, y;};
18923 static struct point const zero = {0,0};
18924 /* AIX XL C 1.02.0.0 rejects this.
18925 It does not let you subtract one const X* pointer from another in
18926 an arm of an if-expression whose if-part is not a constant
18927 expression */
18928 const char *g = "string";
18929 ccp = &g + (g ? g-g : 0);
18930 /* HPUX 7.0 cc rejects these. */
18931 ++ccp;
18932 p = (char**) ccp;
18933 ccp = (char const *const *) p;
18934 { /* SCO 3.2v4 cc rejects this. */
18935 char *t;
18936 char const *s = 0 ? (char *) 0 : (char const *) 0;
18937
18938 *t++ = 0;
18939 }
18940 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18941 int x[] = {25, 17};
18942 const int *foo = &x[0];
18943 ++foo;
18944 }
18945 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18946 typedef const int *iptr;
18947 iptr p = 0;
18948 ++p;
18949 }
18950 { /* AIX XL C 1.02.0.0 rejects this saying
18951 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18952 struct s { int j; const int *ap[3]; };
18953 struct s *b; b->j = 5;
18954 }
18955 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18956 const int foo = 10;
18957 }
18958 #endif
18959
18960 ;
18961 return 0;
18962 }
18963 _ACEOF
18964 rm -f conftest.$ac_objext
18965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18966 (eval $ac_compile) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -s conftest.$ac_objext'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 ac_cv_c_const=yes
18977 else
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18980
18981 ac_cv_c_const=no
18982 fi
18983 rm -f conftest.$ac_objext conftest.$ac_ext
18984 fi
18985 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18986 echo "${ECHO_T}$ac_cv_c_const" >&6
18987 if test $ac_cv_c_const = no; then
18988
18989 cat >>confdefs.h <<\_ACEOF
18990 #define const
18991 _ACEOF
18992
18993 fi
18994
18995
18996 # Checks for library functions.
18997
18998 for ac_header in stdlib.h
18999 do
19000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19002 echo "$as_me:$LINENO: checking for $ac_header" >&5
19003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 fi
19007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19009 else
19010 # Is the header compilable?
19011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19013 cat >conftest.$ac_ext <<_ACEOF
19014 #line $LINENO "configure"
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 $ac_includes_default
19021 #include <$ac_header>
19022 _ACEOF
19023 rm -f conftest.$ac_objext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025 (eval $ac_compile) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -s conftest.$ac_objext'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 ac_header_compiler=yes
19036 else
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040 ac_header_compiler=no
19041 fi
19042 rm -f conftest.$ac_objext conftest.$ac_ext
19043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19044 echo "${ECHO_T}$ac_header_compiler" >&6
19045
19046 # Is the header present?
19047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19049 cat >conftest.$ac_ext <<_ACEOF
19050 #line $LINENO "configure"
19051 /* confdefs.h. */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19056 #include <$ac_header>
19057 _ACEOF
19058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } >/dev/null; then
19066 if test -s conftest.err; then
19067 ac_cpp_err=$ac_c_preproc_warn_flag
19068 else
19069 ac_cpp_err=
19070 fi
19071 else
19072 ac_cpp_err=yes
19073 fi
19074 if test -z "$ac_cpp_err"; then
19075 ac_header_preproc=yes
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ac_header_preproc=no
19081 fi
19082 rm -f conftest.err conftest.$ac_ext
19083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19084 echo "${ECHO_T}$ac_header_preproc" >&6
19085
19086 # So? What about this header?
19087 case $ac_header_compiler:$ac_header_preproc in
19088 yes:no )
19089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19093 (
19094 cat <<\_ASBOX
19095 ## ------------------------------------ ##
19096 ## Report this to [email protected]. ##
19097 ## ------------------------------------ ##
19098 _ASBOX
19099 ) |
19100 sed "s/^/$as_me: WARNING: /" >&2
19101 ;;
19102 no:yes )
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19109 (
19110 cat <<\_ASBOX
19111 ## ------------------------------------ ##
19112 ## Report this to [email protected]. ##
19113 ## ------------------------------------ ##
19114 _ASBOX
19115 ) |
19116 sed "s/^/$as_me: WARNING: /" >&2
19117 ;;
19118 esac
19119 echo "$as_me:$LINENO: checking for $ac_header" >&5
19120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 else
19124 eval "$as_ac_Header=$ac_header_preproc"
19125 fi
19126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19128
19129 fi
19130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19131 cat >>confdefs.h <<_ACEOF
19132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19133 _ACEOF
19134
19135 fi
19136
19137 done
19138
19139 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19140 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19141 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 else
19144 if test "$cross_compiling" = yes; then
19145 ac_cv_func_malloc_0_nonnull=no
19146 else
19147 cat >conftest.$ac_ext <<_ACEOF
19148 #line $LINENO "configure"
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #if STDC_HEADERS || HAVE_STDLIB_H
19155 # include <stdlib.h>
19156 #else
19157 char *malloc ();
19158 #endif
19159
19160 int
19161 main ()
19162 {
19163 exit (malloc (0) ? 0 : 1);
19164 ;
19165 return 0;
19166 }
19167 _ACEOF
19168 rm -f conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_cv_func_malloc_0_nonnull=yes
19180 else
19181 echo "$as_me: program exited with status $ac_status" >&5
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 ( exit $ac_status )
19186 ac_cv_func_malloc_0_nonnull=no
19187 fi
19188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19189 fi
19190 fi
19191 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19192 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19193 if test $ac_cv_func_malloc_0_nonnull = yes; then
19194
19195 cat >>confdefs.h <<\_ACEOF
19196 #define HAVE_MALLOC 1
19197 _ACEOF
19198
19199 else
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_MALLOC 0
19202 _ACEOF
19203
19204 LIBOBJS="$LIBOBJS malloc.$ac_objext"
19205
19206 cat >>confdefs.h <<\_ACEOF
19207 #define malloc rpl_malloc
19208 _ACEOF
19209
19210 fi
19211
19212
19213
19214
19215 for ac_header in stdlib.h
19216 do
19217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19219 echo "$as_me:$LINENO: checking for $ac_header" >&5
19220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19222 echo $ECHO_N "(cached) $ECHO_C" >&6
19223 fi
19224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19226 else
19227 # Is the header compilable?
19228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19230 cat >conftest.$ac_ext <<_ACEOF
19231 #line $LINENO "configure"
19232 /* confdefs.h. */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 $ac_includes_default
19238 #include <$ac_header>
19239 _ACEOF
19240 rm -f conftest.$ac_objext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19242 (eval $ac_compile) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try='test -s conftest.$ac_objext'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19252 ac_header_compiler=yes
19253 else
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257 ac_header_compiler=no
19258 fi
19259 rm -f conftest.$ac_objext conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19261 echo "${ECHO_T}$ac_header_compiler" >&6
19262
19263 # Is the header present?
19264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19266 cat >conftest.$ac_ext <<_ACEOF
19267 #line $LINENO "configure"
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 #include <$ac_header>
19274 _ACEOF
19275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } >/dev/null; then
19283 if test -s conftest.err; then
19284 ac_cpp_err=$ac_c_preproc_warn_flag
19285 else
19286 ac_cpp_err=
19287 fi
19288 else
19289 ac_cpp_err=yes
19290 fi
19291 if test -z "$ac_cpp_err"; then
19292 ac_header_preproc=yes
19293 else
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 ac_header_preproc=no
19298 fi
19299 rm -f conftest.err conftest.$ac_ext
19300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19301 echo "${ECHO_T}$ac_header_preproc" >&6
19302
19303 # So? What about this header?
19304 case $ac_header_compiler:$ac_header_preproc in
19305 yes:no )
19306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19310 (
19311 cat <<\_ASBOX
19312 ## ------------------------------------ ##
19313 ## Report this to [email protected]. ##
19314 ## ------------------------------------ ##
19315 _ASBOX
19316 ) |
19317 sed "s/^/$as_me: WARNING: /" >&2
19318 ;;
19319 no:yes )
19320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19326 (
19327 cat <<\_ASBOX
19328 ## ------------------------------------ ##
19329 ## Report this to [email protected]. ##
19330 ## ------------------------------------ ##
19331 _ASBOX
19332 ) |
19333 sed "s/^/$as_me: WARNING: /" >&2
19334 ;;
19335 esac
19336 echo "$as_me:$LINENO: checking for $ac_header" >&5
19337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341 eval "$as_ac_Header=$ac_header_preproc"
19342 fi
19343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19345
19346 fi
19347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19348 cat >>confdefs.h <<_ACEOF
19349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19350 _ACEOF
19351
19352 fi
19353
19354 done
19355
19356 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
19357 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
19358 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361 if test "$cross_compiling" = yes; then
19362 ac_cv_func_realloc_0_nonnull=no
19363 else
19364 cat >conftest.$ac_ext <<_ACEOF
19365 #line $LINENO "configure"
19366 /* confdefs.h. */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 #if STDC_HEADERS || HAVE_STDLIB_H
19372 # include <stdlib.h>
19373 #else
19374 char *realloc ();
19375 #endif
19376
19377 int
19378 main ()
19379 {
19380 exit (realloc (0, 0) ? 0 : 1);
19381 ;
19382 return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest$ac_exeext
19386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19387 (eval $ac_link) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_func_realloc_0_nonnull=yes
19397 else
19398 echo "$as_me: program exited with status $ac_status" >&5
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ( exit $ac_status )
19403 ac_cv_func_realloc_0_nonnull=no
19404 fi
19405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19406 fi
19407 fi
19408 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
19409 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
19410 if test $ac_cv_func_realloc_0_nonnull = yes; then
19411
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE_REALLOC 1
19414 _ACEOF
19415
19416 else
19417 cat >>confdefs.h <<\_ACEOF
19418 #define HAVE_REALLOC 0
19419 _ACEOF
19420
19421 LIBOBJS="$LIBOBJS realloc.$ac_objext"
19422
19423 cat >>confdefs.h <<\_ACEOF
19424 #define realloc rpl_realloc
19425 _ACEOF
19426
19427 fi
19428
19429
19430
19431
19432
19433
19434
19435
19436 for ac_func in mblen nl_langinfo setlocale strstr wcwidth
19437 do
19438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19439 echo "$as_me:$LINENO: checking for $ac_func" >&5
19440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19441 if eval "test \"\${$as_ac_var+set}\" = set"; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444 cat >conftest.$ac_ext <<_ACEOF
19445 #line $LINENO "configure"
19446 /* confdefs.h. */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 /* System header to define __stub macros and hopefully few prototypes,
19452 which can conflict with char $ac_func (); below.
19453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19454 <limits.h> exists even on freestanding compilers. */
19455 #ifdef __STDC__
19456 # include <limits.h>
19457 #else
19458 # include <assert.h>
19459 #endif
19460 /* Override any gcc2 internal prototype to avoid an error. */
19461 #ifdef __cplusplus
19462 extern "C"
19463 {
19464 #endif
19465 /* We use char because int might match the return type of a gcc2
19466 builtin and then its argument prototype would still apply. */
19467 char $ac_func ();
19468 /* The GNU C library defines this for functions which it implements
19469 to always fail with ENOSYS. Some functions are actually named
19470 something starting with __ and the normal name is an alias. */
19471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19472 choke me
19473 #else
19474 char (*f) () = $ac_func;
19475 #endif
19476 #ifdef __cplusplus
19477 }
19478 #endif
19479
19480 int
19481 main ()
19482 {
19483 return f != $ac_func;
19484 ;
19485 return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19490 (eval $ac_link) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } &&
19494 { ac_try='test -s conftest$ac_exeext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 eval "$as_ac_var=yes"
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505 eval "$as_ac_var=no"
19506 fi
19507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19508 fi
19509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19511 if test `eval echo '${'$as_ac_var'}'` = yes; then
19512 cat >>confdefs.h <<_ACEOF
19513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19514 _ACEOF
19515
19516 fi
19517 done
19518
19519
19520 ac_config_files="$ac_config_files Makefile"
19521
19522 cat >confcache <<\_ACEOF
19523 # This file is a shell script that caches the results of configure
19524 # tests run on this system so they can be shared between configure
19525 # scripts and configure runs, see configure's option --config-cache.
19526 # It is not useful on other systems. If it contains results you don't
19527 # want to keep, you may remove or edit it.
19528 #
19529 # config.status only pays attention to the cache file if you give it
19530 # the --recheck option to rerun configure.
19531 #
19532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19534 # following values.
19535
19536 _ACEOF
19537
19538 # The following way of writing the cache mishandles newlines in values,
19539 # but we know of no workaround that is simple, portable, and efficient.
19540 # So, don't put newlines in cache variables' values.
19541 # Ultrix sh set writes to stderr and can't be redirected directly,
19542 # and sets the high bit in the cache file unless we assign to the vars.
19543 {
19544 (set) 2>&1 |
19545 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19546 *ac_space=\ *)
19547 # `set' does not quote correctly, so add quotes (double-quote
19548 # substitution turns \\\\ into \\, and sed turns \\ into \).
19549 sed -n \
19550 "s/'/'\\\\''/g;
19551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19552 ;;
19553 *)
19554 # `set' quotes correctly as required by POSIX, so do not add quotes.
19555 sed -n \
19556 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19557 ;;
19558 esac;
19559 } |
19560 sed '
19561 t clear
19562 : clear
19563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19564 t end
19565 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19566 : end' >>confcache
19567 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19568 if test -w $cache_file; then
19569 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19570 cat confcache >$cache_file
19571 else
19572 echo "not updating unwritable cache $cache_file"
19573 fi
19574 fi
19575 rm -f confcache
19576
19577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19578 # Let make expand exec_prefix.
19579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19580
19581 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19582 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19583 # trailing colons and then remove the whole line if VPATH becomes empty
19584 # (actually we leave an empty line to preserve line numbers).
19585 if test "x$srcdir" = x.; then
19586 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19587 s/:*\$(srcdir):*/:/;
19588 s/:*\${srcdir}:*/:/;
19589 s/:*@srcdir@:*/:/;
19590 s/^\([^=]*=[ ]*\):*/\1/;
19591 s/:*$//;
19592 s/^[^=]*=[ ]*$//;
19593 }'
19594 fi
19595
19596 DEFS=-DHAVE_CONFIG_H
19597
19598 ac_libobjs=
19599 ac_ltlibobjs=
19600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19601 # 1. Remove the extension, and $U if already installed.
19602 ac_i=`echo "$ac_i" |
19603 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19604 # 2. Add them.
19605 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19606 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19607 done
19608 LIBOBJS=$ac_libobjs
19609
19610 LTLIBOBJS=$ac_ltlibobjs
19611
19612
19613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19614 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19615 Usually this means the macro was only invoked conditionally." >&5
19616 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19617 Usually this means the macro was only invoked conditionally." >&2;}
19618 { (exit 1); exit 1; }; }
19619 fi
19620 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19621 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19622 Usually this means the macro was only invoked conditionally." >&5
19623 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19624 Usually this means the macro was only invoked conditionally." >&2;}
19625 { (exit 1); exit 1; }; }
19626 fi
19627 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19628 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19629 Usually this means the macro was only invoked conditionally." >&5
19630 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19631 Usually this means the macro was only invoked conditionally." >&2;}
19632 { (exit 1); exit 1; }; }
19633 fi
19634
19635 : ${CONFIG_STATUS=./config.status}
19636 ac_clean_files_save=$ac_clean_files
19637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19638 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19639 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19640 cat >$CONFIG_STATUS <<_ACEOF
19641 #! $SHELL
19642 # Generated by $as_me.
19643 # Run this file to recreate the current configuration.
19644 # Compiler output produced by configure, useful for debugging
19645 # configure, is in config.log if it exists.
19646
19647 debug=false
19648 ac_cs_recheck=false
19649 ac_cs_silent=false
19650 SHELL=\${CONFIG_SHELL-$SHELL}
19651 _ACEOF
19652
19653 cat >>$CONFIG_STATUS <<\_ACEOF
19654 ## --------------------- ##
19655 ## M4sh Initialization. ##
19656 ## --------------------- ##
19657
19658 # Be Bourne compatible
19659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19660 emulate sh
19661 NULLCMD=:
19662 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19663 # is contrary to our usage. Disable this feature.
19664 alias -g '${1+"$@"}'='"$@"'
19665 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19666 set -o posix
19667 fi
19668
19669 # Support unset when possible.
19670 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19671 as_unset=unset
19672 else
19673 as_unset=false
19674 fi
19675
19676
19677 # Work around bugs in pre-3.0 UWIN ksh.
19678 $as_unset ENV MAIL MAILPATH
19679 PS1='$ '
19680 PS2='> '
19681 PS4='+ '
19682
19683 # NLS nuisances.
19684 for as_var in \
19685 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19686 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19687 LC_TELEPHONE LC_TIME
19688 do
19689 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19690 eval $as_var=C; export $as_var
19691 else
19692 $as_unset $as_var
19693 fi
19694 done
19695
19696 # Required to use basename.
19697 if expr a : '\(a\)' >/dev/null 2>&1; then
19698 as_expr=expr
19699 else
19700 as_expr=false
19701 fi
19702
19703 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19704 as_basename=basename
19705 else
19706 as_basename=false
19707 fi
19708
19709
19710 # Name of the executable.
19711 as_me=`$as_basename "$0" ||
19712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19713 X"$0" : 'X\(//\)$' \| \
19714 X"$0" : 'X\(/\)$' \| \
19715 . : '\(.\)' 2>/dev/null ||
19716 echo X/"$0" |
19717 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19718 /^X\/\(\/\/\)$/{ s//\1/; q; }
19719 /^X\/\(\/\).*/{ s//\1/; q; }
19720 s/.*/./; q'`
19721
19722
19723 # PATH needs CR, and LINENO needs CR and PATH.
19724 # Avoid depending upon Character Ranges.
19725 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19726 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19727 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19728 as_cr_digits='0123456789'
19729 as_cr_alnum=$as_cr_Letters$as_cr_digits
19730
19731 # The user is always right.
19732 if test "${PATH_SEPARATOR+set}" != set; then
19733 echo "#! /bin/sh" >conf$$.sh
19734 echo "exit 0" >>conf$$.sh
19735 chmod +x conf$$.sh
19736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19737 PATH_SEPARATOR=';'
19738 else
19739 PATH_SEPARATOR=:
19740 fi
19741 rm -f conf$$.sh
19742 fi
19743
19744
19745 as_lineno_1=$LINENO
19746 as_lineno_2=$LINENO
19747 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19748 test "x$as_lineno_1" != "x$as_lineno_2" &&
19749 test "x$as_lineno_3" = "x$as_lineno_2" || {
19750 # Find who we are. Look in the path if we contain no path at all
19751 # relative or not.
19752 case $0 in
19753 *[\\/]* ) as_myself=$0 ;;
19754 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19755 for as_dir in $PATH
19756 do
19757 IFS=$as_save_IFS
19758 test -z "$as_dir" && as_dir=.
19759 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19760 done
19761
19762 ;;
19763 esac
19764 # We did not find ourselves, most probably we were run as `sh COMMAND'
19765 # in which case we are not to be found in the path.
19766 if test "x$as_myself" = x; then
19767 as_myself=$0
19768 fi
19769 if test ! -f "$as_myself"; then
19770 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19771 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19772 { (exit 1); exit 1; }; }
19773 fi
19774 case $CONFIG_SHELL in
19775 '')
19776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19777 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19778 do
19779 IFS=$as_save_IFS
19780 test -z "$as_dir" && as_dir=.
19781 for as_base in sh bash ksh sh5; do
19782 case $as_dir in
19783 /*)
19784 if ("$as_dir/$as_base" -c '
19785 as_lineno_1=$LINENO
19786 as_lineno_2=$LINENO
19787 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19788 test "x$as_lineno_1" != "x$as_lineno_2" &&
19789 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19790 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19791 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19792 CONFIG_SHELL=$as_dir/$as_base
19793 export CONFIG_SHELL
19794 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19795 fi;;
19796 esac
19797 done
19798 done
19799 ;;
19800 esac
19801
19802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19803 # uniformly replaced by the line number. The first 'sed' inserts a
19804 # line-number line before each line; the second 'sed' does the real
19805 # work. The second script uses 'N' to pair each line-number line
19806 # with the numbered line, and appends trailing '-' during
19807 # substitution so that $LINENO is not a special case at line end.
19808 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19809 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19810 sed '=' <$as_myself |
19811 sed '
19812 N
19813 s,$,-,
19814 : loop
19815 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19816 t loop
19817 s,-$,,
19818 s,^['$as_cr_digits']*\n,,
19819 ' >$as_me.lineno &&
19820 chmod +x $as_me.lineno ||
19821 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19822 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19823 { (exit 1); exit 1; }; }
19824
19825 # Don't try to exec as it changes $[0], causing all sort of problems
19826 # (the dirname of $[0] is not the place where we might find the
19827 # original and so on. Autoconf is especially sensible to this).
19828 . ./$as_me.lineno
19829 # Exit status is that of the last command.
19830 exit
19831 }
19832
19833
19834 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19835 *c*,-n*) ECHO_N= ECHO_C='
19836 ' ECHO_T=' ' ;;
19837 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19838 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19839 esac
19840
19841 if expr a : '\(a\)' >/dev/null 2>&1; then
19842 as_expr=expr
19843 else
19844 as_expr=false
19845 fi
19846
19847 rm -f conf$$ conf$$.exe conf$$.file
19848 echo >conf$$.file
19849 if ln -s conf$$.file conf$$ 2>/dev/null; then
19850 # We could just check for DJGPP; but this test a) works b) is more generic
19851 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19852 if test -f conf$$.exe; then
19853 # Don't use ln at all; we don't have any links
19854 as_ln_s='cp -p'
19855 else
19856 as_ln_s='ln -s'
19857 fi
19858 elif ln conf$$.file conf$$ 2>/dev/null; then
19859 as_ln_s=ln
19860 else
19861 as_ln_s='cp -p'
19862 fi
19863 rm -f conf$$ conf$$.exe conf$$.file
19864
19865 if mkdir -p . 2>/dev/null; then
19866 as_mkdir_p=:
19867 else
19868 as_mkdir_p=false
19869 fi
19870
19871 as_executable_p="test -f"
19872
19873 # Sed expression to map a string onto a valid CPP name.
19874 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19875
19876 # Sed expression to map a string onto a valid variable name.
19877 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19878
19879
19880 # IFS
19881 # We need space, tab and new line, in precisely that order.
19882 as_nl='
19883 '
19884 IFS=" $as_nl"
19885
19886 # CDPATH.
19887 $as_unset CDPATH
19888
19889 exec 6>&1
19890
19891 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19892 # report actual input values of CONFIG_FILES etc. instead of their
19893 # values after options handling. Logging --version etc. is OK.
19894 exec 5>>config.log
19895 {
19896 echo
19897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19898 ## Running $as_me. ##
19899 _ASBOX
19900 } >&5
19901 cat >&5 <<_CSEOF
19902
19903 This file was extended by libtextwrap $as_me 0.01, which was
19904 generated by GNU Autoconf 2.57. Invocation command line was
19905
19906 CONFIG_FILES = $CONFIG_FILES
19907 CONFIG_HEADERS = $CONFIG_HEADERS
19908 CONFIG_LINKS = $CONFIG_LINKS
19909 CONFIG_COMMANDS = $CONFIG_COMMANDS
19910 $ $0 $@
19911
19912 _CSEOF
19913 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19914 echo >&5
19915 _ACEOF
19916
19917 # Files that config.status was made for.
19918 if test -n "$ac_config_files"; then
19919 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19920 fi
19921
19922 if test -n "$ac_config_headers"; then
19923 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19924 fi
19925
19926 if test -n "$ac_config_links"; then
19927 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19928 fi
19929
19930 if test -n "$ac_config_commands"; then
19931 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19932 fi
19933
19934 cat >>$CONFIG_STATUS <<\_ACEOF
19935
19936 ac_cs_usage="\
19937 \`$as_me' instantiates files from templates according to the
19938 current configuration.
19939
19940 Usage: $0 [OPTIONS] [FILE]...
19941
19942 -h, --help print this help, then exit
19943 -V, --version print version number, then exit
19944 -q, --quiet do not print progress messages
19945 -d, --debug don't remove temporary files
19946 --recheck update $as_me by reconfiguring in the same conditions
19947 --file=FILE[:TEMPLATE]
19948 instantiate the configuration file FILE
19949 --header=FILE[:TEMPLATE]
19950 instantiate the configuration header FILE
19951
19952 Configuration files:
19953 $config_files
19954
19955 Configuration headers:
19956 $config_headers
19957
19958 Configuration commands:
19959 $config_commands
19960
19961 Report bugs to <[email protected]>."
19962 _ACEOF
19963
19964 cat >>$CONFIG_STATUS <<_ACEOF
19965 ac_cs_version="\\
19966 libtextwrap config.status 0.01
19967 configured by $0, generated by GNU Autoconf 2.57,
19968 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19969
19970 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19971 Free Software Foundation, Inc.
19972 This config.status script is free software; the Free Software Foundation
19973 gives unlimited permission to copy, distribute and modify it."
19974 srcdir=$srcdir
19975 INSTALL="$INSTALL"
19976 _ACEOF
19977
19978 cat >>$CONFIG_STATUS <<\_ACEOF
19979 # If no file are specified by the user, then we need to provide default
19980 # value. By we need to know if files were specified by the user.
19981 ac_need_defaults=:
19982 while test $# != 0
19983 do
19984 case $1 in
19985 --*=*)
19986 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19987 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19988 ac_shift=:
19989 ;;
19990 -*)
19991 ac_option=$1
19992 ac_optarg=$2
19993 ac_shift=shift
19994 ;;
19995 *) # This is not an option, so the user has probably given explicit
19996 # arguments.
19997 ac_option=$1
19998 ac_need_defaults=false;;
19999 esac
20000
20001 case $ac_option in
20002 # Handling of the options.
20003 _ACEOF
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20006 ac_cs_recheck=: ;;
20007 --version | --vers* | -V )
20008 echo "$ac_cs_version"; exit 0 ;;
20009 --he | --h)
20010 # Conflict between --help and --header
20011 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20012 Try \`$0 --help' for more information." >&5
20013 echo "$as_me: error: ambiguous option: $1
20014 Try \`$0 --help' for more information." >&2;}
20015 { (exit 1); exit 1; }; };;
20016 --help | --hel | -h )
20017 echo "$ac_cs_usage"; exit 0 ;;
20018 --debug | --d* | -d )
20019 debug=: ;;
20020 --file | --fil | --fi | --f )
20021 $ac_shift
20022 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20023 ac_need_defaults=false;;
20024 --header | --heade | --head | --hea )
20025 $ac_shift
20026 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20027 ac_need_defaults=false;;
20028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20029 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20030 ac_cs_silent=: ;;
20031
20032 # This is an error.
20033 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20034 Try \`$0 --help' for more information." >&5
20035 echo "$as_me: error: unrecognized option: $1
20036 Try \`$0 --help' for more information." >&2;}
20037 { (exit 1); exit 1; }; } ;;
20038
20039 *) ac_config_targets="$ac_config_targets $1" ;;
20040
20041 esac
20042 shift
20043 done
20044
20045 ac_configure_extra_args=
20046
20047 if $ac_cs_silent; then
20048 exec 6>/dev/null
20049 ac_configure_extra_args="$ac_configure_extra_args --silent"
20050 fi
20051
20052 _ACEOF
20053 cat >>$CONFIG_STATUS <<_ACEOF
20054 if \$ac_cs_recheck; then
20055 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20056 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20057 fi
20058
20059 _ACEOF
20060
20061 cat >>$CONFIG_STATUS <<_ACEOF
20062 #
20063 # INIT-COMMANDS section.
20064 #
20065
20066 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20067
20068 _ACEOF
20069
20070
20071
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073 for ac_config_target in $ac_config_targets
20074 do
20075 case "$ac_config_target" in
20076 # Handling of arguments.
20077 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20078 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20079 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20080 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20081 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20082 { (exit 1); exit 1; }; };;
20083 esac
20084 done
20085
20086 # If the user did not use the arguments to specify the items to instantiate,
20087 # then the envvar interface is used. Set only those that are not.
20088 # We use the long form for the default assignment because of an extremely
20089 # bizarre bug on SunOS 4.1.3.
20090 if $ac_need_defaults; then
20091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20094 fi
20095
20096 # Have a temporary directory for convenience. Make it in the build tree
20097 # simply because there is no reason to put it here, and in addition,
20098 # creating and moving files from /tmp can sometimes cause problems.
20099 # Create a temporary directory, and hook for its removal unless debugging.
20100 $debug ||
20101 {
20102 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20103 trap '{ (exit 1); exit 1; }' 1 2 13 15
20104 }
20105
20106 # Create a (secure) tmp directory for tmp files.
20107
20108 {
20109 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20110 test -n "$tmp" && test -d "$tmp"
20111 } ||
20112 {
20113 tmp=./confstat$$-$RANDOM
20114 (umask 077 && mkdir $tmp)
20115 } ||
20116 {
20117 echo "$me: cannot create a temporary directory in ." >&2
20118 { (exit 1); exit 1; }
20119 }
20120
20121 _ACEOF
20122
20123 cat >>$CONFIG_STATUS <<_ACEOF
20124
20125 #
20126 # CONFIG_FILES section.
20127 #
20128
20129 # No need to generate the scripts if there are no CONFIG_FILES.
20130 # This happens for instance when ./config.status config.h
20131 if test -n "\$CONFIG_FILES"; then
20132 # Protect against being on the right side of a sed subst in config.status.
20133 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20134 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20135 s,@SHELL@,$SHELL,;t t
20136 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20137 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20138 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20139 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20140 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20141 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20142 s,@exec_prefix@,$exec_prefix,;t t
20143 s,@prefix@,$prefix,;t t
20144 s,@program_transform_name@,$program_transform_name,;t t
20145 s,@bindir@,$bindir,;t t
20146 s,@sbindir@,$sbindir,;t t
20147 s,@libexecdir@,$libexecdir,;t t
20148 s,@datadir@,$datadir,;t t
20149 s,@sysconfdir@,$sysconfdir,;t t
20150 s,@sharedstatedir@,$sharedstatedir,;t t
20151 s,@localstatedir@,$localstatedir,;t t
20152 s,@libdir@,$libdir,;t t
20153 s,@includedir@,$includedir,;t t
20154 s,@oldincludedir@,$oldincludedir,;t t
20155 s,@infodir@,$infodir,;t t
20156 s,@mandir@,$mandir,;t t
20157 s,@build_alias@,$build_alias,;t t
20158 s,@host_alias@,$host_alias,;t t
20159 s,@target_alias@,$target_alias,;t t
20160 s,@DEFS@,$DEFS,;t t
20161 s,@ECHO_C@,$ECHO_C,;t t
20162 s,@ECHO_N@,$ECHO_N,;t t
20163 s,@ECHO_T@,$ECHO_T,;t t
20164 s,@LIBS@,$LIBS,;t t
20165 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20166 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20167 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20168 s,@CYGPATH_W@,$CYGPATH_W,;t t
20169 s,@PACKAGE@,$PACKAGE,;t t
20170 s,@VERSION@,$VERSION,;t t
20171 s,@ACLOCAL@,$ACLOCAL,;t t
20172 s,@AUTOCONF@,$AUTOCONF,;t t
20173 s,@AUTOMAKE@,$AUTOMAKE,;t t
20174 s,@AUTOHEADER@,$AUTOHEADER,;t t
20175 s,@MAKEINFO@,$MAKEINFO,;t t
20176 s,@AMTAR@,$AMTAR,;t t
20177 s,@install_sh@,$install_sh,;t t
20178 s,@STRIP@,$STRIP,;t t
20179 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20180 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20181 s,@AWK@,$AWK,;t t
20182 s,@SET_MAKE@,$SET_MAKE,;t t
20183 s,@am__leading_dot@,$am__leading_dot,;t t
20184 s,@CC@,$CC,;t t
20185 s,@CFLAGS@,$CFLAGS,;t t
20186 s,@LDFLAGS@,$LDFLAGS,;t t
20187 s,@CPPFLAGS@,$CPPFLAGS,;t t
20188 s,@ac_ct_CC@,$ac_ct_CC,;t t
20189 s,@EXEEXT@,$EXEEXT,;t t
20190 s,@OBJEXT@,$OBJEXT,;t t
20191 s,@DEPDIR@,$DEPDIR,;t t
20192 s,@am__include@,$am__include,;t t
20193 s,@am__quote@,$am__quote,;t t
20194 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20195 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20196 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20197 s,@CCDEPMODE@,$CCDEPMODE,;t t
20198 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20199 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20200 s,@RANLIB@,$RANLIB,;t t
20201 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20202 s,@build@,$build,;t t
20203 s,@build_cpu@,$build_cpu,;t t
20204 s,@build_vendor@,$build_vendor,;t t
20205 s,@build_os@,$build_os,;t t
20206 s,@host@,$host,;t t
20207 s,@host_cpu@,$host_cpu,;t t
20208 s,@host_vendor@,$host_vendor,;t t
20209 s,@host_os@,$host_os,;t t
20210 s,@EGREP@,$EGREP,;t t
20211 s,@LN_S@,$LN_S,;t t
20212 s,@ECHO@,$ECHO,;t t
20213 s,@AR@,$AR,;t t
20214 s,@ac_ct_AR@,$ac_ct_AR,;t t
20215 s,@CPP@,$CPP,;t t
20216 s,@CXX@,$CXX,;t t
20217 s,@CXXFLAGS@,$CXXFLAGS,;t t
20218 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20219 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20220 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20221 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20222 s,@CXXCPP@,$CXXCPP,;t t
20223 s,@F77@,$F77,;t t
20224 s,@FFLAGS@,$FFLAGS,;t t
20225 s,@ac_ct_F77@,$ac_ct_F77,;t t
20226 s,@LIBTOOL@,$LIBTOOL,;t t
20227 s,@LIBOBJS@,$LIBOBJS,;t t
20228 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20229 CEOF
20230
20231 _ACEOF
20232
20233 cat >>$CONFIG_STATUS <<\_ACEOF
20234 # Split the substitutions into bite-sized pieces for seds with
20235 # small command number limits, like on Digital OSF/1 and HP-UX.
20236 ac_max_sed_lines=48
20237 ac_sed_frag=1 # Number of current file.
20238 ac_beg=1 # First line for current file.
20239 ac_end=$ac_max_sed_lines # Line after last line for current file.
20240 ac_more_lines=:
20241 ac_sed_cmds=
20242 while $ac_more_lines; do
20243 if test $ac_beg -gt 1; then
20244 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20245 else
20246 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20247 fi
20248 if test ! -s $tmp/subs.frag; then
20249 ac_more_lines=false
20250 else
20251 # The purpose of the label and of the branching condition is to
20252 # speed up the sed processing (if there are no `@' at all, there
20253 # is no need to browse any of the substitutions).
20254 # These are the two extra sed commands mentioned above.
20255 (echo ':t
20256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20257 if test -z "$ac_sed_cmds"; then
20258 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20259 else
20260 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20261 fi
20262 ac_sed_frag=`expr $ac_sed_frag + 1`
20263 ac_beg=$ac_end
20264 ac_end=`expr $ac_end + $ac_max_sed_lines`
20265 fi
20266 done
20267 if test -z "$ac_sed_cmds"; then
20268 ac_sed_cmds=cat
20269 fi
20270 fi # test -n "$CONFIG_FILES"
20271
20272 _ACEOF
20273 cat >>$CONFIG_STATUS <<\_ACEOF
20274 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20276 case $ac_file in
20277 - | *:- | *:-:* ) # input from stdin
20278 cat >$tmp/stdin
20279 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20281 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20283 * ) ac_file_in=$ac_file.in ;;
20284 esac
20285
20286 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20287 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20289 X"$ac_file" : 'X\(//\)[^/]' \| \
20290 X"$ac_file" : 'X\(//\)$' \| \
20291 X"$ac_file" : 'X\(/\)' \| \
20292 . : '\(.\)' 2>/dev/null ||
20293 echo X"$ac_file" |
20294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20296 /^X\(\/\/\)$/{ s//\1/; q; }
20297 /^X\(\/\).*/{ s//\1/; q; }
20298 s/.*/./; q'`
20299 { if $as_mkdir_p; then
20300 mkdir -p "$ac_dir"
20301 else
20302 as_dir="$ac_dir"
20303 as_dirs=
20304 while test ! -d "$as_dir"; do
20305 as_dirs="$as_dir $as_dirs"
20306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20308 X"$as_dir" : 'X\(//\)[^/]' \| \
20309 X"$as_dir" : 'X\(//\)$' \| \
20310 X"$as_dir" : 'X\(/\)' \| \
20311 . : '\(.\)' 2>/dev/null ||
20312 echo X"$as_dir" |
20313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20315 /^X\(\/\/\)$/{ s//\1/; q; }
20316 /^X\(\/\).*/{ s//\1/; q; }
20317 s/.*/./; q'`
20318 done
20319 test ! -n "$as_dirs" || mkdir $as_dirs
20320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20322 { (exit 1); exit 1; }; }; }
20323
20324 ac_builddir=.
20325
20326 if test "$ac_dir" != .; then
20327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20328 # A "../" for each directory in $ac_dir_suffix.
20329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20330 else
20331 ac_dir_suffix= ac_top_builddir=
20332 fi
20333
20334 case $srcdir in
20335 .) # No --srcdir option. We are building in place.
20336 ac_srcdir=.
20337 if test -z "$ac_top_builddir"; then
20338 ac_top_srcdir=.
20339 else
20340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20341 fi ;;
20342 [\\/]* | ?:[\\/]* ) # Absolute path.
20343 ac_srcdir=$srcdir$ac_dir_suffix;
20344 ac_top_srcdir=$srcdir ;;
20345 *) # Relative path.
20346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20348 esac
20349 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20350 # absolute.
20351 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20352 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20353 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20354 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20355
20356
20357 case $INSTALL in
20358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20359 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20360 esac
20361
20362 if test x"$ac_file" != x-; then
20363 { echo "$as_me:$LINENO: creating $ac_file" >&5
20364 echo "$as_me: creating $ac_file" >&6;}
20365 rm -f "$ac_file"
20366 fi
20367 # Let's still pretend it is `configure' which instantiates (i.e., don't
20368 # use $as_me), people would be surprised to read:
20369 # /* config.h. Generated by config.status. */
20370 if test x"$ac_file" = x-; then
20371 configure_input=
20372 else
20373 configure_input="$ac_file. "
20374 fi
20375 configure_input=$configure_input"Generated from `echo $ac_file_in |
20376 sed 's,.*/,,'` by configure."
20377
20378 # First look for the input files in the build tree, otherwise in the
20379 # src tree.
20380 ac_file_inputs=`IFS=:
20381 for f in $ac_file_in; do
20382 case $f in
20383 -) echo $tmp/stdin ;;
20384 [\\/$]*)
20385 # Absolute (can't be DOS-style, as IFS=:)
20386 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20387 echo "$as_me: error: cannot find input file: $f" >&2;}
20388 { (exit 1); exit 1; }; }
20389 echo $f;;
20390 *) # Relative
20391 if test -f "$f"; then
20392 # Build tree
20393 echo $f
20394 elif test -f "$srcdir/$f"; then
20395 # Source tree
20396 echo $srcdir/$f
20397 else
20398 # /dev/null tree
20399 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20400 echo "$as_me: error: cannot find input file: $f" >&2;}
20401 { (exit 1); exit 1; }; }
20402 fi;;
20403 esac
20404 done` || { (exit 1); exit 1; }
20405 _ACEOF
20406 cat >>$CONFIG_STATUS <<_ACEOF
20407 sed "$ac_vpsub
20408 $extrasub
20409 _ACEOF
20410 cat >>$CONFIG_STATUS <<\_ACEOF
20411 :t
20412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20413 s,@configure_input@,$configure_input,;t t
20414 s,@srcdir@,$ac_srcdir,;t t
20415 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20416 s,@top_srcdir@,$ac_top_srcdir,;t t
20417 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20418 s,@builddir@,$ac_builddir,;t t
20419 s,@abs_builddir@,$ac_abs_builddir,;t t
20420 s,@top_builddir@,$ac_top_builddir,;t t
20421 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20422 s,@INSTALL@,$ac_INSTALL,;t t
20423 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20424 rm -f $tmp/stdin
20425 if test x"$ac_file" != x-; then
20426 mv $tmp/out $ac_file
20427 else
20428 cat $tmp/out
20429 rm -f $tmp/out
20430 fi
20431
20432 done
20433 _ACEOF
20434 cat >>$CONFIG_STATUS <<\_ACEOF
20435
20436 #
20437 # CONFIG_HEADER section.
20438 #
20439
20440 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20441 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20442 #
20443 # ac_d sets the value in "#define NAME VALUE" lines.
20444 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20445 ac_dB='[ ].*$,\1#\2'
20446 ac_dC=' '
20447 ac_dD=',;t'
20448 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20449 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20450 ac_uB='$,\1#\2define\3'
20451 ac_uC=' '
20452 ac_uD=',;t'
20453
20454 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20456 case $ac_file in
20457 - | *:- | *:-:* ) # input from stdin
20458 cat >$tmp/stdin
20459 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20461 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20462 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20463 * ) ac_file_in=$ac_file.in ;;
20464 esac
20465
20466 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20467 echo "$as_me: creating $ac_file" >&6;}
20468
20469 # First look for the input files in the build tree, otherwise in the
20470 # src tree.
20471 ac_file_inputs=`IFS=:
20472 for f in $ac_file_in; do
20473 case $f in
20474 -) echo $tmp/stdin ;;
20475 [\\/$]*)
20476 # Absolute (can't be DOS-style, as IFS=:)
20477 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20478 echo "$as_me: error: cannot find input file: $f" >&2;}
20479 { (exit 1); exit 1; }; }
20480 echo $f;;
20481 *) # Relative
20482 if test -f "$f"; then
20483 # Build tree
20484 echo $f
20485 elif test -f "$srcdir/$f"; then
20486 # Source tree
20487 echo $srcdir/$f
20488 else
20489 # /dev/null tree
20490 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20491 echo "$as_me: error: cannot find input file: $f" >&2;}
20492 { (exit 1); exit 1; }; }
20493 fi;;
20494 esac
20495 done` || { (exit 1); exit 1; }
20496 # Remove the trailing spaces.
20497 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20498
20499 _ACEOF
20500
20501 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20502 # `conftest.undefs', that substitutes the proper values into
20503 # config.h.in to produce config.h. The first handles `#define'
20504 # templates, and the second `#undef' templates.
20505 # And first: Protect against being on the right side of a sed subst in
20506 # config.status. Protect against being in an unquoted here document
20507 # in config.status.
20508 rm -f conftest.defines conftest.undefs
20509 # Using a here document instead of a string reduces the quoting nightmare.
20510 # Putting comments in sed scripts is not portable.
20511 #
20512 # `end' is used to avoid that the second main sed command (meant for
20513 # 0-ary CPP macros) applies to n-ary macro definitions.
20514 # See the Autoconf documentation for `clear'.
20515 cat >confdef2sed.sed <<\_ACEOF
20516 s/[\\&,]/\\&/g
20517 s,[\\$`],\\&,g
20518 t clear
20519 : clear
20520 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20521 t end
20522 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20523 : end
20524 _ACEOF
20525 # If some macros were called several times there might be several times
20526 # the same #defines, which is useless. Nevertheless, we may not want to
20527 # sort them, since we want the *last* AC-DEFINE to be honored.
20528 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20529 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20530 rm -f confdef2sed.sed
20531
20532 # This sed command replaces #undef with comments. This is necessary, for
20533 # example, in the case of _POSIX_SOURCE, which is predefined and required
20534 # on some systems where configure will not decide to define it.
20535 cat >>conftest.undefs <<\_ACEOF
20536 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20537 _ACEOF
20538
20539 # Break up conftest.defines because some shells have a limit on the size
20540 # of here documents, and old seds have small limits too (100 cmds).
20541 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20542 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20543 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20544 echo ' :' >>$CONFIG_STATUS
20545 rm -f conftest.tail
20546 while grep . conftest.defines >/dev/null
20547 do
20548 # Write a limited-size here document to $tmp/defines.sed.
20549 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20550 # Speed up: don't consider the non `#define' lines.
20551 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20552 # Work around the forget-to-reset-the-flag bug.
20553 echo 't clr' >>$CONFIG_STATUS
20554 echo ': clr' >>$CONFIG_STATUS
20555 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20556 echo 'CEOF
20557 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20558 rm -f $tmp/in
20559 mv $tmp/out $tmp/in
20560 ' >>$CONFIG_STATUS
20561 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20562 rm -f conftest.defines
20563 mv conftest.tail conftest.defines
20564 done
20565 rm -f conftest.defines
20566 echo ' fi # grep' >>$CONFIG_STATUS
20567 echo >>$CONFIG_STATUS
20568
20569 # Break up conftest.undefs because some shells have a limit on the size
20570 # of here documents, and old seds have small limits too (100 cmds).
20571 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20572 rm -f conftest.tail
20573 while grep . conftest.undefs >/dev/null
20574 do
20575 # Write a limited-size here document to $tmp/undefs.sed.
20576 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20577 # Speed up: don't consider the non `#undef'
20578 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20579 # Work around the forget-to-reset-the-flag bug.
20580 echo 't clr' >>$CONFIG_STATUS
20581 echo ': clr' >>$CONFIG_STATUS
20582 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20583 echo 'CEOF
20584 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20585 rm -f $tmp/in
20586 mv $tmp/out $tmp/in
20587 ' >>$CONFIG_STATUS
20588 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20589 rm -f conftest.undefs
20590 mv conftest.tail conftest.undefs
20591 done
20592 rm -f conftest.undefs
20593
20594 cat >>$CONFIG_STATUS <<\_ACEOF
20595 # Let's still pretend it is `configure' which instantiates (i.e., don't
20596 # use $as_me), people would be surprised to read:
20597 # /* config.h. Generated by config.status. */
20598 if test x"$ac_file" = x-; then
20599 echo "/* Generated by configure. */" >$tmp/config.h
20600 else
20601 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20602 fi
20603 cat $tmp/in >>$tmp/config.h
20604 rm -f $tmp/in
20605 if test x"$ac_file" != x-; then
20606 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20607 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20608 echo "$as_me: $ac_file is unchanged" >&6;}
20609 else
20610 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20612 X"$ac_file" : 'X\(//\)[^/]' \| \
20613 X"$ac_file" : 'X\(//\)$' \| \
20614 X"$ac_file" : 'X\(/\)' \| \
20615 . : '\(.\)' 2>/dev/null ||
20616 echo X"$ac_file" |
20617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20619 /^X\(\/\/\)$/{ s//\1/; q; }
20620 /^X\(\/\).*/{ s//\1/; q; }
20621 s/.*/./; q'`
20622 { if $as_mkdir_p; then
20623 mkdir -p "$ac_dir"
20624 else
20625 as_dir="$ac_dir"
20626 as_dirs=
20627 while test ! -d "$as_dir"; do
20628 as_dirs="$as_dir $as_dirs"
20629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20631 X"$as_dir" : 'X\(//\)[^/]' \| \
20632 X"$as_dir" : 'X\(//\)$' \| \
20633 X"$as_dir" : 'X\(/\)' \| \
20634 . : '\(.\)' 2>/dev/null ||
20635 echo X"$as_dir" |
20636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20638 /^X\(\/\/\)$/{ s//\1/; q; }
20639 /^X\(\/\).*/{ s//\1/; q; }
20640 s/.*/./; q'`
20641 done
20642 test ! -n "$as_dirs" || mkdir $as_dirs
20643 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20645 { (exit 1); exit 1; }; }; }
20646
20647 rm -f $ac_file
20648 mv $tmp/config.h $ac_file
20649 fi
20650 else
20651 cat $tmp/config.h
20652 rm -f $tmp/config.h
20653 fi
20654 # Compute $ac_file's index in $config_headers.
20655 _am_stamp_count=1
20656 for _am_header in $config_headers :; do
20657 case $_am_header in
20658 $ac_file | $ac_file:* )
20659 break ;;
20660 * )
20661 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20662 esac
20663 done
20664 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20665 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20666 X$ac_file : 'X\(//\)[^/]' \| \
20667 X$ac_file : 'X\(//\)$' \| \
20668 X$ac_file : 'X\(/\)' \| \
20669 . : '\(.\)' 2>/dev/null ||
20670 echo X$ac_file |
20671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20673 /^X\(\/\/\)$/{ s//\1/; q; }
20674 /^X\(\/\).*/{ s//\1/; q; }
20675 s/.*/./; q'`/stamp-h$_am_stamp_count
20676 done
20677 _ACEOF
20678 cat >>$CONFIG_STATUS <<\_ACEOF
20679
20680 #
20681 # CONFIG_COMMANDS section.
20682 #
20683 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20684 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20685 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20686 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20687 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20688 X"$ac_dest" : 'X\(//\)[^/]' \| \
20689 X"$ac_dest" : 'X\(//\)$' \| \
20690 X"$ac_dest" : 'X\(/\)' \| \
20691 . : '\(.\)' 2>/dev/null ||
20692 echo X"$ac_dest" |
20693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20695 /^X\(\/\/\)$/{ s//\1/; q; }
20696 /^X\(\/\).*/{ s//\1/; q; }
20697 s/.*/./; q'`
20698 ac_builddir=.
20699
20700 if test "$ac_dir" != .; then
20701 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20702 # A "../" for each directory in $ac_dir_suffix.
20703 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20704 else
20705 ac_dir_suffix= ac_top_builddir=
20706 fi
20707
20708 case $srcdir in
20709 .) # No --srcdir option. We are building in place.
20710 ac_srcdir=.
20711 if test -z "$ac_top_builddir"; then
20712 ac_top_srcdir=.
20713 else
20714 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20715 fi ;;
20716 [\\/]* | ?:[\\/]* ) # Absolute path.
20717 ac_srcdir=$srcdir$ac_dir_suffix;
20718 ac_top_srcdir=$srcdir ;;
20719 *) # Relative path.
20720 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20721 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20722 esac
20723 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20724 # absolute.
20725 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20726 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20727 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20728 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20729
20730
20731 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20732 echo "$as_me: executing $ac_dest commands" >&6;}
20733 case $ac_dest in
20734 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20735 # Strip MF so we end up with the name of the file.
20736 mf=`echo "$mf" | sed -e 's/:.*$//'`
20737 # Check whether this is an Automake generated Makefile or not.
20738 # We used to match only the files named `Makefile.in', but
20739 # some people rename them; so instead we look at the file content.
20740 # Grep'ing the first line is not enough: some people post-process
20741 # each Makefile.in and add a new line on top of each file to say so.
20742 # So let's grep whole file.
20743 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20744 dirpart=`(dirname "$mf") 2>/dev/null ||
20745 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20746 X"$mf" : 'X\(//\)[^/]' \| \
20747 X"$mf" : 'X\(//\)$' \| \
20748 X"$mf" : 'X\(/\)' \| \
20749 . : '\(.\)' 2>/dev/null ||
20750 echo X"$mf" |
20751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20753 /^X\(\/\/\)$/{ s//\1/; q; }
20754 /^X\(\/\).*/{ s//\1/; q; }
20755 s/.*/./; q'`
20756 else
20757 continue
20758 fi
20759 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20760 # Extract the definition of DEP_FILES from the Makefile without
20761 # running `make'.
20762 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20763 test -z "$DEPDIR" && continue
20764 # When using ansi2knr, U may be empty or an underscore; expand it
20765 U=`sed -n -e '/^U = / s///p' < "$mf"`
20766 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20767 # We invoke sed twice because it is the simplest approach to
20768 # changing $(DEPDIR) to its actual value in the expansion.
20769 for file in `sed -n -e '
20770 /^DEP_FILES = .*\\\\$/ {
20771 s/^DEP_FILES = //
20772 :loop
20773 s/\\\\$//
20774 p
20775 n
20776 /\\\\$/ b loop
20777 p
20778 }
20779 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20780 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20781 # Make sure the directory exists.
20782 test -f "$dirpart/$file" && continue
20783 fdir=`(dirname "$file") 2>/dev/null ||
20784 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20785 X"$file" : 'X\(//\)[^/]' \| \
20786 X"$file" : 'X\(//\)$' \| \
20787 X"$file" : 'X\(/\)' \| \
20788 . : '\(.\)' 2>/dev/null ||
20789 echo X"$file" |
20790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20792 /^X\(\/\/\)$/{ s//\1/; q; }
20793 /^X\(\/\).*/{ s//\1/; q; }
20794 s/.*/./; q'`
20795 { if $as_mkdir_p; then
20796 mkdir -p $dirpart/$fdir
20797 else
20798 as_dir=$dirpart/$fdir
20799 as_dirs=
20800 while test ! -d "$as_dir"; do
20801 as_dirs="$as_dir $as_dirs"
20802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20804 X"$as_dir" : 'X\(//\)[^/]' \| \
20805 X"$as_dir" : 'X\(//\)$' \| \
20806 X"$as_dir" : 'X\(/\)' \| \
20807 . : '\(.\)' 2>/dev/null ||
20808 echo X"$as_dir" |
20809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20811 /^X\(\/\/\)$/{ s//\1/; q; }
20812 /^X\(\/\).*/{ s//\1/; q; }
20813 s/.*/./; q'`
20814 done
20815 test ! -n "$as_dirs" || mkdir $as_dirs
20816 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20817 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20818 { (exit 1); exit 1; }; }; }
20819
20820 # echo "creating $dirpart/$file"
20821 echo '# dummy' > "$dirpart/$file"
20822 done
20823 done
20824 ;;
20825 esac
20826 done
20827 _ACEOF
20828
20829 cat >>$CONFIG_STATUS <<\_ACEOF
20830
20831 { (exit 0); exit 0; }
20832 _ACEOF
20833 chmod +x $CONFIG_STATUS
20834 ac_clean_files=$ac_clean_files_save
20835
20836
20837 # configure is writing to config.log, and then calls config.status.
20838 # config.status does its own redirection, appending to config.log.
20839 # Unfortunately, on DOS this fails, as config.log is still kept open
20840 # by configure, so config.status won't be able to write to it; its
20841 # output is simply discarded. So we exec the FD to /dev/null,
20842 # effectively closing config.log, so it can be properly (re)opened and
20843 # appended to by config.status. When coming back to configure, we
20844 # need to make the FD available again.
20845 if test "$no_create" != yes; then
20846 ac_cs_success=:
20847 ac_config_status_args=
20848 test "$silent" = yes &&
20849 ac_config_status_args="$ac_config_status_args --quiet"
20850 exec 5>/dev/null
20851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20852 exec 5>>config.log
20853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20854 # would make configure fail if this is the last instruction.
20855 $ac_cs_success || { (exit 1); exit 1; }
20856 fi
20857