comparison configure @ 1:551433a01cab

initial coding
author carl
date Wed, 23 Nov 2005 19:29:14 -0800
parents
children d76f9ff42487
comparison
equal deleted inserted replaced
0:a3b8d64b2ae5 1:551433a01cab
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="configure.in"
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP 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_CXX_set=${CXX+set}
908 ac_env_CXX_value=$CXX
909 ac_cv_env_CXX_set=${CXX+set}
910 ac_cv_env_CXX_value=$CXX
911 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912 ac_env_CXXFLAGS_value=$CXXFLAGS
913 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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_CC_set=${CC+set}
924 ac_env_CC_value=$CC
925 ac_cv_env_CC_set=${CC+set}
926 ac_cv_env_CC_value=$CC
927 ac_env_CFLAGS_set=${CFLAGS+set}
928 ac_env_CFLAGS_value=$CFLAGS
929 ac_cv_env_CFLAGS_set=${CFLAGS+set}
930 ac_cv_env_CFLAGS_value=$CFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
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 this package 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
1021 cat <<\_ACEOF
1022
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035
1036 Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1041 both]
1042 --with-tags[=TAGS]
1043 include additional configurations [automatic]
1044
1045 Some influential environment variables:
1046 CXX C++ compiler command
1047 CXXFLAGS C++ compiler flags
1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1049 nonstandard directory <lib dir>
1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051 headers in a nonstandard directory <include dir>
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 CPP C preprocessor
1055 CXXCPP C++ preprocessor
1056 F77 Fortran 77 compiler command
1057 FFLAGS Fortran 77 compiler flags
1058
1059 Use these variables to override the choices made by `configure' or to help
1060 it to find libraries and programs with nonstandard names/locations.
1061
1062 _ACEOF
1063 fi
1064
1065 if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1067 ac_popdir=`pwd`
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1070 ac_builddir=.
1071
1072 if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076 else
1077 ac_dir_suffix= ac_top_builddir=
1078 fi
1079
1080 case $srcdir in
1081 .) # No --srcdir option. We are building in place.
1082 ac_srcdir=.
1083 if test -z "$ac_top_builddir"; then
1084 ac_top_srcdir=.
1085 else
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087 fi ;;
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1091 *) # Relative path.
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094 esac
1095
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1098 case `pwd` in
1099 .) ac_abs_builddir="$ac_dir";;
1100 *)
1101 case "$ac_dir" in
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105 esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1109 *)
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1118 *)
1119 case $ac_srcdir in
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1127 *)
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 esac;;
1133 esac
1134
1135 cd $ac_dir
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1138 echo
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1141 echo
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1145 echo
1146 $ac_configure --help
1147 else
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1149 fi
1150 cd $ac_popdir
1151 done
1152 fi
1153
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1156 cat <<\_ACEOF
1157
1158 Copyright (C) 2003 Free Software Foundation, Inc.
1159 This configure script is free software; the Free Software Foundation
1160 gives unlimited permission to copy, distribute and modify it.
1161 _ACEOF
1162 exit 0
1163 fi
1164 exec 5>config.log
1165 cat >&5 <<_ACEOF
1166 This file contains any messages produced by compilers while
1167 running configure, to aid debugging if configure makes a mistake.
1168
1169 It was created by $as_me, which was
1170 generated by GNU Autoconf 2.59. Invocation command line was
1171
1172 $ $0 $@
1173
1174 _ACEOF
1175 {
1176 cat <<_ASUNAME
1177 ## --------- ##
1178 ## Platform. ##
1179 ## --------- ##
1180
1181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1182 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1183 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1184 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1185 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1186
1187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1188 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1189
1190 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1191 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1194 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1195 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1196 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1197
1198 _ASUNAME
1199
1200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1201 for as_dir in $PATH
1202 do
1203 IFS=$as_save_IFS
1204 test -z "$as_dir" && as_dir=.
1205 echo "PATH: $as_dir"
1206 done
1207
1208 } >&5
1209
1210 cat >&5 <<_ACEOF
1211
1212
1213 ## ----------- ##
1214 ## Core tests. ##
1215 ## ----------- ##
1216
1217 _ACEOF
1218
1219
1220 # Keep a trace of the command line.
1221 # Strip out --no-create and --no-recursion so they do not pile up.
1222 # Strip out --silent because we don't want to record it for future runs.
1223 # Also quote any args containing shell meta-characters.
1224 # Make two passes to allow for proper duplicate-argument suppression.
1225 ac_configure_args=
1226 ac_configure_args0=
1227 ac_configure_args1=
1228 ac_sep=
1229 ac_must_keep_next=false
1230 for ac_pass in 1 2
1231 do
1232 for ac_arg
1233 do
1234 case $ac_arg in
1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 continue ;;
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 esac
1242 case $ac_pass in
1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1244 2)
1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246 if test $ac_must_keep_next = true; then
1247 ac_must_keep_next=false # Got value, back to normal.
1248 else
1249 case $ac_arg in
1250 *=* | --config-cache | -C | -disable-* | --disable-* \
1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253 | -with-* | --with-* | -without-* | --without-* | --x)
1254 case "$ac_configure_args0 " in
1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1256 esac
1257 ;;
1258 -* ) ac_must_keep_next=true ;;
1259 esac
1260 fi
1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262 # Get rid of the leading space.
1263 ac_sep=" "
1264 ;;
1265 esac
1266 done
1267 done
1268 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1270
1271 # When interrupted or exit'd, cleanup temporary files, and complete
1272 # config.log. We remove comments because anyway the quotes in there
1273 # would cause problems or look ugly.
1274 # WARNING: Be sure not to use single quotes in there, as some shells,
1275 # such as our DU 5.0 friend, will then `close' the trap.
1276 trap 'exit_status=$?
1277 # Save into config.log some information that might help in debugging.
1278 {
1279 echo
1280
1281 cat <<\_ASBOX
1282 ## ---------------- ##
1283 ## Cache variables. ##
1284 ## ---------------- ##
1285 _ASBOX
1286 echo
1287 # The following way of writing the cache mishandles newlines in values,
1288 {
1289 (set) 2>&1 |
1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1291 *ac_space=\ *)
1292 sed -n \
1293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1295 ;;
1296 *)
1297 sed -n \
1298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1299 ;;
1300 esac;
1301 }
1302 echo
1303
1304 cat <<\_ASBOX
1305 ## ----------------- ##
1306 ## Output variables. ##
1307 ## ----------------- ##
1308 _ASBOX
1309 echo
1310 for ac_var in $ac_subst_vars
1311 do
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1316
1317 if test -n "$ac_subst_files"; then
1318 cat <<\_ASBOX
1319 ## ------------- ##
1320 ## Output files. ##
1321 ## ------------- ##
1322 _ASBOX
1323 echo
1324 for ac_var in $ac_subst_files
1325 do
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1328 done | sort
1329 echo
1330 fi
1331
1332 if test -s confdefs.h; then
1333 cat <<\_ASBOX
1334 ## ----------- ##
1335 ## confdefs.h. ##
1336 ## ----------- ##
1337 _ASBOX
1338 echo
1339 sed "/^$/d" confdefs.h | sort
1340 echo
1341 fi
1342 test "$ac_signal" != 0 &&
1343 echo "$as_me: caught signal $ac_signal"
1344 echo "$as_me: exit $exit_status"
1345 } >&5
1346 rm -f core *.core &&
1347 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1348 exit $exit_status
1349 ' 0
1350 for ac_signal in 1 2 13 15; do
1351 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1352 done
1353 ac_signal=0
1354
1355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1356 rm -rf conftest* confdefs.h
1357 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1358 echo >confdefs.h
1359
1360 # Predefined preprocessor variables.
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_NAME "$PACKAGE_NAME"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1369 _ACEOF
1370
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_STRING "$PACKAGE_STRING"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1384 _ACEOF
1385
1386
1387 # Let the site file select an alternate cache file if it wants to.
1388 # Prefer explicitly selected file to automatically selected ones.
1389 if test -z "$CONFIG_SITE"; then
1390 if test "x$prefix" != xNONE; then
1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1392 else
1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1394 fi
1395 fi
1396 for ac_site_file in $CONFIG_SITE; do
1397 if test -r "$ac_site_file"; then
1398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399 echo "$as_me: loading site script $ac_site_file" >&6;}
1400 sed 's/^/| /' "$ac_site_file" >&5
1401 . "$ac_site_file"
1402 fi
1403 done
1404
1405 if test -r "$cache_file"; then
1406 # Some versions of bash will fail to source /dev/null (special
1407 # files actually), so we avoid doing that.
1408 if test -f "$cache_file"; then
1409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410 echo "$as_me: loading cache $cache_file" >&6;}
1411 case $cache_file in
1412 [\\/]* | ?:[\\/]* ) . $cache_file;;
1413 *) . ./$cache_file;;
1414 esac
1415 fi
1416 else
1417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418 echo "$as_me: creating cache $cache_file" >&6;}
1419 >$cache_file
1420 fi
1421
1422 # Check that the precious variables saved in the cache have kept the same
1423 # value.
1424 ac_cache_corrupted=false
1425 for ac_var in `(set) 2>&1 |
1426 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428 eval ac_new_set=\$ac_env_${ac_var}_set
1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430 eval ac_new_val="\$ac_env_${ac_var}_value"
1431 case $ac_old_set,$ac_new_set in
1432 set,)
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1436 ,set)
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,);;
1441 *)
1442 if test "x$ac_old_val" != "x$ac_new_val"; then
1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1444 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1446 echo "$as_me: former value: $ac_old_val" >&2;}
1447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1448 echo "$as_me: current value: $ac_new_val" >&2;}
1449 ac_cache_corrupted=:
1450 fi;;
1451 esac
1452 # Pass precious variables to config.status.
1453 if test "$ac_new_set" = set; then
1454 case $ac_new_val in
1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457 *) ac_arg=$ac_var=$ac_new_val ;;
1458 esac
1459 case " $ac_configure_args " in
1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1462 esac
1463 fi
1464 done
1465 if $ac_cache_corrupted; then
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1471 fi
1472
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498 ac_config_headers="$ac_config_headers config.h"
1499
1500 am__api_version="1.9"
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1515 fi
1516 done
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1521 fi
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526 # Find a good install program. We prefer a C program (faster),
1527 # so one script is as good as another. But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1532 # AIX /bin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 # Account for people who put trailing slashes in PATH elements.
1551 case $as_dir/ in
1552 ./ | .// | /cC/* | \
1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1555 /usr/ucb/* ) ;;
1556 *)
1557 # OSF1 and SCO ODT 3.0 have their own names for install.
1558 # Don't use installbsd from OSF since it installs stuff as root
1559 # by default.
1560 for ac_prog in ginstall scoinst install; do
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563 if test $ac_prog = install &&
1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565 # AIX install. It has an incompatible calling convention.
1566 :
1567 elif test $ac_prog = install &&
1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # program-specific install script used by HP pwplus--don't use.
1570 :
1571 else
1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1573 break 3
1574 fi
1575 fi
1576 done
1577 done
1578 ;;
1579 esac
1580 done
1581
1582
1583 fi
1584 if test "${ac_cv_path_install+set}" = set; then
1585 INSTALL=$ac_cv_path_install
1586 else
1587 # As a last resort, use the slow shell script. We don't cache a
1588 # path for INSTALL within a source directory, because that will
1589 # break other packages using the cache if that directory is
1590 # removed, or if the path is relative.
1591 INSTALL=$ac_install_sh
1592 fi
1593 fi
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1596
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1607 # Just in case
1608 sleep 1
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments. Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1614 # directory).
1615 if (
1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617 if test "$*" = "X"; then
1618 # -L didn't work.
1619 set X `ls -t $srcdir/configure conftest.file`
1620 fi
1621 rm -f conftest.file
1622 if test "$*" != "X $srcdir/configure conftest.file" \
1623 && test "$*" != "X conftest.file $srcdir/configure"; then
1624
1625 # If neither matched, then we have a broken ls. This can happen
1626 # if, for instance, CONFIG_SHELL is bash and it inherits a
1627 # broken ls alias from the environment. This has actually
1628 # happened. Such a system could not be considered "sane".
1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&2;}
1633 { (exit 1); exit 1; }; }
1634 fi
1635
1636 test "$2" = conftest.file
1637 )
1638 then
1639 # Ok.
1640 :
1641 else
1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646 { (exit 1); exit 1; }; }
1647 fi
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $. echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1659 _ACEOF
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1661 rm conftest.sed
1662
1663 # expand $ac_aux_dir to an absolute path
1664 am_aux_dir=`cd $ac_aux_dir && pwd`
1665
1666 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1667 # Use eval to expand $SHELL
1668 if eval "$MISSING --run true"; then
1669 am_missing_run="$MISSING --run "
1670 else
1671 am_missing_run=
1672 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1673 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1674 fi
1675
1676 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1677 # We used to keeping the `.' as first argument, in order to
1678 # allow $(mkdir_p) to be used without argument. As in
1679 # $(mkdir_p) $(somedir)
1680 # where $(somedir) is conditionally defined. However this is wrong
1681 # for two reasons:
1682 # 1. if the package is installed by a user who cannot write `.'
1683 # make install will fail,
1684 # 2. the above comment should most certainly read
1685 # $(mkdir_p) $(DESTDIR)$(somedir)
1686 # so it does not work when $(somedir) is undefined and
1687 # $(DESTDIR) is not.
1688 # To support the latter case, we have to write
1689 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1690 # so the `.' trick is pointless.
1691 mkdir_p='mkdir -p --'
1692 else
1693 # On NextStep and OpenStep, the `mkdir' command does not
1694 # recognize any option. It will interpret all options as
1695 # directories to create, and then abort because `.' already
1696 # exists.
1697 for d in ./-p ./--version;
1698 do
1699 test -d $d && rmdir $d
1700 done
1701 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1702 if test -f "$ac_aux_dir/mkinstalldirs"; then
1703 mkdir_p='$(mkinstalldirs)'
1704 else
1705 mkdir_p='$(install_sh) -d'
1706 fi
1707 fi
1708
1709 for ac_prog in gawk mawk nawk awk
1710 do
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_AWK+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718 if test -n "$AWK"; then
1719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_AWK="$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 break 2
1731 fi
1732 done
1733 done
1734
1735 fi
1736 fi
1737 AWK=$ac_cv_prog_AWK
1738 if test -n "$AWK"; then
1739 echo "$as_me:$LINENO: result: $AWK" >&5
1740 echo "${ECHO_T}$AWK" >&6
1741 else
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 fi
1745
1746 test -n "$AWK" && break
1747 done
1748
1749 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1751 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1752 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 cat >conftest.make <<\_ACEOF
1756 all:
1757 @echo 'ac_maketemp="$(MAKE)"'
1758 _ACEOF
1759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761 if test -n "$ac_maketemp"; then
1762 eval ac_cv_prog_make_${ac_make}_set=yes
1763 else
1764 eval ac_cv_prog_make_${ac_make}_set=no
1765 fi
1766 rm -f conftest.make
1767 fi
1768 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771 SET_MAKE=
1772 else
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 SET_MAKE="MAKE=${MAKE-make}"
1776 fi
1777
1778 rm -rf .tst 2>/dev/null
1779 mkdir .tst 2>/dev/null
1780 if test -d .tst; then
1781 am__leading_dot=.
1782 else
1783 am__leading_dot=_
1784 fi
1785 rmdir .tst 2>/dev/null
1786
1787 # test to see if srcdir already configured
1788 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1789 test -f $srcdir/config.status; then
1790 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1791 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1792 { (exit 1); exit 1; }; }
1793 fi
1794
1795 # test whether we have cygpath
1796 if test -z "$CYGPATH_W"; then
1797 if (cygpath --version) >/dev/null 2>/dev/null; then
1798 CYGPATH_W='cygpath -w'
1799 else
1800 CYGPATH_W=echo
1801 fi
1802 fi
1803
1804
1805 # Define the identity of the package.
1806 PACKAGE=syslog2iptables
1807 VERSION=0.1
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE "$PACKAGE"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define VERSION "$VERSION"
1817 _ACEOF
1818
1819 # Some tools Automake needs.
1820
1821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1822
1823
1824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1825
1826
1827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1828
1829
1830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1831
1832
1833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'. However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 if test -n "$STRIP"; then
1851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2
1863 fi
1864 done
1865 done
1866
1867 fi
1868 fi
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871 echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1873 else
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878 fi
1879 if test -z "$ac_cv_prog_STRIP"; then
1880 ac_ct_STRIP=$STRIP
1881 # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$ac_ct_STRIP"; then
1889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_STRIP="strip"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1901 fi
1902 done
1903 done
1904
1905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906 fi
1907 fi
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 STRIP=$ac_ct_STRIP
1918 else
1919 STRIP="$ac_cv_prog_STRIP"
1920 fi
1921
1922 fi
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924
1925 # We need awk for the "check" target. The system "awk" is bad on
1926 # some platforms.
1927 # Always define AMTAR for backward compatibility.
1928
1929 AMTAR=${AMTAR-"${am_missing_run}tar"}
1930
1931 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1932
1933
1934
1935
1936
1937
1938 ac_ext=cc
1939 ac_cpp='$CXXCPP $CPPFLAGS'
1940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1943
1944 ac_ext=cc
1945 ac_cpp='$CXXCPP $CPPFLAGS'
1946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1951 do
1952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CXX+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$CXX"; then
1960 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1972 fi
1973 done
1974 done
1975
1976 fi
1977 fi
1978 CXX=$ac_cv_prog_CXX
1979 if test -n "$CXX"; then
1980 echo "$as_me:$LINENO: result: $CXX" >&5
1981 echo "${ECHO_T}$CXX" >&6
1982 else
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1985 fi
1986
1987 test -n "$CXX" && break
1988 done
1989 fi
1990 if test -z "$CXX"; then
1991 ac_ct_CXX=$CXX
1992 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1993 do
1994 # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy $ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$ac_ct_CXX"; then
2002 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_CXX="$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015 done
2016 done
2017
2018 fi
2019 fi
2020 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2021 if test -n "$ac_ct_CXX"; then
2022 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2023 echo "${ECHO_T}$ac_ct_CXX" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029 test -n "$ac_ct_CXX" && break
2030 done
2031 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2032
2033 CXX=$ac_ct_CXX
2034 fi
2035
2036
2037 # Provide some information about the compiler.
2038 echo "$as_me:$LINENO:" \
2039 "checking for C++ compiler version" >&5
2040 ac_compiler=`set X $ac_compile; echo $2`
2041 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2042 (eval $ac_compiler --version </dev/null >&5) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }
2046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2047 (eval $ac_compiler -v </dev/null >&5) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }
2051 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2052 (eval $ac_compiler -V </dev/null >&5) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }
2056
2057 cat >conftest.$ac_ext <<_ACEOF
2058 /* confdefs.h. */
2059 _ACEOF
2060 cat confdefs.h >>conftest.$ac_ext
2061 cat >>conftest.$ac_ext <<_ACEOF
2062 /* end confdefs.h. */
2063
2064 int
2065 main ()
2066 {
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 ac_clean_files_save=$ac_clean_files
2073 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2074 # Try to create an executable without -o first, disregard a.out.
2075 # It will help us diagnose broken compilers, and finding out an intuition
2076 # of exeext.
2077 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2078 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2079 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2081 (eval $ac_link_default) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; then
2085 # Find the output, starting from the most likely. This scheme is
2086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2087 # resort.
2088
2089 # Be careful to initialize this variable, since it used to be cached.
2090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2091 ac_cv_exeext=
2092 # b.out is created by i960 compilers.
2093 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2094 do
2095 test -f "$ac_file" || continue
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2098 ;;
2099 conftest.$ac_ext )
2100 # This is the source file.
2101 ;;
2102 [ab].out )
2103 # We found the default executable, but exeext='' is most
2104 # certainly right.
2105 break;;
2106 *.* )
2107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 # FIXME: I believe we export ac_cv_exeext for Libtool,
2109 # but it would be cool to find out if it's true. Does anybody
2110 # maintain Libtool? --akim.
2111 export ac_cv_exeext
2112 break;;
2113 * )
2114 break;;
2115 esac
2116 done
2117 else
2118 echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: C++ compiler cannot create executables
2124 See \`config.log' for more details." >&2;}
2125 { (exit 77); exit 77; }; }
2126 fi
2127
2128 ac_exeext=$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_file" >&5
2130 echo "${ECHO_T}$ac_file" >&6
2131
2132 # Check the compiler produces executables we can run. If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2135 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2137 # If not cross compiling, check that we can run a simple program.
2138 if test "$cross_compiling" != yes; then
2139 if { ac_try='./$ac_file'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 (eval $ac_try) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 cross_compiling=no
2146 else
2147 if test "$cross_compiling" = maybe; then
2148 cross_compiling=yes
2149 else
2150 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2151 If you meant to cross compile, use \`--host'.
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: cannot run C++ compiled programs.
2154 If you meant to cross compile, use \`--host'.
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }
2157 fi
2158 fi
2159 fi
2160 echo "$as_me:$LINENO: result: yes" >&5
2161 echo "${ECHO_T}yes" >&6
2162
2163 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2164 ac_clean_files=$ac_clean_files_save
2165 # Check the compiler produces executables we can run. If not, either
2166 # the compiler is broken, or we cross compile.
2167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2170 echo "${ECHO_T}$cross_compiling" >&6
2171
2172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2175 (eval $ac_link) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181 # work properly (i.e., refer to `conftest.exe'), while it won't with
2182 # `rm'.
2183 for ac_file in conftest.exe conftest conftest.*; do
2184 test -f "$ac_file" || continue
2185 case $ac_file in
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 export ac_cv_exeext
2189 break;;
2190 * ) break;;
2191 esac
2192 done
2193 else
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2199 fi
2200
2201 rm -f conftest$ac_cv_exeext
2202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2203 echo "${ECHO_T}$ac_cv_exeext" >&6
2204
2205 rm -f conftest.$ac_ext
2206 EXEEXT=$ac_cv_exeext
2207 ac_exeext=$EXEEXT
2208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2210 if test "${ac_cv_objext+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h. */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2219
2220 int
2221 main ()
2222 {
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 rm -f conftest.o conftest.obj
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
2234 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2235 case $ac_file in
2236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2238 break;;
2239 esac
2240 done
2241 else
2242 echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2244
2245 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2248 See \`config.log' for more details." >&2;}
2249 { (exit 1); exit 1; }; }
2250 fi
2251
2252 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2253 fi
2254 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2255 echo "${ECHO_T}$ac_cv_objext" >&6
2256 OBJEXT=$ac_cv_objext
2257 ac_objext=$OBJEXT
2258 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2259 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2260 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h. */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2269
2270 int
2271 main ()
2272 {
2273 #ifndef __GNUC__
2274 choke me
2275 #endif
2276
2277 ;
2278 return 0;
2279 }
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_cxx_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_compiler_gnu=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 ac_compiler_gnu=no
2309 fi
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2312
2313 fi
2314 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2315 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2316 GXX=`test $ac_compiler_gnu = yes && echo yes`
2317 ac_test_CXXFLAGS=${CXXFLAGS+set}
2318 ac_save_CXXFLAGS=$CXXFLAGS
2319 CXXFLAGS="-g"
2320 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2321 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2322 if test "${ac_cv_prog_cxx_g+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 cat >conftest.$ac_ext <<_ACEOF
2326 /* confdefs.h. */
2327 _ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2331
2332 int
2333 main ()
2334 {
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 rm -f conftest.$ac_objext
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>conftest.er1
2343 ac_status=$?
2344 grep -v '^ *+' conftest.er1 >conftest.err
2345 rm -f conftest.er1
2346 cat conftest.err >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -z "$ac_cxx_werror_flag"
2350 || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 ac_cv_prog_cxx_g=yes
2363 else
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2366
2367 ac_cv_prog_cxx_g=no
2368 fi
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370 fi
2371 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2372 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2373 if test "$ac_test_CXXFLAGS" = set; then
2374 CXXFLAGS=$ac_save_CXXFLAGS
2375 elif test $ac_cv_prog_cxx_g = yes; then
2376 if test "$GXX" = yes; then
2377 CXXFLAGS="-g -O2"
2378 else
2379 CXXFLAGS="-g"
2380 fi
2381 else
2382 if test "$GXX" = yes; then
2383 CXXFLAGS="-O2"
2384 else
2385 CXXFLAGS=
2386 fi
2387 fi
2388 for ac_declaration in \
2389 '' \
2390 'extern "C" void std::exit (int) throw (); using std::exit;' \
2391 'extern "C" void std::exit (int); using std::exit;' \
2392 'extern "C" void exit (int) throw ();' \
2393 'extern "C" void exit (int);' \
2394 'void exit (int);'
2395 do
2396 cat >conftest.$ac_ext <<_ACEOF
2397 /* confdefs.h. */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h. */
2402 $ac_declaration
2403 #include <stdlib.h>
2404 int
2405 main ()
2406 {
2407 exit (42);
2408 ;
2409 return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>conftest.er1
2415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_cxx_werror_flag"
2422 || test ! -s conftest.err'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; } &&
2428 { ac_try='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 :
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 continue
2440 fi
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h. */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2448 $ac_declaration
2449 int
2450 main ()
2451 {
2452 exit (42);
2453 ;
2454 return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_cxx_werror_flag"
2467 || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 break
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 fi
2485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486 done
2487 rm -f conftest*
2488 if test -n "$ac_declaration"; then
2489 echo '#ifdef __cplusplus' >>confdefs.h
2490 echo $ac_declaration >>confdefs.h
2491 echo '#endif' >>confdefs.h
2492 fi
2493
2494 ac_ext=cc
2495 ac_cpp='$CXXCPP $CPPFLAGS'
2496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2499 DEPDIR="${am__leading_dot}deps"
2500
2501 ac_config_commands="$ac_config_commands depfiles"
2502
2503
2504 am_make=${MAKE-make}
2505 cat > confinc << 'END'
2506 am__doit:
2507 @echo done
2508 .PHONY: am__doit
2509 END
2510 # If we don't find an include directive, just comment out the code.
2511 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2512 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2513 am__include="#"
2514 am__quote=
2515 _am_result=none
2516 # First try GNU make style include.
2517 echo "include confinc" > confmf
2518 # We grep out `Entering directory' and `Leaving directory'
2519 # messages which can occur if `w' ends up in MAKEFLAGS.
2520 # In particular we don't look at `^make:' because GNU make might
2521 # be invoked under some other name (usually "gmake"), in which
2522 # case it prints its new name instead of `make'.
2523 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2524 am__include=include
2525 am__quote=
2526 _am_result=GNU
2527 fi
2528 # Now try BSD make style include.
2529 if test "$am__include" = "#"; then
2530 echo '.include "confinc"' > confmf
2531 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2532 am__include=.include
2533 am__quote="\""
2534 _am_result=BSD
2535 fi
2536 fi
2537
2538
2539 echo "$as_me:$LINENO: result: $_am_result" >&5
2540 echo "${ECHO_T}$_am_result" >&6
2541 rm -f confinc confmf
2542
2543 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2544 if test "${enable_dependency_tracking+set}" = set; then
2545 enableval="$enable_dependency_tracking"
2546
2547 fi;
2548 if test "x$enable_dependency_tracking" != xno; then
2549 am_depcomp="$ac_aux_dir/depcomp"
2550 AMDEPBACKSLASH='\'
2551 fi
2552
2553
2554 if test "x$enable_dependency_tracking" != xno; then
2555 AMDEP_TRUE=
2556 AMDEP_FALSE='#'
2557 else
2558 AMDEP_TRUE='#'
2559 AMDEP_FALSE=
2560 fi
2561
2562
2563
2564
2565 depcc="$CXX" am_compiler_list=
2566
2567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2569 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2573 # We make a subdir and do the tests there. Otherwise we can end up
2574 # making bogus files that we don't know about and never remove. For
2575 # instance it was reported that on HP-UX the gcc test will end up
2576 # making a dummy file named `D' -- because `-MD' means `put the output
2577 # in D'.
2578 mkdir conftest.dir
2579 # Copy depcomp to subdir because otherwise we won't find it if we're
2580 # using a relative directory.
2581 cp "$am_depcomp" conftest.dir
2582 cd conftest.dir
2583 # We will build objects and dependencies in a subdirectory because
2584 # it helps to detect inapplicable dependency modes. For instance
2585 # both Tru64's cc and ICC support -MD to output dependencies as a
2586 # side effect of compilation, but ICC will put the dependencies in
2587 # the current directory while Tru64 will put them in the object
2588 # directory.
2589 mkdir sub
2590
2591 am_cv_CXX_dependencies_compiler_type=none
2592 if test "$am_compiler_list" = ""; then
2593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2594 fi
2595 for depmode in $am_compiler_list; do
2596 # Setup a source with many dependencies, because some compilers
2597 # like to wrap large dependency lists on column 80 (with \), and
2598 # we should not choose a depcomp mode which is confused by this.
2599 #
2600 # We need to recreate these files for each test, as the compiler may
2601 # overwrite some of them when testing with obscure command lines.
2602 # This happens at least with the AIX C compiler.
2603 : > sub/conftest.c
2604 for i in 1 2 3 4 5 6; do
2605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2607 # Solaris 8's {/usr,}/bin/sh.
2608 touch sub/conftst$i.h
2609 done
2610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2611
2612 case $depmode in
2613 nosideeffect)
2614 # after this tag, mechanisms are not by side-effect, so they'll
2615 # only be used when explicitly requested
2616 if test "x$enable_dependency_tracking" = xyes; then
2617 continue
2618 else
2619 break
2620 fi
2621 ;;
2622 none) break ;;
2623 esac
2624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2625 # mode. It turns out that the SunPro C++ compiler does not properly
2626 # handle `-M -o', and we need to detect this.
2627 if depmode=$depmode \
2628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2631 >/dev/null 2>conftest.err &&
2632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2635 # icc doesn't choke on unknown options, it will just issue warnings
2636 # or remarks (even with -Werror). So we grep stderr for any message
2637 # that says an option was ignored or not supported.
2638 # When given -MP, icc 7.0 and 7.1 complain thusly:
2639 # icc: Command line warning: ignoring option '-M'; no argument required
2640 # The diagnosis changed in icc 8.0:
2641 # icc: Command line remark: option '-MP' not supported
2642 if (grep 'ignoring option' conftest.err ||
2643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2644 am_cv_CXX_dependencies_compiler_type=$depmode
2645 break
2646 fi
2647 fi
2648 done
2649
2650 cd ..
2651 rm -rf conftest.dir
2652 else
2653 am_cv_CXX_dependencies_compiler_type=none
2654 fi
2655
2656 fi
2657 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2658 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2659 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2660
2661
2662
2663 if
2664 test "x$enable_dependency_tracking" != xno \
2665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2666 am__fastdepCXX_TRUE=
2667 am__fastdepCXX_FALSE='#'
2668 else
2669 am__fastdepCXX_TRUE='#'
2670 am__fastdepCXX_FALSE=
2671 fi
2672
2673
2674 # Check whether --enable-shared or --disable-shared was given.
2675 if test "${enable_shared+set}" = set; then
2676 enableval="$enable_shared"
2677 p=${PACKAGE-default}
2678 case $enableval in
2679 yes) enable_shared=yes ;;
2680 no) enable_shared=no ;;
2681 *)
2682 enable_shared=no
2683 # Look at the argument we got. We use all the common list separators.
2684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2685 for pkg in $enableval; do
2686 IFS="$lt_save_ifs"
2687 if test "X$pkg" = "X$p"; then
2688 enable_shared=yes
2689 fi
2690 done
2691 IFS="$lt_save_ifs"
2692 ;;
2693 esac
2694 else
2695 enable_shared=yes
2696 fi;
2697
2698 # Check whether --enable-static or --disable-static was given.
2699 if test "${enable_static+set}" = set; then
2700 enableval="$enable_static"
2701 p=${PACKAGE-default}
2702 case $enableval in
2703 yes) enable_static=yes ;;
2704 no) enable_static=no ;;
2705 *)
2706 enable_static=no
2707 # Look at the argument we got. We use all the common list separators.
2708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2709 for pkg in $enableval; do
2710 IFS="$lt_save_ifs"
2711 if test "X$pkg" = "X$p"; then
2712 enable_static=yes
2713 fi
2714 done
2715 IFS="$lt_save_ifs"
2716 ;;
2717 esac
2718 else
2719 enable_static=yes
2720 fi;
2721
2722 # Check whether --enable-fast-install or --disable-fast-install was given.
2723 if test "${enable_fast_install+set}" = set; then
2724 enableval="$enable_fast_install"
2725 p=${PACKAGE-default}
2726 case $enableval in
2727 yes) enable_fast_install=yes ;;
2728 no) enable_fast_install=no ;;
2729 *)
2730 enable_fast_install=no
2731 # Look at the argument we got. We use all the common list separators.
2732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2733 for pkg in $enableval; do
2734 IFS="$lt_save_ifs"
2735 if test "X$pkg" = "X$p"; then
2736 enable_fast_install=yes
2737 fi
2738 done
2739 IFS="$lt_save_ifs"
2740 ;;
2741 esac
2742 else
2743 enable_fast_install=yes
2744 fi;
2745
2746 # Make sure we can run config.sub.
2747 $ac_config_sub sun4 >/dev/null 2>&1 ||
2748 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2749 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2750 { (exit 1); exit 1; }; }
2751
2752 echo "$as_me:$LINENO: checking build system type" >&5
2753 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2754 if test "${ac_cv_build+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757 ac_cv_build_alias=$build_alias
2758 test -z "$ac_cv_build_alias" &&
2759 ac_cv_build_alias=`$ac_config_guess`
2760 test -z "$ac_cv_build_alias" &&
2761 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2762 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2763 { (exit 1); exit 1; }; }
2764 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2766 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2767 { (exit 1); exit 1; }; }
2768
2769 fi
2770 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2771 echo "${ECHO_T}$ac_cv_build" >&6
2772 build=$ac_cv_build
2773 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2774 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2775 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2776
2777
2778 echo "$as_me:$LINENO: checking host system type" >&5
2779 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2780 if test "${ac_cv_host+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 ac_cv_host_alias=$host_alias
2784 test -z "$ac_cv_host_alias" &&
2785 ac_cv_host_alias=$ac_cv_build_alias
2786 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2787 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2788 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2789 { (exit 1); exit 1; }; }
2790
2791 fi
2792 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2793 echo "${ECHO_T}$ac_cv_host" >&6
2794 host=$ac_cv_host
2795 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2796 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2797 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2798
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2808 echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829
2830 fi
2831 fi
2832 CC=$ac_cv_prog_CC
2833 if test -n "$CC"; then
2834 echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6
2836 else
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2839 fi
2840
2841 fi
2842 if test -z "$ac_cv_prog_CC"; then
2843 ac_ct_CC=$CC
2844 # Extract the first word of "gcc", so it can be a program name with args.
2845 set dummy gcc; ac_word=$2
2846 echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 if test -n "$ac_ct_CC"; then
2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_ac_ct_CC="gcc"
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865 done
2866 done
2867
2868 fi
2869 fi
2870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2871 if test -n "$ac_ct_CC"; then
2872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2873 echo "${ECHO_T}$ac_ct_CC" >&6
2874 else
2875 echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6
2877 fi
2878
2879 CC=$ac_ct_CC
2880 else
2881 CC="$ac_cv_prog_CC"
2882 fi
2883
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}cc; ac_word=$2
2888 echo "$as_me:$LINENO: checking for $ac_word" >&5
2889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2890 if test "${ac_cv_prog_CC+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_CC="${ac_tool_prefix}cc"
2904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 echo "$as_me:$LINENO: result: $CC" >&5
2915 echo "${ECHO_T}$CC" >&6
2916 else
2917 echo "$as_me:$LINENO: result: no" >&5
2918 echo "${ECHO_T}no" >&6
2919 fi
2920
2921 fi
2922 if test -z "$ac_cv_prog_CC"; then
2923 ac_ct_CC=$CC
2924 # Extract the first word of "cc", so it can be a program name with args.
2925 set dummy cc; ac_word=$2
2926 echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
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 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_ac_ct_CC="cc"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947
2948 fi
2949 fi
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2953 echo "${ECHO_T}$ac_ct_CC" >&6
2954 else
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2957 fi
2958
2959 CC=$ac_ct_CC
2960 else
2961 CC="$ac_cv_prog_CC"
2962 fi
2963
2964 fi
2965 if test -z "$CC"; then
2966 # Extract the first word of "cc", so it can be a program name with args.
2967 set dummy cc; ac_word=$2
2968 echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 ac_prog_rejected=no
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2985 ac_prog_rejected=yes
2986 continue
2987 fi
2988 ac_cv_prog_CC="cc"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994
2995 if test $ac_prog_rejected = yes; then
2996 # We found a bogon in the path, so make sure we never use it.
2997 set dummy $ac_cv_prog_CC
2998 shift
2999 if test $# != 0; then
3000 # We chose a different compiler from the bogus one.
3001 # However, it has the same basename, so the bogon will be chosen
3002 # first if we set CC to just the basename; use the full file name.
3003 shift
3004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3005 fi
3006 fi
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 echo "$as_me:$LINENO: result: $CC" >&5
3012 echo "${ECHO_T}$CC" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3016 fi
3017
3018 fi
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 for ac_prog in cl
3022 do
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046
3047 fi
3048 fi
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051 echo "$as_me:$LINENO: result: $CC" >&5
3052 echo "${ECHO_T}$CC" >&6
3053 else
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3056 fi
3057
3058 test -n "$CC" && break
3059 done
3060 fi
3061 if test -z "$CC"; then
3062 ac_ct_CC=$CC
3063 for ac_prog in cl
3064 do
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066 set dummy $ac_prog; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_ac_ct_CC="$ac_prog"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088
3089 fi
3090 fi
3091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3092 if test -n "$ac_ct_CC"; then
3093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3094 echo "${ECHO_T}$ac_ct_CC" >&6
3095 else
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3098 fi
3099
3100 test -n "$ac_ct_CC" && break
3101 done
3102
3103 CC=$ac_ct_CC
3104 fi
3105
3106 fi
3107
3108
3109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: no acceptable C compiler found in \$PATH
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3114
3115 # Provide some information about the compiler.
3116 echo "$as_me:$LINENO:" \
3117 "checking for C compiler version" >&5
3118 ac_compiler=`set X $ac_compile; echo $2`
3119 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3120 (eval $ac_compiler --version </dev/null >&5) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3125 (eval $ac_compiler -v </dev/null >&5) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3130 (eval $ac_compiler -V </dev/null >&5) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }
3134
3135 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3136 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3137 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3146
3147 int
3148 main ()
3149 {
3150 #ifndef __GNUC__
3151 choke me
3152 #endif
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>conftest.er1
3161 ac_status=$?
3162 grep -v '^ *+' conftest.er1 >conftest.err
3163 rm -f conftest.er1
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -z "$ac_c_werror_flag"
3168 || test ! -s conftest.err'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 (eval $ac_try) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 ac_compiler_gnu=yes
3181 else
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 ac_compiler_gnu=no
3186 fi
3187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3188 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3189
3190 fi
3191 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3192 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3193 GCC=`test $ac_compiler_gnu = yes && echo yes`
3194 ac_test_CFLAGS=${CFLAGS+set}
3195 ac_save_CFLAGS=$CFLAGS
3196 CFLAGS="-g"
3197 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3198 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3199 if test "${ac_cv_prog_cc_g+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h. */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208
3209 int
3210 main ()
3211 {
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>conftest.er1
3220 ac_status=$?
3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try='test -z "$ac_c_werror_flag"
3227 || test ! -s conftest.err'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_prog_cc_g=yes
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 ac_cv_prog_cc_g=no
3245 fi
3246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247 fi
3248 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3254 CFLAGS="-g -O2"
3255 else
3256 CFLAGS="-g"
3257 fi
3258 else
3259 if test "$GCC" = yes; then
3260 CFLAGS="-O2"
3261 else
3262 CFLAGS=
3263 fi
3264 fi
3265 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3266 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3267 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 ac_cv_prog_cc_stdc=no
3271 ac_save_CC=$CC
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include <stdarg.h>
3279 #include <stdio.h>
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3286 char **p;
3287 int i;
3288 {
3289 return p[i];
3290 }
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3292 {
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299 }
3300
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std1 is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std1. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 int argc;
3315 char **argv;
3316 int
3317 main ()
3318 {
3319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 # Don't try gcc -ansi; that turns off useful extensions and
3325 # breaks some systems' header files.
3326 # AIX -qlanglvl=ansi
3327 # Ultrix and OSF/1 -std1
3328 # HP-UX 10.20 and later -Ae
3329 # HP-UX older versions -Aa -D_HPUX_SOURCE
3330 # SVR4 -Xc -D__EXTENSIONS__
3331 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 do
3333 CC="$ac_save_CC $ac_arg"
3334 rm -f conftest.$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -z "$ac_c_werror_flag"
3344 || test ! -s conftest.err'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_stdc=$ac_arg
3357 break
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 fi
3363 rm -f conftest.err conftest.$ac_objext
3364 done
3365 rm -f conftest.$ac_ext conftest.$ac_objext
3366 CC=$ac_save_CC
3367
3368 fi
3369
3370 case "x$ac_cv_prog_cc_stdc" in
3371 x|xno)
3372 echo "$as_me:$LINENO: result: none needed" >&5
3373 echo "${ECHO_T}none needed" >&6 ;;
3374 *)
3375 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3377 CC="$CC $ac_cv_prog_cc_stdc" ;;
3378 esac
3379
3380 # Some people use a C++ compiler to compile C. Since we use `exit',
3381 # in C++ we need to declare it. In case someone uses the same compiler
3382 # for both compiling C and C++ we need to have the C++ compiler decide
3383 # the declaration of exit, since it's the most demanding environment.
3384 cat >conftest.$ac_ext <<_ACEOF
3385 #ifndef __cplusplus
3386 choke me
3387 #endif
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -z "$ac_c_werror_flag"
3399 || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 for ac_declaration in \
3412 '' \
3413 'extern "C" void std::exit (int) throw (); using std::exit;' \
3414 'extern "C" void std::exit (int); using std::exit;' \
3415 'extern "C" void exit (int) throw ();' \
3416 'extern "C" void exit (int);' \
3417 'void exit (int);'
3418 do
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 $ac_declaration
3426 #include <stdlib.h>
3427 int
3428 main ()
3429 {
3430 exit (42);
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -z "$ac_c_werror_flag"
3445 || test ! -s conftest.err'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 :
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 continue
3463 fi
3464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 $ac_declaration
3472 int
3473 main ()
3474 {
3475 exit (42);
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 (eval $ac_try) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 break
3503 else
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 fi
3508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3509 done
3510 rm -f conftest*
3511 if test -n "$ac_declaration"; then
3512 echo '#ifdef __cplusplus' >>confdefs.h
3513 echo $ac_declaration >>confdefs.h
3514 echo '#endif' >>confdefs.h
3515 fi
3516
3517 else
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 fi
3522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_ext=cc
3524 ac_cpp='$CXXCPP $CPPFLAGS'
3525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3528
3529 depcc="$CC" am_compiler_list=
3530
3531 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3532 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3533 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3537 # We make a subdir and do the tests there. Otherwise we can end up
3538 # making bogus files that we don't know about and never remove. For
3539 # instance it was reported that on HP-UX the gcc test will end up
3540 # making a dummy file named `D' -- because `-MD' means `put the output
3541 # in D'.
3542 mkdir conftest.dir
3543 # Copy depcomp to subdir because otherwise we won't find it if we're
3544 # using a relative directory.
3545 cp "$am_depcomp" conftest.dir
3546 cd conftest.dir
3547 # We will build objects and dependencies in a subdirectory because
3548 # it helps to detect inapplicable dependency modes. For instance
3549 # both Tru64's cc and ICC support -MD to output dependencies as a
3550 # side effect of compilation, but ICC will put the dependencies in
3551 # the current directory while Tru64 will put them in the object
3552 # directory.
3553 mkdir sub
3554
3555 am_cv_CC_dependencies_compiler_type=none
3556 if test "$am_compiler_list" = ""; then
3557 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3558 fi
3559 for depmode in $am_compiler_list; do
3560 # Setup a source with many dependencies, because some compilers
3561 # like to wrap large dependency lists on column 80 (with \), and
3562 # we should not choose a depcomp mode which is confused by this.
3563 #
3564 # We need to recreate these files for each test, as the compiler may
3565 # overwrite some of them when testing with obscure command lines.
3566 # This happens at least with the AIX C compiler.
3567 : > sub/conftest.c
3568 for i in 1 2 3 4 5 6; do
3569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3571 # Solaris 8's {/usr,}/bin/sh.
3572 touch sub/conftst$i.h
3573 done
3574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3575
3576 case $depmode in
3577 nosideeffect)
3578 # after this tag, mechanisms are not by side-effect, so they'll
3579 # only be used when explicitly requested
3580 if test "x$enable_dependency_tracking" = xyes; then
3581 continue
3582 else
3583 break
3584 fi
3585 ;;
3586 none) break ;;
3587 esac
3588 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3589 # mode. It turns out that the SunPro C++ compiler does not properly
3590 # handle `-M -o', and we need to detect this.
3591 if depmode=$depmode \
3592 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3594 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3595 >/dev/null 2>conftest.err &&
3596 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3597 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3598 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3599 # icc doesn't choke on unknown options, it will just issue warnings
3600 # or remarks (even with -Werror). So we grep stderr for any message
3601 # that says an option was ignored or not supported.
3602 # When given -MP, icc 7.0 and 7.1 complain thusly:
3603 # icc: Command line warning: ignoring option '-M'; no argument required
3604 # The diagnosis changed in icc 8.0:
3605 # icc: Command line remark: option '-MP' not supported
3606 if (grep 'ignoring option' conftest.err ||
3607 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3608 am_cv_CC_dependencies_compiler_type=$depmode
3609 break
3610 fi
3611 fi
3612 done
3613
3614 cd ..
3615 rm -rf conftest.dir
3616 else
3617 am_cv_CC_dependencies_compiler_type=none
3618 fi
3619
3620 fi
3621 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3622 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3623 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3624
3625
3626
3627 if
3628 test "x$enable_dependency_tracking" != xno \
3629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3630 am__fastdepCC_TRUE=
3631 am__fastdepCC_FALSE='#'
3632 else
3633 am__fastdepCC_TRUE='#'
3634 am__fastdepCC_FALSE=
3635 fi
3636
3637
3638 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3639 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3640 if test "${lt_cv_path_SED+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643 # Loop through the user's path and test for sed and gsed.
3644 # Then use that list of sed's as ones to test for truncation.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for lt_ac_prog in sed gsed; do
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3653 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3654 fi
3655 done
3656 done
3657 done
3658 lt_ac_max=0
3659 lt_ac_count=0
3660 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3661 # along with /bin/sed that truncates output.
3662 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3663 test ! -f $lt_ac_sed && break
3664 cat /dev/null > conftest.in
3665 lt_ac_count=0
3666 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3667 # Check for GNU sed and select it if it is found.
3668 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3669 lt_cv_path_SED=$lt_ac_sed
3670 break
3671 fi
3672 while true; do
3673 cat conftest.in conftest.in >conftest.tmp
3674 mv conftest.tmp conftest.in
3675 cp conftest.in conftest.nl
3676 echo >>conftest.nl
3677 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3678 cmp -s conftest.out conftest.nl || break
3679 # 10000 chars as input seems more than enough
3680 test $lt_ac_count -gt 10 && break
3681 lt_ac_count=`expr $lt_ac_count + 1`
3682 if test $lt_ac_count -gt $lt_ac_max; then
3683 lt_ac_max=$lt_ac_count
3684 lt_cv_path_SED=$lt_ac_sed
3685 fi
3686 done
3687 done
3688 SED=$lt_cv_path_SED
3689
3690 fi
3691
3692 echo "$as_me:$LINENO: result: $SED" >&5
3693 echo "${ECHO_T}$SED" >&6
3694
3695 echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3697 if test "${ac_cv_prog_egrep+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3701 then ac_cv_prog_egrep='grep -E'
3702 else ac_cv_prog_egrep='egrep'
3703 fi
3704 fi
3705 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3706 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3707 EGREP=$ac_cv_prog_egrep
3708
3709
3710
3711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3712 if test "${with_gnu_ld+set}" = set; then
3713 withval="$with_gnu_ld"
3714 test "$withval" = no || with_gnu_ld=yes
3715 else
3716 with_gnu_ld=no
3717 fi;
3718 ac_prog=ld
3719 if test "$GCC" = yes; then
3720 # Check if gcc -print-prog-name=ld gives a path.
3721 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3722 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3723 case $host in
3724 *-*-mingw*)
3725 # gcc leaves a trailing carriage return which upsets mingw
3726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3727 *)
3728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3729 esac
3730 case $ac_prog in
3731 # Accept absolute paths.
3732 [\\/]* | ?:[\\/]*)
3733 re_direlt='/[^/][^/]*/\.\./'
3734 # Canonicalize the pathname of ld
3735 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3736 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3737 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3738 done
3739 test -z "$LD" && LD="$ac_prog"
3740 ;;
3741 "")
3742 # If it fails, then pretend we aren't using GCC.
3743 ac_prog=ld
3744 ;;
3745 *)
3746 # If it is relative, then search for the first ld in PATH.
3747 with_gnu_ld=unknown
3748 ;;
3749 esac
3750 elif test "$with_gnu_ld" = yes; then
3751 echo "$as_me:$LINENO: checking for GNU ld" >&5
3752 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3753 else
3754 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3755 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3756 fi
3757 if test "${lt_cv_path_LD+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 if test -z "$LD"; then
3761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3762 for ac_dir in $PATH; do
3763 IFS="$lt_save_ifs"
3764 test -z "$ac_dir" && ac_dir=.
3765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3766 lt_cv_path_LD="$ac_dir/$ac_prog"
3767 # Check to see if the program is GNU ld. I'd rather use --version,
3768 # but apparently some GNU ld's only accept -v.
3769 # Break only if it was the GNU/non-GNU ld that we prefer.
3770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3771 *GNU* | *'with BFD'*)
3772 test "$with_gnu_ld" != no && break
3773 ;;
3774 *)
3775 test "$with_gnu_ld" != yes && break
3776 ;;
3777 esac
3778 fi
3779 done
3780 IFS="$lt_save_ifs"
3781 else
3782 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3783 fi
3784 fi
3785
3786 LD="$lt_cv_path_LD"
3787 if test -n "$LD"; then
3788 echo "$as_me:$LINENO: result: $LD" >&5
3789 echo "${ECHO_T}$LD" >&6
3790 else
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3793 fi
3794 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3795 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3796 { (exit 1); exit 1; }; }
3797 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3798 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3799 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3803 case `$LD -v 2>&1 </dev/null` in
3804 *GNU* | *'with BFD'*)
3805 lt_cv_prog_gnu_ld=yes
3806 ;;
3807 *)
3808 lt_cv_prog_gnu_ld=no
3809 ;;
3810 esac
3811 fi
3812 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3813 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3814 with_gnu_ld=$lt_cv_prog_gnu_ld
3815
3816
3817 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3818 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3819 if test "${lt_cv_ld_reload_flag+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 lt_cv_ld_reload_flag='-r'
3823 fi
3824 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3825 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3826 reload_flag=$lt_cv_ld_reload_flag
3827 case $reload_flag in
3828 "" | " "*) ;;
3829 *) reload_flag=" $reload_flag" ;;
3830 esac
3831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3832
3833 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3834 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3835 if test "${lt_cv_path_NM+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 if test -n "$NM"; then
3839 # Let the user override the test.
3840 lt_cv_path_NM="$NM"
3841 else
3842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3843 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3844 IFS="$lt_save_ifs"
3845 test -z "$ac_dir" && ac_dir=.
3846 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3847 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3848 # Check to see if the nm accepts a BSD-compat flag.
3849 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3850 # nm: unknown option "B" ignored
3851 # Tru64's nm complains that /dev/null is an invalid object file
3852 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3853 */dev/null* | *'Invalid file or object type'*)
3854 lt_cv_path_NM="$tmp_nm -B"
3855 break
3856 ;;
3857 *)
3858 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3859 */dev/null*)
3860 lt_cv_path_NM="$tmp_nm -p"
3861 break
3862 ;;
3863 *)
3864 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3865 continue # so that we can try to find one that supports BSD flags
3866 ;;
3867 esac
3868 esac
3869 fi
3870 done
3871 IFS="$lt_save_ifs"
3872 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3873 fi
3874 fi
3875 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3876 echo "${ECHO_T}$lt_cv_path_NM" >&6
3877 NM="$lt_cv_path_NM"
3878
3879 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3880 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3881 LN_S=$as_ln_s
3882 if test "$LN_S" = "ln -s"; then
3883 echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6
3885 else
3886 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3887 echo "${ECHO_T}no, using $LN_S" >&6
3888 fi
3889
3890 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3891 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3892 if test "${lt_cv_deplibs_check_method+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 lt_cv_file_magic_cmd='$MAGIC_CMD'
3896 lt_cv_file_magic_test_file=
3897 lt_cv_deplibs_check_method='unknown'
3898 # Need to set the preceding variable on all platforms that support
3899 # interlibrary dependencies.
3900 # 'none' -- dependencies not supported.
3901 # `unknown' -- same as none, but documents that we really don't know.
3902 # 'pass_all' -- all dependencies passed with no checks.
3903 # 'test_compile' -- check by making test program.
3904 # 'file_magic [[regex]]' -- check by looking for files in library path
3905 # which responds to the $file_magic_cmd with a given extended regex.
3906 # If you have `file' or equivalent on your system and you're not sure
3907 # whether `pass_all' will *always* work, you probably want this one.
3908
3909 case $host_os in
3910 aix4* | aix5*)
3911 lt_cv_deplibs_check_method=pass_all
3912 ;;
3913
3914 beos*)
3915 lt_cv_deplibs_check_method=pass_all
3916 ;;
3917
3918 bsdi4*)
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3920 lt_cv_file_magic_cmd='/usr/bin/file -L'
3921 lt_cv_file_magic_test_file=/shlib/libc.so
3922 ;;
3923
3924 cygwin*)
3925 # func_win32_libid is a shell function defined in ltmain.sh
3926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3927 lt_cv_file_magic_cmd='func_win32_libid'
3928 ;;
3929
3930 mingw* | pw32*)
3931 # Base MSYS/MinGW do not provide the 'file' command needed by
3932 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3933 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3934 lt_cv_file_magic_cmd='$OBJDUMP -f'
3935 ;;
3936
3937 darwin* | rhapsody*)
3938 lt_cv_deplibs_check_method=pass_all
3939 ;;
3940
3941 freebsd* | kfreebsd*-gnu)
3942 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3943 case $host_cpu in
3944 i*86 )
3945 # Not sure whether the presence of OpenBSD here was a mistake.
3946 # Let's accept both of them until this is cleared up.
3947 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3948 lt_cv_file_magic_cmd=/usr/bin/file
3949 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3950 ;;
3951 esac
3952 else
3953 lt_cv_deplibs_check_method=pass_all
3954 fi
3955 ;;
3956
3957 gnu*)
3958 lt_cv_deplibs_check_method=pass_all
3959 ;;
3960
3961 hpux10.20* | hpux11*)
3962 lt_cv_file_magic_cmd=/usr/bin/file
3963 case "$host_cpu" in
3964 ia64*)
3965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3966 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3967 ;;
3968 hppa*64*)
3969 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]'
3970 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3971 ;;
3972 *)
3973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3974 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3975 ;;
3976 esac
3977 ;;
3978
3979 irix5* | irix6* | nonstopux*)
3980 case $LD in
3981 *-32|*"-32 ") libmagic=32-bit;;
3982 *-n32|*"-n32 ") libmagic=N32;;
3983 *-64|*"-64 ") libmagic=64-bit;;
3984 *) libmagic=never-match;;
3985 esac
3986 lt_cv_deplibs_check_method=pass_all
3987 ;;
3988
3989 # This must be Linux ELF.
3990 linux*)
3991 case $host_cpu in
3992 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3993 lt_cv_deplibs_check_method=pass_all ;;
3994 *)
3995 # glibc up to 2.1.1 does not perform some relocations on ARM
3996 # this will be overridden with pass_all, but let us keep it just in case
3997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3998 esac
3999 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4000 lt_cv_deplibs_check_method=pass_all
4001 ;;
4002
4003 netbsd*)
4004 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4006 else
4007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4008 fi
4009 ;;
4010
4011 newos6*)
4012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4013 lt_cv_file_magic_cmd=/usr/bin/file
4014 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4015 ;;
4016
4017 nto-qnx*)
4018 lt_cv_deplibs_check_method=unknown
4019 ;;
4020
4021 openbsd*)
4022 lt_cv_file_magic_cmd=/usr/bin/file
4023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4026 else
4027 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4028 fi
4029 ;;
4030
4031 osf3* | osf4* | osf5*)
4032 lt_cv_deplibs_check_method=pass_all
4033 ;;
4034
4035 sco3.2v5*)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
4038
4039 solaris*)
4040 lt_cv_deplibs_check_method=pass_all
4041 ;;
4042
4043 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4044 case $host_vendor in
4045 motorola)
4046 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]'
4047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4048 ;;
4049 ncr)
4050 lt_cv_deplibs_check_method=pass_all
4051 ;;
4052 sequent)
4053 lt_cv_file_magic_cmd='/bin/file'
4054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4055 ;;
4056 sni)
4057 lt_cv_file_magic_cmd='/bin/file'
4058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4059 lt_cv_file_magic_test_file=/lib/libc.so
4060 ;;
4061 siemens)
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064 esac
4065 ;;
4066
4067 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4068 lt_cv_deplibs_check_method=pass_all
4069 ;;
4070 esac
4071
4072 fi
4073 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4074 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4075 file_magic_cmd=$lt_cv_file_magic_cmd
4076 deplibs_check_method=$lt_cv_deplibs_check_method
4077 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4078
4079
4080
4081
4082 # If no C compiler was specified, use CC.
4083 LTCC=${LTCC-"$CC"}
4084
4085 # Allow CC to be a program name with arguments.
4086 compiler=$CC
4087
4088
4089 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4090 if test "${enable_libtool_lock+set}" = set; then
4091 enableval="$enable_libtool_lock"
4092
4093 fi;
4094 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4095
4096 # Some flags need to be propagated to the compiler or linker for good
4097 # libtool support.
4098 case $host in
4099 ia64-*-hpux*)
4100 # Find out which ABI we are using.
4101 echo 'int i;' > conftest.$ac_ext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; then
4107 case `/usr/bin/file conftest.$ac_objext` in
4108 *ELF-32*)
4109 HPUX_IA64_MODE="32"
4110 ;;
4111 *ELF-64*)
4112 HPUX_IA64_MODE="64"
4113 ;;
4114 esac
4115 fi
4116 rm -rf conftest*
4117 ;;
4118 *-*-irix6*)
4119 # Find out which ABI we are using.
4120 echo '#line 4120 "configure"' > conftest.$ac_ext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; then
4126 if test "$lt_cv_prog_gnu_ld" = yes; then
4127 case `/usr/bin/file conftest.$ac_objext` in
4128 *32-bit*)
4129 LD="${LD-ld} -melf32bsmip"
4130 ;;
4131 *N32*)
4132 LD="${LD-ld} -melf32bmipn32"
4133 ;;
4134 *64-bit*)
4135 LD="${LD-ld} -melf64bmip"
4136 ;;
4137 esac
4138 else
4139 case `/usr/bin/file conftest.$ac_objext` in
4140 *32-bit*)
4141 LD="${LD-ld} -32"
4142 ;;
4143 *N32*)
4144 LD="${LD-ld} -n32"
4145 ;;
4146 *64-bit*)
4147 LD="${LD-ld} -64"
4148 ;;
4149 esac
4150 fi
4151 fi
4152 rm -rf conftest*
4153 ;;
4154
4155 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4156 # Find out which ABI we are using.
4157 echo 'int i;' > conftest.$ac_ext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; then
4163 case "`/usr/bin/file conftest.o`" in
4164 *32-bit*)
4165 case $host in
4166 x86_64-*linux*)
4167 LD="${LD-ld} -m elf_i386"
4168 ;;
4169 ppc64-*linux*|powerpc64-*linux*)
4170 LD="${LD-ld} -m elf32ppclinux"
4171 ;;
4172 s390x-*linux*)
4173 LD="${LD-ld} -m elf_s390"
4174 ;;
4175 sparc64-*linux*)
4176 LD="${LD-ld} -m elf32_sparc"
4177 ;;
4178 esac
4179 ;;
4180 *64-bit*)
4181 case $host in
4182 x86_64-*linux*)
4183 LD="${LD-ld} -m elf_x86_64"
4184 ;;
4185 ppc*-*linux*|powerpc*-*linux*)
4186 LD="${LD-ld} -m elf64ppc"
4187 ;;
4188 s390*-*linux*)
4189 LD="${LD-ld} -m elf64_s390"
4190 ;;
4191 sparc*-*linux*)
4192 LD="${LD-ld} -m elf64_sparc"
4193 ;;
4194 esac
4195 ;;
4196 esac
4197 fi
4198 rm -rf conftest*
4199 ;;
4200
4201 *-*-sco3.2v5*)
4202 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4203 SAVE_CFLAGS="$CFLAGS"
4204 CFLAGS="$CFLAGS -belf"
4205 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4206 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4207 if test "${lt_cv_cc_needs_belf+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222
4223 int
4224 main ()
4225 {
4226
4227 ;
4228 return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -z "$ac_c_werror_flag"
4241 || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 lt_cv_cc_needs_belf=yes
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 lt_cv_cc_needs_belf=no
4259 fi
4260 rm -f conftest.err conftest.$ac_objext \
4261 conftest$ac_exeext conftest.$ac_ext
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268 fi
4269 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4270 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4271 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4272 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4273 CFLAGS="$SAVE_CFLAGS"
4274 fi
4275 ;;
4276
4277 esac
4278
4279 need_locks="$enable_libtool_lock"
4280
4281
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4288 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4289 # On Suns, sometimes $CPP names a directory.
4290 if test -n "$CPP" && test -d "$CPP"; then
4291 CPP=
4292 fi
4293 if test -z "$CPP"; then
4294 if test "${ac_cv_prog_CPP+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 # Double quotes because CPP needs to be expanded
4298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4299 do
4300 ac_preproc_ok=false
4301 for ac_c_preproc_warn_flag in '' yes
4302 do
4303 # Use a header file that comes with gcc, so configuring glibc
4304 # with a fresh cross-compiler works.
4305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306 # <limits.h> exists even on freestanding compilers.
4307 # On the NeXT, cc -E runs the code through the compiler's parser,
4308 # not just through cpp. "Syntax error" is here to catch this case.
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h. */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 #ifdef __STDC__
4316 # include <limits.h>
4317 #else
4318 # include <assert.h>
4319 #endif
4320 Syntax error
4321 _ACEOF
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4324 ac_status=$?
4325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } >/dev/null; then
4330 if test -s conftest.err; then
4331 ac_cpp_err=$ac_c_preproc_warn_flag
4332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4333 else
4334 ac_cpp_err=
4335 fi
4336 else
4337 ac_cpp_err=yes
4338 fi
4339 if test -z "$ac_cpp_err"; then
4340 :
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 # Broken: fails on valid input.
4346 continue
4347 fi
4348 rm -f conftest.err conftest.$ac_ext
4349
4350 # OK, works on sane cases. Now check whether non-existent headers
4351 # can be detected and how.
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <ac_nonexistent.h>
4359 _ACEOF
4360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } >/dev/null; then
4368 if test -s conftest.err; then
4369 ac_cpp_err=$ac_c_preproc_warn_flag
4370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4371 else
4372 ac_cpp_err=
4373 fi
4374 else
4375 ac_cpp_err=yes
4376 fi
4377 if test -z "$ac_cpp_err"; then
4378 # Broken: success on invalid input.
4379 continue
4380 else
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 # Passes both tests.
4385 ac_preproc_ok=:
4386 break
4387 fi
4388 rm -f conftest.err conftest.$ac_ext
4389
4390 done
4391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4392 rm -f conftest.err conftest.$ac_ext
4393 if $ac_preproc_ok; then
4394 break
4395 fi
4396
4397 done
4398 ac_cv_prog_CPP=$CPP
4399
4400 fi
4401 CPP=$ac_cv_prog_CPP
4402 else
4403 ac_cv_prog_CPP=$CPP
4404 fi
4405 echo "$as_me:$LINENO: result: $CPP" >&5
4406 echo "${ECHO_T}$CPP" >&6
4407 ac_preproc_ok=false
4408 for ac_c_preproc_warn_flag in '' yes
4409 do
4410 # Use a header file that comes with gcc, so configuring glibc
4411 # with a fresh cross-compiler works.
4412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4413 # <limits.h> exists even on freestanding compilers.
4414 # On the NeXT, cc -E runs the code through the compiler's parser,
4415 # not just through cpp. "Syntax error" is here to catch this case.
4416 cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h. */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 #ifdef __STDC__
4423 # include <limits.h>
4424 #else
4425 # include <assert.h>
4426 #endif
4427 Syntax error
4428 _ACEOF
4429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null; then
4437 if test -s conftest.err; then
4438 ac_cpp_err=$ac_c_preproc_warn_flag
4439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4440 else
4441 ac_cpp_err=
4442 fi
4443 else
4444 ac_cpp_err=yes
4445 fi
4446 if test -z "$ac_cpp_err"; then
4447 :
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 # Broken: fails on valid input.
4453 continue
4454 fi
4455 rm -f conftest.err conftest.$ac_ext
4456
4457 # OK, works on sane cases. Now check whether non-existent headers
4458 # can be detected and how.
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4466 _ACEOF
4467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } >/dev/null; then
4475 if test -s conftest.err; then
4476 ac_cpp_err=$ac_c_preproc_warn_flag
4477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4478 else
4479 ac_cpp_err=
4480 fi
4481 else
4482 ac_cpp_err=yes
4483 fi
4484 if test -z "$ac_cpp_err"; then
4485 # Broken: success on invalid input.
4486 continue
4487 else
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 # Passes both tests.
4492 ac_preproc_ok=:
4493 break
4494 fi
4495 rm -f conftest.err conftest.$ac_ext
4496
4497 done
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then
4501 :
4502 else
4503 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4504 See \`config.log' for more details." >&5
4505 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4506 See \`config.log' for more details." >&2;}
4507 { (exit 1); exit 1; }; }
4508 fi
4509
4510 ac_ext=c
4511 ac_cpp='$CPP $CPPFLAGS'
4512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515
4516
4517 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4519 if test "${ac_cv_header_stdc+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h. */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 #include <stdlib.h>
4529 #include <stdarg.h>
4530 #include <string.h>
4531 #include <float.h>
4532
4533 int
4534 main ()
4535 {
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_header_stdc=yes
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568 ac_cv_header_stdc=no
4569 fi
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4571
4572 if test $ac_cv_header_stdc = yes; then
4573 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 #include <string.h>
4581
4582 _ACEOF
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 $EGREP "memchr" >/dev/null 2>&1; then
4585 :
4586 else
4587 ac_cv_header_stdc=no
4588 fi
4589 rm -f conftest*
4590
4591 fi
4592
4593 if test $ac_cv_header_stdc = yes; then
4594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 #include <stdlib.h>
4602
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "free" >/dev/null 2>&1; then
4606 :
4607 else
4608 ac_cv_header_stdc=no
4609 fi
4610 rm -f conftest*
4611
4612 fi
4613
4614 if test $ac_cv_header_stdc = yes; then
4615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4616 if test "$cross_compiling" = yes; then
4617 :
4618 else
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 #include <ctype.h>
4626 #if ((' ' & 0x0FF) == 0x020)
4627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4629 #else
4630 # define ISLOWER(c) \
4631 (('a' <= (c) && (c) <= 'i') \
4632 || ('j' <= (c) && (c) <= 'r') \
4633 || ('s' <= (c) && (c) <= 'z'))
4634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4635 #endif
4636
4637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4638 int
4639 main ()
4640 {
4641 int i;
4642 for (i = 0; i < 256; i++)
4643 if (XOR (islower (i), ISLOWER (i))
4644 || toupper (i) != TOUPPER (i))
4645 exit(2);
4646 exit (0);
4647 }
4648 _ACEOF
4649 rm -f conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 :
4661 else
4662 echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ( exit $ac_status )
4667 ac_cv_header_stdc=no
4668 fi
4669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 fi
4672 fi
4673 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4674 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4675 if test $ac_cv_header_stdc = yes; then
4676
4677 cat >>confdefs.h <<\_ACEOF
4678 #define STDC_HEADERS 1
4679 _ACEOF
4680
4681 fi
4682
4683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4694 inttypes.h stdint.h unistd.h
4695 do
4696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697 echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_includes_default
4709
4710 #include <$ac_header>
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 eval "$as_ac_Header=yes"
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 eval "$as_ac_Header=no"
4740 fi
4741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746 cat >>confdefs.h <<_ACEOF
4747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748 _ACEOF
4749
4750 fi
4751
4752 done
4753
4754
4755
4756 for ac_header in dlfcn.h
4757 do
4758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760 echo "$as_me:$LINENO: checking for $ac_header" >&5
4761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 fi
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767 else
4768 # Is the header compilable?
4769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 $ac_includes_default
4778 #include <$ac_header>
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_header_compiler=yes
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 ac_header_compiler=no
4808 fi
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4811 echo "${ECHO_T}$ac_header_compiler" >&6
4812
4813 # Is the header present?
4814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <$ac_header>
4823 _ACEOF
4824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev/null; then
4832 if test -s conftest.err; then
4833 ac_cpp_err=$ac_c_preproc_warn_flag
4834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4835 else
4836 ac_cpp_err=
4837 fi
4838 else
4839 ac_cpp_err=yes
4840 fi
4841 if test -z "$ac_cpp_err"; then
4842 ac_header_preproc=yes
4843 else
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ac_header_preproc=no
4848 fi
4849 rm -f conftest.err conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4851 echo "${ECHO_T}$ac_header_preproc" >&6
4852
4853 # So? What about this header?
4854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4855 yes:no: )
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4860 ac_header_preproc=yes
4861 ;;
4862 no:yes:* )
4863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4875 (
4876 cat <<\_ASBOX
4877 ## ------------------------------------------ ##
4878 ## Report this to the AC_PACKAGE_NAME lists. ##
4879 ## ------------------------------------------ ##
4880 _ASBOX
4881 ) |
4882 sed "s/^/$as_me: WARNING: /" >&2
4883 ;;
4884 esac
4885 echo "$as_me:$LINENO: checking for $ac_header" >&5
4886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890 eval "$as_ac_Header=\$ac_header_preproc"
4891 fi
4892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4894
4895 fi
4896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4897 cat >>confdefs.h <<_ACEOF
4898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4899 _ACEOF
4900
4901 fi
4902
4903 done
4904
4905 ac_ext=cc
4906 ac_cpp='$CXXCPP $CPPFLAGS'
4907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4910 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4911 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4912 if test -z "$CXXCPP"; then
4913 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916 # Double quotes because CXXCPP needs to be expanded
4917 for CXXCPP in "$CXX -E" "/lib/cpp"
4918 do
4919 ac_preproc_ok=false
4920 for ac_cxx_preproc_warn_flag in '' yes
4921 do
4922 # Use a header file that comes with gcc, so configuring glibc
4923 # with a fresh cross-compiler works.
4924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925 # <limits.h> exists even on freestanding compilers.
4926 # On the NeXT, cc -E runs the code through the compiler's parser,
4927 # not just through cpp. "Syntax error" is here to catch this case.
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 #ifdef __STDC__
4935 # include <limits.h>
4936 #else
4937 # include <assert.h>
4938 #endif
4939 Syntax error
4940 _ACEOF
4941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null; then
4949 if test -s conftest.err; then
4950 ac_cpp_err=$ac_cxx_preproc_warn_flag
4951 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4952 else
4953 ac_cpp_err=
4954 fi
4955 else
4956 ac_cpp_err=yes
4957 fi
4958 if test -z "$ac_cpp_err"; then
4959 :
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 # Broken: fails on valid input.
4965 continue
4966 fi
4967 rm -f conftest.err conftest.$ac_ext
4968
4969 # OK, works on sane cases. Now check whether non-existent headers
4970 # can be detected and how.
4971 cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 #include <ac_nonexistent.h>
4978 _ACEOF
4979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null; then
4987 if test -s conftest.err; then
4988 ac_cpp_err=$ac_cxx_preproc_warn_flag
4989 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4990 else
4991 ac_cpp_err=
4992 fi
4993 else
4994 ac_cpp_err=yes
4995 fi
4996 if test -z "$ac_cpp_err"; then
4997 # Broken: success on invalid input.
4998 continue
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003 # Passes both tests.
5004 ac_preproc_ok=:
5005 break
5006 fi
5007 rm -f conftest.err conftest.$ac_ext
5008
5009 done
5010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5011 rm -f conftest.err conftest.$ac_ext
5012 if $ac_preproc_ok; then
5013 break
5014 fi
5015
5016 done
5017 ac_cv_prog_CXXCPP=$CXXCPP
5018
5019 fi
5020 CXXCPP=$ac_cv_prog_CXXCPP
5021 else
5022 ac_cv_prog_CXXCPP=$CXXCPP
5023 fi
5024 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5025 echo "${ECHO_T}$CXXCPP" >&6
5026 ac_preproc_ok=false
5027 for ac_cxx_preproc_warn_flag in '' yes
5028 do
5029 # Use a header file that comes with gcc, so configuring glibc
5030 # with a fresh cross-compiler works.
5031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032 # <limits.h> exists even on freestanding compilers.
5033 # On the NeXT, cc -E runs the code through the compiler's parser,
5034 # not just through cpp. "Syntax error" is here to catch this case.
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #ifdef __STDC__
5042 # include <limits.h>
5043 #else
5044 # include <assert.h>
5045 #endif
5046 Syntax error
5047 _ACEOF
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_cxx_preproc_warn_flag
5058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5059 else
5060 ac_cpp_err=
5061 fi
5062 else
5063 ac_cpp_err=yes
5064 fi
5065 if test -z "$ac_cpp_err"; then
5066 :
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071 # Broken: fails on valid input.
5072 continue
5073 fi
5074 rm -f conftest.err conftest.$ac_ext
5075
5076 # OK, works on sane cases. Now check whether non-existent headers
5077 # can be detected and how.
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 #include <ac_nonexistent.h>
5085 _ACEOF
5086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null; then
5094 if test -s conftest.err; then
5095 ac_cpp_err=$ac_cxx_preproc_warn_flag
5096 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5097 else
5098 ac_cpp_err=
5099 fi
5100 else
5101 ac_cpp_err=yes
5102 fi
5103 if test -z "$ac_cpp_err"; then
5104 # Broken: success on invalid input.
5105 continue
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 # Passes both tests.
5111 ac_preproc_ok=:
5112 break
5113 fi
5114 rm -f conftest.err conftest.$ac_ext
5115
5116 done
5117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118 rm -f conftest.err conftest.$ac_ext
5119 if $ac_preproc_ok; then
5120 :
5121 else
5122 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5125 See \`config.log' for more details." >&2;}
5126 { (exit 1); exit 1; }; }
5127 fi
5128
5129 ac_ext=cc
5130 ac_cpp='$CXXCPP $CPPFLAGS'
5131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134
5135
5136 ac_ext=f
5137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5140 if test -n "$ac_tool_prefix"; then
5141 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5142 do
5143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5145 echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147 if test "${ac_cv_prog_F77+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 if test -n "$F77"; then
5151 ac_cv_prog_F77="$F77" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166
5167 fi
5168 fi
5169 F77=$ac_cv_prog_F77
5170 if test -n "$F77"; then
5171 echo "$as_me:$LINENO: result: $F77" >&5
5172 echo "${ECHO_T}$F77" >&6
5173 else
5174 echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176 fi
5177
5178 test -n "$F77" && break
5179 done
5180 fi
5181 if test -z "$F77"; then
5182 ac_ct_F77=$F77
5183 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5184 do
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192 if test -n "$ac_ct_F77"; then
5193 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_F77="$ac_prog"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208
5209 fi
5210 fi
5211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5212 if test -n "$ac_ct_F77"; then
5213 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5214 echo "${ECHO_T}$ac_ct_F77" >&6
5215 else
5216 echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5218 fi
5219
5220 test -n "$ac_ct_F77" && break
5221 done
5222
5223 F77=$ac_ct_F77
5224 fi
5225
5226
5227 # Provide some information about the compiler.
5228 echo "$as_me:5228:" \
5229 "checking for Fortran 77 compiler version" >&5
5230 ac_compiler=`set X $ac_compile; echo $2`
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5232 (eval $ac_compiler --version </dev/null >&5) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5237 (eval $ac_compiler -v </dev/null >&5) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5242 (eval $ac_compiler -V </dev/null >&5) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }
5246 rm -f a.out
5247
5248 # If we don't use `.F' as extension, the preprocessor is not run on the
5249 # input file. (Note that this only needs to work for GNU compilers.)
5250 ac_save_ext=$ac_ext
5251 ac_ext=F
5252 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 cat >conftest.$ac_ext <<_ACEOF
5258 program main
5259 #ifndef __GNUC__
5260 choke me
5261 #endif
5262
5263 end
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -z "$ac_f77_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 ac_compiler_gnu=yes
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 ac_compiler_gnu=no
5293 fi
5294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5295 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5296
5297 fi
5298 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5299 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5300 ac_ext=$ac_save_ext
5301 ac_test_FFLAGS=${FFLAGS+set}
5302 ac_save_FFLAGS=$FFLAGS
5303 FFLAGS=
5304 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5305 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5306 if test "${ac_cv_prog_f77_g+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309 FFLAGS=-g
5310 cat >conftest.$ac_ext <<_ACEOF
5311 program main
5312
5313 end
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_f77_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_prog_f77_g=yes
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 ac_cv_prog_f77_g=no
5343 fi
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5349 if test "$ac_test_FFLAGS" = set; then
5350 FFLAGS=$ac_save_FFLAGS
5351 elif test $ac_cv_prog_f77_g = yes; then
5352 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5353 FFLAGS="-g -O2"
5354 else
5355 FFLAGS="-g"
5356 fi
5357 else
5358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5359 FFLAGS="-O2"
5360 else
5361 FFLAGS=
5362 fi
5363 fi
5364
5365 G77=`test $ac_compiler_gnu = yes && echo yes`
5366 ac_ext=cc
5367 ac_cpp='$CXXCPP $CPPFLAGS'
5368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371
5372
5373
5374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5375
5376 # find the maximum length of command line arguments
5377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382 i=0
5383 teststring="ABCD"
5384
5385 case $build_os in
5386 msdosdjgpp*)
5387 # On DJGPP, this test can blow up pretty badly due to problems in libc
5388 # (any single argument exceeding 2000 bytes causes a buffer overrun
5389 # during glob expansion). Even if it were fixed, the result of this
5390 # check would be larger than it should be.
5391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5392 ;;
5393
5394 gnu*)
5395 # Under GNU Hurd, this test is not required because there is
5396 # no limit to the length of command line arguments.
5397 # Libtool will interpret -1 as no limit whatsoever
5398 lt_cv_sys_max_cmd_len=-1;
5399 ;;
5400
5401 cygwin* | mingw*)
5402 # On Win9x/ME, this test blows up -- it succeeds, but takes
5403 # about 5 minutes as the teststring grows exponentially.
5404 # Worse, since 9x/ME are not pre-emptively multitasking,
5405 # you end up with a "frozen" computer, even though with patience
5406 # the test eventually succeeds (with a max line length of 256k).
5407 # Instead, let's just punt: use the minimum linelength reported by
5408 # all of the supported platforms: 8192 (on NT/2K/XP).
5409 lt_cv_sys_max_cmd_len=8192;
5410 ;;
5411
5412 amigaos*)
5413 # On AmigaOS with pdksh, this test takes hours, literally.
5414 # So we just punt and use a minimum line length of 8192.
5415 lt_cv_sys_max_cmd_len=8192;
5416 ;;
5417
5418 *)
5419 # If test is not a shell built-in, we'll probably end up computing a
5420 # maximum length that is only half of the actual maximum length, but
5421 # we can't tell.
5422 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5423 = "XX$teststring") >/dev/null 2>&1 &&
5424 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5425 lt_cv_sys_max_cmd_len=$new_result &&
5426 test $i != 17 # 1/2 MB should be enough
5427 do
5428 i=`expr $i + 1`
5429 teststring=$teststring$teststring
5430 done
5431 teststring=
5432 # Add a significant safety factor because C++ compilers can tack on massive
5433 # amounts of additional arguments before passing them to the linker.
5434 # It appears as though 1/2 is a usable value.
5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5436 ;;
5437 esac
5438
5439 fi
5440
5441 if test -n $lt_cv_sys_max_cmd_len ; then
5442 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5443 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5444 else
5445 echo "$as_me:$LINENO: result: none" >&5
5446 echo "${ECHO_T}none" >&6
5447 fi
5448
5449
5450
5451
5452 # Check for command to grab the raw symbol name followed by C symbol from nm.
5453 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5454 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5455 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458
5459 # These are sane defaults that work on at least a few old systems.
5460 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5461
5462 # Character class describing NM global symbol codes.
5463 symcode='[BCDEGRST]'
5464
5465 # Regexp to match symbols that can be accessed directly from C.
5466 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5467
5468 # Transform the above into a raw symbol and a C symbol.
5469 symxfrm='\1 \2\3 \3'
5470
5471 # Transform an extracted symbol line into a proper C declaration
5472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5473
5474 # Transform an extracted symbol line into symbol name and symbol address
5475 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'"
5476
5477 # Define system-specific variables.
5478 case $host_os in
5479 aix*)
5480 symcode='[BCDT]'
5481 ;;
5482 cygwin* | mingw* | pw32*)
5483 symcode='[ABCDGISTW]'
5484 ;;
5485 hpux*) # Its linker distinguishes data from code symbols
5486 if test "$host_cpu" = ia64; then
5487 symcode='[ABCDEGRST]'
5488 fi
5489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5490 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'"
5491 ;;
5492 irix* | nonstopux*)
5493 symcode='[BCDEGRST]'
5494 ;;
5495 osf*)
5496 symcode='[BCDEGQRST]'
5497 ;;
5498 solaris* | sysv5*)
5499 symcode='[BDRT]'
5500 ;;
5501 sysv4)
5502 symcode='[DFNSTU]'
5503 ;;
5504 esac
5505
5506 # Handle CRLF in mingw tool chain
5507 opt_cr=
5508 case $build_os in
5509 mingw*)
5510 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5511 ;;
5512 esac
5513
5514 # If we're using GNU nm, then use its standard symbol codes.
5515 case `$NM -V 2>&1` in
5516 *GNU* | *'with BFD'*)
5517 symcode='[ABCDGIRSTW]' ;;
5518 esac
5519
5520 # Try without a prefix undercore, then with it.
5521 for ac_symprfx in "" "_"; do
5522
5523 # Write the raw and C identifiers.
5524 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5525
5526 # Check to see that the pipe works correctly.
5527 pipe_works=no
5528
5529 rm -f conftest*
5530 cat > conftest.$ac_ext <<EOF
5531 #ifdef __cplusplus
5532 extern "C" {
5533 #endif
5534 char nm_test_var;
5535 void nm_test_func(){}
5536 #ifdef __cplusplus
5537 }
5538 #endif
5539 int main(){nm_test_var='a';nm_test_func();return(0);}
5540 EOF
5541
5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543 (eval $ac_compile) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; then
5547 # Now try to grab the symbols.
5548 nlist=conftest.nm
5549 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5550 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } && test -s "$nlist"; then
5554 # Try sorting and uniquifying the output.
5555 if sort "$nlist" | uniq > "$nlist"T; then
5556 mv -f "$nlist"T "$nlist"
5557 else
5558 rm -f "$nlist"T
5559 fi
5560
5561 # Make sure that we snagged all the symbols we need.
5562 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5563 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5564 cat <<EOF > conftest.$ac_ext
5565 #ifdef __cplusplus
5566 extern "C" {
5567 #endif
5568
5569 EOF
5570 # Now generate the symbol file.
5571 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5572
5573 cat <<EOF >> conftest.$ac_ext
5574 #if defined (__STDC__) && __STDC__
5575 # define lt_ptr_t void *
5576 #else
5577 # define lt_ptr_t char *
5578 # define const
5579 #endif
5580
5581 /* The mapping between symbol names and symbols. */
5582 const struct {
5583 const char *name;
5584 lt_ptr_t address;
5585 }
5586 lt_preloaded_symbols[] =
5587 {
5588 EOF
5589 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5590 cat <<\EOF >> conftest.$ac_ext
5591 {0, (lt_ptr_t) 0}
5592 };
5593
5594 #ifdef __cplusplus
5595 }
5596 #endif
5597 EOF
5598 # Now try linking the two files.
5599 mv conftest.$ac_objext conftstm.$ac_objext
5600 lt_save_LIBS="$LIBS"
5601 lt_save_CFLAGS="$CFLAGS"
5602 LIBS="conftstm.$ac_objext"
5603 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605 (eval $ac_link) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5609 pipe_works=yes
5610 fi
5611 LIBS="$lt_save_LIBS"
5612 CFLAGS="$lt_save_CFLAGS"
5613 else
5614 echo "cannot find nm_test_func in $nlist" >&5
5615 fi
5616 else
5617 echo "cannot find nm_test_var in $nlist" >&5
5618 fi
5619 else
5620 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5621 fi
5622 else
5623 echo "$progname: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 fi
5626 rm -f conftest* conftst*
5627
5628 # Do not use the global_symbol_pipe unless it works.
5629 if test "$pipe_works" = yes; then
5630 break
5631 else
5632 lt_cv_sys_global_symbol_pipe=
5633 fi
5634 done
5635
5636 fi
5637
5638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5639 lt_cv_sys_global_symbol_to_cdecl=
5640 fi
5641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5642 echo "$as_me:$LINENO: result: failed" >&5
5643 echo "${ECHO_T}failed" >&6
5644 else
5645 echo "$as_me:$LINENO: result: ok" >&5
5646 echo "${ECHO_T}ok" >&6
5647 fi
5648
5649 echo "$as_me:$LINENO: checking for objdir" >&5
5650 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5651 if test "${lt_cv_objdir+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 rm -f .libs 2>/dev/null
5655 mkdir .libs 2>/dev/null
5656 if test -d .libs; then
5657 lt_cv_objdir=.libs
5658 else
5659 # MS-DOS does not allow filenames that begin with a dot.
5660 lt_cv_objdir=_libs
5661 fi
5662 rmdir .libs 2>/dev/null
5663 fi
5664 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5665 echo "${ECHO_T}$lt_cv_objdir" >&6
5666 objdir=$lt_cv_objdir
5667
5668
5669
5670
5671
5672 case $host_os in
5673 aix3*)
5674 # AIX sometimes has problems with the GCC collect2 program. For some
5675 # reason, if we set the COLLECT_NAMES environment variable, the problems
5676 # vanish in a puff of smoke.
5677 if test "X${COLLECT_NAMES+set}" != Xset; then
5678 COLLECT_NAMES=
5679 export COLLECT_NAMES
5680 fi
5681 ;;
5682 esac
5683
5684 # Sed substitution that helps us do robust quoting. It backslashifies
5685 # metacharacters that are still active within double-quoted strings.
5686 Xsed='sed -e s/^X//'
5687 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5688
5689 # Same as above, but do not quote variable references.
5690 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5691
5692 # Sed substitution to delay expansion of an escaped shell variable in a
5693 # double_quote_subst'ed string.
5694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5695
5696 # Sed substitution to avoid accidental globbing in evaled expressions
5697 no_glob_subst='s/\*/\\\*/g'
5698
5699 # Constants:
5700 rm="rm -f"
5701
5702 # Global variables:
5703 default_ofile=libtool
5704 can_build_shared=yes
5705
5706 # All known linkers require a `.a' archive for static linking (except M$VC,
5707 # which needs '.lib').
5708 libext=a
5709 ltmain="$ac_aux_dir/ltmain.sh"
5710 ofile="$default_ofile"
5711 with_gnu_ld="$lt_cv_prog_gnu_ld"
5712
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}ar; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_AR+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 if test -n "$AR"; then
5722 ac_cv_prog_AR="$AR" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_AR="${ac_tool_prefix}ar"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735 done
5736 done
5737
5738 fi
5739 fi
5740 AR=$ac_cv_prog_AR
5741 if test -n "$AR"; then
5742 echo "$as_me:$LINENO: result: $AR" >&5
5743 echo "${ECHO_T}$AR" >&6
5744 else
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747 fi
5748
5749 fi
5750 if test -z "$ac_cv_prog_AR"; then
5751 ac_ct_AR=$AR
5752 # Extract the first word of "ar", so it can be a program name with args.
5753 set dummy ar; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 if test -n "$ac_ct_AR"; then
5760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_AR="ar"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775
5776 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5777 fi
5778 fi
5779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5780 if test -n "$ac_ct_AR"; then
5781 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5782 echo "${ECHO_T}$ac_ct_AR" >&6
5783 else
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5786 fi
5787
5788 AR=$ac_ct_AR
5789 else
5790 AR="$ac_cv_prog_AR"
5791 fi
5792
5793 if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_RANLIB+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 if test -n "$RANLIB"; then
5802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815 done
5816 done
5817
5818 fi
5819 fi
5820 RANLIB=$ac_cv_prog_RANLIB
5821 if test -n "$RANLIB"; then
5822 echo "$as_me:$LINENO: result: $RANLIB" >&5
5823 echo "${ECHO_T}$RANLIB" >&6
5824 else
5825 echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5827 fi
5828
5829 fi
5830 if test -z "$ac_cv_prog_RANLIB"; then
5831 ac_ct_RANLIB=$RANLIB
5832 # Extract the first word of "ranlib", so it can be a program name with args.
5833 set dummy ranlib; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 if test -n "$ac_ct_RANLIB"; then
5840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_RANLIB="ranlib"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855
5856 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5857 fi
5858 fi
5859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5860 if test -n "$ac_ct_RANLIB"; then
5861 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5862 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5863 else
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868 RANLIB=$ac_ct_RANLIB
5869 else
5870 RANLIB="$ac_cv_prog_RANLIB"
5871 fi
5872
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}strip; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_STRIP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881 if test -n "$STRIP"; then
5882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895 done
5896 done
5897
5898 fi
5899 fi
5900 STRIP=$ac_cv_prog_STRIP
5901 if test -n "$STRIP"; then
5902 echo "$as_me:$LINENO: result: $STRIP" >&5
5903 echo "${ECHO_T}$STRIP" >&6
5904 else
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909 fi
5910 if test -z "$ac_cv_prog_STRIP"; then
5911 ac_ct_STRIP=$STRIP
5912 # Extract the first word of "strip", so it can be a program name with args.
5913 set dummy strip; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919 if test -n "$ac_ct_STRIP"; then
5920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_STRIP="strip"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935
5936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5937 fi
5938 fi
5939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5940 if test -n "$ac_ct_STRIP"; then
5941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5942 echo "${ECHO_T}$ac_ct_STRIP" >&6
5943 else
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948 STRIP=$ac_ct_STRIP
5949 else
5950 STRIP="$ac_cv_prog_STRIP"
5951 fi
5952
5953
5954 old_CC="$CC"
5955 old_CFLAGS="$CFLAGS"
5956
5957 # Set sane defaults for various variables
5958 test -z "$AR" && AR=ar
5959 test -z "$AR_FLAGS" && AR_FLAGS=cru
5960 test -z "$AS" && AS=as
5961 test -z "$CC" && CC=cc
5962 test -z "$LTCC" && LTCC=$CC
5963 test -z "$DLLTOOL" && DLLTOOL=dlltool
5964 test -z "$LD" && LD=ld
5965 test -z "$LN_S" && LN_S="ln -s"
5966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5967 test -z "$NM" && NM=nm
5968 test -z "$SED" && SED=sed
5969 test -z "$OBJDUMP" && OBJDUMP=objdump
5970 test -z "$RANLIB" && RANLIB=:
5971 test -z "$STRIP" && STRIP=:
5972 test -z "$ac_objext" && ac_objext=o
5973
5974 # Determine commands to create old-style static archives.
5975 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5976 old_postinstall_cmds='chmod 644 $oldlib'
5977 old_postuninstall_cmds=
5978
5979 if test -n "$RANLIB"; then
5980 case $host_os in
5981 openbsd*)
5982 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5983 ;;
5984 *)
5985 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5986 ;;
5987 esac
5988 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5989 fi
5990
5991 # Only perform the check for file, if the check method requires it
5992 case $deplibs_check_method in
5993 file_magic*)
5994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5995 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5996 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 case $MAGIC_CMD in
6001 [\\/*] | ?:[\\/]*)
6002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6003 ;;
6004 *)
6005 lt_save_MAGIC_CMD="$MAGIC_CMD"
6006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6008 for ac_dir in $ac_dummy; do
6009 IFS="$lt_save_ifs"
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/${ac_tool_prefix}file; then
6012 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6013 if test -n "$file_magic_test_file"; then
6014 case $deplibs_check_method in
6015 "file_magic "*)
6016 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6019 $EGREP "$file_magic_regex" > /dev/null; then
6020 :
6021 else
6022 cat <<EOF 1>&2
6023
6024 *** Warning: the command libtool uses to detect shared libraries,
6025 *** $file_magic_cmd, produces output that libtool cannot recognize.
6026 *** The result is that libtool may fail to recognize shared libraries
6027 *** as such. This will affect the creation of libtool libraries that
6028 *** depend on shared libraries, but programs linked with such libtool
6029 *** libraries will work regardless of this problem. Nevertheless, you
6030 *** may want to report the problem to your system manager and/or to
6031 *** bug-libtool@gnu.org
6032
6033 EOF
6034 fi ;;
6035 esac
6036 fi
6037 break
6038 fi
6039 done
6040 IFS="$lt_save_ifs"
6041 MAGIC_CMD="$lt_save_MAGIC_CMD"
6042 ;;
6043 esac
6044 fi
6045
6046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6047 if test -n "$MAGIC_CMD"; then
6048 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6049 echo "${ECHO_T}$MAGIC_CMD" >&6
6050 else
6051 echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6053 fi
6054
6055 if test -z "$lt_cv_path_MAGIC_CMD"; then
6056 if test -n "$ac_tool_prefix"; then
6057 echo "$as_me:$LINENO: checking for file" >&5
6058 echo $ECHO_N "checking for file... $ECHO_C" >&6
6059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 case $MAGIC_CMD in
6063 [\\/*] | ?:[\\/]*)
6064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6065 ;;
6066 *)
6067 lt_save_MAGIC_CMD="$MAGIC_CMD"
6068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6070 for ac_dir in $ac_dummy; do
6071 IFS="$lt_save_ifs"
6072 test -z "$ac_dir" && ac_dir=.
6073 if test -f $ac_dir/file; then
6074 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6075 if test -n "$file_magic_test_file"; then
6076 case $deplibs_check_method in
6077 "file_magic "*)
6078 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6081 $EGREP "$file_magic_regex" > /dev/null; then
6082 :
6083 else
6084 cat <<EOF 1>&2
6085
6086 *** Warning: the command libtool uses to detect shared libraries,
6087 *** $file_magic_cmd, produces output that libtool cannot recognize.
6088 *** The result is that libtool may fail to recognize shared libraries
6089 *** as such. This will affect the creation of libtool libraries that
6090 *** depend on shared libraries, but programs linked with such libtool
6091 *** libraries will work regardless of this problem. Nevertheless, you
6092 *** may want to report the problem to your system manager and/or to
6093 *** bug-libtool@gnu.org
6094
6095 EOF
6096 fi ;;
6097 esac
6098 fi
6099 break
6100 fi
6101 done
6102 IFS="$lt_save_ifs"
6103 MAGIC_CMD="$lt_save_MAGIC_CMD"
6104 ;;
6105 esac
6106 fi
6107
6108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6109 if test -n "$MAGIC_CMD"; then
6110 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6111 echo "${ECHO_T}$MAGIC_CMD" >&6
6112 else
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6115 fi
6116
6117 else
6118 MAGIC_CMD=:
6119 fi
6120 fi
6121
6122 fi
6123 ;;
6124 esac
6125
6126 enable_dlopen=no
6127 enable_win32_dll=no
6128
6129 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6130 if test "${enable_libtool_lock+set}" = set; then
6131 enableval="$enable_libtool_lock"
6132
6133 fi;
6134 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6135
6136
6137 # Check whether --with-pic or --without-pic was given.
6138 if test "${with_pic+set}" = set; then
6139 withval="$with_pic"
6140 pic_mode="$withval"
6141 else
6142 pic_mode=default
6143 fi;
6144 test -z "$pic_mode" && pic_mode=default
6145
6146 # Use C for the default configuration in the libtool script
6147 tagname=
6148 lt_save_CC="$CC"
6149 ac_ext=c
6150 ac_cpp='$CPP $CPPFLAGS'
6151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154
6155
6156 # Source file extension for C test sources.
6157 ac_ext=c
6158
6159 # Object file extension for compiled C test sources.
6160 objext=o
6161 objext=$objext
6162
6163 # Code to be used in simple compile tests
6164 lt_simple_compile_test_code="int some_variable = 0;\n"
6165
6166 # Code to be used in simple link tests
6167 lt_simple_link_test_code='int main(){return(0);}\n'
6168
6169
6170 # If no C compiler was specified, use CC.
6171 LTCC=${LTCC-"$CC"}
6172
6173 # Allow CC to be a program name with arguments.
6174 compiler=$CC
6175
6176
6177 #
6178 # Check for any special shared library compilation flags.
6179 #
6180 lt_prog_cc_shlib=
6181 if test "$GCC" = no; then
6182 case $host_os in
6183 sco3.2v5*)
6184 lt_prog_cc_shlib='-belf'
6185 ;;
6186 esac
6187 fi
6188 if test -n "$lt_prog_cc_shlib"; then
6189 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6190 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6191 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6192 else
6193 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6194 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6195 lt_cv_prog_cc_can_build_shared=no
6196 fi
6197 fi
6198
6199
6200 #
6201 # Check to make sure the static flag actually works.
6202 #
6203 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6204 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6205 if test "${lt_prog_compiler_static_works+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 lt_prog_compiler_static_works=no
6209 save_LDFLAGS="$LDFLAGS"
6210 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6211 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6213 # The compiler can only warn and ignore the option if not recognized
6214 # So say no if there are warnings
6215 if test -s conftest.err; then
6216 # Append any errors to the config.log.
6217 cat conftest.err 1>&5
6218 else
6219 lt_prog_compiler_static_works=yes
6220 fi
6221 fi
6222 $rm conftest*
6223 LDFLAGS="$save_LDFLAGS"
6224
6225 fi
6226 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6227 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6228
6229 if test x"$lt_prog_compiler_static_works" = xyes; then
6230 :
6231 else
6232 lt_prog_compiler_static=
6233 fi
6234
6235
6236
6237
6238 lt_prog_compiler_no_builtin_flag=
6239
6240 if test "$GCC" = yes; then
6241 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6242
6243
6244 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6245 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6246 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 lt_cv_prog_compiler_rtti_exceptions=no
6250 ac_outfile=conftest.$ac_objext
6251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6252 lt_compiler_flag="-fno-rtti -fno-exceptions"
6253 # Insert the option either (1) after the last *FLAGS variable, or
6254 # (2) before a word containing "conftest.", or (3) at the end.
6255 # Note that $ac_compile itself does not contain backslashes and begins
6256 # with a dollar sign (not a hyphen), so the echo should work correctly.
6257 # The option is referenced via a variable to avoid confusing sed.
6258 lt_compile=`echo "$ac_compile" | $SED \
6259 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6261 -e 's:$: $lt_compiler_flag:'`
6262 (eval echo "\"\$as_me:6262: $lt_compile\"" >&5)
6263 (eval "$lt_compile" 2>conftest.err)
6264 ac_status=$?
6265 cat conftest.err >&5
6266 echo "$as_me:6266: \$? = $ac_status" >&5
6267 if (exit $ac_status) && test -s "$ac_outfile"; then
6268 # The compiler can only warn and ignore the option if not recognized
6269 # So say no if there are warnings
6270 if test ! -s conftest.err; then
6271 lt_cv_prog_compiler_rtti_exceptions=yes
6272 fi
6273 fi
6274 $rm conftest*
6275
6276 fi
6277 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6278 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6279
6280 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6281 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6282 else
6283 :
6284 fi
6285
6286 fi
6287
6288 lt_prog_compiler_wl=
6289 lt_prog_compiler_pic=
6290 lt_prog_compiler_static=
6291
6292 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6293 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6294
6295 if test "$GCC" = yes; then
6296 lt_prog_compiler_wl='-Wl,'
6297 lt_prog_compiler_static='-static'
6298
6299 case $host_os in
6300 aix*)
6301 # All AIX code is PIC.
6302 if test "$host_cpu" = ia64; then
6303 # AIX 5 now supports IA64 processor
6304 lt_prog_compiler_static='-Bstatic'
6305 fi
6306 ;;
6307
6308 amigaos*)
6309 # FIXME: we need at least 68020 code to build shared libraries, but
6310 # adding the `-m68020' flag to GCC prevents building anything better,
6311 # like `-m68040'.
6312 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6313 ;;
6314
6315 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6316 # PIC is the default for these OSes.
6317 ;;
6318
6319 mingw* | pw32* | os2*)
6320 # This hack is so that the source file can tell whether it is being
6321 # built for inclusion in a dll (and should export symbols for example).
6322 lt_prog_compiler_pic='-DDLL_EXPORT'
6323 ;;
6324
6325 darwin* | rhapsody*)
6326 # PIC is the default on this platform
6327 # Common symbols not allowed in MH_DYLIB files
6328 lt_prog_compiler_pic='-fno-common'
6329 ;;
6330
6331 msdosdjgpp*)
6332 # Just because we use GCC doesn't mean we suddenly get shared libraries
6333 # on systems that don't support them.
6334 lt_prog_compiler_can_build_shared=no
6335 enable_shared=no
6336 ;;
6337
6338 sysv4*MP*)
6339 if test -d /usr/nec; then
6340 lt_prog_compiler_pic=-Kconform_pic
6341 fi
6342 ;;
6343
6344 hpux*)
6345 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6346 # not for PA HP-UX.
6347 case "$host_cpu" in
6348 hppa*64*|ia64*)
6349 # +Z the default
6350 ;;
6351 *)
6352 lt_prog_compiler_pic='-fPIC'
6353 ;;
6354 esac
6355 ;;
6356
6357 *)
6358 lt_prog_compiler_pic='-fPIC'
6359 ;;
6360 esac
6361 else
6362 # PORTME Check for flag to pass linker flags through the system compiler.
6363 case $host_os in
6364 aix*)
6365 lt_prog_compiler_wl='-Wl,'
6366 if test "$host_cpu" = ia64; then
6367 # AIX 5 now supports IA64 processor
6368 lt_prog_compiler_static='-Bstatic'
6369 else
6370 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6371 fi
6372 ;;
6373
6374 mingw* | pw32* | os2*)
6375 # This hack is so that the source file can tell whether it is being
6376 # built for inclusion in a dll (and should export symbols for example).
6377 lt_prog_compiler_pic='-DDLL_EXPORT'
6378 ;;
6379
6380 hpux9* | hpux10* | hpux11*)
6381 lt_prog_compiler_wl='-Wl,'
6382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6383 # not for PA HP-UX.
6384 case "$host_cpu" in
6385 hppa*64*|ia64*)
6386 # +Z the default
6387 ;;
6388 *)
6389 lt_prog_compiler_pic='+Z'
6390 ;;
6391 esac
6392 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6393 lt_prog_compiler_static='${wl}-a ${wl}archive'
6394 ;;
6395
6396 irix5* | irix6* | nonstopux*)
6397 lt_prog_compiler_wl='-Wl,'
6398 # PIC (with -KPIC) is the default.
6399 lt_prog_compiler_static='-non_shared'
6400 ;;
6401
6402 newsos6)
6403 lt_prog_compiler_pic='-KPIC'
6404 lt_prog_compiler_static='-Bstatic'
6405 ;;
6406
6407 linux*)
6408 case $CC in
6409 icc* | ecc*)
6410 lt_prog_compiler_wl='-Wl,'
6411 lt_prog_compiler_pic='-KPIC'
6412 lt_prog_compiler_static='-static'
6413 ;;
6414 ccc*)
6415 lt_prog_compiler_wl='-Wl,'
6416 # All Alpha code is PIC.
6417 lt_prog_compiler_static='-non_shared'
6418 ;;
6419 esac
6420 ;;
6421
6422 osf3* | osf4* | osf5*)
6423 lt_prog_compiler_wl='-Wl,'
6424 # All OSF/1 code is PIC.
6425 lt_prog_compiler_static='-non_shared'
6426 ;;
6427
6428 sco3.2v5*)
6429 lt_prog_compiler_pic='-Kpic'
6430 lt_prog_compiler_static='-dn'
6431 ;;
6432
6433 solaris*)
6434 lt_prog_compiler_wl='-Wl,'
6435 lt_prog_compiler_pic='-KPIC'
6436 lt_prog_compiler_static='-Bstatic'
6437 ;;
6438
6439 sunos4*)
6440 lt_prog_compiler_wl='-Qoption ld '
6441 lt_prog_compiler_pic='-PIC'
6442 lt_prog_compiler_static='-Bstatic'
6443 ;;
6444
6445 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6446 lt_prog_compiler_wl='-Wl,'
6447 lt_prog_compiler_pic='-KPIC'
6448 lt_prog_compiler_static='-Bstatic'
6449 ;;
6450
6451 sysv4*MP*)
6452 if test -d /usr/nec ;then
6453 lt_prog_compiler_pic='-Kconform_pic'
6454 lt_prog_compiler_static='-Bstatic'
6455 fi
6456 ;;
6457
6458 uts4*)
6459 lt_prog_compiler_pic='-pic'
6460 lt_prog_compiler_static='-Bstatic'
6461 ;;
6462
6463 *)
6464 lt_prog_compiler_can_build_shared=no
6465 ;;
6466 esac
6467 fi
6468
6469 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6470 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6471
6472 #
6473 # Check to make sure the PIC flag actually works.
6474 #
6475 if test -n "$lt_prog_compiler_pic"; then
6476
6477 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6478 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6479 if test "${lt_prog_compiler_pic_works+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 lt_prog_compiler_pic_works=no
6483 ac_outfile=conftest.$ac_objext
6484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6485 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6486 # Insert the option either (1) after the last *FLAGS variable, or
6487 # (2) before a word containing "conftest.", or (3) at the end.
6488 # Note that $ac_compile itself does not contain backslashes and begins
6489 # with a dollar sign (not a hyphen), so the echo should work correctly.
6490 # The option is referenced via a variable to avoid confusing sed.
6491 lt_compile=`echo "$ac_compile" | $SED \
6492 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6494 -e 's:$: $lt_compiler_flag:'`
6495 (eval echo "\"\$as_me:6495: $lt_compile\"" >&5)
6496 (eval "$lt_compile" 2>conftest.err)
6497 ac_status=$?
6498 cat conftest.err >&5
6499 echo "$as_me:6499: \$? = $ac_status" >&5
6500 if (exit $ac_status) && test -s "$ac_outfile"; then
6501 # The compiler can only warn and ignore the option if not recognized
6502 # So say no if there are warnings
6503 if test ! -s conftest.err; then
6504 lt_prog_compiler_pic_works=yes
6505 fi
6506 fi
6507 $rm conftest*
6508
6509 fi
6510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6511 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6512
6513 if test x"$lt_prog_compiler_pic_works" = xyes; then
6514 case $lt_prog_compiler_pic in
6515 "" | " "*) ;;
6516 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6517 esac
6518 else
6519 lt_prog_compiler_pic=
6520 lt_prog_compiler_can_build_shared=no
6521 fi
6522
6523 fi
6524 case "$host_os" in
6525 # For platforms which do not support PIC, -DPIC is meaningless:
6526 *djgpp*)
6527 lt_prog_compiler_pic=
6528 ;;
6529 *)
6530 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6531 ;;
6532 esac
6533
6534 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6535 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6536 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 lt_cv_prog_compiler_c_o=no
6540 $rm -r conftest 2>/dev/null
6541 mkdir conftest
6542 cd conftest
6543 mkdir out
6544 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6545
6546 lt_compiler_flag="-o out/conftest2.$ac_objext"
6547 # Insert the option either (1) after the last *FLAGS variable, or
6548 # (2) before a word containing "conftest.", or (3) at the end.
6549 # Note that $ac_compile itself does not contain backslashes and begins
6550 # with a dollar sign (not a hyphen), so the echo should work correctly.
6551 lt_compile=`echo "$ac_compile" | $SED \
6552 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6554 -e 's:$: $lt_compiler_flag:'`
6555 (eval echo "\"\$as_me:6555: $lt_compile\"" >&5)
6556 (eval "$lt_compile" 2>out/conftest.err)
6557 ac_status=$?
6558 cat out/conftest.err >&5
6559 echo "$as_me:6559: \$? = $ac_status" >&5
6560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6561 then
6562 # The compiler can only warn and ignore the option if not recognized
6563 # So say no if there are warnings
6564 if test ! -s out/conftest.err; then
6565 lt_cv_prog_compiler_c_o=yes
6566 fi
6567 fi
6568 chmod u+w .
6569 $rm conftest*
6570 # SGI C++ compiler will create directory out/ii_files/ for
6571 # template instantiation
6572 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6573 $rm out/* && rmdir out
6574 cd ..
6575 rmdir conftest
6576 $rm conftest*
6577
6578 fi
6579 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6580 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6581
6582
6583 hard_links="nottested"
6584 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6585 # do not overwrite the value of need_locks provided by the user
6586 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6587 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6588 hard_links=yes
6589 $rm conftest*
6590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6591 touch conftest.a
6592 ln conftest.a conftest.b 2>&5 || hard_links=no
6593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6594 echo "$as_me:$LINENO: result: $hard_links" >&5
6595 echo "${ECHO_T}$hard_links" >&6
6596 if test "$hard_links" = no; then
6597 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6598 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6599 need_locks=warn
6600 fi
6601 else
6602 need_locks=no
6603 fi
6604
6605 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6606 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6607
6608 runpath_var=
6609 allow_undefined_flag=
6610 enable_shared_with_static_runtimes=no
6611 archive_cmds=
6612 archive_expsym_cmds=
6613 old_archive_From_new_cmds=
6614 old_archive_from_expsyms_cmds=
6615 export_dynamic_flag_spec=
6616 whole_archive_flag_spec=
6617 thread_safe_flag_spec=
6618 hardcode_libdir_flag_spec=
6619 hardcode_libdir_flag_spec_ld=
6620 hardcode_libdir_separator=
6621 hardcode_direct=no
6622 hardcode_minus_L=no
6623 hardcode_shlibpath_var=unsupported
6624 link_all_deplibs=unknown
6625 hardcode_automatic=no
6626 module_cmds=
6627 module_expsym_cmds=
6628 always_export_symbols=no
6629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6630 # include_expsyms should be a list of space-separated symbols to be *always*
6631 # included in the symbol list
6632 include_expsyms=
6633 # exclude_expsyms can be an extended regexp of symbols to exclude
6634 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6635 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6636 # as well as any symbol that contains `d'.
6637 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6639 # platforms (ab)use it in PIC code, but their linkers get confused if
6640 # the symbol is explicitly referenced. Since portable code cannot
6641 # rely on this symbol name, it's probably fine to never include it in
6642 # preloaded symbol tables.
6643 extract_expsyms_cmds=
6644
6645 case $host_os in
6646 cygwin* | mingw* | pw32*)
6647 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6648 # When not using gcc, we currently assume that we are using
6649 # Microsoft Visual C++.
6650 if test "$GCC" != yes; then
6651 with_gnu_ld=no
6652 fi
6653 ;;
6654 openbsd*)
6655 with_gnu_ld=no
6656 ;;
6657 esac
6658
6659 ld_shlibs=yes
6660 if test "$with_gnu_ld" = yes; then
6661 # If archive_cmds runs LD, not CC, wlarc should be empty
6662 wlarc='${wl}'
6663
6664 # See if GNU ld supports shared libraries.
6665 case $host_os in
6666 aix3* | aix4* | aix5*)
6667 # On AIX/PPC, the GNU linker is very broken
6668 if test "$host_cpu" != ia64; then
6669 ld_shlibs=no
6670 cat <<EOF 1>&2
6671
6672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6673 *** to be unable to reliably create shared libraries on AIX.
6674 *** Therefore, libtool is disabling shared libraries support. If you
6675 *** really care for shared libraries, you may want to modify your PATH
6676 *** so that a non-GNU linker is found, and then restart.
6677
6678 EOF
6679 fi
6680 ;;
6681
6682 amigaos*)
6683 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)'
6684 hardcode_libdir_flag_spec='-L$libdir'
6685 hardcode_minus_L=yes
6686
6687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6688 # that the semantics of dynamic libraries on AmigaOS, at least up
6689 # to version 4, is to share data among multiple programs linked
6690 # with the same dynamic library. Since this doesn't match the
6691 # behavior of shared libraries on other platforms, we can't use
6692 # them.
6693 ld_shlibs=no
6694 ;;
6695
6696 beos*)
6697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6698 allow_undefined_flag=unsupported
6699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6700 # support --undefined. This deserves some investigation. FIXME
6701 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6702 else
6703 ld_shlibs=no
6704 fi
6705 ;;
6706
6707 cygwin* | mingw* | pw32*)
6708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6709 # as there is no search path for DLLs.
6710 hardcode_libdir_flag_spec='-L$libdir'
6711 allow_undefined_flag=unsupported
6712 always_export_symbols=no
6713 enable_shared_with_static_runtimes=yes
6714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6715
6716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6718 # If the export-symbols file already is a .def file (1st line
6719 # is EXPORTS), use it as is; otherwise, prepend...
6720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6721 cp $export_symbols $output_objdir/$soname.def;
6722 else
6723 echo EXPORTS > $output_objdir/$soname.def;
6724 cat $export_symbols >> $output_objdir/$soname.def;
6725 fi~
6726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6727 else
6728 ld_shlibs=no
6729 fi
6730 ;;
6731
6732 netbsd*)
6733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6734 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6735 wlarc=
6736 else
6737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6739 fi
6740 ;;
6741
6742 solaris* | sysv5*)
6743 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6744 ld_shlibs=no
6745 cat <<EOF 1>&2
6746
6747 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6748 *** create shared libraries on Solaris systems. Therefore, libtool
6749 *** is disabling shared libraries support. We urge you to upgrade GNU
6750 *** binutils to release 2.9.1 or newer. Another option is to modify
6751 *** your PATH or compiler configuration so that the native linker is
6752 *** used, and then restart.
6753
6754 EOF
6755 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6758 else
6759 ld_shlibs=no
6760 fi
6761 ;;
6762
6763 sunos4*)
6764 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6765 wlarc=
6766 hardcode_direct=yes
6767 hardcode_shlibpath_var=no
6768 ;;
6769
6770 linux*)
6771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6772 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773 archive_cmds="$tmp_archive_cmds"
6774 supports_anon_versioning=no
6775 case `$LD -v 2>/dev/null` in
6776 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6777 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6778 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6779 *\ 2.11.*) ;; # other 2.11 versions
6780 *) supports_anon_versioning=yes ;;
6781 esac
6782 if test $supports_anon_versioning = yes; then
6783 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6785 $echo "local: *; };" >> $output_objdir/$libname.ver~
6786 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6787 else
6788 archive_expsym_cmds="$tmp_archive_cmds"
6789 fi
6790 else
6791 ld_shlibs=no
6792 fi
6793 ;;
6794
6795 *)
6796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6799 else
6800 ld_shlibs=no
6801 fi
6802 ;;
6803 esac
6804
6805 if test "$ld_shlibs" = yes; then
6806 runpath_var=LD_RUN_PATH
6807 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6808 export_dynamic_flag_spec='${wl}--export-dynamic'
6809 # ancient GNU ld didn't support --whole-archive et. al.
6810 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6811 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6812 else
6813 whole_archive_flag_spec=
6814 fi
6815 fi
6816 else
6817 # PORTME fill in a description of your system's linker (not GNU ld)
6818 case $host_os in
6819 aix3*)
6820 allow_undefined_flag=unsupported
6821 always_export_symbols=yes
6822 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'
6823 # Note: this linker hardcodes the directories in LIBPATH if there
6824 # are no directories specified by -L.
6825 hardcode_minus_L=yes
6826 if test "$GCC" = yes && test -z "$link_static_flag"; then
6827 # Neither direct hardcoding nor static linking is supported with a
6828 # broken collect2.
6829 hardcode_direct=unsupported
6830 fi
6831 ;;
6832
6833 aix4* | aix5*)
6834 if test "$host_cpu" = ia64; then
6835 # On IA64, the linker does run time linking by default, so we don't
6836 # have to do anything special.
6837 aix_use_runtimelinking=no
6838 exp_sym_flag='-Bexport'
6839 no_entry_flag=""
6840 else
6841 # If we're using GNU nm, then we don't want the "-C" option.
6842 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6843 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6844 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'
6845 else
6846 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'
6847 fi
6848 aix_use_runtimelinking=no
6849
6850 # Test if we are trying to use run time linking or normal
6851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6852 # need to do runtime linking.
6853 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6854 for ld_flag in $LDFLAGS; do
6855 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6856 aix_use_runtimelinking=yes
6857 break
6858 fi
6859 done
6860 esac
6861
6862 exp_sym_flag='-bexport'
6863 no_entry_flag='-bnoentry'
6864 fi
6865
6866 # When large executables or shared objects are built, AIX ld can
6867 # have problems creating the table of contents. If linking a library
6868 # or program results in "error TOC overflow" add -mminimal-toc to
6869 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6870 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6871
6872 archive_cmds=''
6873 hardcode_direct=yes
6874 hardcode_libdir_separator=':'
6875 link_all_deplibs=yes
6876
6877 if test "$GCC" = yes; then
6878 case $host_os in aix4.012|aix4.012.*)
6879 # We only want to do this on AIX 4.2 and lower, the check
6880 # below for broken collect2 doesn't work under 4.3+
6881 collect2name=`${CC} -print-prog-name=collect2`
6882 if test -f "$collect2name" && \
6883 strings "$collect2name" | grep resolve_lib_name >/dev/null
6884 then
6885 # We have reworked collect2
6886 hardcode_direct=yes
6887 else
6888 # We have old collect2
6889 hardcode_direct=unsupported
6890 # It fails to find uninstalled libraries when the uninstalled
6891 # path is not listed in the libpath. Setting hardcode_minus_L
6892 # to unsupported forces relinking
6893 hardcode_minus_L=yes
6894 hardcode_libdir_flag_spec='-L$libdir'
6895 hardcode_libdir_separator=
6896 fi
6897 esac
6898 shared_flag='-shared'
6899 else
6900 # not using gcc
6901 if test "$host_cpu" = ia64; then
6902 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6903 # chokes on -Wl,-G. The following line is correct:
6904 shared_flag='-G'
6905 else
6906 if test "$aix_use_runtimelinking" = yes; then
6907 shared_flag='${wl}-G'
6908 else
6909 shared_flag='${wl}-bM:SRE'
6910 fi
6911 fi
6912 fi
6913
6914 # It seems that -bexpall does not export symbols beginning with
6915 # underscore (_), so it is better to generate a list of symbols to export.
6916 always_export_symbols=yes
6917 if test "$aix_use_runtimelinking" = yes; then
6918 # Warning - without using the other runtime loading flags (-brtl),
6919 # -berok will link without error, but may produce a broken library.
6920 allow_undefined_flag='-berok'
6921 # Determine the default libpath from the value encoded in an empty executable.
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h. */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928
6929 int
6930 main ()
6931 {
6932
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939 (eval $ac_link) 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -z "$ac_c_werror_flag"
6947 || test ! -s conftest.err'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; } &&
6953 { ac_try='test -s conftest$ac_exeext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959
6960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6961 }'`
6962 # Check for a 64-bit object if we didn't find anything.
6963 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; }
6964 }'`; fi
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969 fi
6970 rm -f conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6973
6974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6975 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"
6976 else
6977 if test "$host_cpu" = ia64; then
6978 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6979 allow_undefined_flag="-z nodefs"
6980 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"
6981 else
6982 # Determine the default libpath from the value encoded in an empty executable.
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989
6990 int
6991 main ()
6992 {
6993
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_c_werror_flag"
7008 || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest$ac_exeext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020
7021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7022 }'`
7023 # Check for a 64-bit object if we didn't find anything.
7024 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; }
7025 }'`; fi
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030 fi
7031 rm -f conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7034
7035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7036 # Warning - without using the other run time loading flags,
7037 # -berok will link without error, but may produce a broken library.
7038 no_undefined_flag=' ${wl}-bernotok'
7039 allow_undefined_flag=' ${wl}-berok'
7040 # -bexpall does not export symbols beginning with underscore (_)
7041 always_export_symbols=yes
7042 # Exported symbols can be pulled into shared objects from archives
7043 whole_archive_flag_spec=' '
7044 archive_cmds_need_lc=yes
7045 # This is similar to how AIX traditionally builds it's shared libraries.
7046 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'
7047 fi
7048 fi
7049 ;;
7050
7051 amigaos*)
7052 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)'
7053 hardcode_libdir_flag_spec='-L$libdir'
7054 hardcode_minus_L=yes
7055 # see comment about different semantics on the GNU ld section
7056 ld_shlibs=no
7057 ;;
7058
7059 bsdi4*)
7060 export_dynamic_flag_spec=-rdynamic
7061 ;;
7062
7063 cygwin* | mingw* | pw32*)
7064 # When not using gcc, we currently assume that we are using
7065 # Microsoft Visual C++.
7066 # hardcode_libdir_flag_spec is actually meaningless, as there is
7067 # no search path for DLLs.
7068 hardcode_libdir_flag_spec=' '
7069 allow_undefined_flag=unsupported
7070 # Tell ltmain to make .lib files, not .a files.
7071 libext=lib
7072 # Tell ltmain to make .dll files, not .so files.
7073 shrext_cmds=".dll"
7074 # FIXME: Setting linknames here is a bad hack.
7075 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7076 # The linker will automatically build a .lib file if we build a DLL.
7077 old_archive_From_new_cmds='true'
7078 # FIXME: Should let the user specify the lib program.
7079 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7080 fix_srcfile_path='`cygpath -w "$srcfile"`'
7081 enable_shared_with_static_runtimes=yes
7082 ;;
7083
7084 darwin* | rhapsody*)
7085 if test "$GXX" = yes ; then
7086 archive_cmds_need_lc=no
7087 case "$host_os" in
7088 rhapsody* | darwin1.[012])
7089 allow_undefined_flag='-undefined suppress'
7090 ;;
7091 *) # Darwin 1.3 on
7092 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7093 allow_undefined_flag='-flat_namespace -undefined suppress'
7094 else
7095 case ${MACOSX_DEPLOYMENT_TARGET} in
7096 10.[012])
7097 allow_undefined_flag='-flat_namespace -undefined suppress'
7098 ;;
7099 10.*)
7100 allow_undefined_flag='-undefined dynamic_lookup'
7101 ;;
7102 esac
7103 fi
7104 ;;
7105 esac
7106 lt_int_apple_cc_single_mod=no
7107 output_verbose_link_cmd='echo'
7108 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7109 lt_int_apple_cc_single_mod=yes
7110 fi
7111 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7112 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7113 else
7114 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'
7115 fi
7116 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7118 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7119 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}'
7120 else
7121 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}'
7122 fi
7123 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}'
7124 hardcode_direct=no
7125 hardcode_automatic=yes
7126 hardcode_shlibpath_var=unsupported
7127 whole_archive_flag_spec='-all_load $convenience'
7128 link_all_deplibs=yes
7129 else
7130 ld_shlibs=no
7131 fi
7132 ;;
7133
7134 dgux*)
7135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7136 hardcode_libdir_flag_spec='-L$libdir'
7137 hardcode_shlibpath_var=no
7138 ;;
7139
7140 freebsd1*)
7141 ld_shlibs=no
7142 ;;
7143
7144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7145 # support. Future versions do this automatically, but an explicit c++rt0.o
7146 # does not break anything, and helps significantly (at the cost of a little
7147 # extra space).
7148 freebsd2.2*)
7149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7150 hardcode_libdir_flag_spec='-R$libdir'
7151 hardcode_direct=yes
7152 hardcode_shlibpath_var=no
7153 ;;
7154
7155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7156 freebsd2*)
7157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7158 hardcode_direct=yes
7159 hardcode_minus_L=yes
7160 hardcode_shlibpath_var=no
7161 ;;
7162
7163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7164 freebsd* | kfreebsd*-gnu)
7165 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7166 hardcode_libdir_flag_spec='-R$libdir'
7167 hardcode_direct=yes
7168 hardcode_shlibpath_var=no
7169 ;;
7170
7171 hpux9*)
7172 if test "$GCC" = yes; then
7173 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'
7174 else
7175 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'
7176 fi
7177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7178 hardcode_libdir_separator=:
7179 hardcode_direct=yes
7180
7181 # hardcode_minus_L: Not really in the search PATH,
7182 # but as the default location of the library.
7183 hardcode_minus_L=yes
7184 export_dynamic_flag_spec='${wl}-E'
7185 ;;
7186
7187 hpux10* | hpux11*)
7188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7189 case "$host_cpu" in
7190 hppa*64*|ia64*)
7191 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7192 ;;
7193 *)
7194 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7195 ;;
7196 esac
7197 else
7198 case "$host_cpu" in
7199 hppa*64*|ia64*)
7200 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7201 ;;
7202 *)
7203 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7204 ;;
7205 esac
7206 fi
7207 if test "$with_gnu_ld" = no; then
7208 case "$host_cpu" in
7209 hppa*64*)
7210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7211 hardcode_libdir_flag_spec_ld='+b $libdir'
7212 hardcode_libdir_separator=:
7213 hardcode_direct=no
7214 hardcode_shlibpath_var=no
7215 ;;
7216 ia64*)
7217 hardcode_libdir_flag_spec='-L$libdir'
7218 hardcode_direct=no
7219 hardcode_shlibpath_var=no
7220
7221 # hardcode_minus_L: Not really in the search PATH,
7222 # but as the default location of the library.
7223 hardcode_minus_L=yes
7224 ;;
7225 *)
7226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7227 hardcode_libdir_separator=:
7228 hardcode_direct=yes
7229 export_dynamic_flag_spec='${wl}-E'
7230
7231 # hardcode_minus_L: Not really in the search PATH,
7232 # but as the default location of the library.
7233 hardcode_minus_L=yes
7234 ;;
7235 esac
7236 fi
7237 ;;
7238
7239 irix5* | irix6* | nonstopux*)
7240 if test "$GCC" = yes; then
7241 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'
7242 else
7243 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'
7244 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7245 fi
7246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7247 hardcode_libdir_separator=:
7248 link_all_deplibs=yes
7249 ;;
7250
7251 netbsd*)
7252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7254 else
7255 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7256 fi
7257 hardcode_libdir_flag_spec='-R$libdir'
7258 hardcode_direct=yes
7259 hardcode_shlibpath_var=no
7260 ;;
7261
7262 newsos6)
7263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7264 hardcode_direct=yes
7265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7266 hardcode_libdir_separator=:
7267 hardcode_shlibpath_var=no
7268 ;;
7269
7270 openbsd*)
7271 hardcode_direct=yes
7272 hardcode_shlibpath_var=no
7273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7276 export_dynamic_flag_spec='${wl}-E'
7277 else
7278 case $host_os in
7279 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7281 hardcode_libdir_flag_spec='-R$libdir'
7282 ;;
7283 *)
7284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7286 ;;
7287 esac
7288 fi
7289 ;;
7290
7291 os2*)
7292 hardcode_libdir_flag_spec='-L$libdir'
7293 hardcode_minus_L=yes
7294 allow_undefined_flag=unsupported
7295 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'
7296 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7297 ;;
7298
7299 osf3*)
7300 if test "$GCC" = yes; then
7301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7302 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'
7303 else
7304 allow_undefined_flag=' -expect_unresolved \*'
7305 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'
7306 fi
7307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7308 hardcode_libdir_separator=:
7309 ;;
7310
7311 osf4* | osf5*) # as osf3* with the addition of -msym flag
7312 if test "$GCC" = yes; then
7313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7314 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'
7315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7316 else
7317 allow_undefined_flag=' -expect_unresolved \*'
7318 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'
7319 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7320 $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'
7321
7322 # Both c and cxx compiler support -rpath directly
7323 hardcode_libdir_flag_spec='-rpath $libdir'
7324 fi
7325 hardcode_libdir_separator=:
7326 ;;
7327
7328 sco3.2v5*)
7329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330 hardcode_shlibpath_var=no
7331 export_dynamic_flag_spec='${wl}-Bexport'
7332 runpath_var=LD_RUN_PATH
7333 hardcode_runpath_var=yes
7334 ;;
7335
7336 solaris*)
7337 no_undefined_flag=' -z text'
7338 if test "$GCC" = yes; then
7339 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7340 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7341 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7342 else
7343 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7344 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7345 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7346 fi
7347 hardcode_libdir_flag_spec='-R$libdir'
7348 hardcode_shlibpath_var=no
7349 case $host_os in
7350 solaris2.[0-5] | solaris2.[0-5].*) ;;
7351 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7352 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7353 esac
7354 link_all_deplibs=yes
7355 ;;
7356
7357 sunos4*)
7358 if test "x$host_vendor" = xsequent; then
7359 # Use $CC to link under sequent, because it throws in some extra .o
7360 # files that make .init and .fini sections work.
7361 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7362 else
7363 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7364 fi
7365 hardcode_libdir_flag_spec='-L$libdir'
7366 hardcode_direct=yes
7367 hardcode_minus_L=yes
7368 hardcode_shlibpath_var=no
7369 ;;
7370
7371 sysv4)
7372 case $host_vendor in
7373 sni)
7374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7375 hardcode_direct=yes # is this really true???
7376 ;;
7377 siemens)
7378 ## LD is ld it makes a PLAMLIB
7379 ## CC just makes a GrossModule.
7380 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7381 reload_cmds='$CC -r -o $output$reload_objs'
7382 hardcode_direct=no
7383 ;;
7384 motorola)
7385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7386 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7387 ;;
7388 esac
7389 runpath_var='LD_RUN_PATH'
7390 hardcode_shlibpath_var=no
7391 ;;
7392
7393 sysv4.3*)
7394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395 hardcode_shlibpath_var=no
7396 export_dynamic_flag_spec='-Bexport'
7397 ;;
7398
7399 sysv4*MP*)
7400 if test -d /usr/nec; then
7401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402 hardcode_shlibpath_var=no
7403 runpath_var=LD_RUN_PATH
7404 hardcode_runpath_var=yes
7405 ld_shlibs=yes
7406 fi
7407 ;;
7408
7409 sysv4.2uw2*)
7410 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_direct=yes
7412 hardcode_minus_L=no
7413 hardcode_shlibpath_var=no
7414 hardcode_runpath_var=yes
7415 runpath_var=LD_RUN_PATH
7416 ;;
7417
7418 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7419 no_undefined_flag='${wl}-z ${wl}text'
7420 if test "$GCC" = yes; then
7421 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422 else
7423 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7424 fi
7425 runpath_var='LD_RUN_PATH'
7426 hardcode_shlibpath_var=no
7427 ;;
7428
7429 sysv5*)
7430 no_undefined_flag=' -z text'
7431 # $CC -shared without GNU ld will not create a library from C++
7432 # object files and a static libstdc++, better avoid it by now
7433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7436 hardcode_libdir_flag_spec=
7437 hardcode_shlibpath_var=no
7438 runpath_var='LD_RUN_PATH'
7439 ;;
7440
7441 uts4*)
7442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7443 hardcode_libdir_flag_spec='-L$libdir'
7444 hardcode_shlibpath_var=no
7445 ;;
7446
7447 *)
7448 ld_shlibs=no
7449 ;;
7450 esac
7451 fi
7452
7453 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7454 echo "${ECHO_T}$ld_shlibs" >&6
7455 test "$ld_shlibs" = no && can_build_shared=no
7456
7457 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7458 if test "$GCC" = yes; then
7459 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7460 fi
7461
7462 #
7463 # Do we need to explicitly link libc?
7464 #
7465 case "x$archive_cmds_need_lc" in
7466 x|xyes)
7467 # Assume -lc should be added
7468 archive_cmds_need_lc=yes
7469
7470 if test "$enable_shared" = yes && test "$GCC" = yes; then
7471 case $archive_cmds in
7472 *'~'*)
7473 # FIXME: we may have to deal with multi-command sequences.
7474 ;;
7475 '$CC '*)
7476 # Test whether the compiler implicitly links with -lc since on some
7477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7478 # to ld, don't add -lc before -lgcc.
7479 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7480 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7481 $rm conftest*
7482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7483
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } 2>conftest.err; then
7489 soname=conftest
7490 lib=conftest
7491 libobjs=conftest.$ac_objext
7492 deplibs=
7493 wl=$lt_prog_compiler_wl
7494 compiler_flags=-v
7495 linker_flags=-v
7496 verstring=
7497 output_objdir=.
7498 libname=conftest
7499 lt_save_allow_undefined_flag=$allow_undefined_flag
7500 allow_undefined_flag=
7501 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7502 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }
7506 then
7507 archive_cmds_need_lc=no
7508 else
7509 archive_cmds_need_lc=yes
7510 fi
7511 allow_undefined_flag=$lt_save_allow_undefined_flag
7512 else
7513 cat conftest.err 1>&5
7514 fi
7515 $rm conftest*
7516 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7517 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7518 ;;
7519 esac
7520 fi
7521 ;;
7522 esac
7523
7524 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7525 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7526 library_names_spec=
7527 libname_spec='lib$name'
7528 soname_spec=
7529 shrext_cmds=".so"
7530 postinstall_cmds=
7531 postuninstall_cmds=
7532 finish_cmds=
7533 finish_eval=
7534 shlibpath_var=
7535 shlibpath_overrides_runpath=unknown
7536 version_type=none
7537 dynamic_linker="$host_os ld.so"
7538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7539 if test "$GCC" = yes; then
7540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7541 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7542 # if the path contains ";" then we assume it to be the separator
7543 # otherwise default to the standard path separator (i.e. ":") - it is
7544 # assumed that no part of a normal pathname contains ";" but that should
7545 # okay in the real world where ";" in dirpaths is itself problematic.
7546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7547 else
7548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7549 fi
7550 else
7551 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7552 fi
7553 need_lib_prefix=unknown
7554 hardcode_into_libs=no
7555
7556 # when you set need_version to no, make sure it does not cause -set_version
7557 # flags to be left without arguments
7558 need_version=unknown
7559
7560 case $host_os in
7561 aix3*)
7562 version_type=linux
7563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7564 shlibpath_var=LIBPATH
7565
7566 # AIX 3 has no versioning support, so we append a major version to the name.
7567 soname_spec='${libname}${release}${shared_ext}$major'
7568 ;;
7569
7570 aix4* | aix5*)
7571 version_type=linux
7572 need_lib_prefix=no
7573 need_version=no
7574 hardcode_into_libs=yes
7575 if test "$host_cpu" = ia64; then
7576 # AIX 5 supports IA64
7577 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7578 shlibpath_var=LD_LIBRARY_PATH
7579 else
7580 # With GCC up to 2.95.x, collect2 would create an import file
7581 # for dependence libraries. The import file would start with
7582 # the line `#! .'. This would cause the generated library to
7583 # depend on `.', always an invalid library. This was fixed in
7584 # development snapshots of GCC prior to 3.0.
7585 case $host_os in
7586 aix4 | aix4.[01] | aix4.[01].*)
7587 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7588 echo ' yes '
7589 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7590 :
7591 else
7592 can_build_shared=no
7593 fi
7594 ;;
7595 esac
7596 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7597 # soname into executable. Probably we can add versioning support to
7598 # collect2, so additional links can be useful in future.
7599 if test "$aix_use_runtimelinking" = yes; then
7600 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7601 # instead of lib<name>.a to let people know that these are not
7602 # typical AIX shared libraries.
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604 else
7605 # We preserve .a as extension for shared libraries through AIX4.2
7606 # and later when we are not doing run time linking.
7607 library_names_spec='${libname}${release}.a $libname.a'
7608 soname_spec='${libname}${release}${shared_ext}$major'
7609 fi
7610 shlibpath_var=LIBPATH
7611 fi
7612 ;;
7613
7614 amigaos*)
7615 library_names_spec='$libname.ixlibrary $libname.a'
7616 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7617 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'
7618 ;;
7619
7620 beos*)
7621 library_names_spec='${libname}${shared_ext}'
7622 dynamic_linker="$host_os ld.so"
7623 shlibpath_var=LIBRARY_PATH
7624 ;;
7625
7626 bsdi4*)
7627 version_type=linux
7628 need_version=no
7629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7630 soname_spec='${libname}${release}${shared_ext}$major'
7631 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7632 shlibpath_var=LD_LIBRARY_PATH
7633 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7634 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7635 # the default ld.so.conf also contains /usr/contrib/lib and
7636 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7637 # libtool to hard-code these into programs
7638 ;;
7639
7640 cygwin* | mingw* | pw32*)
7641 version_type=windows
7642 shrext_cmds=".dll"
7643 need_version=no
7644 need_lib_prefix=no
7645
7646 case $GCC,$host_os in
7647 yes,cygwin* | yes,mingw* | yes,pw32*)
7648 library_names_spec='$libname.dll.a'
7649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7650 postinstall_cmds='base_file=`basename \${file}`~
7651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7652 dldir=$destdir/`dirname \$dlpath`~
7653 test -d \$dldir || mkdir -p \$dldir~
7654 $install_prog $dir/$dlname \$dldir/$dlname'
7655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7656 dlpath=$dir/\$dldll~
7657 $rm \$dlpath'
7658 shlibpath_overrides_runpath=yes
7659
7660 case $host_os in
7661 cygwin*)
7662 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7663 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7664 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7665 ;;
7666 mingw*)
7667 # MinGW DLLs use traditional 'lib' prefix
7668 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7669 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7670 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7671 # It is most probably a Windows format PATH printed by
7672 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7673 # path with ; separators, and with drive letters. We can handle the
7674 # drive letters (cygwin fileutils understands them), so leave them,
7675 # especially as we might pass files found there to a mingw objdump,
7676 # which wouldn't understand a cygwinified path. Ahh.
7677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7678 else
7679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7680 fi
7681 ;;
7682 pw32*)
7683 # pw32 DLLs use 'pw' prefix rather than 'lib'
7684 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7685 ;;
7686 esac
7687 ;;
7688
7689 *)
7690 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7691 ;;
7692 esac
7693 dynamic_linker='Win32 ld.exe'
7694 # FIXME: first we should search . and the directory the executable is in
7695 shlibpath_var=PATH
7696 ;;
7697
7698 darwin* | rhapsody*)
7699 dynamic_linker="$host_os dyld"
7700 version_type=darwin
7701 need_lib_prefix=no
7702 need_version=no
7703 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7704 soname_spec='${libname}${release}${major}$shared_ext'
7705 shlibpath_overrides_runpath=yes
7706 shlibpath_var=DYLD_LIBRARY_PATH
7707 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7708 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7709 if test "$GCC" = yes; then
7710 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"`
7711 else
7712 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7713 fi
7714 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7715 ;;
7716
7717 dgux*)
7718 version_type=linux
7719 need_lib_prefix=no
7720 need_version=no
7721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7722 soname_spec='${libname}${release}${shared_ext}$major'
7723 shlibpath_var=LD_LIBRARY_PATH
7724 ;;
7725
7726 freebsd1*)
7727 dynamic_linker=no
7728 ;;
7729
7730 kfreebsd*-gnu)
7731 version_type=linux
7732 need_lib_prefix=no
7733 need_version=no
7734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7735 soname_spec='${libname}${release}${shared_ext}$major'
7736 shlibpath_var=LD_LIBRARY_PATH
7737 shlibpath_overrides_runpath=no
7738 hardcode_into_libs=yes
7739 dynamic_linker='GNU ld.so'
7740 ;;
7741
7742 freebsd*)
7743 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7744 version_type=freebsd-$objformat
7745 case $version_type in
7746 freebsd-elf*)
7747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7748 need_version=no
7749 need_lib_prefix=no
7750 ;;
7751 freebsd-*)
7752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7753 need_version=yes
7754 ;;
7755 esac
7756 shlibpath_var=LD_LIBRARY_PATH
7757 case $host_os in
7758 freebsd2*)
7759 shlibpath_overrides_runpath=yes
7760 ;;
7761 freebsd3.01* | freebsdelf3.01*)
7762 shlibpath_overrides_runpath=yes
7763 hardcode_into_libs=yes
7764 ;;
7765 *) # from 3.2 on
7766 shlibpath_overrides_runpath=no
7767 hardcode_into_libs=yes
7768 ;;
7769 esac
7770 ;;
7771
7772 gnu*)
7773 version_type=linux
7774 need_lib_prefix=no
7775 need_version=no
7776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7777 soname_spec='${libname}${release}${shared_ext}$major'
7778 shlibpath_var=LD_LIBRARY_PATH
7779 hardcode_into_libs=yes
7780 ;;
7781
7782 hpux9* | hpux10* | hpux11*)
7783 # Give a soname corresponding to the major version so that dld.sl refuses to
7784 # link against other versions.
7785 version_type=sunos
7786 need_lib_prefix=no
7787 need_version=no
7788 case "$host_cpu" in
7789 ia64*)
7790 shrext_cmds='.so'
7791 hardcode_into_libs=yes
7792 dynamic_linker="$host_os dld.so"
7793 shlibpath_var=LD_LIBRARY_PATH
7794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796 soname_spec='${libname}${release}${shared_ext}$major'
7797 if test "X$HPUX_IA64_MODE" = X32; then
7798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7799 else
7800 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7801 fi
7802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7803 ;;
7804 hppa*64*)
7805 shrext_cmds='.sl'
7806 hardcode_into_libs=yes
7807 dynamic_linker="$host_os dld.sl"
7808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7811 soname_spec='${libname}${release}${shared_ext}$major'
7812 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7814 ;;
7815 *)
7816 shrext_cmds='.sl'
7817 dynamic_linker="$host_os dld.sl"
7818 shlibpath_var=SHLIB_PATH
7819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7821 soname_spec='${libname}${release}${shared_ext}$major'
7822 ;;
7823 esac
7824 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7825 postinstall_cmds='chmod 555 $lib'
7826 ;;
7827
7828 irix5* | irix6* | nonstopux*)
7829 case $host_os in
7830 nonstopux*) version_type=nonstopux ;;
7831 *)
7832 if test "$lt_cv_prog_gnu_ld" = yes; then
7833 version_type=linux
7834 else
7835 version_type=irix
7836 fi ;;
7837 esac
7838 need_lib_prefix=no
7839 need_version=no
7840 soname_spec='${libname}${release}${shared_ext}$major'
7841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7842 case $host_os in
7843 irix5* | nonstopux*)
7844 libsuff= shlibsuff=
7845 ;;
7846 *)
7847 case $LD in # libtool.m4 will add one of these switches to LD
7848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7849 libsuff= shlibsuff= libmagic=32-bit;;
7850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7851 libsuff=32 shlibsuff=N32 libmagic=N32;;
7852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7853 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7854 *) libsuff= shlibsuff= libmagic=never-match;;
7855 esac
7856 ;;
7857 esac
7858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7859 shlibpath_overrides_runpath=no
7860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7862 hardcode_into_libs=yes
7863 ;;
7864
7865 # No shared lib support for Linux oldld, aout, or coff.
7866 linux*oldld* | linux*aout* | linux*coff*)
7867 dynamic_linker=no
7868 ;;
7869
7870 # This must be Linux ELF.
7871 linux*)
7872 version_type=linux
7873 need_lib_prefix=no
7874 need_version=no
7875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7876 soname_spec='${libname}${release}${shared_ext}$major'
7877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7878 shlibpath_var=LD_LIBRARY_PATH
7879 shlibpath_overrides_runpath=no
7880 # This implies no fast_install, which is unacceptable.
7881 # Some rework will be needed to allow for fast_install
7882 # before this can be enabled.
7883 hardcode_into_libs=yes
7884
7885 # find out which ABI we are using
7886 libsuff=
7887 case "$host_cpu" in
7888 x86_64*|s390x*|powerpc64*)
7889 echo '#line 7889 "configure"' > conftest.$ac_ext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; then
7895 case `/usr/bin/file conftest.$ac_objext` in
7896 *64-bit*)
7897 libsuff=64
7898 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7899 ;;
7900 esac
7901 fi
7902 rm -rf conftest*
7903 ;;
7904 esac
7905
7906 # Append ld.so.conf contents to the search path
7907 if test -f /etc/ld.so.conf; then
7908 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7909 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7910 fi
7911
7912 # We used to test for /lib/ld.so.1 and disable shared libraries on
7913 # powerpc, because MkLinux only supported shared libraries with the
7914 # GNU dynamic linker. Since this was broken with cross compilers,
7915 # most powerpc-linux boxes support dynamic linking these days and
7916 # people can always --disable-shared, the test was removed, and we
7917 # assume the GNU/Linux dynamic linker is in use.
7918 dynamic_linker='GNU/Linux ld.so'
7919 ;;
7920
7921 knetbsd*-gnu)
7922 version_type=linux
7923 need_lib_prefix=no
7924 need_version=no
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7926 soname_spec='${libname}${release}${shared_ext}$major'
7927 shlibpath_var=LD_LIBRARY_PATH
7928 shlibpath_overrides_runpath=no
7929 hardcode_into_libs=yes
7930 dynamic_linker='GNU ld.so'
7931 ;;
7932
7933 netbsd*)
7934 version_type=sunos
7935 need_lib_prefix=no
7936 need_version=no
7937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7940 dynamic_linker='NetBSD (a.out) ld.so'
7941 else
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7943 soname_spec='${libname}${release}${shared_ext}$major'
7944 dynamic_linker='NetBSD ld.elf_so'
7945 fi
7946 shlibpath_var=LD_LIBRARY_PATH
7947 shlibpath_overrides_runpath=yes
7948 hardcode_into_libs=yes
7949 ;;
7950
7951 newsos6)
7952 version_type=linux
7953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954 shlibpath_var=LD_LIBRARY_PATH
7955 shlibpath_overrides_runpath=yes
7956 ;;
7957
7958 nto-qnx*)
7959 version_type=linux
7960 need_lib_prefix=no
7961 need_version=no
7962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7963 soname_spec='${libname}${release}${shared_ext}$major'
7964 shlibpath_var=LD_LIBRARY_PATH
7965 shlibpath_overrides_runpath=yes
7966 ;;
7967
7968 openbsd*)
7969 version_type=sunos
7970 need_lib_prefix=no
7971 need_version=yes
7972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7974 shlibpath_var=LD_LIBRARY_PATH
7975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7976 case $host_os in
7977 openbsd2.[89] | openbsd2.[89].*)
7978 shlibpath_overrides_runpath=no
7979 ;;
7980 *)
7981 shlibpath_overrides_runpath=yes
7982 ;;
7983 esac
7984 else
7985 shlibpath_overrides_runpath=yes
7986 fi
7987 ;;
7988
7989 os2*)
7990 libname_spec='$name'
7991 shrext_cmds=".dll"
7992 need_lib_prefix=no
7993 library_names_spec='$libname${shared_ext} $libname.a'
7994 dynamic_linker='OS/2 ld.exe'
7995 shlibpath_var=LIBPATH
7996 ;;
7997
7998 osf3* | osf4* | osf5*)
7999 version_type=osf
8000 need_lib_prefix=no
8001 need_version=no
8002 soname_spec='${libname}${release}${shared_ext}$major'
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 shlibpath_var=LD_LIBRARY_PATH
8005 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8006 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8007 ;;
8008
8009 sco3.2v5*)
8010 version_type=osf
8011 soname_spec='${libname}${release}${shared_ext}$major'
8012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 ;;
8015
8016 solaris*)
8017 version_type=linux
8018 need_lib_prefix=no
8019 need_version=no
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021 soname_spec='${libname}${release}${shared_ext}$major'
8022 shlibpath_var=LD_LIBRARY_PATH
8023 shlibpath_overrides_runpath=yes
8024 hardcode_into_libs=yes
8025 # ldd complains unless libraries are executable
8026 postinstall_cmds='chmod +x $lib'
8027 ;;
8028
8029 sunos4*)
8030 version_type=sunos
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8033 shlibpath_var=LD_LIBRARY_PATH
8034 shlibpath_overrides_runpath=yes
8035 if test "$with_gnu_ld" = yes; then
8036 need_lib_prefix=no
8037 fi
8038 need_version=yes
8039 ;;
8040
8041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8042 version_type=linux
8043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8044 soname_spec='${libname}${release}${shared_ext}$major'
8045 shlibpath_var=LD_LIBRARY_PATH
8046 case $host_vendor in
8047 sni)
8048 shlibpath_overrides_runpath=no
8049 need_lib_prefix=no
8050 export_dynamic_flag_spec='${wl}-Blargedynsym'
8051 runpath_var=LD_RUN_PATH
8052 ;;
8053 siemens)
8054 need_lib_prefix=no
8055 ;;
8056 motorola)
8057 need_lib_prefix=no
8058 need_version=no
8059 shlibpath_overrides_runpath=no
8060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8061 ;;
8062 esac
8063 ;;
8064
8065 sysv4*MP*)
8066 if test -d /usr/nec ;then
8067 version_type=linux
8068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8069 soname_spec='$libname${shared_ext}.$major'
8070 shlibpath_var=LD_LIBRARY_PATH
8071 fi
8072 ;;
8073
8074 uts4*)
8075 version_type=linux
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077 soname_spec='${libname}${release}${shared_ext}$major'
8078 shlibpath_var=LD_LIBRARY_PATH
8079 ;;
8080
8081 *)
8082 dynamic_linker=no
8083 ;;
8084 esac
8085 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8086 echo "${ECHO_T}$dynamic_linker" >&6
8087 test "$dynamic_linker" = no && can_build_shared=no
8088
8089 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8090 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8091 hardcode_action=
8092 if test -n "$hardcode_libdir_flag_spec" || \
8093 test -n "$runpath_var " || \
8094 test "X$hardcode_automatic"="Xyes" ; then
8095
8096 # We can hardcode non-existant directories.
8097 if test "$hardcode_direct" != no &&
8098 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8099 # have to relink, otherwise we might link with an installed library
8100 # when we should be linking with a yet-to-be-installed one
8101 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8102 test "$hardcode_minus_L" != no; then
8103 # Linking always hardcodes the temporary library directory.
8104 hardcode_action=relink
8105 else
8106 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8107 hardcode_action=immediate
8108 fi
8109 else
8110 # We cannot hardcode anything, or else we can only hardcode existing
8111 # directories.
8112 hardcode_action=unsupported
8113 fi
8114 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8115 echo "${ECHO_T}$hardcode_action" >&6
8116
8117 if test "$hardcode_action" = relink; then
8118 # Fast installation is not supported
8119 enable_fast_install=no
8120 elif test "$shlibpath_overrides_runpath" = yes ||
8121 test "$enable_shared" = no; then
8122 # Fast installation is not necessary
8123 enable_fast_install=needless
8124 fi
8125
8126 striplib=
8127 old_striplib=
8128 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8129 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8130 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8132 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8133 echo "$as_me:$LINENO: result: yes" >&5
8134 echo "${ECHO_T}yes" >&6
8135 else
8136 # FIXME - insert some real tests, host_os isn't really good enough
8137 case $host_os in
8138 darwin*)
8139 if test -n "$STRIP" ; then
8140 striplib="$STRIP -x"
8141 echo "$as_me:$LINENO: result: yes" >&5
8142 echo "${ECHO_T}yes" >&6
8143 else
8144 echo "$as_me:$LINENO: result: no" >&5
8145 echo "${ECHO_T}no" >&6
8146 fi
8147 ;;
8148 *)
8149 echo "$as_me:$LINENO: result: no" >&5
8150 echo "${ECHO_T}no" >&6
8151 ;;
8152 esac
8153 fi
8154
8155 if test "x$enable_dlopen" != xyes; then
8156 enable_dlopen=unknown
8157 enable_dlopen_self=unknown
8158 enable_dlopen_self_static=unknown
8159 else
8160 lt_cv_dlopen=no
8161 lt_cv_dlopen_libs=
8162
8163 case $host_os in
8164 beos*)
8165 lt_cv_dlopen="load_add_on"
8166 lt_cv_dlopen_libs=
8167 lt_cv_dlopen_self=yes
8168 ;;
8169
8170 mingw* | pw32*)
8171 lt_cv_dlopen="LoadLibrary"
8172 lt_cv_dlopen_libs=
8173 ;;
8174
8175 cygwin*)
8176 lt_cv_dlopen="dlopen"
8177 lt_cv_dlopen_libs=
8178 ;;
8179
8180 darwin*)
8181 # if libdl is installed we need to link against it
8182 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8183 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8184 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 ac_check_lib_save_LIBS=$LIBS
8188 LIBS="-ldl $LIBS"
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 #ifdef __cplusplus
8198 extern "C"
8199 #endif
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8202 char dlopen ();
8203 int
8204 main ()
8205 {
8206 dlopen ();
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213 (eval $ac_link) 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -z "$ac_c_werror_flag"
8221 || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_lib_dl_dlopen=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 ac_cv_lib_dl_dlopen=no
8239 fi
8240 rm -f conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LIBS=$ac_check_lib_save_LIBS
8243 fi
8244 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8245 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8246 if test $ac_cv_lib_dl_dlopen = yes; then
8247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8248 else
8249
8250 lt_cv_dlopen="dyld"
8251 lt_cv_dlopen_libs=
8252 lt_cv_dlopen_self=yes
8253
8254 fi
8255
8256 ;;
8257
8258 *)
8259 echo "$as_me:$LINENO: checking for shl_load" >&5
8260 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8261 if test "${ac_cv_func_shl_load+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h. */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8272 #define shl_load innocuous_shl_load
8273
8274 /* System header to define __stub macros and hopefully few prototypes,
8275 which can conflict with char shl_load (); below.
8276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8277 <limits.h> exists even on freestanding compilers. */
8278
8279 #ifdef __STDC__
8280 # include <limits.h>
8281 #else
8282 # include <assert.h>
8283 #endif
8284
8285 #undef shl_load
8286
8287 /* Override any gcc2 internal prototype to avoid an error. */
8288 #ifdef __cplusplus
8289 extern "C"
8290 {
8291 #endif
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8294 char shl_load ();
8295 /* The GNU C library defines this for functions which it implements
8296 to always fail with ENOSYS. Some functions are actually named
8297 something starting with __ and the normal name is an alias. */
8298 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8299 choke me
8300 #else
8301 char (*f) () = shl_load;
8302 #endif
8303 #ifdef __cplusplus
8304 }
8305 #endif
8306
8307 int
8308 main ()
8309 {
8310 return f != shl_load;
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 rm -f conftest.$ac_objext conftest$ac_exeext
8316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8317 (eval $ac_link) 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -z "$ac_c_werror_flag"
8325 || test ! -s conftest.err'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try='test -s conftest$ac_exeext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 ac_cv_func_shl_load=yes
8338 else
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342 ac_cv_func_shl_load=no
8343 fi
8344 rm -f conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 fi
8347 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8348 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8349 if test $ac_cv_func_shl_load = yes; then
8350 lt_cv_dlopen="shl_load"
8351 else
8352 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8353 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8354 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357 ac_check_lib_save_LIBS=$LIBS
8358 LIBS="-ldld $LIBS"
8359 cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h. */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8372 char shl_load ();
8373 int
8374 main ()
8375 {
8376 shl_load ();
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8383 (eval $ac_link) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag"
8391 || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_lib_dld_shl_load=yes
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ac_cv_lib_dld_shl_load=no
8409 fi
8410 rm -f conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8412 LIBS=$ac_check_lib_save_LIBS
8413 fi
8414 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8415 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8416 if test $ac_cv_lib_dld_shl_load = yes; then
8417 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8418 else
8419 echo "$as_me:$LINENO: checking for dlopen" >&5
8420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8421 if test "${ac_cv_func_dlopen+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8432 #define dlopen innocuous_dlopen
8433
8434 /* System header to define __stub macros and hopefully few prototypes,
8435 which can conflict with char dlopen (); below.
8436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8437 <limits.h> exists even on freestanding compilers. */
8438
8439 #ifdef __STDC__
8440 # include <limits.h>
8441 #else
8442 # include <assert.h>
8443 #endif
8444
8445 #undef dlopen
8446
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 #ifdef __cplusplus
8449 extern "C"
8450 {
8451 #endif
8452 /* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8454 char dlopen ();
8455 /* The GNU C library defines this for functions which it implements
8456 to always fail with ENOSYS. Some functions are actually named
8457 something starting with __ and the normal name is an alias. */
8458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8459 choke me
8460 #else
8461 char (*f) () = dlopen;
8462 #endif
8463 #ifdef __cplusplus
8464 }
8465 #endif
8466
8467 int
8468 main ()
8469 {
8470 return f != dlopen;
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477 (eval $ac_link) 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag"
8485 || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_func_dlopen=yes
8498 else
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 ac_cv_func_dlopen=no
8503 fi
8504 rm -f conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8508 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8509 if test $ac_cv_func_dlopen = yes; then
8510 lt_cv_dlopen="dlopen"
8511 else
8512 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517 ac_check_lib_save_LIBS=$LIBS
8518 LIBS="-ldl $LIBS"
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525
8526 /* Override any gcc2 internal prototype to avoid an error. */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532 char dlopen ();
8533 int
8534 main ()
8535 {
8536 dlopen ();
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543 (eval $ac_link) 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag"
8551 || test ! -s conftest.err'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 ac_cv_lib_dl_dlopen=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 ac_cv_lib_dl_dlopen=no
8569 fi
8570 rm -f conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8573 fi
8574 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8575 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8576 if test $ac_cv_lib_dl_dlopen = yes; then
8577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8578 else
8579 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8580 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8581 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584 ac_check_lib_save_LIBS=$LIBS
8585 LIBS="-lsvld $LIBS"
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592
8593 /* Override any gcc2 internal prototype to avoid an error. */
8594 #ifdef __cplusplus
8595 extern "C"
8596 #endif
8597 /* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8599 char dlopen ();
8600 int
8601 main ()
8602 {
8603 dlopen ();
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610 (eval $ac_link) 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_lib_svld_dlopen=yes
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635 ac_cv_lib_svld_dlopen=no
8636 fi
8637 rm -f conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8640 fi
8641 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8642 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8643 if test $ac_cv_lib_svld_dlopen = yes; then
8644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8645 else
8646 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8647 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8648 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-ldld $LIBS"
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659
8660 /* Override any gcc2 internal prototype to avoid an error. */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8666 char dld_link ();
8667 int
8668 main ()
8669 {
8670 dld_link ();
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_lib_dld_dld_link=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_cv_lib_dld_dld_link=no
8703 fi
8704 rm -f conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706 LIBS=$ac_check_lib_save_LIBS
8707 fi
8708 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8709 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8710 if test $ac_cv_lib_dld_dld_link = yes; then
8711 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8712 fi
8713
8714
8715 fi
8716
8717
8718 fi
8719
8720
8721 fi
8722
8723
8724 fi
8725
8726
8727 fi
8728
8729 ;;
8730 esac
8731
8732 if test "x$lt_cv_dlopen" != xno; then
8733 enable_dlopen=yes
8734 else
8735 enable_dlopen=no
8736 fi
8737
8738 case $lt_cv_dlopen in
8739 dlopen)
8740 save_CPPFLAGS="$CPPFLAGS"
8741 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8742
8743 save_LDFLAGS="$LDFLAGS"
8744 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8745
8746 save_LIBS="$LIBS"
8747 LIBS="$lt_cv_dlopen_libs $LIBS"
8748
8749 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8750 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8751 if test "${lt_cv_dlopen_self+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 if test "$cross_compiling" = yes; then :
8755 lt_cv_dlopen_self=cross
8756 else
8757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8758 lt_status=$lt_dlunknown
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8760 "configure"
8761 #include "confdefs.h"
8762
8763 #if HAVE_DLFCN_H
8764 #include <dlfcn.h>
8765 #endif
8766
8767 #include <stdio.h>
8768
8769 #ifdef RTLD_GLOBAL
8770 # define LT_DLGLOBAL RTLD_GLOBAL
8771 #else
8772 # ifdef DL_GLOBAL
8773 # define LT_DLGLOBAL DL_GLOBAL
8774 # else
8775 # define LT_DLGLOBAL 0
8776 # endif
8777 #endif
8778
8779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8780 find out it does not work in some platform. */
8781 #ifndef LT_DLLAZY_OR_NOW
8782 # ifdef RTLD_LAZY
8783 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8784 # else
8785 # ifdef DL_LAZY
8786 # define LT_DLLAZY_OR_NOW DL_LAZY
8787 # else
8788 # ifdef RTLD_NOW
8789 # define LT_DLLAZY_OR_NOW RTLD_NOW
8790 # else
8791 # ifdef DL_NOW
8792 # define LT_DLLAZY_OR_NOW DL_NOW
8793 # else
8794 # define LT_DLLAZY_OR_NOW 0
8795 # endif
8796 # endif
8797 # endif
8798 # endif
8799 #endif
8800
8801 #ifdef __cplusplus
8802 extern "C" void exit (int);
8803 #endif
8804
8805 void fnord() { int i=42;}
8806 int main ()
8807 {
8808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8809 int status = $lt_dlunknown;
8810
8811 if (self)
8812 {
8813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8814 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8815 /* dlclose (self); */
8816 }
8817
8818 exit (status);
8819 }
8820 EOF
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8826 (./conftest; exit; ) 2>/dev/null
8827 lt_status=$?
8828 case x$lt_status in
8829 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8830 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8831 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8832 esac
8833 else :
8834 # compilation failed
8835 lt_cv_dlopen_self=no
8836 fi
8837 fi
8838 rm -fr conftest*
8839
8840
8841 fi
8842 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8843 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8844
8845 if test "x$lt_cv_dlopen_self" = xyes; then
8846 LDFLAGS="$LDFLAGS $link_static_flag"
8847 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8848 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8849 if test "${lt_cv_dlopen_self_static+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 if test "$cross_compiling" = yes; then :
8853 lt_cv_dlopen_self_static=cross
8854 else
8855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8856 lt_status=$lt_dlunknown
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8858 "configure"
8859 #include "confdefs.h"
8860
8861 #if HAVE_DLFCN_H
8862 #include <dlfcn.h>
8863 #endif
8864
8865 #include <stdio.h>
8866
8867 #ifdef RTLD_GLOBAL
8868 # define LT_DLGLOBAL RTLD_GLOBAL
8869 #else
8870 # ifdef DL_GLOBAL
8871 # define LT_DLGLOBAL DL_GLOBAL
8872 # else
8873 # define LT_DLGLOBAL 0
8874 # endif
8875 #endif
8876
8877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8878 find out it does not work in some platform. */
8879 #ifndef LT_DLLAZY_OR_NOW
8880 # ifdef RTLD_LAZY
8881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8882 # else
8883 # ifdef DL_LAZY
8884 # define LT_DLLAZY_OR_NOW DL_LAZY
8885 # else
8886 # ifdef RTLD_NOW
8887 # define LT_DLLAZY_OR_NOW RTLD_NOW
8888 # else
8889 # ifdef DL_NOW
8890 # define LT_DLLAZY_OR_NOW DL_NOW
8891 # else
8892 # define LT_DLLAZY_OR_NOW 0
8893 # endif
8894 # endif
8895 # endif
8896 # endif
8897 #endif
8898
8899 #ifdef __cplusplus
8900 extern "C" void exit (int);
8901 #endif
8902
8903 void fnord() { int i=42;}
8904 int main ()
8905 {
8906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8907 int status = $lt_dlunknown;
8908
8909 if (self)
8910 {
8911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8913 /* dlclose (self); */
8914 }
8915
8916 exit (status);
8917 }
8918 EOF
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8924 (./conftest; exit; ) 2>/dev/null
8925 lt_status=$?
8926 case x$lt_status in
8927 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8928 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8929 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8930 esac
8931 else :
8932 # compilation failed
8933 lt_cv_dlopen_self_static=no
8934 fi
8935 fi
8936 rm -fr conftest*
8937
8938
8939 fi
8940 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8941 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8942 fi
8943
8944 CPPFLAGS="$save_CPPFLAGS"
8945 LDFLAGS="$save_LDFLAGS"
8946 LIBS="$save_LIBS"
8947 ;;
8948 esac
8949
8950 case $lt_cv_dlopen_self in
8951 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8952 *) enable_dlopen_self=unknown ;;
8953 esac
8954
8955 case $lt_cv_dlopen_self_static in
8956 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8957 *) enable_dlopen_self_static=unknown ;;
8958 esac
8959 fi
8960
8961
8962 # Report which librarie types wil actually be built
8963 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8964 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8965 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8966 echo "${ECHO_T}$can_build_shared" >&6
8967
8968 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8969 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8970 test "$can_build_shared" = "no" && enable_shared=no
8971
8972 # On AIX, shared libraries and static libraries use the same namespace, and
8973 # are all built from PIC.
8974 case "$host_os" in
8975 aix3*)
8976 test "$enable_shared" = yes && enable_static=no
8977 if test -n "$RANLIB"; then
8978 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8979 postinstall_cmds='$RANLIB $lib'
8980 fi
8981 ;;
8982
8983 aix4* | aix5*)
8984 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8985 test "$enable_shared" = yes && enable_static=no
8986 fi
8987 ;;
8988 darwin* | rhapsody*)
8989 if test "$GCC" = yes; then
8990 archive_cmds_need_lc=no
8991 case "$host_os" in
8992 rhapsody* | darwin1.[012])
8993 allow_undefined_flag='-undefined suppress'
8994 ;;
8995 *) # Darwin 1.3 on
8996 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8997 allow_undefined_flag='-flat_namespace -undefined suppress'
8998 else
8999 case ${MACOSX_DEPLOYMENT_TARGET} in
9000 10.[012])
9001 allow_undefined_flag='-flat_namespace -undefined suppress'
9002 ;;
9003 10.*)
9004 allow_undefined_flag='-undefined dynamic_lookup'
9005 ;;
9006 esac
9007 fi
9008 ;;
9009 esac
9010 output_verbose_link_cmd='echo'
9011 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9012 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9013 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9014 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}'
9015 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}'
9016 hardcode_direct=no
9017 hardcode_automatic=yes
9018 hardcode_shlibpath_var=unsupported
9019 whole_archive_flag_spec='-all_load $convenience'
9020 link_all_deplibs=yes
9021 else
9022 ld_shlibs=no
9023 fi
9024 ;;
9025 esac
9026 echo "$as_me:$LINENO: result: $enable_shared" >&5
9027 echo "${ECHO_T}$enable_shared" >&6
9028
9029 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9030 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9031 # Make sure either enable_shared or enable_static is yes.
9032 test "$enable_shared" = yes || enable_static=yes
9033 echo "$as_me:$LINENO: result: $enable_static" >&5
9034 echo "${ECHO_T}$enable_static" >&6
9035
9036 # The else clause should only fire when bootstrapping the
9037 # libtool distribution, otherwise you forgot to ship ltmain.sh
9038 # with your package, and you will get complaints that there are
9039 # no rules to generate ltmain.sh.
9040 if test -f "$ltmain"; then
9041 # See if we are running on zsh, and set the options which allow our commands through
9042 # without removal of \ escapes.
9043 if test -n "${ZSH_VERSION+set}" ; then
9044 setopt NO_GLOB_SUBST
9045 fi
9046 # Now quote all the things that may contain metacharacters while being
9047 # careful not to overquote the AC_SUBSTed values. We take copies of the
9048 # variables and quote the copies for generation of the libtool script.
9049 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9050 SED SHELL STRIP \
9051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9053 deplibs_check_method reload_flag reload_cmds need_locks \
9054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9055 lt_cv_sys_global_symbol_to_c_name_address \
9056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9057 old_postinstall_cmds old_postuninstall_cmds \
9058 compiler \
9059 CC \
9060 LD \
9061 lt_prog_compiler_wl \
9062 lt_prog_compiler_pic \
9063 lt_prog_compiler_static \
9064 lt_prog_compiler_no_builtin_flag \
9065 export_dynamic_flag_spec \
9066 thread_safe_flag_spec \
9067 whole_archive_flag_spec \
9068 enable_shared_with_static_runtimes \
9069 old_archive_cmds \
9070 old_archive_from_new_cmds \
9071 predep_objects \
9072 postdep_objects \
9073 predeps \
9074 postdeps \
9075 compiler_lib_search_path \
9076 archive_cmds \
9077 archive_expsym_cmds \
9078 postinstall_cmds \
9079 postuninstall_cmds \
9080 old_archive_from_expsyms_cmds \
9081 allow_undefined_flag \
9082 no_undefined_flag \
9083 export_symbols_cmds \
9084 hardcode_libdir_flag_spec \
9085 hardcode_libdir_flag_spec_ld \
9086 hardcode_libdir_separator \
9087 hardcode_automatic \
9088 module_cmds \
9089 module_expsym_cmds \
9090 lt_cv_prog_compiler_c_o \
9091 exclude_expsyms \
9092 include_expsyms; do
9093
9094 case $var in
9095 old_archive_cmds | \
9096 old_archive_from_new_cmds | \
9097 archive_cmds | \
9098 archive_expsym_cmds | \
9099 module_cmds | \
9100 module_expsym_cmds | \
9101 old_archive_from_expsyms_cmds | \
9102 export_symbols_cmds | \
9103 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9104 postinstall_cmds | postuninstall_cmds | \
9105 old_postinstall_cmds | old_postuninstall_cmds | \
9106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9107 # Double-quote double-evaled strings.
9108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9109 ;;
9110 *)
9111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9112 ;;
9113 esac
9114 done
9115
9116 case $lt_echo in
9117 *'\$0 --fallback-echo"')
9118 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9119 ;;
9120 esac
9121
9122 cfgfile="${ofile}T"
9123 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9124 $rm -f "$cfgfile"
9125 { echo "$as_me:$LINENO: creating $ofile" >&5
9126 echo "$as_me: creating $ofile" >&6;}
9127
9128 cat <<__EOF__ >> "$cfgfile"
9129 #! $SHELL
9130
9131 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9132 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9133 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9134 #
9135 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9136 # Free Software Foundation, Inc.
9137 #
9138 # This file is part of GNU Libtool:
9139 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9140 #
9141 # This program is free software; you can redistribute it and/or modify
9142 # it under the terms of the GNU General Public License as published by
9143 # the Free Software Foundation; either version 2 of the License, or
9144 # (at your option) any later version.
9145 #
9146 # This program is distributed in the hope that it will be useful, but
9147 # WITHOUT ANY WARRANTY; without even the implied warranty of
9148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9149 # General Public License for more details.
9150 #
9151 # You should have received a copy of the GNU General Public License
9152 # along with this program; if not, write to the Free Software
9153 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9154 #
9155 # As a special exception to the GNU General Public License, if you
9156 # distribute this file as part of a program that contains a
9157 # configuration script generated by Autoconf, you may include it under
9158 # the same distribution terms that you use for the rest of that program.
9159
9160 # A sed program that does not truncate output.
9161 SED=$lt_SED
9162
9163 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9164 Xsed="$SED -e s/^X//"
9165
9166 # The HP-UX ksh and POSIX shell print the target directory to stdout
9167 # if CDPATH is set.
9168 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9169
9170 # The names of the tagged configurations supported by this script.
9171 available_tags=
9172
9173 # ### BEGIN LIBTOOL CONFIG
9174
9175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9176
9177 # Shell to use when invoking shell scripts.
9178 SHELL=$lt_SHELL
9179
9180 # Whether or not to build shared libraries.
9181 build_libtool_libs=$enable_shared
9182
9183 # Whether or not to build static libraries.
9184 build_old_libs=$enable_static
9185
9186 # Whether or not to add -lc for building shared libraries.
9187 build_libtool_need_lc=$archive_cmds_need_lc
9188
9189 # Whether or not to disallow shared libs when runtime libs are static
9190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9191
9192 # Whether or not to optimize for fast installation.
9193 fast_install=$enable_fast_install
9194
9195 # The host system.
9196 host_alias=$host_alias
9197 host=$host
9198
9199 # An echo program that does not interpret backslashes.
9200 echo=$lt_echo
9201
9202 # The archiver.
9203 AR=$lt_AR
9204 AR_FLAGS=$lt_AR_FLAGS
9205
9206 # A C compiler.
9207 LTCC=$lt_LTCC
9208
9209 # A language-specific compiler.
9210 CC=$lt_compiler
9211
9212 # Is the compiler the GNU C compiler?
9213 with_gcc=$GCC
9214
9215 # An ERE matcher.
9216 EGREP=$lt_EGREP
9217
9218 # The linker used to build libraries.
9219 LD=$lt_LD
9220
9221 # Whether we need hard or soft links.
9222 LN_S=$lt_LN_S
9223
9224 # A BSD-compatible nm program.
9225 NM=$lt_NM
9226
9227 # A symbol stripping program
9228 STRIP=$lt_STRIP
9229
9230 # Used to examine libraries when file_magic_cmd begins "file"
9231 MAGIC_CMD=$MAGIC_CMD
9232
9233 # Used on cygwin: DLL creation program.
9234 DLLTOOL="$DLLTOOL"
9235
9236 # Used on cygwin: object dumper.
9237 OBJDUMP="$OBJDUMP"
9238
9239 # Used on cygwin: assembler.
9240 AS="$AS"
9241
9242 # The name of the directory that contains temporary libtool files.
9243 objdir=$objdir
9244
9245 # How to create reloadable object files.
9246 reload_flag=$lt_reload_flag
9247 reload_cmds=$lt_reload_cmds
9248
9249 # How to pass a linker flag through the compiler.
9250 wl=$lt_lt_prog_compiler_wl
9251
9252 # Object file suffix (normally "o").
9253 objext="$ac_objext"
9254
9255 # Old archive suffix (normally "a").
9256 libext="$libext"
9257
9258 # Shared library suffix (normally ".so").
9259 shrext_cmds='$shrext_cmds'
9260
9261 # Executable file suffix (normally "").
9262 exeext="$exeext"
9263
9264 # Additional compiler flags for building library objects.
9265 pic_flag=$lt_lt_prog_compiler_pic
9266 pic_mode=$pic_mode
9267
9268 # What is the maximum length of a command?
9269 max_cmd_len=$lt_cv_sys_max_cmd_len
9270
9271 # Does compiler simultaneously support -c and -o options?
9272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9273
9274 # Must we lock files when doing compilation ?
9275 need_locks=$lt_need_locks
9276
9277 # Do we need the lib prefix for modules?
9278 need_lib_prefix=$need_lib_prefix
9279
9280 # Do we need a version for libraries?
9281 need_version=$need_version
9282
9283 # Whether dlopen is supported.
9284 dlopen_support=$enable_dlopen
9285
9286 # Whether dlopen of programs is supported.
9287 dlopen_self=$enable_dlopen_self
9288
9289 # Whether dlopen of statically linked programs is supported.
9290 dlopen_self_static=$enable_dlopen_self_static
9291
9292 # Compiler flag to prevent dynamic linking.
9293 link_static_flag=$lt_lt_prog_compiler_static
9294
9295 # Compiler flag to turn off builtin functions.
9296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9297
9298 # Compiler flag to allow reflexive dlopens.
9299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9300
9301 # Compiler flag to generate shared objects directly from archives.
9302 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9303
9304 # Compiler flag to generate thread-safe objects.
9305 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9306
9307 # Library versioning type.
9308 version_type=$version_type
9309
9310 # Format of library name prefix.
9311 libname_spec=$lt_libname_spec
9312
9313 # List of archive names. First name is the real one, the rest are links.
9314 # The last name is the one that the linker finds with -lNAME.
9315 library_names_spec=$lt_library_names_spec
9316
9317 # The coded name of the library, if different from the real name.
9318 soname_spec=$lt_soname_spec
9319
9320 # Commands used to build and install an old-style archive.
9321 RANLIB=$lt_RANLIB
9322 old_archive_cmds=$lt_old_archive_cmds
9323 old_postinstall_cmds=$lt_old_postinstall_cmds
9324 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9325
9326 # Create an old-style archive from a shared archive.
9327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9328
9329 # Create a temporary old-style archive to link instead of a shared archive.
9330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9331
9332 # Commands used to build and install a shared archive.
9333 archive_cmds=$lt_archive_cmds
9334 archive_expsym_cmds=$lt_archive_expsym_cmds
9335 postinstall_cmds=$lt_postinstall_cmds
9336 postuninstall_cmds=$lt_postuninstall_cmds
9337
9338 # Commands used to build a loadable module (assumed same as above if empty)
9339 module_cmds=$lt_module_cmds
9340 module_expsym_cmds=$lt_module_expsym_cmds
9341
9342 # Commands to strip libraries.
9343 old_striplib=$lt_old_striplib
9344 striplib=$lt_striplib
9345
9346 # Dependencies to place before the objects being linked to create a
9347 # shared library.
9348 predep_objects=$lt_predep_objects
9349
9350 # Dependencies to place after the objects being linked to create a
9351 # shared library.
9352 postdep_objects=$lt_postdep_objects
9353
9354 # Dependencies to place before the objects being linked to create a
9355 # shared library.
9356 predeps=$lt_predeps
9357
9358 # Dependencies to place after the objects being linked to create a
9359 # shared library.
9360 postdeps=$lt_postdeps
9361
9362 # The library search path used internally by the compiler when linking
9363 # a shared library.
9364 compiler_lib_search_path=$lt_compiler_lib_search_path
9365
9366 # Method to check whether dependent libraries are shared objects.
9367 deplibs_check_method=$lt_deplibs_check_method
9368
9369 # Command to use when deplibs_check_method == file_magic.
9370 file_magic_cmd=$lt_file_magic_cmd
9371
9372 # Flag that allows shared libraries with undefined symbols to be built.
9373 allow_undefined_flag=$lt_allow_undefined_flag
9374
9375 # Flag that forces no undefined symbols.
9376 no_undefined_flag=$lt_no_undefined_flag
9377
9378 # Commands used to finish a libtool library installation in a directory.
9379 finish_cmds=$lt_finish_cmds
9380
9381 # Same as above, but a single script fragment to be evaled but not shown.
9382 finish_eval=$lt_finish_eval
9383
9384 # Take the output of nm and produce a listing of raw symbols and C names.
9385 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9386
9387 # Transform the output of nm in a proper C declaration
9388 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9389
9390 # Transform the output of nm in a C name address pair
9391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9392
9393 # This is the shared library runtime path variable.
9394 runpath_var=$runpath_var
9395
9396 # This is the shared library path variable.
9397 shlibpath_var=$shlibpath_var
9398
9399 # Is shlibpath searched before the hard-coded library search path?
9400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9401
9402 # How to hardcode a shared library path into an executable.
9403 hardcode_action=$hardcode_action
9404
9405 # Whether we should hardcode library paths into libraries.
9406 hardcode_into_libs=$hardcode_into_libs
9407
9408 # Flag to hardcode \$libdir into a binary during linking.
9409 # This must work even if \$libdir does not exist.
9410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9411
9412 # If ld is used when linking, flag to hardcode \$libdir into
9413 # a binary during linking. This must work even if \$libdir does
9414 # not exist.
9415 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9416
9417 # Whether we need a single -rpath flag with a separated argument.
9418 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9419
9420 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9421 # resulting binary.
9422 hardcode_direct=$hardcode_direct
9423
9424 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9425 # resulting binary.
9426 hardcode_minus_L=$hardcode_minus_L
9427
9428 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9429 # the resulting binary.
9430 hardcode_shlibpath_var=$hardcode_shlibpath_var
9431
9432 # Set to yes if building a shared library automatically hardcodes DIR into the library
9433 # and all subsequent libraries and executables linked against it.
9434 hardcode_automatic=$hardcode_automatic
9435
9436 # Variables whose values should be saved in libtool wrapper scripts and
9437 # restored at relink time.
9438 variables_saved_for_relink="$variables_saved_for_relink"
9439
9440 # Whether libtool must link a program against all its dependency libraries.
9441 link_all_deplibs=$link_all_deplibs
9442
9443 # Compile-time system search path for libraries
9444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9445
9446 # Run-time system search path for libraries
9447 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9448
9449 # Fix the shell variable \$srcfile for the compiler.
9450 fix_srcfile_path="$fix_srcfile_path"
9451
9452 # Set to yes if exported symbols are required.
9453 always_export_symbols=$always_export_symbols
9454
9455 # The commands to list exported symbols.
9456 export_symbols_cmds=$lt_export_symbols_cmds
9457
9458 # The commands to extract the exported symbol list from a shared archive.
9459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9460
9461 # Symbols that should not be listed in the preloaded symbols.
9462 exclude_expsyms=$lt_exclude_expsyms
9463
9464 # Symbols that must always be exported.
9465 include_expsyms=$lt_include_expsyms
9466
9467 # ### END LIBTOOL CONFIG
9468
9469 __EOF__
9470
9471
9472 case $host_os in
9473 aix3*)
9474 cat <<\EOF >> "$cfgfile"
9475
9476 # AIX sometimes has problems with the GCC collect2 program. For some
9477 # reason, if we set the COLLECT_NAMES environment variable, the problems
9478 # vanish in a puff of smoke.
9479 if test "X${COLLECT_NAMES+set}" != Xset; then
9480 COLLECT_NAMES=
9481 export COLLECT_NAMES
9482 fi
9483 EOF
9484 ;;
9485 esac
9486
9487 # We use sed instead of cat because bash on DJGPP gets confused if
9488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9489 # text mode, it properly converts lines to CR/LF. This bash problem
9490 # is reportedly fixed, but why not run on old versions too?
9491 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9492
9493 mv -f "$cfgfile" "$ofile" || \
9494 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9495 chmod +x "$ofile"
9496
9497 else
9498 # If there is no Makefile yet, we rely on a make rule to execute
9499 # `config.status --recheck' to rerun these tests and create the
9500 # libtool script then.
9501 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9502 if test -f "$ltmain_in"; then
9503 test -f Makefile && make "$ltmain"
9504 fi
9505 fi
9506
9507
9508 ac_ext=cc
9509 ac_cpp='$CXXCPP $CPPFLAGS'
9510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9513
9514 CC="$lt_save_CC"
9515
9516
9517 # Check whether --with-tags or --without-tags was given.
9518 if test "${with_tags+set}" = set; then
9519 withval="$with_tags"
9520 tagnames="$withval"
9521 fi;
9522
9523 if test -f "$ltmain" && test -n "$tagnames"; then
9524 if test ! -f "${ofile}"; then
9525 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9526 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9527 fi
9528
9529 if test -z "$LTCC"; then
9530 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9531 if test -z "$LTCC"; then
9532 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9533 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9534 else
9535 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9536 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9537 fi
9538 fi
9539
9540 # Extract list of available tagged configurations in $ofile.
9541 # Note that this assumes the entire list is on one line.
9542 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9543
9544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9545 for tagname in $tagnames; do
9546 IFS="$lt_save_ifs"
9547 # Check whether tagname contains only valid characters
9548 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9549 "") ;;
9550 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9551 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9552 { (exit 1); exit 1; }; }
9553 ;;
9554 esac
9555
9556 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9557 then
9558 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9559 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9560 { (exit 1); exit 1; }; }
9561 fi
9562
9563 # Update the list of available tags.
9564 if test -n "$tagname"; then
9565 echo appending configuration tag \"$tagname\" to $ofile
9566
9567 case $tagname in
9568 CXX)
9569 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9570 ac_ext=cc
9571 ac_cpp='$CXXCPP $CPPFLAGS'
9572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9575
9576
9577
9578
9579 archive_cmds_need_lc_CXX=no
9580 allow_undefined_flag_CXX=
9581 always_export_symbols_CXX=no
9582 archive_expsym_cmds_CXX=
9583 export_dynamic_flag_spec_CXX=
9584 hardcode_direct_CXX=no
9585 hardcode_libdir_flag_spec_CXX=
9586 hardcode_libdir_flag_spec_ld_CXX=
9587 hardcode_libdir_separator_CXX=
9588 hardcode_minus_L_CXX=no
9589 hardcode_automatic_CXX=no
9590 module_cmds_CXX=
9591 module_expsym_cmds_CXX=
9592 link_all_deplibs_CXX=unknown
9593 old_archive_cmds_CXX=$old_archive_cmds
9594 no_undefined_flag_CXX=
9595 whole_archive_flag_spec_CXX=
9596 enable_shared_with_static_runtimes_CXX=no
9597
9598 # Dependencies to place before and after the object being linked:
9599 predep_objects_CXX=
9600 postdep_objects_CXX=
9601 predeps_CXX=
9602 postdeps_CXX=
9603 compiler_lib_search_path_CXX=
9604
9605 # Source file extension for C++ test sources.
9606 ac_ext=cc
9607
9608 # Object file extension for compiled C++ test sources.
9609 objext=o
9610 objext_CXX=$objext
9611
9612 # Code to be used in simple compile tests
9613 lt_simple_compile_test_code="int some_variable = 0;\n"
9614
9615 # Code to be used in simple link tests
9616 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9617
9618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9619
9620 # If no C compiler was specified, use CC.
9621 LTCC=${LTCC-"$CC"}
9622
9623 # Allow CC to be a program name with arguments.
9624 compiler=$CC
9625
9626
9627 # Allow CC to be a program name with arguments.
9628 lt_save_CC=$CC
9629 lt_save_LD=$LD
9630 lt_save_GCC=$GCC
9631 GCC=$GXX
9632 lt_save_with_gnu_ld=$with_gnu_ld
9633 lt_save_path_LD=$lt_cv_path_LD
9634 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9635 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9636 else
9637 unset lt_cv_prog_gnu_ld
9638 fi
9639 if test -n "${lt_cv_path_LDCXX+set}"; then
9640 lt_cv_path_LD=$lt_cv_path_LDCXX
9641 else
9642 unset lt_cv_path_LD
9643 fi
9644 test -z "${LDCXX+set}" || LD=$LDCXX
9645 CC=${CXX-"c++"}
9646 compiler=$CC
9647 compiler_CXX=$CC
9648 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9649
9650 # We don't want -fno-exception wen compiling C++ code, so set the
9651 # no_builtin_flag separately
9652 if test "$GXX" = yes; then
9653 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9654 else
9655 lt_prog_compiler_no_builtin_flag_CXX=
9656 fi
9657
9658 if test "$GXX" = yes; then
9659 # Set up default GNU C++ configuration
9660
9661
9662 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9663 if test "${with_gnu_ld+set}" = set; then
9664 withval="$with_gnu_ld"
9665 test "$withval" = no || with_gnu_ld=yes
9666 else
9667 with_gnu_ld=no
9668 fi;
9669 ac_prog=ld
9670 if test "$GCC" = yes; then
9671 # Check if gcc -print-prog-name=ld gives a path.
9672 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9673 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9674 case $host in
9675 *-*-mingw*)
9676 # gcc leaves a trailing carriage return which upsets mingw
9677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9678 *)
9679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9680 esac
9681 case $ac_prog in
9682 # Accept absolute paths.
9683 [\\/]* | ?:[\\/]*)
9684 re_direlt='/[^/][^/]*/\.\./'
9685 # Canonicalize the pathname of ld
9686 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9687 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9688 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9689 done
9690 test -z "$LD" && LD="$ac_prog"
9691 ;;
9692 "")
9693 # If it fails, then pretend we aren't using GCC.
9694 ac_prog=ld
9695 ;;
9696 *)
9697 # If it is relative, then search for the first ld in PATH.
9698 with_gnu_ld=unknown
9699 ;;
9700 esac
9701 elif test "$with_gnu_ld" = yes; then
9702 echo "$as_me:$LINENO: checking for GNU ld" >&5
9703 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9704 else
9705 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9706 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9707 fi
9708 if test "${lt_cv_path_LD+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 if test -z "$LD"; then
9712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9713 for ac_dir in $PATH; do
9714 IFS="$lt_save_ifs"
9715 test -z "$ac_dir" && ac_dir=.
9716 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9717 lt_cv_path_LD="$ac_dir/$ac_prog"
9718 # Check to see if the program is GNU ld. I'd rather use --version,
9719 # but apparently some GNU ld's only accept -v.
9720 # Break only if it was the GNU/non-GNU ld that we prefer.
9721 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9722 *GNU* | *'with BFD'*)
9723 test "$with_gnu_ld" != no && break
9724 ;;
9725 *)
9726 test "$with_gnu_ld" != yes && break
9727 ;;
9728 esac
9729 fi
9730 done
9731 IFS="$lt_save_ifs"
9732 else
9733 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9734 fi
9735 fi
9736
9737 LD="$lt_cv_path_LD"
9738 if test -n "$LD"; then
9739 echo "$as_me:$LINENO: result: $LD" >&5
9740 echo "${ECHO_T}$LD" >&6
9741 else
9742 echo "$as_me:$LINENO: result: no" >&5
9743 echo "${ECHO_T}no" >&6
9744 fi
9745 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9746 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9747 { (exit 1); exit 1; }; }
9748 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9749 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9750 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9754 case `$LD -v 2>&1 </dev/null` in
9755 *GNU* | *'with BFD'*)
9756 lt_cv_prog_gnu_ld=yes
9757 ;;
9758 *)
9759 lt_cv_prog_gnu_ld=no
9760 ;;
9761 esac
9762 fi
9763 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9764 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9765 with_gnu_ld=$lt_cv_prog_gnu_ld
9766
9767
9768
9769 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9770 # archiving commands below assume that GNU ld is being used.
9771 if test "$with_gnu_ld" = yes; then
9772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 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'
9774
9775 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9777
9778 # If archive_cmds runs LD, not CC, wlarc should be empty
9779 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9780 # investigate it a little bit more. (MM)
9781 wlarc='${wl}'
9782
9783 # ancient GNU ld didn't support --whole-archive et. al.
9784 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9785 grep 'no-whole-archive' > /dev/null; then
9786 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9787 else
9788 whole_archive_flag_spec_CXX=
9789 fi
9790 else
9791 with_gnu_ld=no
9792 wlarc=
9793
9794 # A generic and very simple default shared library creation
9795 # command for GNU C++ for the case where it uses the native
9796 # linker, instead of GNU ld. If possible, this setting should
9797 # overridden to take advantage of the native linker features on
9798 # the platform it is being used on.
9799 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9800 fi
9801
9802 # Commands to make compiler produce verbose output that lists
9803 # what "hidden" libraries, object files and flags are used when
9804 # linking a shared library.
9805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9806
9807 else
9808 GXX=no
9809 with_gnu_ld=no
9810 wlarc=
9811 fi
9812
9813 # PORTME: fill in a description of your system's C++ link characteristics
9814 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9816 ld_shlibs_CXX=yes
9817 case $host_os in
9818 aix3*)
9819 # FIXME: insert proper C++ library support
9820 ld_shlibs_CXX=no
9821 ;;
9822 aix4* | aix5*)
9823 if test "$host_cpu" = ia64; then
9824 # On IA64, the linker does run time linking by default, so we don't
9825 # have to do anything special.
9826 aix_use_runtimelinking=no
9827 exp_sym_flag='-Bexport'
9828 no_entry_flag=""
9829 else
9830 aix_use_runtimelinking=no
9831
9832 # Test if we are trying to use run time linking or normal
9833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9834 # need to do runtime linking.
9835 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9836 for ld_flag in $LDFLAGS; do
9837 case $ld_flag in
9838 *-brtl*)
9839 aix_use_runtimelinking=yes
9840 break
9841 ;;
9842 esac
9843 done
9844 esac
9845
9846 exp_sym_flag='-bexport'
9847 no_entry_flag='-bnoentry'
9848 fi
9849
9850 # When large executables or shared objects are built, AIX ld can
9851 # have problems creating the table of contents. If linking a library
9852 # or program results in "error TOC overflow" add -mminimal-toc to
9853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9855
9856 archive_cmds_CXX=''
9857 hardcode_direct_CXX=yes
9858 hardcode_libdir_separator_CXX=':'
9859 link_all_deplibs_CXX=yes
9860
9861 if test "$GXX" = yes; then
9862 case $host_os in aix4.012|aix4.012.*)
9863 # We only want to do this on AIX 4.2 and lower, the check
9864 # below for broken collect2 doesn't work under 4.3+
9865 collect2name=`${CC} -print-prog-name=collect2`
9866 if test -f "$collect2name" && \
9867 strings "$collect2name" | grep resolve_lib_name >/dev/null
9868 then
9869 # We have reworked collect2
9870 hardcode_direct_CXX=yes
9871 else
9872 # We have old collect2
9873 hardcode_direct_CXX=unsupported
9874 # It fails to find uninstalled libraries when the uninstalled
9875 # path is not listed in the libpath. Setting hardcode_minus_L
9876 # to unsupported forces relinking
9877 hardcode_minus_L_CXX=yes
9878 hardcode_libdir_flag_spec_CXX='-L$libdir'
9879 hardcode_libdir_separator_CXX=
9880 fi
9881 esac
9882 shared_flag='-shared'
9883 else
9884 # not using gcc
9885 if test "$host_cpu" = ia64; then
9886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9887 # chokes on -Wl,-G. The following line is correct:
9888 shared_flag='-G'
9889 else
9890 if test "$aix_use_runtimelinking" = yes; then
9891 shared_flag='${wl}-G'
9892 else
9893 shared_flag='${wl}-bM:SRE'
9894 fi
9895 fi
9896 fi
9897
9898 # It seems that -bexpall does not export symbols beginning with
9899 # underscore (_), so it is better to generate a list of symbols to export.
9900 always_export_symbols_CXX=yes
9901 if test "$aix_use_runtimelinking" = yes; then
9902 # Warning - without using the other runtime loading flags (-brtl),
9903 # -berok will link without error, but may produce a broken library.
9904 allow_undefined_flag_CXX='-berok'
9905 # Determine the default libpath from the value encoded in an empty executable.
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912
9913 int
9914 main ()
9915 {
9916
9917 ;
9918 return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>conftest.er1
9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -z "$ac_cxx_werror_flag"
9931 || test ! -s conftest.err'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943
9944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9945 }'`
9946 # Check for a 64-bit object if we didn't find anything.
9947 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; }
9948 }'`; fi
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 fi
9954 rm -f conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9957
9958 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9959
9960 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"
9961 else
9962 if test "$host_cpu" = ia64; then
9963 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9964 allow_undefined_flag_CXX="-z nodefs"
9965 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"
9966 else
9967 # Determine the default libpath from the value encoded in an empty executable.
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9974
9975 int
9976 main ()
9977 {
9978
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985 (eval $ac_link) 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -z "$ac_cxx_werror_flag"
9993 || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest$ac_exeext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005
10006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10007 }'`
10008 # Check for a 64-bit object if we didn't find anything.
10009 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; }
10010 }'`; fi
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 fi
10016 rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10019
10020 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10021 # Warning - without using the other run time loading flags,
10022 # -berok will link without error, but may produce a broken library.
10023 no_undefined_flag_CXX=' ${wl}-bernotok'
10024 allow_undefined_flag_CXX=' ${wl}-berok'
10025 # -bexpall does not export symbols beginning with underscore (_)
10026 always_export_symbols_CXX=yes
10027 # Exported symbols can be pulled into shared objects from archives
10028 whole_archive_flag_spec_CXX=' '
10029 archive_cmds_need_lc_CXX=yes
10030 # This is similar to how AIX traditionally builds it's shared libraries.
10031 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'
10032 fi
10033 fi
10034 ;;
10035 chorus*)
10036 case $cc_basename in
10037 *)
10038 # FIXME: insert proper C++ library support
10039 ld_shlibs_CXX=no
10040 ;;
10041 esac
10042 ;;
10043
10044 cygwin* | mingw* | pw32*)
10045 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10046 # as there is no search path for DLLs.
10047 hardcode_libdir_flag_spec_CXX='-L$libdir'
10048 allow_undefined_flag_CXX=unsupported
10049 always_export_symbols_CXX=no
10050 enable_shared_with_static_runtimes_CXX=yes
10051
10052 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10053 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'
10054 # If the export-symbols file already is a .def file (1st line
10055 # is EXPORTS), use it as is; otherwise, prepend...
10056 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10057 cp $export_symbols $output_objdir/$soname.def;
10058 else
10059 echo EXPORTS > $output_objdir/$soname.def;
10060 cat $export_symbols >> $output_objdir/$soname.def;
10061 fi~
10062 $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'
10063 else
10064 ld_shlibs_CXX=no
10065 fi
10066 ;;
10067
10068 darwin* | rhapsody*)
10069 if test "$GXX" = yes; then
10070 archive_cmds_need_lc_CXX=no
10071 case "$host_os" in
10072 rhapsody* | darwin1.[012])
10073 allow_undefined_flag_CXX='-undefined suppress'
10074 ;;
10075 *) # Darwin 1.3 on
10076 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10077 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10078 else
10079 case ${MACOSX_DEPLOYMENT_TARGET} in
10080 10.[012])
10081 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10082 ;;
10083 10.*)
10084 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10085 ;;
10086 esac
10087 fi
10088 ;;
10089 esac
10090 lt_int_apple_cc_single_mod=no
10091 output_verbose_link_cmd='echo'
10092 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10093 lt_int_apple_cc_single_mod=yes
10094 fi
10095 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10096 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10097 else
10098 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'
10099 fi
10100 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10101
10102 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10103 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10104 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}'
10105 else
10106 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}'
10107 fi
10108 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}'
10109 hardcode_direct_CXX=no
10110 hardcode_automatic_CXX=yes
10111 hardcode_shlibpath_var_CXX=unsupported
10112 whole_archive_flag_spec_CXX='-all_load $convenience'
10113 link_all_deplibs_CXX=yes
10114 else
10115 ld_shlibs_CXX=no
10116 fi
10117 ;;
10118
10119 dgux*)
10120 case $cc_basename in
10121 ec++)
10122 # FIXME: insert proper C++ library support
10123 ld_shlibs_CXX=no
10124 ;;
10125 ghcx)
10126 # Green Hills C++ Compiler
10127 # FIXME: insert proper C++ library support
10128 ld_shlibs_CXX=no
10129 ;;
10130 *)
10131 # FIXME: insert proper C++ library support
10132 ld_shlibs_CXX=no
10133 ;;
10134 esac
10135 ;;
10136 freebsd12*)
10137 # C++ shared libraries reported to be fairly broken before switch to ELF
10138 ld_shlibs_CXX=no
10139 ;;
10140 freebsd-elf*)
10141 archive_cmds_need_lc_CXX=no
10142 ;;
10143 freebsd* | kfreebsd*-gnu)
10144 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10145 # conventions
10146 ld_shlibs_CXX=yes
10147 ;;
10148 gnu*)
10149 ;;
10150 hpux9*)
10151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10152 hardcode_libdir_separator_CXX=:
10153 export_dynamic_flag_spec_CXX='${wl}-E'
10154 hardcode_direct_CXX=yes
10155 hardcode_minus_L_CXX=yes # Not in the search PATH,
10156 # but as the default
10157 # location of the library.
10158
10159 case $cc_basename in
10160 CC)
10161 # FIXME: insert proper C++ library support
10162 ld_shlibs_CXX=no
10163 ;;
10164 aCC)
10165 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'
10166 # Commands to make compiler produce verbose output that lists
10167 # what "hidden" libraries, object files and flags are used when
10168 # linking a shared library.
10169 #
10170 # There doesn't appear to be a way to prevent this compiler from
10171 # explicitly linking system object files so we need to strip them
10172 # from the output so that they don't get included in the library
10173 # dependencies.
10174 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'
10175 ;;
10176 *)
10177 if test "$GXX" = yes; then
10178 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'
10179 else
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10182 fi
10183 ;;
10184 esac
10185 ;;
10186 hpux10*|hpux11*)
10187 if test $with_gnu_ld = no; then
10188 case "$host_cpu" in
10189 hppa*64*)
10190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10191 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10192 hardcode_libdir_separator_CXX=:
10193 ;;
10194 ia64*)
10195 hardcode_libdir_flag_spec_CXX='-L$libdir'
10196 ;;
10197 *)
10198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10199 hardcode_libdir_separator_CXX=:
10200 export_dynamic_flag_spec_CXX='${wl}-E'
10201 ;;
10202 esac
10203 fi
10204 case "$host_cpu" in
10205 hppa*64*)
10206 hardcode_direct_CXX=no
10207 hardcode_shlibpath_var_CXX=no
10208 ;;
10209 ia64*)
10210 hardcode_direct_CXX=no
10211 hardcode_shlibpath_var_CXX=no
10212 hardcode_minus_L_CXX=yes # Not in the search PATH,
10213 # but as the default
10214 # location of the library.
10215 ;;
10216 *)
10217 hardcode_direct_CXX=yes
10218 hardcode_minus_L_CXX=yes # Not in the search PATH,
10219 # but as the default
10220 # location of the library.
10221 ;;
10222 esac
10223
10224 case $cc_basename in
10225 CC)
10226 # FIXME: insert proper C++ library support
10227 ld_shlibs_CXX=no
10228 ;;
10229 aCC)
10230 case "$host_cpu" in
10231 hppa*64*|ia64*)
10232 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10233 ;;
10234 *)
10235 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10236 ;;
10237 esac
10238 # Commands to make compiler produce verbose output that lists
10239 # what "hidden" libraries, object files and flags are used when
10240 # linking a shared library.
10241 #
10242 # There doesn't appear to be a way to prevent this compiler from
10243 # explicitly linking system object files so we need to strip them
10244 # from the output so that they don't get included in the library
10245 # dependencies.
10246 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'
10247 ;;
10248 *)
10249 if test "$GXX" = yes; then
10250 if test $with_gnu_ld = no; then
10251 case "$host_cpu" in
10252 ia64*|hppa*64*)
10253 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10254 ;;
10255 *)
10256 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'
10257 ;;
10258 esac
10259 fi
10260 else
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10263 fi
10264 ;;
10265 esac
10266 ;;
10267 irix5* | irix6*)
10268 case $cc_basename in
10269 CC)
10270 # SGI C++
10271 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'
10272
10273 # Archives containing C++ object files must be created using
10274 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10275 # necessary to make sure instantiated templates are included
10276 # in the archive.
10277 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10278 ;;
10279 *)
10280 if test "$GXX" = yes; then
10281 if test "$with_gnu_ld" = no; then
10282 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'
10283 else
10284 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'
10285 fi
10286 fi
10287 link_all_deplibs_CXX=yes
10288 ;;
10289 esac
10290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10291 hardcode_libdir_separator_CXX=:
10292 ;;
10293 linux*)
10294 case $cc_basename in
10295 KCC)
10296 # Kuck and Associates, Inc. (KAI) C++ Compiler
10297
10298 # KCC will only create a shared library if the output file
10299 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10300 # to its proper name (with version) after linking.
10301 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'
10302 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'
10303 # Commands to make compiler produce verbose output that lists
10304 # what "hidden" libraries, object files and flags are used when
10305 # linking a shared library.
10306 #
10307 # There doesn't appear to be a way to prevent this compiler from
10308 # explicitly linking system object files so we need to strip them
10309 # from the output so that they don't get included in the library
10310 # dependencies.
10311 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'
10312
10313 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10315
10316 # Archives containing C++ object files must be created using
10317 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10318 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10319 ;;
10320 icpc)
10321 # Intel C++
10322 with_gnu_ld=yes
10323 archive_cmds_need_lc_CXX=no
10324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325 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'
10326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10328 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10329 ;;
10330 cxx)
10331 # Compaq C++
10332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10333 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'
10334
10335 runpath_var=LD_RUN_PATH
10336 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10337 hardcode_libdir_separator_CXX=:
10338
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10342 #
10343 # There doesn't appear to be a way to prevent this compiler from
10344 # explicitly linking system object files so we need to strip them
10345 # from the output so that they don't get included in the library
10346 # dependencies.
10347 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'
10348 ;;
10349 esac
10350 ;;
10351 lynxos*)
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10354 ;;
10355 m88k*)
10356 # FIXME: insert proper C++ library support
10357 ld_shlibs_CXX=no
10358 ;;
10359 mvs*)
10360 case $cc_basename in
10361 cxx)
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10364 ;;
10365 *)
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10368 ;;
10369 esac
10370 ;;
10371 netbsd*)
10372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10373 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10374 wlarc=
10375 hardcode_libdir_flag_spec_CXX='-R$libdir'
10376 hardcode_direct_CXX=yes
10377 hardcode_shlibpath_var_CXX=no
10378 fi
10379 # Workaround some broken pre-1.5 toolchains
10380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10381 ;;
10382 osf3*)
10383 case $cc_basename in
10384 KCC)
10385 # Kuck and Associates, Inc. (KAI) C++ Compiler
10386
10387 # KCC will only create a shared library if the output file
10388 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10389 # to its proper name (with version) after linking.
10390 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'
10391
10392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10393 hardcode_libdir_separator_CXX=:
10394
10395 # Archives containing C++ object files must be created using
10396 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10397 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10398
10399 ;;
10400 RCC)
10401 # Rational C++ 2.4.1
10402 # FIXME: insert proper C++ library support
10403 ld_shlibs_CXX=no
10404 ;;
10405 cxx)
10406 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10407 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'
10408
10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10410 hardcode_libdir_separator_CXX=:
10411
10412 # Commands to make compiler produce verbose output that lists
10413 # what "hidden" libraries, object files and flags are used when
10414 # linking a shared library.
10415 #
10416 # There doesn't appear to be a way to prevent this compiler from
10417 # explicitly linking system object files so we need to strip them
10418 # from the output so that they don't get included in the library
10419 # dependencies.
10420 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'
10421 ;;
10422 *)
10423 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10425 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'
10426
10427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator_CXX=:
10429
10430 # Commands to make compiler produce verbose output that lists
10431 # what "hidden" libraries, object files and flags are used when
10432 # linking a shared library.
10433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10434
10435 else
10436 # FIXME: insert proper C++ library support
10437 ld_shlibs_CXX=no
10438 fi
10439 ;;
10440 esac
10441 ;;
10442 osf4* | osf5*)
10443 case $cc_basename in
10444 KCC)
10445 # Kuck and Associates, Inc. (KAI) C++ Compiler
10446
10447 # KCC will only create a shared library if the output file
10448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10449 # to its proper name (with version) after linking.
10450 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'
10451
10452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10453 hardcode_libdir_separator_CXX=:
10454
10455 # Archives containing C++ object files must be created using
10456 # the KAI C++ compiler.
10457 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10458 ;;
10459 RCC)
10460 # Rational C++ 2.4.1
10461 # FIXME: insert proper C++ library support
10462 ld_shlibs_CXX=no
10463 ;;
10464 cxx)
10465 allow_undefined_flag_CXX=' -expect_unresolved \*'
10466 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'
10467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10468 echo "-hidden">> $lib.exp~
10469 $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~
10470 $rm $lib.exp'
10471
10472 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10473 hardcode_libdir_separator_CXX=:
10474
10475 # Commands to make compiler produce verbose output that lists
10476 # what "hidden" libraries, object files and flags are used when
10477 # linking a shared library.
10478 #
10479 # There doesn't appear to be a way to prevent this compiler from
10480 # explicitly linking system object files so we need to strip them
10481 # from the output so that they don't get included in the library
10482 # dependencies.
10483 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'
10484 ;;
10485 *)
10486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10488 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'
10489
10490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10491 hardcode_libdir_separator_CXX=:
10492
10493 # Commands to make compiler produce verbose output that lists
10494 # what "hidden" libraries, object files and flags are used when
10495 # linking a shared library.
10496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10497
10498 else
10499 # FIXME: insert proper C++ library support
10500 ld_shlibs_CXX=no
10501 fi
10502 ;;
10503 esac
10504 ;;
10505 psos*)
10506 # FIXME: insert proper C++ library support
10507 ld_shlibs_CXX=no
10508 ;;
10509 sco*)
10510 archive_cmds_need_lc_CXX=no
10511 case $cc_basename in
10512 CC)
10513 # FIXME: insert proper C++ library support
10514 ld_shlibs_CXX=no
10515 ;;
10516 *)
10517 # FIXME: insert proper C++ library support
10518 ld_shlibs_CXX=no
10519 ;;
10520 esac
10521 ;;
10522 sunos4*)
10523 case $cc_basename in
10524 CC)
10525 # Sun C++ 4.x
10526 # FIXME: insert proper C++ library support
10527 ld_shlibs_CXX=no
10528 ;;
10529 lcc)
10530 # Lucid
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10533 ;;
10534 *)
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 esac
10539 ;;
10540 solaris*)
10541 case $cc_basename in
10542 CC)
10543 # Sun C++ 4.2, 5.x and Centerline C++
10544 no_undefined_flag_CXX=' -zdefs'
10545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10546 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10547 $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'
10548
10549 hardcode_libdir_flag_spec_CXX='-R$libdir'
10550 hardcode_shlibpath_var_CXX=no
10551 case $host_os in
10552 solaris2.0-5 | solaris2.0-5.*) ;;
10553 *)
10554 # The C++ compiler is used as linker so we must use $wl
10555 # flag to pass the commands to the underlying system
10556 # linker.
10557 # Supported since Solaris 2.6 (maybe 2.5.1?)
10558 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10559 ;;
10560 esac
10561 link_all_deplibs_CXX=yes
10562
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10566 #
10567 # There doesn't appear to be a way to prevent this compiler from
10568 # explicitly linking system object files so we need to strip them
10569 # from the output so that they don't get included in the library
10570 # dependencies.
10571 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'
10572
10573 # Archives containing C++ object files must be created using
10574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10575 # necessary to make sure instantiated templates are included
10576 # in the archive.
10577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10578 ;;
10579 gcx)
10580 # Green Hills C++ Compiler
10581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10582
10583 # The C++ compiler must be used to create the archive.
10584 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10585 ;;
10586 *)
10587 # GNU C++ compiler with Solaris linker
10588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10589 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10590 if $CC --version | grep -v '^2\.7' > /dev/null; then
10591 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10592 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10593 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10594
10595 # Commands to make compiler produce verbose output that lists
10596 # what "hidden" libraries, object files and flags are used when
10597 # linking a shared library.
10598 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10599 else
10600 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10601 # platform.
10602 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10604 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10605
10606 # Commands to make compiler produce verbose output that lists
10607 # what "hidden" libraries, object files and flags are used when
10608 # linking a shared library.
10609 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10610 fi
10611
10612 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10613 fi
10614 ;;
10615 esac
10616 ;;
10617 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10618 archive_cmds_need_lc_CXX=no
10619 ;;
10620 tandem*)
10621 case $cc_basename in
10622 NCC)
10623 # NonStop-UX NCC 3.20
10624 # FIXME: insert proper C++ library support
10625 ld_shlibs_CXX=no
10626 ;;
10627 *)
10628 # FIXME: insert proper C++ library support
10629 ld_shlibs_CXX=no
10630 ;;
10631 esac
10632 ;;
10633 vxworks*)
10634 # FIXME: insert proper C++ library support
10635 ld_shlibs_CXX=no
10636 ;;
10637 *)
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10640 ;;
10641 esac
10642 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10643 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10644 test "$ld_shlibs_CXX" = no && can_build_shared=no
10645
10646 GCC_CXX="$GXX"
10647 LD_CXX="$LD"
10648
10649
10650 cat > conftest.$ac_ext <<EOF
10651 class Foo
10652 {
10653 public:
10654 Foo (void) { a = 0; }
10655 private:
10656 int a;
10657 };
10658 EOF
10659
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; then
10665 # Parse the compiler output and extract the necessary
10666 # objects, libraries and library flags.
10667
10668 # Sentinel used to keep track of whether or not we are before
10669 # the conftest object file.
10670 pre_test_object_deps_done=no
10671
10672 # The `*' in the case matches for architectures that use `case' in
10673 # $output_verbose_cmd can trigger glob expansion during the loop
10674 # eval without this substitution.
10675 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10676
10677 for p in `eval $output_verbose_link_cmd`; do
10678 case $p in
10679
10680 -L* | -R* | -l*)
10681 # Some compilers place space between "-{L,R}" and the path.
10682 # Remove the space.
10683 if test $p = "-L" \
10684 || test $p = "-R"; then
10685 prev=$p
10686 continue
10687 else
10688 prev=
10689 fi
10690
10691 if test "$pre_test_object_deps_done" = no; then
10692 case $p in
10693 -L* | -R*)
10694 # Internal compiler library paths should come after those
10695 # provided the user. The postdeps already come after the
10696 # user supplied libs so there is no need to process them.
10697 if test -z "$compiler_lib_search_path_CXX"; then
10698 compiler_lib_search_path_CXX="${prev}${p}"
10699 else
10700 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10701 fi
10702 ;;
10703 # The "-l" case would never come before the object being
10704 # linked, so don't bother handling this case.
10705 esac
10706 else
10707 if test -z "$postdeps_CXX"; then
10708 postdeps_CXX="${prev}${p}"
10709 else
10710 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10711 fi
10712 fi
10713 ;;
10714
10715 *.$objext)
10716 # This assumes that the test object file only shows up
10717 # once in the compiler output.
10718 if test "$p" = "conftest.$objext"; then
10719 pre_test_object_deps_done=yes
10720 continue
10721 fi
10722
10723 if test "$pre_test_object_deps_done" = no; then
10724 if test -z "$predep_objects_CXX"; then
10725 predep_objects_CXX="$p"
10726 else
10727 predep_objects_CXX="$predep_objects_CXX $p"
10728 fi
10729 else
10730 if test -z "$postdep_objects_CXX"; then
10731 postdep_objects_CXX="$p"
10732 else
10733 postdep_objects_CXX="$postdep_objects_CXX $p"
10734 fi
10735 fi
10736 ;;
10737
10738 *) ;; # Ignore the rest.
10739
10740 esac
10741 done
10742
10743 # Clean up.
10744 rm -f a.out a.exe
10745 else
10746 echo "libtool.m4: error: problem compiling CXX test program"
10747 fi
10748
10749 $rm -f confest.$objext
10750
10751 case " $postdeps_CXX " in
10752 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10753 esac
10754
10755 lt_prog_compiler_wl_CXX=
10756 lt_prog_compiler_pic_CXX=
10757 lt_prog_compiler_static_CXX=
10758
10759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10761
10762 # C++ specific cases for pic, static, wl, etc.
10763 if test "$GXX" = yes; then
10764 lt_prog_compiler_wl_CXX='-Wl,'
10765 lt_prog_compiler_static_CXX='-static'
10766
10767 case $host_os in
10768 aix*)
10769 # All AIX code is PIC.
10770 if test "$host_cpu" = ia64; then
10771 # AIX 5 now supports IA64 processor
10772 lt_prog_compiler_static_CXX='-Bstatic'
10773 fi
10774 ;;
10775 amigaos*)
10776 # FIXME: we need at least 68020 code to build shared libraries, but
10777 # adding the `-m68020' flag to GCC prevents building anything better,
10778 # like `-m68040'.
10779 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10780 ;;
10781 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10782 # PIC is the default for these OSes.
10783 ;;
10784 mingw* | os2* | pw32*)
10785 # This hack is so that the source file can tell whether it is being
10786 # built for inclusion in a dll (and should export symbols for example).
10787 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10788 ;;
10789 darwin* | rhapsody*)
10790 # PIC is the default on this platform
10791 # Common symbols not allowed in MH_DYLIB files
10792 lt_prog_compiler_pic_CXX='-fno-common'
10793 ;;
10794 *djgpp*)
10795 # DJGPP does not support shared libraries at all
10796 lt_prog_compiler_pic_CXX=
10797 ;;
10798 sysv4*MP*)
10799 if test -d /usr/nec; then
10800 lt_prog_compiler_pic_CXX=-Kconform_pic
10801 fi
10802 ;;
10803 hpux*)
10804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10805 # not for PA HP-UX.
10806 case "$host_cpu" in
10807 hppa*64*|ia64*)
10808 ;;
10809 *)
10810 lt_prog_compiler_pic_CXX='-fPIC'
10811 ;;
10812 esac
10813 ;;
10814 *)
10815 lt_prog_compiler_pic_CXX='-fPIC'
10816 ;;
10817 esac
10818 else
10819 case $host_os in
10820 aix4* | aix5*)
10821 # All AIX code is PIC.
10822 if test "$host_cpu" = ia64; then
10823 # AIX 5 now supports IA64 processor
10824 lt_prog_compiler_static_CXX='-Bstatic'
10825 else
10826 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10827 fi
10828 ;;
10829 chorus*)
10830 case $cc_basename in
10831 cxch68)
10832 # Green Hills C++ Compiler
10833 # _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"
10834 ;;
10835 esac
10836 ;;
10837 dgux*)
10838 case $cc_basename in
10839 ec++)
10840 lt_prog_compiler_pic_CXX='-KPIC'
10841 ;;
10842 ghcx)
10843 # Green Hills C++ Compiler
10844 lt_prog_compiler_pic_CXX='-pic'
10845 ;;
10846 *)
10847 ;;
10848 esac
10849 ;;
10850 freebsd* | kfreebsd*-gnu)
10851 # FreeBSD uses GNU C++
10852 ;;
10853 hpux9* | hpux10* | hpux11*)
10854 case $cc_basename in
10855 CC)
10856 lt_prog_compiler_wl_CXX='-Wl,'
10857 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10858 if test "$host_cpu" != ia64; then
10859 lt_prog_compiler_pic_CXX='+Z'
10860 fi
10861 ;;
10862 aCC)
10863 lt_prog_compiler_wl_CXX='-Wl,'
10864 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10865 case "$host_cpu" in
10866 hppa*64*|ia64*)
10867 # +Z the default
10868 ;;
10869 *)
10870 lt_prog_compiler_pic_CXX='+Z'
10871 ;;
10872 esac
10873 ;;
10874 *)
10875 ;;
10876 esac
10877 ;;
10878 irix5* | irix6* | nonstopux*)
10879 case $cc_basename in
10880 CC)
10881 lt_prog_compiler_wl_CXX='-Wl,'
10882 lt_prog_compiler_static_CXX='-non_shared'
10883 # CC pic flag -KPIC is the default.
10884 ;;
10885 *)
10886 ;;
10887 esac
10888 ;;
10889 linux*)
10890 case $cc_basename in
10891 KCC)
10892 # KAI C++ Compiler
10893 lt_prog_compiler_wl_CXX='--backend -Wl,'
10894 lt_prog_compiler_pic_CXX='-fPIC'
10895 ;;
10896 icpc)
10897 # Intel C++
10898 lt_prog_compiler_wl_CXX='-Wl,'
10899 lt_prog_compiler_pic_CXX='-KPIC'
10900 lt_prog_compiler_static_CXX='-static'
10901 ;;
10902 cxx)
10903 # Compaq C++
10904 # Make sure the PIC flag is empty. It appears that all Alpha
10905 # Linux and Compaq Tru64 Unix objects are PIC.
10906 lt_prog_compiler_pic_CXX=
10907 lt_prog_compiler_static_CXX='-non_shared'
10908 ;;
10909 *)
10910 ;;
10911 esac
10912 ;;
10913 lynxos*)
10914 ;;
10915 m88k*)
10916 ;;
10917 mvs*)
10918 case $cc_basename in
10919 cxx)
10920 lt_prog_compiler_pic_CXX='-W c,exportall'
10921 ;;
10922 *)
10923 ;;
10924 esac
10925 ;;
10926 netbsd*)
10927 ;;
10928 osf3* | osf4* | osf5*)
10929 case $cc_basename in
10930 KCC)
10931 lt_prog_compiler_wl_CXX='--backend -Wl,'
10932 ;;
10933 RCC)
10934 # Rational C++ 2.4.1
10935 lt_prog_compiler_pic_CXX='-pic'
10936 ;;
10937 cxx)
10938 # Digital/Compaq C++
10939 lt_prog_compiler_wl_CXX='-Wl,'
10940 # Make sure the PIC flag is empty. It appears that all Alpha
10941 # Linux and Compaq Tru64 Unix objects are PIC.
10942 lt_prog_compiler_pic_CXX=
10943 lt_prog_compiler_static_CXX='-non_shared'
10944 ;;
10945 *)
10946 ;;
10947 esac
10948 ;;
10949 psos*)
10950 ;;
10951 sco*)
10952 case $cc_basename in
10953 CC)
10954 lt_prog_compiler_pic_CXX='-fPIC'
10955 ;;
10956 *)
10957 ;;
10958 esac
10959 ;;
10960 solaris*)
10961 case $cc_basename in
10962 CC)
10963 # Sun C++ 4.2, 5.x and Centerline C++
10964 lt_prog_compiler_pic_CXX='-KPIC'
10965 lt_prog_compiler_static_CXX='-Bstatic'
10966 lt_prog_compiler_wl_CXX='-Qoption ld '
10967 ;;
10968 gcx)
10969 # Green Hills C++ Compiler
10970 lt_prog_compiler_pic_CXX='-PIC'
10971 ;;
10972 *)
10973 ;;
10974 esac
10975 ;;
10976 sunos4*)
10977 case $cc_basename in
10978 CC)
10979 # Sun C++ 4.x
10980 lt_prog_compiler_pic_CXX='-pic'
10981 lt_prog_compiler_static_CXX='-Bstatic'
10982 ;;
10983 lcc)
10984 # Lucid
10985 lt_prog_compiler_pic_CXX='-pic'
10986 ;;
10987 *)
10988 ;;
10989 esac
10990 ;;
10991 tandem*)
10992 case $cc_basename in
10993 NCC)
10994 # NonStop-UX NCC 3.20
10995 lt_prog_compiler_pic_CXX='-KPIC'
10996 ;;
10997 *)
10998 ;;
10999 esac
11000 ;;
11001 unixware*)
11002 ;;
11003 vxworks*)
11004 ;;
11005 *)
11006 lt_prog_compiler_can_build_shared_CXX=no
11007 ;;
11008 esac
11009 fi
11010
11011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11012 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11013
11014 #
11015 # Check to make sure the PIC flag actually works.
11016 #
11017 if test -n "$lt_prog_compiler_pic_CXX"; then
11018
11019 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11020 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11021 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024 lt_prog_compiler_pic_works_CXX=no
11025 ac_outfile=conftest.$ac_objext
11026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11027 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11028 # Insert the option either (1) after the last *FLAGS variable, or
11029 # (2) before a word containing "conftest.", or (3) at the end.
11030 # Note that $ac_compile itself does not contain backslashes and begins
11031 # with a dollar sign (not a hyphen), so the echo should work correctly.
11032 # The option is referenced via a variable to avoid confusing sed.
11033 lt_compile=`echo "$ac_compile" | $SED \
11034 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11036 -e 's:$: $lt_compiler_flag:'`
11037 (eval echo "\"\$as_me:11037: $lt_compile\"" >&5)
11038 (eval "$lt_compile" 2>conftest.err)
11039 ac_status=$?
11040 cat conftest.err >&5
11041 echo "$as_me:11041: \$? = $ac_status" >&5
11042 if (exit $ac_status) && test -s "$ac_outfile"; then
11043 # The compiler can only warn and ignore the option if not recognized
11044 # So say no if there are warnings
11045 if test ! -s conftest.err; then
11046 lt_prog_compiler_pic_works_CXX=yes
11047 fi
11048 fi
11049 $rm conftest*
11050
11051 fi
11052 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11053 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11054
11055 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11056 case $lt_prog_compiler_pic_CXX in
11057 "" | " "*) ;;
11058 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11059 esac
11060 else
11061 lt_prog_compiler_pic_CXX=
11062 lt_prog_compiler_can_build_shared_CXX=no
11063 fi
11064
11065 fi
11066 case "$host_os" in
11067 # For platforms which do not support PIC, -DPIC is meaningless:
11068 *djgpp*)
11069 lt_prog_compiler_pic_CXX=
11070 ;;
11071 *)
11072 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11073 ;;
11074 esac
11075
11076 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11077 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11078 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081 lt_cv_prog_compiler_c_o_CXX=no
11082 $rm -r conftest 2>/dev/null
11083 mkdir conftest
11084 cd conftest
11085 mkdir out
11086 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11087
11088 lt_compiler_flag="-o out/conftest2.$ac_objext"
11089 # Insert the option either (1) after the last *FLAGS variable, or
11090 # (2) before a word containing "conftest.", or (3) at the end.
11091 # Note that $ac_compile itself does not contain backslashes and begins
11092 # with a dollar sign (not a hyphen), so the echo should work correctly.
11093 lt_compile=`echo "$ac_compile" | $SED \
11094 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11096 -e 's:$: $lt_compiler_flag:'`
11097 (eval echo "\"\$as_me:11097: $lt_compile\"" >&5)
11098 (eval "$lt_compile" 2>out/conftest.err)
11099 ac_status=$?
11100 cat out/conftest.err >&5
11101 echo "$as_me:11101: \$? = $ac_status" >&5
11102 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11103 then
11104 # The compiler can only warn and ignore the option if not recognized
11105 # So say no if there are warnings
11106 if test ! -s out/conftest.err; then
11107 lt_cv_prog_compiler_c_o_CXX=yes
11108 fi
11109 fi
11110 chmod u+w .
11111 $rm conftest*
11112 # SGI C++ compiler will create directory out/ii_files/ for
11113 # template instantiation
11114 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11115 $rm out/* && rmdir out
11116 cd ..
11117 rmdir conftest
11118 $rm conftest*
11119
11120 fi
11121 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11122 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11123
11124
11125 hard_links="nottested"
11126 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11127 # do not overwrite the value of need_locks provided by the user
11128 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11129 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11130 hard_links=yes
11131 $rm conftest*
11132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11133 touch conftest.a
11134 ln conftest.a conftest.b 2>&5 || hard_links=no
11135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11136 echo "$as_me:$LINENO: result: $hard_links" >&5
11137 echo "${ECHO_T}$hard_links" >&6
11138 if test "$hard_links" = no; then
11139 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11140 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11141 need_locks=warn
11142 fi
11143 else
11144 need_locks=no
11145 fi
11146
11147 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11148 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11149
11150 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11151 case $host_os in
11152 aix4* | aix5*)
11153 # If we're using GNU nm, then we don't want the "-C" option.
11154 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11155 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11156 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'
11157 else
11158 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'
11159 fi
11160 ;;
11161 pw32*)
11162 export_symbols_cmds_CXX="$ltdll_cmds"
11163 ;;
11164 cygwin* | mingw*)
11165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11166 ;;
11167 *)
11168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11169 ;;
11170 esac
11171
11172 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11173 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11174 test "$ld_shlibs_CXX" = no && can_build_shared=no
11175
11176 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11177 if test "$GCC" = yes; then
11178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11179 fi
11180
11181 #
11182 # Do we need to explicitly link libc?
11183 #
11184 case "x$archive_cmds_need_lc_CXX" in
11185 x|xyes)
11186 # Assume -lc should be added
11187 archive_cmds_need_lc_CXX=yes
11188
11189 if test "$enable_shared" = yes && test "$GCC" = yes; then
11190 case $archive_cmds_CXX in
11191 *'~'*)
11192 # FIXME: we may have to deal with multi-command sequences.
11193 ;;
11194 '$CC '*)
11195 # Test whether the compiler implicitly links with -lc since on some
11196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11197 # to ld, don't add -lc before -lgcc.
11198 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11200 $rm conftest*
11201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11202
11203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11204 (eval $ac_compile) 2>&5
11205 ac_status=$?
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } 2>conftest.err; then
11208 soname=conftest
11209 lib=conftest
11210 libobjs=conftest.$ac_objext
11211 deplibs=
11212 wl=$lt_prog_compiler_wl_CXX
11213 compiler_flags=-v
11214 linker_flags=-v
11215 verstring=
11216 output_objdir=.
11217 libname=conftest
11218 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11219 allow_undefined_flag_CXX=
11220 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11221 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }
11225 then
11226 archive_cmds_need_lc_CXX=no
11227 else
11228 archive_cmds_need_lc_CXX=yes
11229 fi
11230 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11231 else
11232 cat conftest.err 1>&5
11233 fi
11234 $rm conftest*
11235 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11236 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11237 ;;
11238 esac
11239 fi
11240 ;;
11241 esac
11242
11243 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11244 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11245 library_names_spec=
11246 libname_spec='lib$name'
11247 soname_spec=
11248 shrext_cmds=".so"
11249 postinstall_cmds=
11250 postuninstall_cmds=
11251 finish_cmds=
11252 finish_eval=
11253 shlibpath_var=
11254 shlibpath_overrides_runpath=unknown
11255 version_type=none
11256 dynamic_linker="$host_os ld.so"
11257 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11258 if test "$GCC" = yes; then
11259 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11260 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11261 # if the path contains ";" then we assume it to be the separator
11262 # otherwise default to the standard path separator (i.e. ":") - it is
11263 # assumed that no part of a normal pathname contains ";" but that should
11264 # okay in the real world where ";" in dirpaths is itself problematic.
11265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11266 else
11267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11268 fi
11269 else
11270 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11271 fi
11272 need_lib_prefix=unknown
11273 hardcode_into_libs=no
11274
11275 # when you set need_version to no, make sure it does not cause -set_version
11276 # flags to be left without arguments
11277 need_version=unknown
11278
11279 case $host_os in
11280 aix3*)
11281 version_type=linux
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11283 shlibpath_var=LIBPATH
11284
11285 # AIX 3 has no versioning support, so we append a major version to the name.
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 ;;
11288
11289 aix4* | aix5*)
11290 version_type=linux
11291 need_lib_prefix=no
11292 need_version=no
11293 hardcode_into_libs=yes
11294 if test "$host_cpu" = ia64; then
11295 # AIX 5 supports IA64
11296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 else
11299 # With GCC up to 2.95.x, collect2 would create an import file
11300 # for dependence libraries. The import file would start with
11301 # the line `#! .'. This would cause the generated library to
11302 # depend on `.', always an invalid library. This was fixed in
11303 # development snapshots of GCC prior to 3.0.
11304 case $host_os in
11305 aix4 | aix4.[01] | aix4.[01].*)
11306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11307 echo ' yes '
11308 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11309 :
11310 else
11311 can_build_shared=no
11312 fi
11313 ;;
11314 esac
11315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11316 # soname into executable. Probably we can add versioning support to
11317 # collect2, so additional links can be useful in future.
11318 if test "$aix_use_runtimelinking" = yes; then
11319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11320 # instead of lib<name>.a to let people know that these are not
11321 # typical AIX shared libraries.
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323 else
11324 # We preserve .a as extension for shared libraries through AIX4.2
11325 # and later when we are not doing run time linking.
11326 library_names_spec='${libname}${release}.a $libname.a'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 fi
11329 shlibpath_var=LIBPATH
11330 fi
11331 ;;
11332
11333 amigaos*)
11334 library_names_spec='$libname.ixlibrary $libname.a'
11335 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11336 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'
11337 ;;
11338
11339 beos*)
11340 library_names_spec='${libname}${shared_ext}'
11341 dynamic_linker="$host_os ld.so"
11342 shlibpath_var=LIBRARY_PATH
11343 ;;
11344
11345 bsdi4*)
11346 version_type=linux
11347 need_version=no
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11351 shlibpath_var=LD_LIBRARY_PATH
11352 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11353 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11354 # the default ld.so.conf also contains /usr/contrib/lib and
11355 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11356 # libtool to hard-code these into programs
11357 ;;
11358
11359 cygwin* | mingw* | pw32*)
11360 version_type=windows
11361 shrext_cmds=".dll"
11362 need_version=no
11363 need_lib_prefix=no
11364
11365 case $GCC,$host_os in
11366 yes,cygwin* | yes,mingw* | yes,pw32*)
11367 library_names_spec='$libname.dll.a'
11368 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11369 postinstall_cmds='base_file=`basename \${file}`~
11370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11371 dldir=$destdir/`dirname \$dlpath`~
11372 test -d \$dldir || mkdir -p \$dldir~
11373 $install_prog $dir/$dlname \$dldir/$dlname'
11374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11375 dlpath=$dir/\$dldll~
11376 $rm \$dlpath'
11377 shlibpath_overrides_runpath=yes
11378
11379 case $host_os in
11380 cygwin*)
11381 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11384 ;;
11385 mingw*)
11386 # MinGW DLLs use traditional 'lib' prefix
11387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11390 # It is most probably a Windows format PATH printed by
11391 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11392 # path with ; separators, and with drive letters. We can handle the
11393 # drive letters (cygwin fileutils understands them), so leave them,
11394 # especially as we might pass files found there to a mingw objdump,
11395 # which wouldn't understand a cygwinified path. Ahh.
11396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11397 else
11398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11399 fi
11400 ;;
11401 pw32*)
11402 # pw32 DLLs use 'pw' prefix rather than 'lib'
11403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11404 ;;
11405 esac
11406 ;;
11407
11408 *)
11409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11410 ;;
11411 esac
11412 dynamic_linker='Win32 ld.exe'
11413 # FIXME: first we should search . and the directory the executable is in
11414 shlibpath_var=PATH
11415 ;;
11416
11417 darwin* | rhapsody*)
11418 dynamic_linker="$host_os dyld"
11419 version_type=darwin
11420 need_lib_prefix=no
11421 need_version=no
11422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11423 soname_spec='${libname}${release}${major}$shared_ext'
11424 shlibpath_overrides_runpath=yes
11425 shlibpath_var=DYLD_LIBRARY_PATH
11426 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11427 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11428 if test "$GCC" = yes; then
11429 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"`
11430 else
11431 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11432 fi
11433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11434 ;;
11435
11436 dgux*)
11437 version_type=linux
11438 need_lib_prefix=no
11439 need_version=no
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 ;;
11444
11445 freebsd1*)
11446 dynamic_linker=no
11447 ;;
11448
11449 kfreebsd*-gnu)
11450 version_type=linux
11451 need_lib_prefix=no
11452 need_version=no
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=no
11457 hardcode_into_libs=yes
11458 dynamic_linker='GNU ld.so'
11459 ;;
11460
11461 freebsd*)
11462 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11463 version_type=freebsd-$objformat
11464 case $version_type in
11465 freebsd-elf*)
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11467 need_version=no
11468 need_lib_prefix=no
11469 ;;
11470 freebsd-*)
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11472 need_version=yes
11473 ;;
11474 esac
11475 shlibpath_var=LD_LIBRARY_PATH
11476 case $host_os in
11477 freebsd2*)
11478 shlibpath_overrides_runpath=yes
11479 ;;
11480 freebsd3.01* | freebsdelf3.01*)
11481 shlibpath_overrides_runpath=yes
11482 hardcode_into_libs=yes
11483 ;;
11484 *) # from 3.2 on
11485 shlibpath_overrides_runpath=no
11486 hardcode_into_libs=yes
11487 ;;
11488 esac
11489 ;;
11490
11491 gnu*)
11492 version_type=linux
11493 need_lib_prefix=no
11494 need_version=no
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 hardcode_into_libs=yes
11499 ;;
11500
11501 hpux9* | hpux10* | hpux11*)
11502 # Give a soname corresponding to the major version so that dld.sl refuses to
11503 # link against other versions.
11504 version_type=sunos
11505 need_lib_prefix=no
11506 need_version=no
11507 case "$host_cpu" in
11508 ia64*)
11509 shrext_cmds='.so'
11510 hardcode_into_libs=yes
11511 dynamic_linker="$host_os dld.so"
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 if test "X$HPUX_IA64_MODE" = X32; then
11517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11518 else
11519 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11520 fi
11521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11522 ;;
11523 hppa*64*)
11524 shrext_cmds='.sl'
11525 hardcode_into_libs=yes
11526 dynamic_linker="$host_os dld.sl"
11527 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11533 ;;
11534 *)
11535 shrext_cmds='.sl'
11536 dynamic_linker="$host_os dld.sl"
11537 shlibpath_var=SHLIB_PATH
11538 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 ;;
11542 esac
11543 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11544 postinstall_cmds='chmod 555 $lib'
11545 ;;
11546
11547 irix5* | irix6* | nonstopux*)
11548 case $host_os in
11549 nonstopux*) version_type=nonstopux ;;
11550 *)
11551 if test "$lt_cv_prog_gnu_ld" = yes; then
11552 version_type=linux
11553 else
11554 version_type=irix
11555 fi ;;
11556 esac
11557 need_lib_prefix=no
11558 need_version=no
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11561 case $host_os in
11562 irix5* | nonstopux*)
11563 libsuff= shlibsuff=
11564 ;;
11565 *)
11566 case $LD in # libtool.m4 will add one of these switches to LD
11567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11568 libsuff= shlibsuff= libmagic=32-bit;;
11569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11570 libsuff=32 shlibsuff=N32 libmagic=N32;;
11571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11572 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11573 *) libsuff= shlibsuff= libmagic=never-match;;
11574 esac
11575 ;;
11576 esac
11577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11578 shlibpath_overrides_runpath=no
11579 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11580 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11581 hardcode_into_libs=yes
11582 ;;
11583
11584 # No shared lib support for Linux oldld, aout, or coff.
11585 linux*oldld* | linux*aout* | linux*coff*)
11586 dynamic_linker=no
11587 ;;
11588
11589 # This must be Linux ELF.
11590 linux*)
11591 version_type=linux
11592 need_lib_prefix=no
11593 need_version=no
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=no
11599 # This implies no fast_install, which is unacceptable.
11600 # Some rework will be needed to allow for fast_install
11601 # before this can be enabled.
11602 hardcode_into_libs=yes
11603
11604 # find out which ABI we are using
11605 libsuff=
11606 case "$host_cpu" in
11607 x86_64*|s390x*|powerpc64*)
11608 echo '#line 11608 "configure"' > conftest.$ac_ext
11609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11610 (eval $ac_compile) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; then
11614 case `/usr/bin/file conftest.$ac_objext` in
11615 *64-bit*)
11616 libsuff=64
11617 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11618 ;;
11619 esac
11620 fi
11621 rm -rf conftest*
11622 ;;
11623 esac
11624
11625 # Append ld.so.conf contents to the search path
11626 if test -f /etc/ld.so.conf; then
11627 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11628 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11629 fi
11630
11631 # We used to test for /lib/ld.so.1 and disable shared libraries on
11632 # powerpc, because MkLinux only supported shared libraries with the
11633 # GNU dynamic linker. Since this was broken with cross compilers,
11634 # most powerpc-linux boxes support dynamic linking these days and
11635 # people can always --disable-shared, the test was removed, and we
11636 # assume the GNU/Linux dynamic linker is in use.
11637 dynamic_linker='GNU/Linux ld.so'
11638 ;;
11639
11640 knetbsd*-gnu)
11641 version_type=linux
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='GNU ld.so'
11650 ;;
11651
11652 netbsd*)
11653 version_type=sunos
11654 need_lib_prefix=no
11655 need_version=no
11656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11659 dynamic_linker='NetBSD (a.out) ld.so'
11660 else
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 dynamic_linker='NetBSD ld.elf_so'
11664 fi
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=yes
11667 hardcode_into_libs=yes
11668 ;;
11669
11670 newsos6)
11671 version_type=linux
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11675 ;;
11676
11677 nto-qnx*)
11678 version_type=linux
11679 need_lib_prefix=no
11680 need_version=no
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 shlibpath_overrides_runpath=yes
11685 ;;
11686
11687 openbsd*)
11688 version_type=sunos
11689 need_lib_prefix=no
11690 need_version=yes
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11695 case $host_os in
11696 openbsd2.[89] | openbsd2.[89].*)
11697 shlibpath_overrides_runpath=no
11698 ;;
11699 *)
11700 shlibpath_overrides_runpath=yes
11701 ;;
11702 esac
11703 else
11704 shlibpath_overrides_runpath=yes
11705 fi
11706 ;;
11707
11708 os2*)
11709 libname_spec='$name'
11710 shrext_cmds=".dll"
11711 need_lib_prefix=no
11712 library_names_spec='$libname${shared_ext} $libname.a'
11713 dynamic_linker='OS/2 ld.exe'
11714 shlibpath_var=LIBPATH
11715 ;;
11716
11717 osf3* | osf4* | osf5*)
11718 version_type=osf
11719 need_lib_prefix=no
11720 need_version=no
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11726 ;;
11727
11728 sco3.2v5*)
11729 version_type=osf
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 ;;
11734
11735 solaris*)
11736 version_type=linux
11737 need_lib_prefix=no
11738 need_version=no
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11744 # ldd complains unless libraries are executable
11745 postinstall_cmds='chmod +x $lib'
11746 ;;
11747
11748 sunos4*)
11749 version_type=sunos
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 if test "$with_gnu_ld" = yes; then
11755 need_lib_prefix=no
11756 fi
11757 need_version=yes
11758 ;;
11759
11760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11761 version_type=linux
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 case $host_vendor in
11766 sni)
11767 shlibpath_overrides_runpath=no
11768 need_lib_prefix=no
11769 export_dynamic_flag_spec='${wl}-Blargedynsym'
11770 runpath_var=LD_RUN_PATH
11771 ;;
11772 siemens)
11773 need_lib_prefix=no
11774 ;;
11775 motorola)
11776 need_lib_prefix=no
11777 need_version=no
11778 shlibpath_overrides_runpath=no
11779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11780 ;;
11781 esac
11782 ;;
11783
11784 sysv4*MP*)
11785 if test -d /usr/nec ;then
11786 version_type=linux
11787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11788 soname_spec='$libname${shared_ext}.$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 fi
11791 ;;
11792
11793 uts4*)
11794 version_type=linux
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 ;;
11799
11800 *)
11801 dynamic_linker=no
11802 ;;
11803 esac
11804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11805 echo "${ECHO_T}$dynamic_linker" >&6
11806 test "$dynamic_linker" = no && can_build_shared=no
11807
11808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11810 hardcode_action_CXX=
11811 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11812 test -n "$runpath_var CXX" || \
11813 test "X$hardcode_automatic_CXX"="Xyes" ; then
11814
11815 # We can hardcode non-existant directories.
11816 if test "$hardcode_direct_CXX" != no &&
11817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11818 # have to relink, otherwise we might link with an installed library
11819 # when we should be linking with a yet-to-be-installed one
11820 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11821 test "$hardcode_minus_L_CXX" != no; then
11822 # Linking always hardcodes the temporary library directory.
11823 hardcode_action_CXX=relink
11824 else
11825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11826 hardcode_action_CXX=immediate
11827 fi
11828 else
11829 # We cannot hardcode anything, or else we can only hardcode existing
11830 # directories.
11831 hardcode_action_CXX=unsupported
11832 fi
11833 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11834 echo "${ECHO_T}$hardcode_action_CXX" >&6
11835
11836 if test "$hardcode_action_CXX" = relink; then
11837 # Fast installation is not supported
11838 enable_fast_install=no
11839 elif test "$shlibpath_overrides_runpath" = yes ||
11840 test "$enable_shared" = no; then
11841 # Fast installation is not necessary
11842 enable_fast_install=needless
11843 fi
11844
11845 striplib=
11846 old_striplib=
11847 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11850 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11851 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11852 echo "$as_me:$LINENO: result: yes" >&5
11853 echo "${ECHO_T}yes" >&6
11854 else
11855 # FIXME - insert some real tests, host_os isn't really good enough
11856 case $host_os in
11857 darwin*)
11858 if test -n "$STRIP" ; then
11859 striplib="$STRIP -x"
11860 echo "$as_me:$LINENO: result: yes" >&5
11861 echo "${ECHO_T}yes" >&6
11862 else
11863 echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6
11865 fi
11866 ;;
11867 *)
11868 echo "$as_me:$LINENO: result: no" >&5
11869 echo "${ECHO_T}no" >&6
11870 ;;
11871 esac
11872 fi
11873
11874 if test "x$enable_dlopen" != xyes; then
11875 enable_dlopen=unknown
11876 enable_dlopen_self=unknown
11877 enable_dlopen_self_static=unknown
11878 else
11879 lt_cv_dlopen=no
11880 lt_cv_dlopen_libs=
11881
11882 case $host_os in
11883 beos*)
11884 lt_cv_dlopen="load_add_on"
11885 lt_cv_dlopen_libs=
11886 lt_cv_dlopen_self=yes
11887 ;;
11888
11889 mingw* | pw32*)
11890 lt_cv_dlopen="LoadLibrary"
11891 lt_cv_dlopen_libs=
11892 ;;
11893
11894 cygwin*)
11895 lt_cv_dlopen="dlopen"
11896 lt_cv_dlopen_libs=
11897 ;;
11898
11899 darwin*)
11900 # if libdl is installed we need to link against it
11901 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906 ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-ldl $LIBS"
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h. */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914
11915 /* Override any gcc2 internal prototype to avoid an error. */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 /* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11921 char dlopen ();
11922 int
11923 main ()
11924 {
11925 dlopen ();
11926 ;
11927 return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>conftest.er1
11933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_cxx_werror_flag"
11940 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_lib_dl_dlopen=yes
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_cv_lib_dl_dlopen=no
11958 fi
11959 rm -f conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_lib_save_LIBS
11962 fi
11963 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11965 if test $ac_cv_lib_dl_dlopen = yes; then
11966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11967 else
11968
11969 lt_cv_dlopen="dyld"
11970 lt_cv_dlopen_libs=
11971 lt_cv_dlopen_self=yes
11972
11973 fi
11974
11975 ;;
11976
11977 *)
11978 echo "$as_me:$LINENO: checking for shl_load" >&5
11979 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11980 if test "${ac_cv_func_shl_load+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h. */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11991 #define shl_load innocuous_shl_load
11992
11993 /* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char shl_load (); below.
11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 <limits.h> exists even on freestanding compilers. */
11997
11998 #ifdef __STDC__
11999 # include <limits.h>
12000 #else
12001 # include <assert.h>
12002 #endif
12003
12004 #undef shl_load
12005
12006 /* Override any gcc2 internal prototype to avoid an error. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 {
12010 #endif
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12013 char shl_load ();
12014 /* The GNU C library defines this for functions which it implements
12015 to always fail with ENOSYS. Some functions are actually named
12016 something starting with __ and the normal name is an alias. */
12017 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12018 choke me
12019 #else
12020 char (*f) () = shl_load;
12021 #endif
12022 #ifdef __cplusplus
12023 }
12024 #endif
12025
12026 int
12027 main ()
12028 {
12029 return f != shl_load;
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036 (eval $ac_link) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_cxx_werror_flag"
12044 || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest$ac_exeext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_cv_func_shl_load=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 ac_cv_func_shl_load=no
12062 fi
12063 rm -f conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065 fi
12066 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12067 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12068 if test $ac_cv_func_shl_load = yes; then
12069 lt_cv_dlopen="shl_load"
12070 else
12071 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12072 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12073 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-ldld $LIBS"
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 /* We use char because int might match the return type of a gcc2
12090 builtin and then its argument prototype would still apply. */
12091 char shl_load ();
12092 int
12093 main ()
12094 {
12095 shl_load ();
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102 (eval $ac_link) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_cxx_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_lib_dld_shl_load=yes
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_cv_lib_dld_shl_load=no
12128 fi
12129 rm -f conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12132 fi
12133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12134 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12135 if test $ac_cv_lib_dld_shl_load = yes; then
12136 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12137 else
12138 echo "$as_me:$LINENO: checking for dlopen" >&5
12139 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12140 if test "${ac_cv_func_dlopen+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h. */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12151 #define dlopen innocuous_dlopen
12152
12153 /* System header to define __stub macros and hopefully few prototypes,
12154 which can conflict with char dlopen (); below.
12155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12156 <limits.h> exists even on freestanding compilers. */
12157
12158 #ifdef __STDC__
12159 # include <limits.h>
12160 #else
12161 # include <assert.h>
12162 #endif
12163
12164 #undef dlopen
12165
12166 /* Override any gcc2 internal prototype to avoid an error. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 {
12170 #endif
12171 /* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173 char dlopen ();
12174 /* The GNU C library defines this for functions which it implements
12175 to always fail with ENOSYS. Some functions are actually named
12176 something starting with __ and the normal name is an alias. */
12177 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12178 choke me
12179 #else
12180 char (*f) () = dlopen;
12181 #endif
12182 #ifdef __cplusplus
12183 }
12184 #endif
12185
12186 int
12187 main ()
12188 {
12189 return f != dlopen;
12190 ;
12191 return 0;
12192 }
12193 _ACEOF
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_cxx_werror_flag"
12204 || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest$ac_exeext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_func_dlopen=yes
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221 ac_cv_func_dlopen=no
12222 fi
12223 rm -f conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 fi
12226 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12227 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12228 if test $ac_cv_func_dlopen = yes; then
12229 lt_cv_dlopen="dlopen"
12230 else
12231 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236 ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-ldl $LIBS"
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12244
12245 /* Override any gcc2 internal prototype to avoid an error. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251 char dlopen ();
12252 int
12253 main ()
12254 {
12255 dlopen ();
12256 ;
12257 return 0;
12258 }
12259 _ACEOF
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -z "$ac_cxx_werror_flag"
12270 || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_lib_dl_dlopen=yes
12283 else
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287 ac_cv_lib_dl_dlopen=no
12288 fi
12289 rm -f conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12292 fi
12293 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12295 if test $ac_cv_lib_dl_dlopen = yes; then
12296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12297 else
12298 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12299 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 ac_check_lib_save_LIBS=$LIBS
12304 LIBS="-lsvld $LIBS"
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311
12312 /* Override any gcc2 internal prototype to avoid an error. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 /* We use char because int might match the return type of a gcc2
12317 builtin and then its argument prototype would still apply. */
12318 char dlopen ();
12319 int
12320 main ()
12321 {
12322 dlopen ();
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329 (eval $ac_link) 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -z "$ac_cxx_werror_flag"
12337 || test ! -s conftest.err'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try='test -s conftest$ac_exeext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_lib_svld_dlopen=yes
12350 else
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354 ac_cv_lib_svld_dlopen=no
12355 fi
12356 rm -f conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12359 fi
12360 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12361 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12362 if test $ac_cv_lib_svld_dlopen = yes; then
12363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12364 else
12365 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12366 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370 ac_check_lib_save_LIBS=$LIBS
12371 LIBS="-ldld $LIBS"
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 /* We use char because int might match the return type of a gcc2
12384 builtin and then its argument prototype would still apply. */
12385 char dld_link ();
12386 int
12387 main ()
12388 {
12389 dld_link ();
12390 ;
12391 return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try='test -z "$ac_cxx_werror_flag"
12404 || test ! -s conftest.err'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest$ac_exeext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 ac_cv_lib_dld_dld_link=yes
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 ac_cv_lib_dld_dld_link=no
12422 fi
12423 rm -f conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12428 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12429 if test $ac_cv_lib_dld_dld_link = yes; then
12430 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12431 fi
12432
12433
12434 fi
12435
12436
12437 fi
12438
12439
12440 fi
12441
12442
12443 fi
12444
12445
12446 fi
12447
12448 ;;
12449 esac
12450
12451 if test "x$lt_cv_dlopen" != xno; then
12452 enable_dlopen=yes
12453 else
12454 enable_dlopen=no
12455 fi
12456
12457 case $lt_cv_dlopen in
12458 dlopen)
12459 save_CPPFLAGS="$CPPFLAGS"
12460 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12461
12462 save_LDFLAGS="$LDFLAGS"
12463 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12464
12465 save_LIBS="$LIBS"
12466 LIBS="$lt_cv_dlopen_libs $LIBS"
12467
12468 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12469 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12470 if test "${lt_cv_dlopen_self+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 if test "$cross_compiling" = yes; then :
12474 lt_cv_dlopen_self=cross
12475 else
12476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12477 lt_status=$lt_dlunknown
12478 cat > conftest.$ac_ext <<EOF
12479 #line 12479 "configure"
12480 #include "confdefs.h"
12481
12482 #if HAVE_DLFCN_H
12483 #include <dlfcn.h>
12484 #endif
12485
12486 #include <stdio.h>
12487
12488 #ifdef RTLD_GLOBAL
12489 # define LT_DLGLOBAL RTLD_GLOBAL
12490 #else
12491 # ifdef DL_GLOBAL
12492 # define LT_DLGLOBAL DL_GLOBAL
12493 # else
12494 # define LT_DLGLOBAL 0
12495 # endif
12496 #endif
12497
12498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12499 find out it does not work in some platform. */
12500 #ifndef LT_DLLAZY_OR_NOW
12501 # ifdef RTLD_LAZY
12502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12503 # else
12504 # ifdef DL_LAZY
12505 # define LT_DLLAZY_OR_NOW DL_LAZY
12506 # else
12507 # ifdef RTLD_NOW
12508 # define LT_DLLAZY_OR_NOW RTLD_NOW
12509 # else
12510 # ifdef DL_NOW
12511 # define LT_DLLAZY_OR_NOW DL_NOW
12512 # else
12513 # define LT_DLLAZY_OR_NOW 0
12514 # endif
12515 # endif
12516 # endif
12517 # endif
12518 #endif
12519
12520 #ifdef __cplusplus
12521 extern "C" void exit (int);
12522 #endif
12523
12524 void fnord() { int i=42;}
12525 int main ()
12526 {
12527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528 int status = $lt_dlunknown;
12529
12530 if (self)
12531 {
12532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12534 /* dlclose (self); */
12535 }
12536
12537 exit (status);
12538 }
12539 EOF
12540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12541 (eval $ac_link) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12545 (./conftest; exit; ) 2>/dev/null
12546 lt_status=$?
12547 case x$lt_status in
12548 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12549 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12550 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12551 esac
12552 else :
12553 # compilation failed
12554 lt_cv_dlopen_self=no
12555 fi
12556 fi
12557 rm -fr conftest*
12558
12559
12560 fi
12561 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12562 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12563
12564 if test "x$lt_cv_dlopen_self" = xyes; then
12565 LDFLAGS="$LDFLAGS $link_static_flag"
12566 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12567 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12568 if test "${lt_cv_dlopen_self_static+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571 if test "$cross_compiling" = yes; then :
12572 lt_cv_dlopen_self_static=cross
12573 else
12574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12575 lt_status=$lt_dlunknown
12576 cat > conftest.$ac_ext <<EOF
12577 #line 12577 "configure"
12578 #include "confdefs.h"
12579
12580 #if HAVE_DLFCN_H
12581 #include <dlfcn.h>
12582 #endif
12583
12584 #include <stdio.h>
12585
12586 #ifdef RTLD_GLOBAL
12587 # define LT_DLGLOBAL RTLD_GLOBAL
12588 #else
12589 # ifdef DL_GLOBAL
12590 # define LT_DLGLOBAL DL_GLOBAL
12591 # else
12592 # define LT_DLGLOBAL 0
12593 # endif
12594 #endif
12595
12596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12597 find out it does not work in some platform. */
12598 #ifndef LT_DLLAZY_OR_NOW
12599 # ifdef RTLD_LAZY
12600 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12601 # else
12602 # ifdef DL_LAZY
12603 # define LT_DLLAZY_OR_NOW DL_LAZY
12604 # else
12605 # ifdef RTLD_NOW
12606 # define LT_DLLAZY_OR_NOW RTLD_NOW
12607 # else
12608 # ifdef DL_NOW
12609 # define LT_DLLAZY_OR_NOW DL_NOW
12610 # else
12611 # define LT_DLLAZY_OR_NOW 0
12612 # endif
12613 # endif
12614 # endif
12615 # endif
12616 #endif
12617
12618 #ifdef __cplusplus
12619 extern "C" void exit (int);
12620 #endif
12621
12622 void fnord() { int i=42;}
12623 int main ()
12624 {
12625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12626 int status = $lt_dlunknown;
12627
12628 if (self)
12629 {
12630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12631 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12632 /* dlclose (self); */
12633 }
12634
12635 exit (status);
12636 }
12637 EOF
12638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12639 (eval $ac_link) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12643 (./conftest; exit; ) 2>/dev/null
12644 lt_status=$?
12645 case x$lt_status in
12646 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12647 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12648 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12649 esac
12650 else :
12651 # compilation failed
12652 lt_cv_dlopen_self_static=no
12653 fi
12654 fi
12655 rm -fr conftest*
12656
12657
12658 fi
12659 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12660 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12661 fi
12662
12663 CPPFLAGS="$save_CPPFLAGS"
12664 LDFLAGS="$save_LDFLAGS"
12665 LIBS="$save_LIBS"
12666 ;;
12667 esac
12668
12669 case $lt_cv_dlopen_self in
12670 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12671 *) enable_dlopen_self=unknown ;;
12672 esac
12673
12674 case $lt_cv_dlopen_self_static in
12675 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12676 *) enable_dlopen_self_static=unknown ;;
12677 esac
12678 fi
12679
12680
12681 # The else clause should only fire when bootstrapping the
12682 # libtool distribution, otherwise you forgot to ship ltmain.sh
12683 # with your package, and you will get complaints that there are
12684 # no rules to generate ltmain.sh.
12685 if test -f "$ltmain"; then
12686 # See if we are running on zsh, and set the options which allow our commands through
12687 # without removal of \ escapes.
12688 if test -n "${ZSH_VERSION+set}" ; then
12689 setopt NO_GLOB_SUBST
12690 fi
12691 # Now quote all the things that may contain metacharacters while being
12692 # careful not to overquote the AC_SUBSTed values. We take copies of the
12693 # variables and quote the copies for generation of the libtool script.
12694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12695 SED SHELL STRIP \
12696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12698 deplibs_check_method reload_flag reload_cmds need_locks \
12699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12700 lt_cv_sys_global_symbol_to_c_name_address \
12701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12702 old_postinstall_cmds old_postuninstall_cmds \
12703 compiler_CXX \
12704 CC_CXX \
12705 LD_CXX \
12706 lt_prog_compiler_wl_CXX \
12707 lt_prog_compiler_pic_CXX \
12708 lt_prog_compiler_static_CXX \
12709 lt_prog_compiler_no_builtin_flag_CXX \
12710 export_dynamic_flag_spec_CXX \
12711 thread_safe_flag_spec_CXX \
12712 whole_archive_flag_spec_CXX \
12713 enable_shared_with_static_runtimes_CXX \
12714 old_archive_cmds_CXX \
12715 old_archive_from_new_cmds_CXX \
12716 predep_objects_CXX \
12717 postdep_objects_CXX \
12718 predeps_CXX \
12719 postdeps_CXX \
12720 compiler_lib_search_path_CXX \
12721 archive_cmds_CXX \
12722 archive_expsym_cmds_CXX \
12723 postinstall_cmds_CXX \
12724 postuninstall_cmds_CXX \
12725 old_archive_from_expsyms_cmds_CXX \
12726 allow_undefined_flag_CXX \
12727 no_undefined_flag_CXX \
12728 export_symbols_cmds_CXX \
12729 hardcode_libdir_flag_spec_CXX \
12730 hardcode_libdir_flag_spec_ld_CXX \
12731 hardcode_libdir_separator_CXX \
12732 hardcode_automatic_CXX \
12733 module_cmds_CXX \
12734 module_expsym_cmds_CXX \
12735 lt_cv_prog_compiler_c_o_CXX \
12736 exclude_expsyms_CXX \
12737 include_expsyms_CXX; do
12738
12739 case $var in
12740 old_archive_cmds_CXX | \
12741 old_archive_from_new_cmds_CXX | \
12742 archive_cmds_CXX | \
12743 archive_expsym_cmds_CXX | \
12744 module_cmds_CXX | \
12745 module_expsym_cmds_CXX | \
12746 old_archive_from_expsyms_cmds_CXX | \
12747 export_symbols_cmds_CXX | \
12748 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12749 postinstall_cmds | postuninstall_cmds | \
12750 old_postinstall_cmds | old_postuninstall_cmds | \
12751 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12752 # Double-quote double-evaled strings.
12753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12754 ;;
12755 *)
12756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12757 ;;
12758 esac
12759 done
12760
12761 case $lt_echo in
12762 *'\$0 --fallback-echo"')
12763 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12764 ;;
12765 esac
12766
12767 cfgfile="$ofile"
12768
12769 cat <<__EOF__ >> "$cfgfile"
12770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12771
12772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12773
12774 # Shell to use when invoking shell scripts.
12775 SHELL=$lt_SHELL
12776
12777 # Whether or not to build shared libraries.
12778 build_libtool_libs=$enable_shared
12779
12780 # Whether or not to build static libraries.
12781 build_old_libs=$enable_static
12782
12783 # Whether or not to add -lc for building shared libraries.
12784 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12785
12786 # Whether or not to disallow shared libs when runtime libs are static
12787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12788
12789 # Whether or not to optimize for fast installation.
12790 fast_install=$enable_fast_install
12791
12792 # The host system.
12793 host_alias=$host_alias
12794 host=$host
12795
12796 # An echo program that does not interpret backslashes.
12797 echo=$lt_echo
12798
12799 # The archiver.
12800 AR=$lt_AR
12801 AR_FLAGS=$lt_AR_FLAGS
12802
12803 # A C compiler.
12804 LTCC=$lt_LTCC
12805
12806 # A language-specific compiler.
12807 CC=$lt_compiler_CXX
12808
12809 # Is the compiler the GNU C compiler?
12810 with_gcc=$GCC_CXX
12811
12812 # An ERE matcher.
12813 EGREP=$lt_EGREP
12814
12815 # The linker used to build libraries.
12816 LD=$lt_LD_CXX
12817
12818 # Whether we need hard or soft links.
12819 LN_S=$lt_LN_S
12820
12821 # A BSD-compatible nm program.
12822 NM=$lt_NM
12823
12824 # A symbol stripping program
12825 STRIP=$lt_STRIP
12826
12827 # Used to examine libraries when file_magic_cmd begins "file"
12828 MAGIC_CMD=$MAGIC_CMD
12829
12830 # Used on cygwin: DLL creation program.
12831 DLLTOOL="$DLLTOOL"
12832
12833 # Used on cygwin: object dumper.
12834 OBJDUMP="$OBJDUMP"
12835
12836 # Used on cygwin: assembler.
12837 AS="$AS"
12838
12839 # The name of the directory that contains temporary libtool files.
12840 objdir=$objdir
12841
12842 # How to create reloadable object files.
12843 reload_flag=$lt_reload_flag
12844 reload_cmds=$lt_reload_cmds
12845
12846 # How to pass a linker flag through the compiler.
12847 wl=$lt_lt_prog_compiler_wl_CXX
12848
12849 # Object file suffix (normally "o").
12850 objext="$ac_objext"
12851
12852 # Old archive suffix (normally "a").
12853 libext="$libext"
12854
12855 # Shared library suffix (normally ".so").
12856 shrext_cmds='$shrext_cmds'
12857
12858 # Executable file suffix (normally "").
12859 exeext="$exeext"
12860
12861 # Additional compiler flags for building library objects.
12862 pic_flag=$lt_lt_prog_compiler_pic_CXX
12863 pic_mode=$pic_mode
12864
12865 # What is the maximum length of a command?
12866 max_cmd_len=$lt_cv_sys_max_cmd_len
12867
12868 # Does compiler simultaneously support -c and -o options?
12869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12870
12871 # Must we lock files when doing compilation ?
12872 need_locks=$lt_need_locks
12873
12874 # Do we need the lib prefix for modules?
12875 need_lib_prefix=$need_lib_prefix
12876
12877 # Do we need a version for libraries?
12878 need_version=$need_version
12879
12880 # Whether dlopen is supported.
12881 dlopen_support=$enable_dlopen
12882
12883 # Whether dlopen of programs is supported.
12884 dlopen_self=$enable_dlopen_self
12885
12886 # Whether dlopen of statically linked programs is supported.
12887 dlopen_self_static=$enable_dlopen_self_static
12888
12889 # Compiler flag to prevent dynamic linking.
12890 link_static_flag=$lt_lt_prog_compiler_static_CXX
12891
12892 # Compiler flag to turn off builtin functions.
12893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12894
12895 # Compiler flag to allow reflexive dlopens.
12896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12897
12898 # Compiler flag to generate shared objects directly from archives.
12899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12900
12901 # Compiler flag to generate thread-safe objects.
12902 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12903
12904 # Library versioning type.
12905 version_type=$version_type
12906
12907 # Format of library name prefix.
12908 libname_spec=$lt_libname_spec
12909
12910 # List of archive names. First name is the real one, the rest are links.
12911 # The last name is the one that the linker finds with -lNAME.
12912 library_names_spec=$lt_library_names_spec
12913
12914 # The coded name of the library, if different from the real name.
12915 soname_spec=$lt_soname_spec
12916
12917 # Commands used to build and install an old-style archive.
12918 RANLIB=$lt_RANLIB
12919 old_archive_cmds=$lt_old_archive_cmds_CXX
12920 old_postinstall_cmds=$lt_old_postinstall_cmds
12921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12922
12923 # Create an old-style archive from a shared archive.
12924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12925
12926 # Create a temporary old-style archive to link instead of a shared archive.
12927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12928
12929 # Commands used to build and install a shared archive.
12930 archive_cmds=$lt_archive_cmds_CXX
12931 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12932 postinstall_cmds=$lt_postinstall_cmds
12933 postuninstall_cmds=$lt_postuninstall_cmds
12934
12935 # Commands used to build a loadable module (assumed same as above if empty)
12936 module_cmds=$lt_module_cmds_CXX
12937 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12938
12939 # Commands to strip libraries.
12940 old_striplib=$lt_old_striplib
12941 striplib=$lt_striplib
12942
12943 # Dependencies to place before the objects being linked to create a
12944 # shared library.
12945 predep_objects=$lt_predep_objects_CXX
12946
12947 # Dependencies to place after the objects being linked to create a
12948 # shared library.
12949 postdep_objects=$lt_postdep_objects_CXX
12950
12951 # Dependencies to place before the objects being linked to create a
12952 # shared library.
12953 predeps=$lt_predeps_CXX
12954
12955 # Dependencies to place after the objects being linked to create a
12956 # shared library.
12957 postdeps=$lt_postdeps_CXX
12958
12959 # The library search path used internally by the compiler when linking
12960 # a shared library.
12961 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12962
12963 # Method to check whether dependent libraries are shared objects.
12964 deplibs_check_method=$lt_deplibs_check_method
12965
12966 # Command to use when deplibs_check_method == file_magic.
12967 file_magic_cmd=$lt_file_magic_cmd
12968
12969 # Flag that allows shared libraries with undefined symbols to be built.
12970 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12971
12972 # Flag that forces no undefined symbols.
12973 no_undefined_flag=$lt_no_undefined_flag_CXX
12974
12975 # Commands used to finish a libtool library installation in a directory.
12976 finish_cmds=$lt_finish_cmds
12977
12978 # Same as above, but a single script fragment to be evaled but not shown.
12979 finish_eval=$lt_finish_eval
12980
12981 # Take the output of nm and produce a listing of raw symbols and C names.
12982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12983
12984 # Transform the output of nm in a proper C declaration
12985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12986
12987 # Transform the output of nm in a C name address pair
12988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12989
12990 # This is the shared library runtime path variable.
12991 runpath_var=$runpath_var
12992
12993 # This is the shared library path variable.
12994 shlibpath_var=$shlibpath_var
12995
12996 # Is shlibpath searched before the hard-coded library search path?
12997 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12998
12999 # How to hardcode a shared library path into an executable.
13000 hardcode_action=$hardcode_action_CXX
13001
13002 # Whether we should hardcode library paths into libraries.
13003 hardcode_into_libs=$hardcode_into_libs
13004
13005 # Flag to hardcode \$libdir into a binary during linking.
13006 # This must work even if \$libdir does not exist.
13007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13008
13009 # If ld is used when linking, flag to hardcode \$libdir into
13010 # a binary during linking. This must work even if \$libdir does
13011 # not exist.
13012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13013
13014 # Whether we need a single -rpath flag with a separated argument.
13015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13016
13017 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13018 # resulting binary.
13019 hardcode_direct=$hardcode_direct_CXX
13020
13021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13022 # resulting binary.
13023 hardcode_minus_L=$hardcode_minus_L_CXX
13024
13025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13026 # the resulting binary.
13027 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13028
13029 # Set to yes if building a shared library automatically hardcodes DIR into the library
13030 # and all subsequent libraries and executables linked against it.
13031 hardcode_automatic=$hardcode_automatic_CXX
13032
13033 # Variables whose values should be saved in libtool wrapper scripts and
13034 # restored at relink time.
13035 variables_saved_for_relink="$variables_saved_for_relink"
13036
13037 # Whether libtool must link a program against all its dependency libraries.
13038 link_all_deplibs=$link_all_deplibs_CXX
13039
13040 # Compile-time system search path for libraries
13041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13042
13043 # Run-time system search path for libraries
13044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13045
13046 # Fix the shell variable \$srcfile for the compiler.
13047 fix_srcfile_path="$fix_srcfile_path_CXX"
13048
13049 # Set to yes if exported symbols are required.
13050 always_export_symbols=$always_export_symbols_CXX
13051
13052 # The commands to list exported symbols.
13053 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13054
13055 # The commands to extract the exported symbol list from a shared archive.
13056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13057
13058 # Symbols that should not be listed in the preloaded symbols.
13059 exclude_expsyms=$lt_exclude_expsyms_CXX
13060
13061 # Symbols that must always be exported.
13062 include_expsyms=$lt_include_expsyms_CXX
13063
13064 # ### END LIBTOOL TAG CONFIG: $tagname
13065
13066 __EOF__
13067
13068
13069 else
13070 # If there is no Makefile yet, we rely on a make rule to execute
13071 # `config.status --recheck' to rerun these tests and create the
13072 # libtool script then.
13073 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13074 if test -f "$ltmain_in"; then
13075 test -f Makefile && make "$ltmain"
13076 fi
13077 fi
13078
13079
13080 ac_ext=cc
13081 ac_cpp='$CXXCPP $CPPFLAGS'
13082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13085
13086 CC=$lt_save_CC
13087 LDCXX=$LD
13088 LD=$lt_save_LD
13089 GCC=$lt_save_GCC
13090 with_gnu_ldcxx=$with_gnu_ld
13091 with_gnu_ld=$lt_save_with_gnu_ld
13092 lt_cv_path_LDCXX=$lt_cv_path_LD
13093 lt_cv_path_LD=$lt_save_path_LD
13094 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13095 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13096
13097 else
13098 tagname=""
13099 fi
13100 ;;
13101
13102 F77)
13103 if test -n "$F77" && test "X$F77" != "Xno"; then
13104
13105 ac_ext=f
13106 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13107 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13108 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13109
13110
13111 archive_cmds_need_lc_F77=no
13112 allow_undefined_flag_F77=
13113 always_export_symbols_F77=no
13114 archive_expsym_cmds_F77=
13115 export_dynamic_flag_spec_F77=
13116 hardcode_direct_F77=no
13117 hardcode_libdir_flag_spec_F77=
13118 hardcode_libdir_flag_spec_ld_F77=
13119 hardcode_libdir_separator_F77=
13120 hardcode_minus_L_F77=no
13121 hardcode_automatic_F77=no
13122 module_cmds_F77=
13123 module_expsym_cmds_F77=
13124 link_all_deplibs_F77=unknown
13125 old_archive_cmds_F77=$old_archive_cmds
13126 no_undefined_flag_F77=
13127 whole_archive_flag_spec_F77=
13128 enable_shared_with_static_runtimes_F77=no
13129
13130 # Source file extension for f77 test sources.
13131 ac_ext=f
13132
13133 # Object file extension for compiled f77 test sources.
13134 objext=o
13135 objext_F77=$objext
13136
13137 # Code to be used in simple compile tests
13138 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13139
13140 # Code to be used in simple link tests
13141 lt_simple_link_test_code=" program t\n end\n"
13142
13143 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13144
13145 # If no C compiler was specified, use CC.
13146 LTCC=${LTCC-"$CC"}
13147
13148 # Allow CC to be a program name with arguments.
13149 compiler=$CC
13150
13151
13152 # Allow CC to be a program name with arguments.
13153 lt_save_CC="$CC"
13154 CC=${F77-"f77"}
13155 compiler=$CC
13156 compiler_F77=$CC
13157 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13158
13159 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13160 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13161 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13162 echo "${ECHO_T}$can_build_shared" >&6
13163
13164 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13165 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13166 test "$can_build_shared" = "no" && enable_shared=no
13167
13168 # On AIX, shared libraries and static libraries use the same namespace, and
13169 # are all built from PIC.
13170 case "$host_os" in
13171 aix3*)
13172 test "$enable_shared" = yes && enable_static=no
13173 if test -n "$RANLIB"; then
13174 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13175 postinstall_cmds='$RANLIB $lib'
13176 fi
13177 ;;
13178 aix4* | aix5*)
13179 test "$enable_shared" = yes && enable_static=no
13180 ;;
13181 esac
13182 echo "$as_me:$LINENO: result: $enable_shared" >&5
13183 echo "${ECHO_T}$enable_shared" >&6
13184
13185 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13186 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13187 # Make sure either enable_shared or enable_static is yes.
13188 test "$enable_shared" = yes || enable_static=yes
13189 echo "$as_me:$LINENO: result: $enable_static" >&5
13190 echo "${ECHO_T}$enable_static" >&6
13191
13192 test "$ld_shlibs_F77" = no && can_build_shared=no
13193
13194 GCC_F77="$G77"
13195 LD_F77="$LD"
13196
13197 lt_prog_compiler_wl_F77=
13198 lt_prog_compiler_pic_F77=
13199 lt_prog_compiler_static_F77=
13200
13201 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13202 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13203
13204 if test "$GCC" = yes; then
13205 lt_prog_compiler_wl_F77='-Wl,'
13206 lt_prog_compiler_static_F77='-static'
13207
13208 case $host_os in
13209 aix*)
13210 # All AIX code is PIC.
13211 if test "$host_cpu" = ia64; then
13212 # AIX 5 now supports IA64 processor
13213 lt_prog_compiler_static_F77='-Bstatic'
13214 fi
13215 ;;
13216
13217 amigaos*)
13218 # FIXME: we need at least 68020 code to build shared libraries, but
13219 # adding the `-m68020' flag to GCC prevents building anything better,
13220 # like `-m68040'.
13221 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13222 ;;
13223
13224 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13225 # PIC is the default for these OSes.
13226 ;;
13227
13228 mingw* | pw32* | os2*)
13229 # This hack is so that the source file can tell whether it is being
13230 # built for inclusion in a dll (and should export symbols for example).
13231 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13232 ;;
13233
13234 darwin* | rhapsody*)
13235 # PIC is the default on this platform
13236 # Common symbols not allowed in MH_DYLIB files
13237 lt_prog_compiler_pic_F77='-fno-common'
13238 ;;
13239
13240 msdosdjgpp*)
13241 # Just because we use GCC doesn't mean we suddenly get shared libraries
13242 # on systems that don't support them.
13243 lt_prog_compiler_can_build_shared_F77=no
13244 enable_shared=no
13245 ;;
13246
13247 sysv4*MP*)
13248 if test -d /usr/nec; then
13249 lt_prog_compiler_pic_F77=-Kconform_pic
13250 fi
13251 ;;
13252
13253 hpux*)
13254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13255 # not for PA HP-UX.
13256 case "$host_cpu" in
13257 hppa*64*|ia64*)
13258 # +Z the default
13259 ;;
13260 *)
13261 lt_prog_compiler_pic_F77='-fPIC'
13262 ;;
13263 esac
13264 ;;
13265
13266 *)
13267 lt_prog_compiler_pic_F77='-fPIC'
13268 ;;
13269 esac
13270 else
13271 # PORTME Check for flag to pass linker flags through the system compiler.
13272 case $host_os in
13273 aix*)
13274 lt_prog_compiler_wl_F77='-Wl,'
13275 if test "$host_cpu" = ia64; then
13276 # AIX 5 now supports IA64 processor
13277 lt_prog_compiler_static_F77='-Bstatic'
13278 else
13279 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13280 fi
13281 ;;
13282
13283 mingw* | pw32* | os2*)
13284 # This hack is so that the source file can tell whether it is being
13285 # built for inclusion in a dll (and should export symbols for example).
13286 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13287 ;;
13288
13289 hpux9* | hpux10* | hpux11*)
13290 lt_prog_compiler_wl_F77='-Wl,'
13291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13292 # not for PA HP-UX.
13293 case "$host_cpu" in
13294 hppa*64*|ia64*)
13295 # +Z the default
13296 ;;
13297 *)
13298 lt_prog_compiler_pic_F77='+Z'
13299 ;;
13300 esac
13301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13302 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13303 ;;
13304
13305 irix5* | irix6* | nonstopux*)
13306 lt_prog_compiler_wl_F77='-Wl,'
13307 # PIC (with -KPIC) is the default.
13308 lt_prog_compiler_static_F77='-non_shared'
13309 ;;
13310
13311 newsos6)
13312 lt_prog_compiler_pic_F77='-KPIC'
13313 lt_prog_compiler_static_F77='-Bstatic'
13314 ;;
13315
13316 linux*)
13317 case $CC in
13318 icc* | ecc*)
13319 lt_prog_compiler_wl_F77='-Wl,'
13320 lt_prog_compiler_pic_F77='-KPIC'
13321 lt_prog_compiler_static_F77='-static'
13322 ;;
13323 ccc*)
13324 lt_prog_compiler_wl_F77='-Wl,'
13325 # All Alpha code is PIC.
13326 lt_prog_compiler_static_F77='-non_shared'
13327 ;;
13328 esac
13329 ;;
13330
13331 osf3* | osf4* | osf5*)
13332 lt_prog_compiler_wl_F77='-Wl,'
13333 # All OSF/1 code is PIC.
13334 lt_prog_compiler_static_F77='-non_shared'
13335 ;;
13336
13337 sco3.2v5*)
13338 lt_prog_compiler_pic_F77='-Kpic'
13339 lt_prog_compiler_static_F77='-dn'
13340 ;;
13341
13342 solaris*)
13343 lt_prog_compiler_wl_F77='-Wl,'
13344 lt_prog_compiler_pic_F77='-KPIC'
13345 lt_prog_compiler_static_F77='-Bstatic'
13346 ;;
13347
13348 sunos4*)
13349 lt_prog_compiler_wl_F77='-Qoption ld '
13350 lt_prog_compiler_pic_F77='-PIC'
13351 lt_prog_compiler_static_F77='-Bstatic'
13352 ;;
13353
13354 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13355 lt_prog_compiler_wl_F77='-Wl,'
13356 lt_prog_compiler_pic_F77='-KPIC'
13357 lt_prog_compiler_static_F77='-Bstatic'
13358 ;;
13359
13360 sysv4*MP*)
13361 if test -d /usr/nec ;then
13362 lt_prog_compiler_pic_F77='-Kconform_pic'
13363 lt_prog_compiler_static_F77='-Bstatic'
13364 fi
13365 ;;
13366
13367 uts4*)
13368 lt_prog_compiler_pic_F77='-pic'
13369 lt_prog_compiler_static_F77='-Bstatic'
13370 ;;
13371
13372 *)
13373 lt_prog_compiler_can_build_shared_F77=no
13374 ;;
13375 esac
13376 fi
13377
13378 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13379 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13380
13381 #
13382 # Check to make sure the PIC flag actually works.
13383 #
13384 if test -n "$lt_prog_compiler_pic_F77"; then
13385
13386 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13387 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13388 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 lt_prog_compiler_pic_works_F77=no
13392 ac_outfile=conftest.$ac_objext
13393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13394 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13395 # Insert the option either (1) after the last *FLAGS variable, or
13396 # (2) before a word containing "conftest.", or (3) at the end.
13397 # Note that $ac_compile itself does not contain backslashes and begins
13398 # with a dollar sign (not a hyphen), so the echo should work correctly.
13399 # The option is referenced via a variable to avoid confusing sed.
13400 lt_compile=`echo "$ac_compile" | $SED \
13401 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13403 -e 's:$: $lt_compiler_flag:'`
13404 (eval echo "\"\$as_me:13404: $lt_compile\"" >&5)
13405 (eval "$lt_compile" 2>conftest.err)
13406 ac_status=$?
13407 cat conftest.err >&5
13408 echo "$as_me:13408: \$? = $ac_status" >&5
13409 if (exit $ac_status) && test -s "$ac_outfile"; then
13410 # The compiler can only warn and ignore the option if not recognized
13411 # So say no if there are warnings
13412 if test ! -s conftest.err; then
13413 lt_prog_compiler_pic_works_F77=yes
13414 fi
13415 fi
13416 $rm conftest*
13417
13418 fi
13419 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13420 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13421
13422 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13423 case $lt_prog_compiler_pic_F77 in
13424 "" | " "*) ;;
13425 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13426 esac
13427 else
13428 lt_prog_compiler_pic_F77=
13429 lt_prog_compiler_can_build_shared_F77=no
13430 fi
13431
13432 fi
13433 case "$host_os" in
13434 # For platforms which do not support PIC, -DPIC is meaningless:
13435 *djgpp*)
13436 lt_prog_compiler_pic_F77=
13437 ;;
13438 *)
13439 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13440 ;;
13441 esac
13442
13443 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13444 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13445 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 else
13448 lt_cv_prog_compiler_c_o_F77=no
13449 $rm -r conftest 2>/dev/null
13450 mkdir conftest
13451 cd conftest
13452 mkdir out
13453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13454
13455 lt_compiler_flag="-o out/conftest2.$ac_objext"
13456 # Insert the option either (1) after the last *FLAGS variable, or
13457 # (2) before a word containing "conftest.", or (3) at the end.
13458 # Note that $ac_compile itself does not contain backslashes and begins
13459 # with a dollar sign (not a hyphen), so the echo should work correctly.
13460 lt_compile=`echo "$ac_compile" | $SED \
13461 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13463 -e 's:$: $lt_compiler_flag:'`
13464 (eval echo "\"\$as_me:13464: $lt_compile\"" >&5)
13465 (eval "$lt_compile" 2>out/conftest.err)
13466 ac_status=$?
13467 cat out/conftest.err >&5
13468 echo "$as_me:13468: \$? = $ac_status" >&5
13469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13470 then
13471 # The compiler can only warn and ignore the option if not recognized
13472 # So say no if there are warnings
13473 if test ! -s out/conftest.err; then
13474 lt_cv_prog_compiler_c_o_F77=yes
13475 fi
13476 fi
13477 chmod u+w .
13478 $rm conftest*
13479 # SGI C++ compiler will create directory out/ii_files/ for
13480 # template instantiation
13481 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13482 $rm out/* && rmdir out
13483 cd ..
13484 rmdir conftest
13485 $rm conftest*
13486
13487 fi
13488 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13489 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13490
13491
13492 hard_links="nottested"
13493 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13494 # do not overwrite the value of need_locks provided by the user
13495 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13496 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13497 hard_links=yes
13498 $rm conftest*
13499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13500 touch conftest.a
13501 ln conftest.a conftest.b 2>&5 || hard_links=no
13502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13503 echo "$as_me:$LINENO: result: $hard_links" >&5
13504 echo "${ECHO_T}$hard_links" >&6
13505 if test "$hard_links" = no; then
13506 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13507 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13508 need_locks=warn
13509 fi
13510 else
13511 need_locks=no
13512 fi
13513
13514 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13515 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13516
13517 runpath_var=
13518 allow_undefined_flag_F77=
13519 enable_shared_with_static_runtimes_F77=no
13520 archive_cmds_F77=
13521 archive_expsym_cmds_F77=
13522 old_archive_From_new_cmds_F77=
13523 old_archive_from_expsyms_cmds_F77=
13524 export_dynamic_flag_spec_F77=
13525 whole_archive_flag_spec_F77=
13526 thread_safe_flag_spec_F77=
13527 hardcode_libdir_flag_spec_F77=
13528 hardcode_libdir_flag_spec_ld_F77=
13529 hardcode_libdir_separator_F77=
13530 hardcode_direct_F77=no
13531 hardcode_minus_L_F77=no
13532 hardcode_shlibpath_var_F77=unsupported
13533 link_all_deplibs_F77=unknown
13534 hardcode_automatic_F77=no
13535 module_cmds_F77=
13536 module_expsym_cmds_F77=
13537 always_export_symbols_F77=no
13538 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13539 # include_expsyms should be a list of space-separated symbols to be *always*
13540 # included in the symbol list
13541 include_expsyms_F77=
13542 # exclude_expsyms can be an extended regexp of symbols to exclude
13543 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13544 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13545 # as well as any symbol that contains `d'.
13546 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13547 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13548 # platforms (ab)use it in PIC code, but their linkers get confused if
13549 # the symbol is explicitly referenced. Since portable code cannot
13550 # rely on this symbol name, it's probably fine to never include it in
13551 # preloaded symbol tables.
13552 extract_expsyms_cmds=
13553
13554 case $host_os in
13555 cygwin* | mingw* | pw32*)
13556 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13557 # When not using gcc, we currently assume that we are using
13558 # Microsoft Visual C++.
13559 if test "$GCC" != yes; then
13560 with_gnu_ld=no
13561 fi
13562 ;;
13563 openbsd*)
13564 with_gnu_ld=no
13565 ;;
13566 esac
13567
13568 ld_shlibs_F77=yes
13569 if test "$with_gnu_ld" = yes; then
13570 # If archive_cmds runs LD, not CC, wlarc should be empty
13571 wlarc='${wl}'
13572
13573 # See if GNU ld supports shared libraries.
13574 case $host_os in
13575 aix3* | aix4* | aix5*)
13576 # On AIX/PPC, the GNU linker is very broken
13577 if test "$host_cpu" != ia64; then
13578 ld_shlibs_F77=no
13579 cat <<EOF 1>&2
13580
13581 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13582 *** to be unable to reliably create shared libraries on AIX.
13583 *** Therefore, libtool is disabling shared libraries support. If you
13584 *** really care for shared libraries, you may want to modify your PATH
13585 *** so that a non-GNU linker is found, and then restart.
13586
13587 EOF
13588 fi
13589 ;;
13590
13591 amigaos*)
13592 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)'
13593 hardcode_libdir_flag_spec_F77='-L$libdir'
13594 hardcode_minus_L_F77=yes
13595
13596 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13597 # that the semantics of dynamic libraries on AmigaOS, at least up
13598 # to version 4, is to share data among multiple programs linked
13599 # with the same dynamic library. Since this doesn't match the
13600 # behavior of shared libraries on other platforms, we can't use
13601 # them.
13602 ld_shlibs_F77=no
13603 ;;
13604
13605 beos*)
13606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13607 allow_undefined_flag_F77=unsupported
13608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13609 # support --undefined. This deserves some investigation. FIXME
13610 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13611 else
13612 ld_shlibs_F77=no
13613 fi
13614 ;;
13615
13616 cygwin* | mingw* | pw32*)
13617 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13618 # as there is no search path for DLLs.
13619 hardcode_libdir_flag_spec_F77='-L$libdir'
13620 allow_undefined_flag_F77=unsupported
13621 always_export_symbols_F77=no
13622 enable_shared_with_static_runtimes_F77=yes
13623 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13624
13625 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13626 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13627 # If the export-symbols file already is a .def file (1st line
13628 # is EXPORTS), use it as is; otherwise, prepend...
13629 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13630 cp $export_symbols $output_objdir/$soname.def;
13631 else
13632 echo EXPORTS > $output_objdir/$soname.def;
13633 cat $export_symbols >> $output_objdir/$soname.def;
13634 fi~
13635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13636 else
13637 ld_shlibs=no
13638 fi
13639 ;;
13640
13641 netbsd*)
13642 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13643 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13644 wlarc=
13645 else
13646 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13647 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13648 fi
13649 ;;
13650
13651 solaris* | sysv5*)
13652 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13653 ld_shlibs_F77=no
13654 cat <<EOF 1>&2
13655
13656 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13657 *** create shared libraries on Solaris systems. Therefore, libtool
13658 *** is disabling shared libraries support. We urge you to upgrade GNU
13659 *** binutils to release 2.9.1 or newer. Another option is to modify
13660 *** your PATH or compiler configuration so that the native linker is
13661 *** used, and then restart.
13662
13663 EOF
13664 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13665 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13666 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13667 else
13668 ld_shlibs_F77=no
13669 fi
13670 ;;
13671
13672 sunos4*)
13673 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13674 wlarc=
13675 hardcode_direct_F77=yes
13676 hardcode_shlibpath_var_F77=no
13677 ;;
13678
13679 linux*)
13680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13681 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13682 archive_cmds_F77="$tmp_archive_cmds"
13683 supports_anon_versioning=no
13684 case `$LD -v 2>/dev/null` in
13685 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13686 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13687 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13688 *\ 2.11.*) ;; # other 2.11 versions
13689 *) supports_anon_versioning=yes ;;
13690 esac
13691 if test $supports_anon_versioning = yes; then
13692 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13694 $echo "local: *; };" >> $output_objdir/$libname.ver~
13695 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13696 else
13697 archive_expsym_cmds_F77="$tmp_archive_cmds"
13698 fi
13699 else
13700 ld_shlibs_F77=no
13701 fi
13702 ;;
13703
13704 *)
13705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13706 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13707 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13708 else
13709 ld_shlibs_F77=no
13710 fi
13711 ;;
13712 esac
13713
13714 if test "$ld_shlibs_F77" = yes; then
13715 runpath_var=LD_RUN_PATH
13716 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13717 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13718 # ancient GNU ld didn't support --whole-archive et. al.
13719 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13720 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13721 else
13722 whole_archive_flag_spec_F77=
13723 fi
13724 fi
13725 else
13726 # PORTME fill in a description of your system's linker (not GNU ld)
13727 case $host_os in
13728 aix3*)
13729 allow_undefined_flag_F77=unsupported
13730 always_export_symbols_F77=yes
13731 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'
13732 # Note: this linker hardcodes the directories in LIBPATH if there
13733 # are no directories specified by -L.
13734 hardcode_minus_L_F77=yes
13735 if test "$GCC" = yes && test -z "$link_static_flag"; then
13736 # Neither direct hardcoding nor static linking is supported with a
13737 # broken collect2.
13738 hardcode_direct_F77=unsupported
13739 fi
13740 ;;
13741
13742 aix4* | aix5*)
13743 if test "$host_cpu" = ia64; then
13744 # On IA64, the linker does run time linking by default, so we don't
13745 # have to do anything special.
13746 aix_use_runtimelinking=no
13747 exp_sym_flag='-Bexport'
13748 no_entry_flag=""
13749 else
13750 # If we're using GNU nm, then we don't want the "-C" option.
13751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13752 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13753 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'
13754 else
13755 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'
13756 fi
13757 aix_use_runtimelinking=no
13758
13759 # Test if we are trying to use run time linking or normal
13760 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13761 # need to do runtime linking.
13762 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13763 for ld_flag in $LDFLAGS; do
13764 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13765 aix_use_runtimelinking=yes
13766 break
13767 fi
13768 done
13769 esac
13770
13771 exp_sym_flag='-bexport'
13772 no_entry_flag='-bnoentry'
13773 fi
13774
13775 # When large executables or shared objects are built, AIX ld can
13776 # have problems creating the table of contents. If linking a library
13777 # or program results in "error TOC overflow" add -mminimal-toc to
13778 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13779 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13780
13781 archive_cmds_F77=''
13782 hardcode_direct_F77=yes
13783 hardcode_libdir_separator_F77=':'
13784 link_all_deplibs_F77=yes
13785
13786 if test "$GCC" = yes; then
13787 case $host_os in aix4.012|aix4.012.*)
13788 # We only want to do this on AIX 4.2 and lower, the check
13789 # below for broken collect2 doesn't work under 4.3+
13790 collect2name=`${CC} -print-prog-name=collect2`
13791 if test -f "$collect2name" && \
13792 strings "$collect2name" | grep resolve_lib_name >/dev/null
13793 then
13794 # We have reworked collect2
13795 hardcode_direct_F77=yes
13796 else
13797 # We have old collect2
13798 hardcode_direct_F77=unsupported
13799 # It fails to find uninstalled libraries when the uninstalled
13800 # path is not listed in the libpath. Setting hardcode_minus_L
13801 # to unsupported forces relinking
13802 hardcode_minus_L_F77=yes
13803 hardcode_libdir_flag_spec_F77='-L$libdir'
13804 hardcode_libdir_separator_F77=
13805 fi
13806 esac
13807 shared_flag='-shared'
13808 else
13809 # not using gcc
13810 if test "$host_cpu" = ia64; then
13811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13812 # chokes on -Wl,-G. The following line is correct:
13813 shared_flag='-G'
13814 else
13815 if test "$aix_use_runtimelinking" = yes; then
13816 shared_flag='${wl}-G'
13817 else
13818 shared_flag='${wl}-bM:SRE'
13819 fi
13820 fi
13821 fi
13822
13823 # It seems that -bexpall does not export symbols beginning with
13824 # underscore (_), so it is better to generate a list of symbols to export.
13825 always_export_symbols_F77=yes
13826 if test "$aix_use_runtimelinking" = yes; then
13827 # Warning - without using the other runtime loading flags (-brtl),
13828 # -berok will link without error, but may produce a broken library.
13829 allow_undefined_flag_F77='-berok'
13830 # Determine the default libpath from the value encoded in an empty executable.
13831 cat >conftest.$ac_ext <<_ACEOF
13832 program main
13833
13834 end
13835 _ACEOF
13836 rm -f conftest.$ac_objext conftest$ac_exeext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13838 (eval $ac_link) 2>conftest.er1
13839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -z "$ac_f77_werror_flag"
13846 || test ! -s conftest.err'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest$ac_exeext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858
13859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13860 }'`
13861 # Check for a 64-bit object if we didn't find anything.
13862 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; }
13863 }'`; fi
13864 else
13865 echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13867
13868 fi
13869 rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13872
13873 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13874 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"
13875 else
13876 if test "$host_cpu" = ia64; then
13877 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13878 allow_undefined_flag_F77="-z nodefs"
13879 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"
13880 else
13881 # Determine the default libpath from the value encoded in an empty executable.
13882 cat >conftest.$ac_ext <<_ACEOF
13883 program main
13884
13885 end
13886 _ACEOF
13887 rm -f conftest.$ac_objext conftest$ac_exeext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13889 (eval $ac_link) 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
13896 { ac_try='test -z "$ac_f77_werror_flag"
13897 || test ! -s conftest.err'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest$ac_exeext'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909
13910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13911 }'`
13912 # Check for a 64-bit object if we didn't find anything.
13913 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; }
13914 }'`; fi
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13918
13919 fi
13920 rm -f conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13923
13924 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13925 # Warning - without using the other run time loading flags,
13926 # -berok will link without error, but may produce a broken library.
13927 no_undefined_flag_F77=' ${wl}-bernotok'
13928 allow_undefined_flag_F77=' ${wl}-berok'
13929 # -bexpall does not export symbols beginning with underscore (_)
13930 always_export_symbols_F77=yes
13931 # Exported symbols can be pulled into shared objects from archives
13932 whole_archive_flag_spec_F77=' '
13933 archive_cmds_need_lc_F77=yes
13934 # This is similar to how AIX traditionally builds it's shared libraries.
13935 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'
13936 fi
13937 fi
13938 ;;
13939
13940 amigaos*)
13941 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)'
13942 hardcode_libdir_flag_spec_F77='-L$libdir'
13943 hardcode_minus_L_F77=yes
13944 # see comment about different semantics on the GNU ld section
13945 ld_shlibs_F77=no
13946 ;;
13947
13948 bsdi4*)
13949 export_dynamic_flag_spec_F77=-rdynamic
13950 ;;
13951
13952 cygwin* | mingw* | pw32*)
13953 # When not using gcc, we currently assume that we are using
13954 # Microsoft Visual C++.
13955 # hardcode_libdir_flag_spec is actually meaningless, as there is
13956 # no search path for DLLs.
13957 hardcode_libdir_flag_spec_F77=' '
13958 allow_undefined_flag_F77=unsupported
13959 # Tell ltmain to make .lib files, not .a files.
13960 libext=lib
13961 # Tell ltmain to make .dll files, not .so files.
13962 shrext_cmds=".dll"
13963 # FIXME: Setting linknames here is a bad hack.
13964 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13965 # The linker will automatically build a .lib file if we build a DLL.
13966 old_archive_From_new_cmds_F77='true'
13967 # FIXME: Should let the user specify the lib program.
13968 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13969 fix_srcfile_path='`cygpath -w "$srcfile"`'
13970 enable_shared_with_static_runtimes_F77=yes
13971 ;;
13972
13973 darwin* | rhapsody*)
13974 if test "$GXX" = yes ; then
13975 archive_cmds_need_lc_F77=no
13976 case "$host_os" in
13977 rhapsody* | darwin1.[012])
13978 allow_undefined_flag_F77='-undefined suppress'
13979 ;;
13980 *) # Darwin 1.3 on
13981 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13982 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13983 else
13984 case ${MACOSX_DEPLOYMENT_TARGET} in
13985 10.[012])
13986 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13987 ;;
13988 10.*)
13989 allow_undefined_flag_F77='-undefined dynamic_lookup'
13990 ;;
13991 esac
13992 fi
13993 ;;
13994 esac
13995 lt_int_apple_cc_single_mod=no
13996 output_verbose_link_cmd='echo'
13997 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13998 lt_int_apple_cc_single_mod=yes
13999 fi
14000 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14001 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14002 else
14003 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'
14004 fi
14005 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14007 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14008 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}'
14009 else
14010 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}'
14011 fi
14012 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}'
14013 hardcode_direct_F77=no
14014 hardcode_automatic_F77=yes
14015 hardcode_shlibpath_var_F77=unsupported
14016 whole_archive_flag_spec_F77='-all_load $convenience'
14017 link_all_deplibs_F77=yes
14018 else
14019 ld_shlibs_F77=no
14020 fi
14021 ;;
14022
14023 dgux*)
14024 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14025 hardcode_libdir_flag_spec_F77='-L$libdir'
14026 hardcode_shlibpath_var_F77=no
14027 ;;
14028
14029 freebsd1*)
14030 ld_shlibs_F77=no
14031 ;;
14032
14033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14034 # support. Future versions do this automatically, but an explicit c++rt0.o
14035 # does not break anything, and helps significantly (at the cost of a little
14036 # extra space).
14037 freebsd2.2*)
14038 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14039 hardcode_libdir_flag_spec_F77='-R$libdir'
14040 hardcode_direct_F77=yes
14041 hardcode_shlibpath_var_F77=no
14042 ;;
14043
14044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14045 freebsd2*)
14046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14047 hardcode_direct_F77=yes
14048 hardcode_minus_L_F77=yes
14049 hardcode_shlibpath_var_F77=no
14050 ;;
14051
14052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14053 freebsd* | kfreebsd*-gnu)
14054 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14055 hardcode_libdir_flag_spec_F77='-R$libdir'
14056 hardcode_direct_F77=yes
14057 hardcode_shlibpath_var_F77=no
14058 ;;
14059
14060 hpux9*)
14061 if test "$GCC" = yes; then
14062 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'
14063 else
14064 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'
14065 fi
14066 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14067 hardcode_libdir_separator_F77=:
14068 hardcode_direct_F77=yes
14069
14070 # hardcode_minus_L: Not really in the search PATH,
14071 # but as the default location of the library.
14072 hardcode_minus_L_F77=yes
14073 export_dynamic_flag_spec_F77='${wl}-E'
14074 ;;
14075
14076 hpux10* | hpux11*)
14077 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14078 case "$host_cpu" in
14079 hppa*64*|ia64*)
14080 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14081 ;;
14082 *)
14083 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14084 ;;
14085 esac
14086 else
14087 case "$host_cpu" in
14088 hppa*64*|ia64*)
14089 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14090 ;;
14091 *)
14092 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14093 ;;
14094 esac
14095 fi
14096 if test "$with_gnu_ld" = no; then
14097 case "$host_cpu" in
14098 hppa*64*)
14099 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14100 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14101 hardcode_libdir_separator_F77=:
14102 hardcode_direct_F77=no
14103 hardcode_shlibpath_var_F77=no
14104 ;;
14105 ia64*)
14106 hardcode_libdir_flag_spec_F77='-L$libdir'
14107 hardcode_direct_F77=no
14108 hardcode_shlibpath_var_F77=no
14109
14110 # hardcode_minus_L: Not really in the search PATH,
14111 # but as the default location of the library.
14112 hardcode_minus_L_F77=yes
14113 ;;
14114 *)
14115 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14116 hardcode_libdir_separator_F77=:
14117 hardcode_direct_F77=yes
14118 export_dynamic_flag_spec_F77='${wl}-E'
14119
14120 # hardcode_minus_L: Not really in the search PATH,
14121 # but as the default location of the library.
14122 hardcode_minus_L_F77=yes
14123 ;;
14124 esac
14125 fi
14126 ;;
14127
14128 irix5* | irix6* | nonstopux*)
14129 if test "$GCC" = yes; then
14130 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'
14131 else
14132 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'
14133 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14134 fi
14135 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14136 hardcode_libdir_separator_F77=:
14137 link_all_deplibs_F77=yes
14138 ;;
14139
14140 netbsd*)
14141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14142 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14143 else
14144 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14145 fi
14146 hardcode_libdir_flag_spec_F77='-R$libdir'
14147 hardcode_direct_F77=yes
14148 hardcode_shlibpath_var_F77=no
14149 ;;
14150
14151 newsos6)
14152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14153 hardcode_direct_F77=yes
14154 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14155 hardcode_libdir_separator_F77=:
14156 hardcode_shlibpath_var_F77=no
14157 ;;
14158
14159 openbsd*)
14160 hardcode_direct_F77=yes
14161 hardcode_shlibpath_var_F77=no
14162 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14163 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14164 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14165 export_dynamic_flag_spec_F77='${wl}-E'
14166 else
14167 case $host_os in
14168 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14169 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14170 hardcode_libdir_flag_spec_F77='-R$libdir'
14171 ;;
14172 *)
14173 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14174 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14175 ;;
14176 esac
14177 fi
14178 ;;
14179
14180 os2*)
14181 hardcode_libdir_flag_spec_F77='-L$libdir'
14182 hardcode_minus_L_F77=yes
14183 allow_undefined_flag_F77=unsupported
14184 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'
14185 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14186 ;;
14187
14188 osf3*)
14189 if test "$GCC" = yes; then
14190 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14191 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'
14192 else
14193 allow_undefined_flag_F77=' -expect_unresolved \*'
14194 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'
14195 fi
14196 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14197 hardcode_libdir_separator_F77=:
14198 ;;
14199
14200 osf4* | osf5*) # as osf3* with the addition of -msym flag
14201 if test "$GCC" = yes; then
14202 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14203 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'
14204 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14205 else
14206 allow_undefined_flag_F77=' -expect_unresolved \*'
14207 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'
14208 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~
14209 $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'
14210
14211 # Both c and cxx compiler support -rpath directly
14212 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14213 fi
14214 hardcode_libdir_separator_F77=:
14215 ;;
14216
14217 sco3.2v5*)
14218 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14219 hardcode_shlibpath_var_F77=no
14220 export_dynamic_flag_spec_F77='${wl}-Bexport'
14221 runpath_var=LD_RUN_PATH
14222 hardcode_runpath_var=yes
14223 ;;
14224
14225 solaris*)
14226 no_undefined_flag_F77=' -z text'
14227 if test "$GCC" = yes; then
14228 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14229 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14230 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14231 else
14232 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14233 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14234 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14235 fi
14236 hardcode_libdir_flag_spec_F77='-R$libdir'
14237 hardcode_shlibpath_var_F77=no
14238 case $host_os in
14239 solaris2.[0-5] | solaris2.[0-5].*) ;;
14240 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14241 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14242 esac
14243 link_all_deplibs_F77=yes
14244 ;;
14245
14246 sunos4*)
14247 if test "x$host_vendor" = xsequent; then
14248 # Use $CC to link under sequent, because it throws in some extra .o
14249 # files that make .init and .fini sections work.
14250 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14251 else
14252 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14253 fi
14254 hardcode_libdir_flag_spec_F77='-L$libdir'
14255 hardcode_direct_F77=yes
14256 hardcode_minus_L_F77=yes
14257 hardcode_shlibpath_var_F77=no
14258 ;;
14259
14260 sysv4)
14261 case $host_vendor in
14262 sni)
14263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264 hardcode_direct_F77=yes # is this really true???
14265 ;;
14266 siemens)
14267 ## LD is ld it makes a PLAMLIB
14268 ## CC just makes a GrossModule.
14269 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14270 reload_cmds_F77='$CC -r -o $output$reload_objs'
14271 hardcode_direct_F77=no
14272 ;;
14273 motorola)
14274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14276 ;;
14277 esac
14278 runpath_var='LD_RUN_PATH'
14279 hardcode_shlibpath_var_F77=no
14280 ;;
14281
14282 sysv4.3*)
14283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_shlibpath_var_F77=no
14285 export_dynamic_flag_spec_F77='-Bexport'
14286 ;;
14287
14288 sysv4*MP*)
14289 if test -d /usr/nec; then
14290 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14291 hardcode_shlibpath_var_F77=no
14292 runpath_var=LD_RUN_PATH
14293 hardcode_runpath_var=yes
14294 ld_shlibs_F77=yes
14295 fi
14296 ;;
14297
14298 sysv4.2uw2*)
14299 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14300 hardcode_direct_F77=yes
14301 hardcode_minus_L_F77=no
14302 hardcode_shlibpath_var_F77=no
14303 hardcode_runpath_var=yes
14304 runpath_var=LD_RUN_PATH
14305 ;;
14306
14307 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14308 no_undefined_flag_F77='${wl}-z ${wl}text'
14309 if test "$GCC" = yes; then
14310 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14311 else
14312 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14313 fi
14314 runpath_var='LD_RUN_PATH'
14315 hardcode_shlibpath_var_F77=no
14316 ;;
14317
14318 sysv5*)
14319 no_undefined_flag_F77=' -z text'
14320 # $CC -shared without GNU ld will not create a library from C++
14321 # object files and a static libstdc++, better avoid it by now
14322 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14324 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14325 hardcode_libdir_flag_spec_F77=
14326 hardcode_shlibpath_var_F77=no
14327 runpath_var='LD_RUN_PATH'
14328 ;;
14329
14330 uts4*)
14331 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14332 hardcode_libdir_flag_spec_F77='-L$libdir'
14333 hardcode_shlibpath_var_F77=no
14334 ;;
14335
14336 *)
14337 ld_shlibs_F77=no
14338 ;;
14339 esac
14340 fi
14341
14342 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14343 echo "${ECHO_T}$ld_shlibs_F77" >&6
14344 test "$ld_shlibs_F77" = no && can_build_shared=no
14345
14346 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14347 if test "$GCC" = yes; then
14348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14349 fi
14350
14351 #
14352 # Do we need to explicitly link libc?
14353 #
14354 case "x$archive_cmds_need_lc_F77" in
14355 x|xyes)
14356 # Assume -lc should be added
14357 archive_cmds_need_lc_F77=yes
14358
14359 if test "$enable_shared" = yes && test "$GCC" = yes; then
14360 case $archive_cmds_F77 in
14361 *'~'*)
14362 # FIXME: we may have to deal with multi-command sequences.
14363 ;;
14364 '$CC '*)
14365 # Test whether the compiler implicitly links with -lc since on some
14366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14367 # to ld, don't add -lc before -lgcc.
14368 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14369 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14370 $rm conftest*
14371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14372
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } 2>conftest.err; then
14378 soname=conftest
14379 lib=conftest
14380 libobjs=conftest.$ac_objext
14381 deplibs=
14382 wl=$lt_prog_compiler_wl_F77
14383 compiler_flags=-v
14384 linker_flags=-v
14385 verstring=
14386 output_objdir=.
14387 libname=conftest
14388 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14389 allow_undefined_flag_F77=
14390 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14391 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }
14395 then
14396 archive_cmds_need_lc_F77=no
14397 else
14398 archive_cmds_need_lc_F77=yes
14399 fi
14400 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14401 else
14402 cat conftest.err 1>&5
14403 fi
14404 $rm conftest*
14405 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14406 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14407 ;;
14408 esac
14409 fi
14410 ;;
14411 esac
14412
14413 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14414 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14415 library_names_spec=
14416 libname_spec='lib$name'
14417 soname_spec=
14418 shrext_cmds=".so"
14419 postinstall_cmds=
14420 postuninstall_cmds=
14421 finish_cmds=
14422 finish_eval=
14423 shlibpath_var=
14424 shlibpath_overrides_runpath=unknown
14425 version_type=none
14426 dynamic_linker="$host_os ld.so"
14427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14428 if test "$GCC" = yes; then
14429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14430 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14431 # if the path contains ";" then we assume it to be the separator
14432 # otherwise default to the standard path separator (i.e. ":") - it is
14433 # assumed that no part of a normal pathname contains ";" but that should
14434 # okay in the real world where ";" in dirpaths is itself problematic.
14435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14436 else
14437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14438 fi
14439 else
14440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14441 fi
14442 need_lib_prefix=unknown
14443 hardcode_into_libs=no
14444
14445 # when you set need_version to no, make sure it does not cause -set_version
14446 # flags to be left without arguments
14447 need_version=unknown
14448
14449 case $host_os in
14450 aix3*)
14451 version_type=linux
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14453 shlibpath_var=LIBPATH
14454
14455 # AIX 3 has no versioning support, so we append a major version to the name.
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 ;;
14458
14459 aix4* | aix5*)
14460 version_type=linux
14461 need_lib_prefix=no
14462 need_version=no
14463 hardcode_into_libs=yes
14464 if test "$host_cpu" = ia64; then
14465 # AIX 5 supports IA64
14466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 else
14469 # With GCC up to 2.95.x, collect2 would create an import file
14470 # for dependence libraries. The import file would start with
14471 # the line `#! .'. This would cause the generated library to
14472 # depend on `.', always an invalid library. This was fixed in
14473 # development snapshots of GCC prior to 3.0.
14474 case $host_os in
14475 aix4 | aix4.[01] | aix4.[01].*)
14476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14477 echo ' yes '
14478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14479 :
14480 else
14481 can_build_shared=no
14482 fi
14483 ;;
14484 esac
14485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14486 # soname into executable. Probably we can add versioning support to
14487 # collect2, so additional links can be useful in future.
14488 if test "$aix_use_runtimelinking" = yes; then
14489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14490 # instead of lib<name>.a to let people know that these are not
14491 # typical AIX shared libraries.
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 else
14494 # We preserve .a as extension for shared libraries through AIX4.2
14495 # and later when we are not doing run time linking.
14496 library_names_spec='${libname}${release}.a $libname.a'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 fi
14499 shlibpath_var=LIBPATH
14500 fi
14501 ;;
14502
14503 amigaos*)
14504 library_names_spec='$libname.ixlibrary $libname.a'
14505 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14506 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'
14507 ;;
14508
14509 beos*)
14510 library_names_spec='${libname}${shared_ext}'
14511 dynamic_linker="$host_os ld.so"
14512 shlibpath_var=LIBRARY_PATH
14513 ;;
14514
14515 bsdi4*)
14516 version_type=linux
14517 need_version=no
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14524 # the default ld.so.conf also contains /usr/contrib/lib and
14525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14526 # libtool to hard-code these into programs
14527 ;;
14528
14529 cygwin* | mingw* | pw32*)
14530 version_type=windows
14531 shrext_cmds=".dll"
14532 need_version=no
14533 need_lib_prefix=no
14534
14535 case $GCC,$host_os in
14536 yes,cygwin* | yes,mingw* | yes,pw32*)
14537 library_names_spec='$libname.dll.a'
14538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14539 postinstall_cmds='base_file=`basename \${file}`~
14540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14541 dldir=$destdir/`dirname \$dlpath`~
14542 test -d \$dldir || mkdir -p \$dldir~
14543 $install_prog $dir/$dlname \$dldir/$dlname'
14544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14545 dlpath=$dir/\$dldll~
14546 $rm \$dlpath'
14547 shlibpath_overrides_runpath=yes
14548
14549 case $host_os in
14550 cygwin*)
14551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14552 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14553 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14554 ;;
14555 mingw*)
14556 # MinGW DLLs use traditional 'lib' prefix
14557 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14558 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14559 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14560 # It is most probably a Windows format PATH printed by
14561 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14562 # path with ; separators, and with drive letters. We can handle the
14563 # drive letters (cygwin fileutils understands them), so leave them,
14564 # especially as we might pass files found there to a mingw objdump,
14565 # which wouldn't understand a cygwinified path. Ahh.
14566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14567 else
14568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14569 fi
14570 ;;
14571 pw32*)
14572 # pw32 DLLs use 'pw' prefix rather than 'lib'
14573 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14574 ;;
14575 esac
14576 ;;
14577
14578 *)
14579 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14580 ;;
14581 esac
14582 dynamic_linker='Win32 ld.exe'
14583 # FIXME: first we should search . and the directory the executable is in
14584 shlibpath_var=PATH
14585 ;;
14586
14587 darwin* | rhapsody*)
14588 dynamic_linker="$host_os dyld"
14589 version_type=darwin
14590 need_lib_prefix=no
14591 need_version=no
14592 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14593 soname_spec='${libname}${release}${major}$shared_ext'
14594 shlibpath_overrides_runpath=yes
14595 shlibpath_var=DYLD_LIBRARY_PATH
14596 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14597 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14598 if test "$GCC" = yes; then
14599 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"`
14600 else
14601 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14602 fi
14603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14604 ;;
14605
14606 dgux*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 ;;
14614
14615 freebsd1*)
14616 dynamic_linker=no
14617 ;;
14618
14619 kfreebsd*-gnu)
14620 version_type=linux
14621 need_lib_prefix=no
14622 need_version=no
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14624 soname_spec='${libname}${release}${shared_ext}$major'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=no
14627 hardcode_into_libs=yes
14628 dynamic_linker='GNU ld.so'
14629 ;;
14630
14631 freebsd*)
14632 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14633 version_type=freebsd-$objformat
14634 case $version_type in
14635 freebsd-elf*)
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14637 need_version=no
14638 need_lib_prefix=no
14639 ;;
14640 freebsd-*)
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14642 need_version=yes
14643 ;;
14644 esac
14645 shlibpath_var=LD_LIBRARY_PATH
14646 case $host_os in
14647 freebsd2*)
14648 shlibpath_overrides_runpath=yes
14649 ;;
14650 freebsd3.01* | freebsdelf3.01*)
14651 shlibpath_overrides_runpath=yes
14652 hardcode_into_libs=yes
14653 ;;
14654 *) # from 3.2 on
14655 shlibpath_overrides_runpath=no
14656 hardcode_into_libs=yes
14657 ;;
14658 esac
14659 ;;
14660
14661 gnu*)
14662 version_type=linux
14663 need_lib_prefix=no
14664 need_version=no
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 hardcode_into_libs=yes
14669 ;;
14670
14671 hpux9* | hpux10* | hpux11*)
14672 # Give a soname corresponding to the major version so that dld.sl refuses to
14673 # link against other versions.
14674 version_type=sunos
14675 need_lib_prefix=no
14676 need_version=no
14677 case "$host_cpu" in
14678 ia64*)
14679 shrext_cmds='.so'
14680 hardcode_into_libs=yes
14681 dynamic_linker="$host_os dld.so"
14682 shlibpath_var=LD_LIBRARY_PATH
14683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 if test "X$HPUX_IA64_MODE" = X32; then
14687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14688 else
14689 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14690 fi
14691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14692 ;;
14693 hppa*64*)
14694 shrext_cmds='.sl'
14695 hardcode_into_libs=yes
14696 dynamic_linker="$host_os dld.sl"
14697 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14703 ;;
14704 *)
14705 shrext_cmds='.sl'
14706 dynamic_linker="$host_os dld.sl"
14707 shlibpath_var=SHLIB_PATH
14708 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 ;;
14712 esac
14713 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14714 postinstall_cmds='chmod 555 $lib'
14715 ;;
14716
14717 irix5* | irix6* | nonstopux*)
14718 case $host_os in
14719 nonstopux*) version_type=nonstopux ;;
14720 *)
14721 if test "$lt_cv_prog_gnu_ld" = yes; then
14722 version_type=linux
14723 else
14724 version_type=irix
14725 fi ;;
14726 esac
14727 need_lib_prefix=no
14728 need_version=no
14729 soname_spec='${libname}${release}${shared_ext}$major'
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14731 case $host_os in
14732 irix5* | nonstopux*)
14733 libsuff= shlibsuff=
14734 ;;
14735 *)
14736 case $LD in # libtool.m4 will add one of these switches to LD
14737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14738 libsuff= shlibsuff= libmagic=32-bit;;
14739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14740 libsuff=32 shlibsuff=N32 libmagic=N32;;
14741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14743 *) libsuff= shlibsuff= libmagic=never-match;;
14744 esac
14745 ;;
14746 esac
14747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14748 shlibpath_overrides_runpath=no
14749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14751 hardcode_into_libs=yes
14752 ;;
14753
14754 # No shared lib support for Linux oldld, aout, or coff.
14755 linux*oldld* | linux*aout* | linux*coff*)
14756 dynamic_linker=no
14757 ;;
14758
14759 # This must be Linux ELF.
14760 linux*)
14761 version_type=linux
14762 need_lib_prefix=no
14763 need_version=no
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 shlibpath_overrides_runpath=no
14769 # This implies no fast_install, which is unacceptable.
14770 # Some rework will be needed to allow for fast_install
14771 # before this can be enabled.
14772 hardcode_into_libs=yes
14773
14774 # find out which ABI we are using
14775 libsuff=
14776 case "$host_cpu" in
14777 x86_64*|s390x*|powerpc64*)
14778 echo '#line 14778 "configure"' > conftest.$ac_ext
14779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14780 (eval $ac_compile) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; then
14784 case `/usr/bin/file conftest.$ac_objext` in
14785 *64-bit*)
14786 libsuff=64
14787 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14788 ;;
14789 esac
14790 fi
14791 rm -rf conftest*
14792 ;;
14793 esac
14794
14795 # Append ld.so.conf contents to the search path
14796 if test -f /etc/ld.so.conf; then
14797 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14798 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14799 fi
14800
14801 # We used to test for /lib/ld.so.1 and disable shared libraries on
14802 # powerpc, because MkLinux only supported shared libraries with the
14803 # GNU dynamic linker. Since this was broken with cross compilers,
14804 # most powerpc-linux boxes support dynamic linking these days and
14805 # people can always --disable-shared, the test was removed, and we
14806 # assume the GNU/Linux dynamic linker is in use.
14807 dynamic_linker='GNU/Linux ld.so'
14808 ;;
14809
14810 knetbsd*-gnu)
14811 version_type=linux
14812 need_lib_prefix=no
14813 need_version=no
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=no
14818 hardcode_into_libs=yes
14819 dynamic_linker='GNU ld.so'
14820 ;;
14821
14822 netbsd*)
14823 version_type=sunos
14824 need_lib_prefix=no
14825 need_version=no
14826 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14829 dynamic_linker='NetBSD (a.out) ld.so'
14830 else
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 dynamic_linker='NetBSD ld.elf_so'
14834 fi
14835 shlibpath_var=LD_LIBRARY_PATH
14836 shlibpath_overrides_runpath=yes
14837 hardcode_into_libs=yes
14838 ;;
14839
14840 newsos6)
14841 version_type=linux
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=yes
14845 ;;
14846
14847 nto-qnx*)
14848 version_type=linux
14849 need_lib_prefix=no
14850 need_version=no
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852 soname_spec='${libname}${release}${shared_ext}$major'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 shlibpath_overrides_runpath=yes
14855 ;;
14856
14857 openbsd*)
14858 version_type=sunos
14859 need_lib_prefix=no
14860 need_version=yes
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14863 shlibpath_var=LD_LIBRARY_PATH
14864 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14865 case $host_os in
14866 openbsd2.[89] | openbsd2.[89].*)
14867 shlibpath_overrides_runpath=no
14868 ;;
14869 *)
14870 shlibpath_overrides_runpath=yes
14871 ;;
14872 esac
14873 else
14874 shlibpath_overrides_runpath=yes
14875 fi
14876 ;;
14877
14878 os2*)
14879 libname_spec='$name'
14880 shrext_cmds=".dll"
14881 need_lib_prefix=no
14882 library_names_spec='$libname${shared_ext} $libname.a'
14883 dynamic_linker='OS/2 ld.exe'
14884 shlibpath_var=LIBPATH
14885 ;;
14886
14887 osf3* | osf4* | osf5*)
14888 version_type=osf
14889 need_lib_prefix=no
14890 need_version=no
14891 soname_spec='${libname}${release}${shared_ext}$major'
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14895 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14896 ;;
14897
14898 sco3.2v5*)
14899 version_type=osf
14900 soname_spec='${libname}${release}${shared_ext}$major'
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902 shlibpath_var=LD_LIBRARY_PATH
14903 ;;
14904
14905 solaris*)
14906 version_type=linux
14907 need_lib_prefix=no
14908 need_version=no
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 shlibpath_overrides_runpath=yes
14913 hardcode_into_libs=yes
14914 # ldd complains unless libraries are executable
14915 postinstall_cmds='chmod +x $lib'
14916 ;;
14917
14918 sunos4*)
14919 version_type=sunos
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=yes
14924 if test "$with_gnu_ld" = yes; then
14925 need_lib_prefix=no
14926 fi
14927 need_version=yes
14928 ;;
14929
14930 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14931 version_type=linux
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 case $host_vendor in
14936 sni)
14937 shlibpath_overrides_runpath=no
14938 need_lib_prefix=no
14939 export_dynamic_flag_spec='${wl}-Blargedynsym'
14940 runpath_var=LD_RUN_PATH
14941 ;;
14942 siemens)
14943 need_lib_prefix=no
14944 ;;
14945 motorola)
14946 need_lib_prefix=no
14947 need_version=no
14948 shlibpath_overrides_runpath=no
14949 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14950 ;;
14951 esac
14952 ;;
14953
14954 sysv4*MP*)
14955 if test -d /usr/nec ;then
14956 version_type=linux
14957 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14958 soname_spec='$libname${shared_ext}.$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 fi
14961 ;;
14962
14963 uts4*)
14964 version_type=linux
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966 soname_spec='${libname}${release}${shared_ext}$major'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 ;;
14969
14970 *)
14971 dynamic_linker=no
14972 ;;
14973 esac
14974 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14975 echo "${ECHO_T}$dynamic_linker" >&6
14976 test "$dynamic_linker" = no && can_build_shared=no
14977
14978 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14979 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14980 hardcode_action_F77=
14981 if test -n "$hardcode_libdir_flag_spec_F77" || \
14982 test -n "$runpath_var F77" || \
14983 test "X$hardcode_automatic_F77"="Xyes" ; then
14984
14985 # We can hardcode non-existant directories.
14986 if test "$hardcode_direct_F77" != no &&
14987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14988 # have to relink, otherwise we might link with an installed library
14989 # when we should be linking with a yet-to-be-installed one
14990 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14991 test "$hardcode_minus_L_F77" != no; then
14992 # Linking always hardcodes the temporary library directory.
14993 hardcode_action_F77=relink
14994 else
14995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14996 hardcode_action_F77=immediate
14997 fi
14998 else
14999 # We cannot hardcode anything, or else we can only hardcode existing
15000 # directories.
15001 hardcode_action_F77=unsupported
15002 fi
15003 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15004 echo "${ECHO_T}$hardcode_action_F77" >&6
15005
15006 if test "$hardcode_action_F77" = relink; then
15007 # Fast installation is not supported
15008 enable_fast_install=no
15009 elif test "$shlibpath_overrides_runpath" = yes ||
15010 test "$enable_shared" = no; then
15011 # Fast installation is not necessary
15012 enable_fast_install=needless
15013 fi
15014
15015 striplib=
15016 old_striplib=
15017 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15018 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15019 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15020 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15021 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15022 echo "$as_me:$LINENO: result: yes" >&5
15023 echo "${ECHO_T}yes" >&6
15024 else
15025 # FIXME - insert some real tests, host_os isn't really good enough
15026 case $host_os in
15027 darwin*)
15028 if test -n "$STRIP" ; then
15029 striplib="$STRIP -x"
15030 echo "$as_me:$LINENO: result: yes" >&5
15031 echo "${ECHO_T}yes" >&6
15032 else
15033 echo "$as_me:$LINENO: result: no" >&5
15034 echo "${ECHO_T}no" >&6
15035 fi
15036 ;;
15037 *)
15038 echo "$as_me:$LINENO: result: no" >&5
15039 echo "${ECHO_T}no" >&6
15040 ;;
15041 esac
15042 fi
15043
15044
15045
15046 # The else clause should only fire when bootstrapping the
15047 # libtool distribution, otherwise you forgot to ship ltmain.sh
15048 # with your package, and you will get complaints that there are
15049 # no rules to generate ltmain.sh.
15050 if test -f "$ltmain"; then
15051 # See if we are running on zsh, and set the options which allow our commands through
15052 # without removal of \ escapes.
15053 if test -n "${ZSH_VERSION+set}" ; then
15054 setopt NO_GLOB_SUBST
15055 fi
15056 # Now quote all the things that may contain metacharacters while being
15057 # careful not to overquote the AC_SUBSTed values. We take copies of the
15058 # variables and quote the copies for generation of the libtool script.
15059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15060 SED SHELL STRIP \
15061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15063 deplibs_check_method reload_flag reload_cmds need_locks \
15064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15065 lt_cv_sys_global_symbol_to_c_name_address \
15066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15067 old_postinstall_cmds old_postuninstall_cmds \
15068 compiler_F77 \
15069 CC_F77 \
15070 LD_F77 \
15071 lt_prog_compiler_wl_F77 \
15072 lt_prog_compiler_pic_F77 \
15073 lt_prog_compiler_static_F77 \
15074 lt_prog_compiler_no_builtin_flag_F77 \
15075 export_dynamic_flag_spec_F77 \
15076 thread_safe_flag_spec_F77 \
15077 whole_archive_flag_spec_F77 \
15078 enable_shared_with_static_runtimes_F77 \
15079 old_archive_cmds_F77 \
15080 old_archive_from_new_cmds_F77 \
15081 predep_objects_F77 \
15082 postdep_objects_F77 \
15083 predeps_F77 \
15084 postdeps_F77 \
15085 compiler_lib_search_path_F77 \
15086 archive_cmds_F77 \
15087 archive_expsym_cmds_F77 \
15088 postinstall_cmds_F77 \
15089 postuninstall_cmds_F77 \
15090 old_archive_from_expsyms_cmds_F77 \
15091 allow_undefined_flag_F77 \
15092 no_undefined_flag_F77 \
15093 export_symbols_cmds_F77 \
15094 hardcode_libdir_flag_spec_F77 \
15095 hardcode_libdir_flag_spec_ld_F77 \
15096 hardcode_libdir_separator_F77 \
15097 hardcode_automatic_F77 \
15098 module_cmds_F77 \
15099 module_expsym_cmds_F77 \
15100 lt_cv_prog_compiler_c_o_F77 \
15101 exclude_expsyms_F77 \
15102 include_expsyms_F77; do
15103
15104 case $var in
15105 old_archive_cmds_F77 | \
15106 old_archive_from_new_cmds_F77 | \
15107 archive_cmds_F77 | \
15108 archive_expsym_cmds_F77 | \
15109 module_cmds_F77 | \
15110 module_expsym_cmds_F77 | \
15111 old_archive_from_expsyms_cmds_F77 | \
15112 export_symbols_cmds_F77 | \
15113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15114 postinstall_cmds | postuninstall_cmds | \
15115 old_postinstall_cmds | old_postuninstall_cmds | \
15116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15117 # Double-quote double-evaled strings.
15118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15119 ;;
15120 *)
15121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15122 ;;
15123 esac
15124 done
15125
15126 case $lt_echo in
15127 *'\$0 --fallback-echo"')
15128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15129 ;;
15130 esac
15131
15132 cfgfile="$ofile"
15133
15134 cat <<__EOF__ >> "$cfgfile"
15135 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15136
15137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15138
15139 # Shell to use when invoking shell scripts.
15140 SHELL=$lt_SHELL
15141
15142 # Whether or not to build shared libraries.
15143 build_libtool_libs=$enable_shared
15144
15145 # Whether or not to build static libraries.
15146 build_old_libs=$enable_static
15147
15148 # Whether or not to add -lc for building shared libraries.
15149 build_libtool_need_lc=$archive_cmds_need_lc_F77
15150
15151 # Whether or not to disallow shared libs when runtime libs are static
15152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15153
15154 # Whether or not to optimize for fast installation.
15155 fast_install=$enable_fast_install
15156
15157 # The host system.
15158 host_alias=$host_alias
15159 host=$host
15160
15161 # An echo program that does not interpret backslashes.
15162 echo=$lt_echo
15163
15164 # The archiver.
15165 AR=$lt_AR
15166 AR_FLAGS=$lt_AR_FLAGS
15167
15168 # A C compiler.
15169 LTCC=$lt_LTCC
15170
15171 # A language-specific compiler.
15172 CC=$lt_compiler_F77
15173
15174 # Is the compiler the GNU C compiler?
15175 with_gcc=$GCC_F77
15176
15177 # An ERE matcher.
15178 EGREP=$lt_EGREP
15179
15180 # The linker used to build libraries.
15181 LD=$lt_LD_F77
15182
15183 # Whether we need hard or soft links.
15184 LN_S=$lt_LN_S
15185
15186 # A BSD-compatible nm program.
15187 NM=$lt_NM
15188
15189 # A symbol stripping program
15190 STRIP=$lt_STRIP
15191
15192 # Used to examine libraries when file_magic_cmd begins "file"
15193 MAGIC_CMD=$MAGIC_CMD
15194
15195 # Used on cygwin: DLL creation program.
15196 DLLTOOL="$DLLTOOL"
15197
15198 # Used on cygwin: object dumper.
15199 OBJDUMP="$OBJDUMP"
15200
15201 # Used on cygwin: assembler.
15202 AS="$AS"
15203
15204 # The name of the directory that contains temporary libtool files.
15205 objdir=$objdir
15206
15207 # How to create reloadable object files.
15208 reload_flag=$lt_reload_flag
15209 reload_cmds=$lt_reload_cmds
15210
15211 # How to pass a linker flag through the compiler.
15212 wl=$lt_lt_prog_compiler_wl_F77
15213
15214 # Object file suffix (normally "o").
15215 objext="$ac_objext"
15216
15217 # Old archive suffix (normally "a").
15218 libext="$libext"
15219
15220 # Shared library suffix (normally ".so").
15221 shrext_cmds='$shrext_cmds'
15222
15223 # Executable file suffix (normally "").
15224 exeext="$exeext"
15225
15226 # Additional compiler flags for building library objects.
15227 pic_flag=$lt_lt_prog_compiler_pic_F77
15228 pic_mode=$pic_mode
15229
15230 # What is the maximum length of a command?
15231 max_cmd_len=$lt_cv_sys_max_cmd_len
15232
15233 # Does compiler simultaneously support -c and -o options?
15234 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15235
15236 # Must we lock files when doing compilation ?
15237 need_locks=$lt_need_locks
15238
15239 # Do we need the lib prefix for modules?
15240 need_lib_prefix=$need_lib_prefix
15241
15242 # Do we need a version for libraries?
15243 need_version=$need_version
15244
15245 # Whether dlopen is supported.
15246 dlopen_support=$enable_dlopen
15247
15248 # Whether dlopen of programs is supported.
15249 dlopen_self=$enable_dlopen_self
15250
15251 # Whether dlopen of statically linked programs is supported.
15252 dlopen_self_static=$enable_dlopen_self_static
15253
15254 # Compiler flag to prevent dynamic linking.
15255 link_static_flag=$lt_lt_prog_compiler_static_F77
15256
15257 # Compiler flag to turn off builtin functions.
15258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15259
15260 # Compiler flag to allow reflexive dlopens.
15261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15262
15263 # Compiler flag to generate shared objects directly from archives.
15264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15265
15266 # Compiler flag to generate thread-safe objects.
15267 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15268
15269 # Library versioning type.
15270 version_type=$version_type
15271
15272 # Format of library name prefix.
15273 libname_spec=$lt_libname_spec
15274
15275 # List of archive names. First name is the real one, the rest are links.
15276 # The last name is the one that the linker finds with -lNAME.
15277 library_names_spec=$lt_library_names_spec
15278
15279 # The coded name of the library, if different from the real name.
15280 soname_spec=$lt_soname_spec
15281
15282 # Commands used to build and install an old-style archive.
15283 RANLIB=$lt_RANLIB
15284 old_archive_cmds=$lt_old_archive_cmds_F77
15285 old_postinstall_cmds=$lt_old_postinstall_cmds
15286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15287
15288 # Create an old-style archive from a shared archive.
15289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15290
15291 # Create a temporary old-style archive to link instead of a shared archive.
15292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15293
15294 # Commands used to build and install a shared archive.
15295 archive_cmds=$lt_archive_cmds_F77
15296 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15297 postinstall_cmds=$lt_postinstall_cmds
15298 postuninstall_cmds=$lt_postuninstall_cmds
15299
15300 # Commands used to build a loadable module (assumed same as above if empty)
15301 module_cmds=$lt_module_cmds_F77
15302 module_expsym_cmds=$lt_module_expsym_cmds_F77
15303
15304 # Commands to strip libraries.
15305 old_striplib=$lt_old_striplib
15306 striplib=$lt_striplib
15307
15308 # Dependencies to place before the objects being linked to create a
15309 # shared library.
15310 predep_objects=$lt_predep_objects_F77
15311
15312 # Dependencies to place after the objects being linked to create a
15313 # shared library.
15314 postdep_objects=$lt_postdep_objects_F77
15315
15316 # Dependencies to place before the objects being linked to create a
15317 # shared library.
15318 predeps=$lt_predeps_F77
15319
15320 # Dependencies to place after the objects being linked to create a
15321 # shared library.
15322 postdeps=$lt_postdeps_F77
15323
15324 # The library search path used internally by the compiler when linking
15325 # a shared library.
15326 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15327
15328 # Method to check whether dependent libraries are shared objects.
15329 deplibs_check_method=$lt_deplibs_check_method
15330
15331 # Command to use when deplibs_check_method == file_magic.
15332 file_magic_cmd=$lt_file_magic_cmd
15333
15334 # Flag that allows shared libraries with undefined symbols to be built.
15335 allow_undefined_flag=$lt_allow_undefined_flag_F77
15336
15337 # Flag that forces no undefined symbols.
15338 no_undefined_flag=$lt_no_undefined_flag_F77
15339
15340 # Commands used to finish a libtool library installation in a directory.
15341 finish_cmds=$lt_finish_cmds
15342
15343 # Same as above, but a single script fragment to be evaled but not shown.
15344 finish_eval=$lt_finish_eval
15345
15346 # Take the output of nm and produce a listing of raw symbols and C names.
15347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15348
15349 # Transform the output of nm in a proper C declaration
15350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15351
15352 # Transform the output of nm in a C name address pair
15353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15354
15355 # This is the shared library runtime path variable.
15356 runpath_var=$runpath_var
15357
15358 # This is the shared library path variable.
15359 shlibpath_var=$shlibpath_var
15360
15361 # Is shlibpath searched before the hard-coded library search path?
15362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15363
15364 # How to hardcode a shared library path into an executable.
15365 hardcode_action=$hardcode_action_F77
15366
15367 # Whether we should hardcode library paths into libraries.
15368 hardcode_into_libs=$hardcode_into_libs
15369
15370 # Flag to hardcode \$libdir into a binary during linking.
15371 # This must work even if \$libdir does not exist.
15372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15373
15374 # If ld is used when linking, flag to hardcode \$libdir into
15375 # a binary during linking. This must work even if \$libdir does
15376 # not exist.
15377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15378
15379 # Whether we need a single -rpath flag with a separated argument.
15380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15381
15382 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15383 # resulting binary.
15384 hardcode_direct=$hardcode_direct_F77
15385
15386 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15387 # resulting binary.
15388 hardcode_minus_L=$hardcode_minus_L_F77
15389
15390 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15391 # the resulting binary.
15392 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15393
15394 # Set to yes if building a shared library automatically hardcodes DIR into the library
15395 # and all subsequent libraries and executables linked against it.
15396 hardcode_automatic=$hardcode_automatic_F77
15397
15398 # Variables whose values should be saved in libtool wrapper scripts and
15399 # restored at relink time.
15400 variables_saved_for_relink="$variables_saved_for_relink"
15401
15402 # Whether libtool must link a program against all its dependency libraries.
15403 link_all_deplibs=$link_all_deplibs_F77
15404
15405 # Compile-time system search path for libraries
15406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15407
15408 # Run-time system search path for libraries
15409 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15410
15411 # Fix the shell variable \$srcfile for the compiler.
15412 fix_srcfile_path="$fix_srcfile_path_F77"
15413
15414 # Set to yes if exported symbols are required.
15415 always_export_symbols=$always_export_symbols_F77
15416
15417 # The commands to list exported symbols.
15418 export_symbols_cmds=$lt_export_symbols_cmds_F77
15419
15420 # The commands to extract the exported symbol list from a shared archive.
15421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15422
15423 # Symbols that should not be listed in the preloaded symbols.
15424 exclude_expsyms=$lt_exclude_expsyms_F77
15425
15426 # Symbols that must always be exported.
15427 include_expsyms=$lt_include_expsyms_F77
15428
15429 # ### END LIBTOOL TAG CONFIG: $tagname
15430
15431 __EOF__
15432
15433
15434 else
15435 # If there is no Makefile yet, we rely on a make rule to execute
15436 # `config.status --recheck' to rerun these tests and create the
15437 # libtool script then.
15438 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15439 if test -f "$ltmain_in"; then
15440 test -f Makefile && make "$ltmain"
15441 fi
15442 fi
15443
15444
15445 ac_ext=cc
15446 ac_cpp='$CXXCPP $CPPFLAGS'
15447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15450
15451 CC="$lt_save_CC"
15452
15453 else
15454 tagname=""
15455 fi
15456 ;;
15457
15458 GCJ)
15459 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15460
15461
15462
15463 # Source file extension for Java test sources.
15464 ac_ext=java
15465
15466 # Object file extension for compiled Java test sources.
15467 objext=o
15468 objext_GCJ=$objext
15469
15470 # Code to be used in simple compile tests
15471 lt_simple_compile_test_code="class foo {}\n"
15472
15473 # Code to be used in simple link tests
15474 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15475
15476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15477
15478 # If no C compiler was specified, use CC.
15479 LTCC=${LTCC-"$CC"}
15480
15481 # Allow CC to be a program name with arguments.
15482 compiler=$CC
15483
15484
15485 # Allow CC to be a program name with arguments.
15486 lt_save_CC="$CC"
15487 CC=${GCJ-"gcj"}
15488 compiler=$CC
15489 compiler_GCJ=$CC
15490
15491 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15492 archive_cmds_need_lc_GCJ=no
15493
15494
15495 lt_prog_compiler_no_builtin_flag_GCJ=
15496
15497 if test "$GCC" = yes; then
15498 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15499
15500
15501 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15502 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15503 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506 lt_cv_prog_compiler_rtti_exceptions=no
15507 ac_outfile=conftest.$ac_objext
15508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15509 lt_compiler_flag="-fno-rtti -fno-exceptions"
15510 # Insert the option either (1) after the last *FLAGS variable, or
15511 # (2) before a word containing "conftest.", or (3) at the end.
15512 # Note that $ac_compile itself does not contain backslashes and begins
15513 # with a dollar sign (not a hyphen), so the echo should work correctly.
15514 # The option is referenced via a variable to avoid confusing sed.
15515 lt_compile=`echo "$ac_compile" | $SED \
15516 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15518 -e 's:$: $lt_compiler_flag:'`
15519 (eval echo "\"\$as_me:15519: $lt_compile\"" >&5)
15520 (eval "$lt_compile" 2>conftest.err)
15521 ac_status=$?
15522 cat conftest.err >&5
15523 echo "$as_me:15523: \$? = $ac_status" >&5
15524 if (exit $ac_status) && test -s "$ac_outfile"; then
15525 # The compiler can only warn and ignore the option if not recognized
15526 # So say no if there are warnings
15527 if test ! -s conftest.err; then
15528 lt_cv_prog_compiler_rtti_exceptions=yes
15529 fi
15530 fi
15531 $rm conftest*
15532
15533 fi
15534 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15535 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15536
15537 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15538 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15539 else
15540 :
15541 fi
15542
15543 fi
15544
15545 lt_prog_compiler_wl_GCJ=
15546 lt_prog_compiler_pic_GCJ=
15547 lt_prog_compiler_static_GCJ=
15548
15549 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15550 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15551
15552 if test "$GCC" = yes; then
15553 lt_prog_compiler_wl_GCJ='-Wl,'
15554 lt_prog_compiler_static_GCJ='-static'
15555
15556 case $host_os in
15557 aix*)
15558 # All AIX code is PIC.
15559 if test "$host_cpu" = ia64; then
15560 # AIX 5 now supports IA64 processor
15561 lt_prog_compiler_static_GCJ='-Bstatic'
15562 fi
15563 ;;
15564
15565 amigaos*)
15566 # FIXME: we need at least 68020 code to build shared libraries, but
15567 # adding the `-m68020' flag to GCC prevents building anything better,
15568 # like `-m68040'.
15569 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15570 ;;
15571
15572 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15573 # PIC is the default for these OSes.
15574 ;;
15575
15576 mingw* | pw32* | os2*)
15577 # This hack is so that the source file can tell whether it is being
15578 # built for inclusion in a dll (and should export symbols for example).
15579 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15580 ;;
15581
15582 darwin* | rhapsody*)
15583 # PIC is the default on this platform
15584 # Common symbols not allowed in MH_DYLIB files
15585 lt_prog_compiler_pic_GCJ='-fno-common'
15586 ;;
15587
15588 msdosdjgpp*)
15589 # Just because we use GCC doesn't mean we suddenly get shared libraries
15590 # on systems that don't support them.
15591 lt_prog_compiler_can_build_shared_GCJ=no
15592 enable_shared=no
15593 ;;
15594
15595 sysv4*MP*)
15596 if test -d /usr/nec; then
15597 lt_prog_compiler_pic_GCJ=-Kconform_pic
15598 fi
15599 ;;
15600
15601 hpux*)
15602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15603 # not for PA HP-UX.
15604 case "$host_cpu" in
15605 hppa*64*|ia64*)
15606 # +Z the default
15607 ;;
15608 *)
15609 lt_prog_compiler_pic_GCJ='-fPIC'
15610 ;;
15611 esac
15612 ;;
15613
15614 *)
15615 lt_prog_compiler_pic_GCJ='-fPIC'
15616 ;;
15617 esac
15618 else
15619 # PORTME Check for flag to pass linker flags through the system compiler.
15620 case $host_os in
15621 aix*)
15622 lt_prog_compiler_wl_GCJ='-Wl,'
15623 if test "$host_cpu" = ia64; then
15624 # AIX 5 now supports IA64 processor
15625 lt_prog_compiler_static_GCJ='-Bstatic'
15626 else
15627 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15628 fi
15629 ;;
15630
15631 mingw* | pw32* | os2*)
15632 # This hack is so that the source file can tell whether it is being
15633 # built for inclusion in a dll (and should export symbols for example).
15634 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15635 ;;
15636
15637 hpux9* | hpux10* | hpux11*)
15638 lt_prog_compiler_wl_GCJ='-Wl,'
15639 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15640 # not for PA HP-UX.
15641 case "$host_cpu" in
15642 hppa*64*|ia64*)
15643 # +Z the default
15644 ;;
15645 *)
15646 lt_prog_compiler_pic_GCJ='+Z'
15647 ;;
15648 esac
15649 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15650 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15651 ;;
15652
15653 irix5* | irix6* | nonstopux*)
15654 lt_prog_compiler_wl_GCJ='-Wl,'
15655 # PIC (with -KPIC) is the default.
15656 lt_prog_compiler_static_GCJ='-non_shared'
15657 ;;
15658
15659 newsos6)
15660 lt_prog_compiler_pic_GCJ='-KPIC'
15661 lt_prog_compiler_static_GCJ='-Bstatic'
15662 ;;
15663
15664 linux*)
15665 case $CC in
15666 icc* | ecc*)
15667 lt_prog_compiler_wl_GCJ='-Wl,'
15668 lt_prog_compiler_pic_GCJ='-KPIC'
15669 lt_prog_compiler_static_GCJ='-static'
15670 ;;
15671 ccc*)
15672 lt_prog_compiler_wl_GCJ='-Wl,'
15673 # All Alpha code is PIC.
15674 lt_prog_compiler_static_GCJ='-non_shared'
15675 ;;
15676 esac
15677 ;;
15678
15679 osf3* | osf4* | osf5*)
15680 lt_prog_compiler_wl_GCJ='-Wl,'
15681 # All OSF/1 code is PIC.
15682 lt_prog_compiler_static_GCJ='-non_shared'
15683 ;;
15684
15685 sco3.2v5*)
15686 lt_prog_compiler_pic_GCJ='-Kpic'
15687 lt_prog_compiler_static_GCJ='-dn'
15688 ;;
15689
15690 solaris*)
15691 lt_prog_compiler_wl_GCJ='-Wl,'
15692 lt_prog_compiler_pic_GCJ='-KPIC'
15693 lt_prog_compiler_static_GCJ='-Bstatic'
15694 ;;
15695
15696 sunos4*)
15697 lt_prog_compiler_wl_GCJ='-Qoption ld '
15698 lt_prog_compiler_pic_GCJ='-PIC'
15699 lt_prog_compiler_static_GCJ='-Bstatic'
15700 ;;
15701
15702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15703 lt_prog_compiler_wl_GCJ='-Wl,'
15704 lt_prog_compiler_pic_GCJ='-KPIC'
15705 lt_prog_compiler_static_GCJ='-Bstatic'
15706 ;;
15707
15708 sysv4*MP*)
15709 if test -d /usr/nec ;then
15710 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15711 lt_prog_compiler_static_GCJ='-Bstatic'
15712 fi
15713 ;;
15714
15715 uts4*)
15716 lt_prog_compiler_pic_GCJ='-pic'
15717 lt_prog_compiler_static_GCJ='-Bstatic'
15718 ;;
15719
15720 *)
15721 lt_prog_compiler_can_build_shared_GCJ=no
15722 ;;
15723 esac
15724 fi
15725
15726 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15727 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15728
15729 #
15730 # Check to make sure the PIC flag actually works.
15731 #
15732 if test -n "$lt_prog_compiler_pic_GCJ"; then
15733
15734 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15735 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15736 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 else
15739 lt_prog_compiler_pic_works_GCJ=no
15740 ac_outfile=conftest.$ac_objext
15741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15742 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15743 # Insert the option either (1) after the last *FLAGS variable, or
15744 # (2) before a word containing "conftest.", or (3) at the end.
15745 # Note that $ac_compile itself does not contain backslashes and begins
15746 # with a dollar sign (not a hyphen), so the echo should work correctly.
15747 # The option is referenced via a variable to avoid confusing sed.
15748 lt_compile=`echo "$ac_compile" | $SED \
15749 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15751 -e 's:$: $lt_compiler_flag:'`
15752 (eval echo "\"\$as_me:15752: $lt_compile\"" >&5)
15753 (eval "$lt_compile" 2>conftest.err)
15754 ac_status=$?
15755 cat conftest.err >&5
15756 echo "$as_me:15756: \$? = $ac_status" >&5
15757 if (exit $ac_status) && test -s "$ac_outfile"; then
15758 # The compiler can only warn and ignore the option if not recognized
15759 # So say no if there are warnings
15760 if test ! -s conftest.err; then
15761 lt_prog_compiler_pic_works_GCJ=yes
15762 fi
15763 fi
15764 $rm conftest*
15765
15766 fi
15767 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15768 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15769
15770 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15771 case $lt_prog_compiler_pic_GCJ in
15772 "" | " "*) ;;
15773 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15774 esac
15775 else
15776 lt_prog_compiler_pic_GCJ=
15777 lt_prog_compiler_can_build_shared_GCJ=no
15778 fi
15779
15780 fi
15781 case "$host_os" in
15782 # For platforms which do not support PIC, -DPIC is meaningless:
15783 *djgpp*)
15784 lt_prog_compiler_pic_GCJ=
15785 ;;
15786 *)
15787 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15788 ;;
15789 esac
15790
15791 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15792 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15793 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 lt_cv_prog_compiler_c_o_GCJ=no
15797 $rm -r conftest 2>/dev/null
15798 mkdir conftest
15799 cd conftest
15800 mkdir out
15801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15802
15803 lt_compiler_flag="-o out/conftest2.$ac_objext"
15804 # Insert the option either (1) after the last *FLAGS variable, or
15805 # (2) before a word containing "conftest.", or (3) at the end.
15806 # Note that $ac_compile itself does not contain backslashes and begins
15807 # with a dollar sign (not a hyphen), so the echo should work correctly.
15808 lt_compile=`echo "$ac_compile" | $SED \
15809 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15811 -e 's:$: $lt_compiler_flag:'`
15812 (eval echo "\"\$as_me:15812: $lt_compile\"" >&5)
15813 (eval "$lt_compile" 2>out/conftest.err)
15814 ac_status=$?
15815 cat out/conftest.err >&5
15816 echo "$as_me:15816: \$? = $ac_status" >&5
15817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15818 then
15819 # The compiler can only warn and ignore the option if not recognized
15820 # So say no if there are warnings
15821 if test ! -s out/conftest.err; then
15822 lt_cv_prog_compiler_c_o_GCJ=yes
15823 fi
15824 fi
15825 chmod u+w .
15826 $rm conftest*
15827 # SGI C++ compiler will create directory out/ii_files/ for
15828 # template instantiation
15829 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15830 $rm out/* && rmdir out
15831 cd ..
15832 rmdir conftest
15833 $rm conftest*
15834
15835 fi
15836 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15837 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15838
15839
15840 hard_links="nottested"
15841 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15842 # do not overwrite the value of need_locks provided by the user
15843 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15844 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15845 hard_links=yes
15846 $rm conftest*
15847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15848 touch conftest.a
15849 ln conftest.a conftest.b 2>&5 || hard_links=no
15850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15851 echo "$as_me:$LINENO: result: $hard_links" >&5
15852 echo "${ECHO_T}$hard_links" >&6
15853 if test "$hard_links" = no; then
15854 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15855 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15856 need_locks=warn
15857 fi
15858 else
15859 need_locks=no
15860 fi
15861
15862 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15863 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15864
15865 runpath_var=
15866 allow_undefined_flag_GCJ=
15867 enable_shared_with_static_runtimes_GCJ=no
15868 archive_cmds_GCJ=
15869 archive_expsym_cmds_GCJ=
15870 old_archive_From_new_cmds_GCJ=
15871 old_archive_from_expsyms_cmds_GCJ=
15872 export_dynamic_flag_spec_GCJ=
15873 whole_archive_flag_spec_GCJ=
15874 thread_safe_flag_spec_GCJ=
15875 hardcode_libdir_flag_spec_GCJ=
15876 hardcode_libdir_flag_spec_ld_GCJ=
15877 hardcode_libdir_separator_GCJ=
15878 hardcode_direct_GCJ=no
15879 hardcode_minus_L_GCJ=no
15880 hardcode_shlibpath_var_GCJ=unsupported
15881 link_all_deplibs_GCJ=unknown
15882 hardcode_automatic_GCJ=no
15883 module_cmds_GCJ=
15884 module_expsym_cmds_GCJ=
15885 always_export_symbols_GCJ=no
15886 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15887 # include_expsyms should be a list of space-separated symbols to be *always*
15888 # included in the symbol list
15889 include_expsyms_GCJ=
15890 # exclude_expsyms can be an extended regexp of symbols to exclude
15891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15893 # as well as any symbol that contains `d'.
15894 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15896 # platforms (ab)use it in PIC code, but their linkers get confused if
15897 # the symbol is explicitly referenced. Since portable code cannot
15898 # rely on this symbol name, it's probably fine to never include it in
15899 # preloaded symbol tables.
15900 extract_expsyms_cmds=
15901
15902 case $host_os in
15903 cygwin* | mingw* | pw32*)
15904 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15905 # When not using gcc, we currently assume that we are using
15906 # Microsoft Visual C++.
15907 if test "$GCC" != yes; then
15908 with_gnu_ld=no
15909 fi
15910 ;;
15911 openbsd*)
15912 with_gnu_ld=no
15913 ;;
15914 esac
15915
15916 ld_shlibs_GCJ=yes
15917 if test "$with_gnu_ld" = yes; then
15918 # If archive_cmds runs LD, not CC, wlarc should be empty
15919 wlarc='${wl}'
15920
15921 # See if GNU ld supports shared libraries.
15922 case $host_os in
15923 aix3* | aix4* | aix5*)
15924 # On AIX/PPC, the GNU linker is very broken
15925 if test "$host_cpu" != ia64; then
15926 ld_shlibs_GCJ=no
15927 cat <<EOF 1>&2
15928
15929 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15930 *** to be unable to reliably create shared libraries on AIX.
15931 *** Therefore, libtool is disabling shared libraries support. If you
15932 *** really care for shared libraries, you may want to modify your PATH
15933 *** so that a non-GNU linker is found, and then restart.
15934
15935 EOF
15936 fi
15937 ;;
15938
15939 amigaos*)
15940 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)'
15941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15942 hardcode_minus_L_GCJ=yes
15943
15944 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15945 # that the semantics of dynamic libraries on AmigaOS, at least up
15946 # to version 4, is to share data among multiple programs linked
15947 # with the same dynamic library. Since this doesn't match the
15948 # behavior of shared libraries on other platforms, we can't use
15949 # them.
15950 ld_shlibs_GCJ=no
15951 ;;
15952
15953 beos*)
15954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15955 allow_undefined_flag_GCJ=unsupported
15956 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15957 # support --undefined. This deserves some investigation. FIXME
15958 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15959 else
15960 ld_shlibs_GCJ=no
15961 fi
15962 ;;
15963
15964 cygwin* | mingw* | pw32*)
15965 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15966 # as there is no search path for DLLs.
15967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15968 allow_undefined_flag_GCJ=unsupported
15969 always_export_symbols_GCJ=no
15970 enable_shared_with_static_runtimes_GCJ=yes
15971 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15972
15973 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15974 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15975 # If the export-symbols file already is a .def file (1st line
15976 # is EXPORTS), use it as is; otherwise, prepend...
15977 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15978 cp $export_symbols $output_objdir/$soname.def;
15979 else
15980 echo EXPORTS > $output_objdir/$soname.def;
15981 cat $export_symbols >> $output_objdir/$soname.def;
15982 fi~
15983 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15984 else
15985 ld_shlibs=no
15986 fi
15987 ;;
15988
15989 netbsd*)
15990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15991 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15992 wlarc=
15993 else
15994 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15995 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15996 fi
15997 ;;
15998
15999 solaris* | sysv5*)
16000 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16001 ld_shlibs_GCJ=no
16002 cat <<EOF 1>&2
16003
16004 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16005 *** create shared libraries on Solaris systems. Therefore, libtool
16006 *** is disabling shared libraries support. We urge you to upgrade GNU
16007 *** binutils to release 2.9.1 or newer. Another option is to modify
16008 *** your PATH or compiler configuration so that the native linker is
16009 *** used, and then restart.
16010
16011 EOF
16012 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16013 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16014 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16015 else
16016 ld_shlibs_GCJ=no
16017 fi
16018 ;;
16019
16020 sunos4*)
16021 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16022 wlarc=
16023 hardcode_direct_GCJ=yes
16024 hardcode_shlibpath_var_GCJ=no
16025 ;;
16026
16027 linux*)
16028 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16029 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030 archive_cmds_GCJ="$tmp_archive_cmds"
16031 supports_anon_versioning=no
16032 case `$LD -v 2>/dev/null` in
16033 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16034 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16035 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16036 *\ 2.11.*) ;; # other 2.11 versions
16037 *) supports_anon_versioning=yes ;;
16038 esac
16039 if test $supports_anon_versioning = yes; then
16040 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16042 $echo "local: *; };" >> $output_objdir/$libname.ver~
16043 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16044 else
16045 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16046 fi
16047 else
16048 ld_shlibs_GCJ=no
16049 fi
16050 ;;
16051
16052 *)
16053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16054 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16055 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16056 else
16057 ld_shlibs_GCJ=no
16058 fi
16059 ;;
16060 esac
16061
16062 if test "$ld_shlibs_GCJ" = yes; then
16063 runpath_var=LD_RUN_PATH
16064 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16065 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16066 # ancient GNU ld didn't support --whole-archive et. al.
16067 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16068 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16069 else
16070 whole_archive_flag_spec_GCJ=
16071 fi
16072 fi
16073 else
16074 # PORTME fill in a description of your system's linker (not GNU ld)
16075 case $host_os in
16076 aix3*)
16077 allow_undefined_flag_GCJ=unsupported
16078 always_export_symbols_GCJ=yes
16079 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'
16080 # Note: this linker hardcodes the directories in LIBPATH if there
16081 # are no directories specified by -L.
16082 hardcode_minus_L_GCJ=yes
16083 if test "$GCC" = yes && test -z "$link_static_flag"; then
16084 # Neither direct hardcoding nor static linking is supported with a
16085 # broken collect2.
16086 hardcode_direct_GCJ=unsupported
16087 fi
16088 ;;
16089
16090 aix4* | aix5*)
16091 if test "$host_cpu" = ia64; then
16092 # On IA64, the linker does run time linking by default, so we don't
16093 # have to do anything special.
16094 aix_use_runtimelinking=no
16095 exp_sym_flag='-Bexport'
16096 no_entry_flag=""
16097 else
16098 # If we're using GNU nm, then we don't want the "-C" option.
16099 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16100 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16101 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'
16102 else
16103 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'
16104 fi
16105 aix_use_runtimelinking=no
16106
16107 # Test if we are trying to use run time linking or normal
16108 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16109 # need to do runtime linking.
16110 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16111 for ld_flag in $LDFLAGS; do
16112 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16113 aix_use_runtimelinking=yes
16114 break
16115 fi
16116 done
16117 esac
16118
16119 exp_sym_flag='-bexport'
16120 no_entry_flag='-bnoentry'
16121 fi
16122
16123 # When large executables or shared objects are built, AIX ld can
16124 # have problems creating the table of contents. If linking a library
16125 # or program results in "error TOC overflow" add -mminimal-toc to
16126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16128
16129 archive_cmds_GCJ=''
16130 hardcode_direct_GCJ=yes
16131 hardcode_libdir_separator_GCJ=':'
16132 link_all_deplibs_GCJ=yes
16133
16134 if test "$GCC" = yes; then
16135 case $host_os in aix4.012|aix4.012.*)
16136 # We only want to do this on AIX 4.2 and lower, the check
16137 # below for broken collect2 doesn't work under 4.3+
16138 collect2name=`${CC} -print-prog-name=collect2`
16139 if test -f "$collect2name" && \
16140 strings "$collect2name" | grep resolve_lib_name >/dev/null
16141 then
16142 # We have reworked collect2
16143 hardcode_direct_GCJ=yes
16144 else
16145 # We have old collect2
16146 hardcode_direct_GCJ=unsupported
16147 # It fails to find uninstalled libraries when the uninstalled
16148 # path is not listed in the libpath. Setting hardcode_minus_L
16149 # to unsupported forces relinking
16150 hardcode_minus_L_GCJ=yes
16151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16152 hardcode_libdir_separator_GCJ=
16153 fi
16154 esac
16155 shared_flag='-shared'
16156 else
16157 # not using gcc
16158 if test "$host_cpu" = ia64; then
16159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16160 # chokes on -Wl,-G. The following line is correct:
16161 shared_flag='-G'
16162 else
16163 if test "$aix_use_runtimelinking" = yes; then
16164 shared_flag='${wl}-G'
16165 else
16166 shared_flag='${wl}-bM:SRE'
16167 fi
16168 fi
16169 fi
16170
16171 # It seems that -bexpall does not export symbols beginning with
16172 # underscore (_), so it is better to generate a list of symbols to export.
16173 always_export_symbols_GCJ=yes
16174 if test "$aix_use_runtimelinking" = yes; then
16175 # Warning - without using the other runtime loading flags (-brtl),
16176 # -berok will link without error, but may produce a broken library.
16177 allow_undefined_flag_GCJ='-berok'
16178 # Determine the default libpath from the value encoded in an empty executable.
16179 cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h. */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185
16186 int
16187 main ()
16188 {
16189
16190 ;
16191 return 0;
16192 }
16193 _ACEOF
16194 rm -f conftest.$ac_objext conftest$ac_exeext
16195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16196 (eval $ac_link) 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } &&
16203 { ac_try='test -z "$ac_cxx_werror_flag"
16204 || test ! -s conftest.err'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest$ac_exeext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216
16217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16218 }'`
16219 # Check for a 64-bit object if we didn't find anything.
16220 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; }
16221 }'`; fi
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 fi
16227 rm -f conftest.err conftest.$ac_objext \
16228 conftest$ac_exeext conftest.$ac_ext
16229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16230
16231 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16232 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"
16233 else
16234 if test "$host_cpu" = ia64; then
16235 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16236 allow_undefined_flag_GCJ="-z nodefs"
16237 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"
16238 else
16239 # Determine the default libpath from the value encoded in an empty executable.
16240 cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h. */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246
16247 int
16248 main ()
16249 {
16250
16251 ;
16252 return 0;
16253 }
16254 _ACEOF
16255 rm -f conftest.$ac_objext conftest$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_cxx_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277
16278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16279 }'`
16280 # Check for a 64-bit object if we didn't find anything.
16281 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; }
16282 }'`; fi
16283 else
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16286
16287 fi
16288 rm -f conftest.err conftest.$ac_objext \
16289 conftest$ac_exeext conftest.$ac_ext
16290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16291
16292 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16293 # Warning - without using the other run time loading flags,
16294 # -berok will link without error, but may produce a broken library.
16295 no_undefined_flag_GCJ=' ${wl}-bernotok'
16296 allow_undefined_flag_GCJ=' ${wl}-berok'
16297 # -bexpall does not export symbols beginning with underscore (_)
16298 always_export_symbols_GCJ=yes
16299 # Exported symbols can be pulled into shared objects from archives
16300 whole_archive_flag_spec_GCJ=' '
16301 archive_cmds_need_lc_GCJ=yes
16302 # This is similar to how AIX traditionally builds it's shared libraries.
16303 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'
16304 fi
16305 fi
16306 ;;
16307
16308 amigaos*)
16309 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)'
16310 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16311 hardcode_minus_L_GCJ=yes
16312 # see comment about different semantics on the GNU ld section
16313 ld_shlibs_GCJ=no
16314 ;;
16315
16316 bsdi4*)
16317 export_dynamic_flag_spec_GCJ=-rdynamic
16318 ;;
16319
16320 cygwin* | mingw* | pw32*)
16321 # When not using gcc, we currently assume that we are using
16322 # Microsoft Visual C++.
16323 # hardcode_libdir_flag_spec is actually meaningless, as there is
16324 # no search path for DLLs.
16325 hardcode_libdir_flag_spec_GCJ=' '
16326 allow_undefined_flag_GCJ=unsupported
16327 # Tell ltmain to make .lib files, not .a files.
16328 libext=lib
16329 # Tell ltmain to make .dll files, not .so files.
16330 shrext_cmds=".dll"
16331 # FIXME: Setting linknames here is a bad hack.
16332 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16333 # The linker will automatically build a .lib file if we build a DLL.
16334 old_archive_From_new_cmds_GCJ='true'
16335 # FIXME: Should let the user specify the lib program.
16336 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16337 fix_srcfile_path='`cygpath -w "$srcfile"`'
16338 enable_shared_with_static_runtimes_GCJ=yes
16339 ;;
16340
16341 darwin* | rhapsody*)
16342 if test "$GXX" = yes ; then
16343 archive_cmds_need_lc_GCJ=no
16344 case "$host_os" in
16345 rhapsody* | darwin1.[012])
16346 allow_undefined_flag_GCJ='-undefined suppress'
16347 ;;
16348 *) # Darwin 1.3 on
16349 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16350 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16351 else
16352 case ${MACOSX_DEPLOYMENT_TARGET} in
16353 10.[012])
16354 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16355 ;;
16356 10.*)
16357 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16358 ;;
16359 esac
16360 fi
16361 ;;
16362 esac
16363 lt_int_apple_cc_single_mod=no
16364 output_verbose_link_cmd='echo'
16365 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16366 lt_int_apple_cc_single_mod=yes
16367 fi
16368 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16369 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16370 else
16371 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'
16372 fi
16373 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16374 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16375 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16376 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}'
16377 else
16378 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}'
16379 fi
16380 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}'
16381 hardcode_direct_GCJ=no
16382 hardcode_automatic_GCJ=yes
16383 hardcode_shlibpath_var_GCJ=unsupported
16384 whole_archive_flag_spec_GCJ='-all_load $convenience'
16385 link_all_deplibs_GCJ=yes
16386 else
16387 ld_shlibs_GCJ=no
16388 fi
16389 ;;
16390
16391 dgux*)
16392 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16393 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16394 hardcode_shlibpath_var_GCJ=no
16395 ;;
16396
16397 freebsd1*)
16398 ld_shlibs_GCJ=no
16399 ;;
16400
16401 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16402 # support. Future versions do this automatically, but an explicit c++rt0.o
16403 # does not break anything, and helps significantly (at the cost of a little
16404 # extra space).
16405 freebsd2.2*)
16406 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16407 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16408 hardcode_direct_GCJ=yes
16409 hardcode_shlibpath_var_GCJ=no
16410 ;;
16411
16412 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16413 freebsd2*)
16414 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16415 hardcode_direct_GCJ=yes
16416 hardcode_minus_L_GCJ=yes
16417 hardcode_shlibpath_var_GCJ=no
16418 ;;
16419
16420 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16421 freebsd* | kfreebsd*-gnu)
16422 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16423 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16424 hardcode_direct_GCJ=yes
16425 hardcode_shlibpath_var_GCJ=no
16426 ;;
16427
16428 hpux9*)
16429 if test "$GCC" = yes; then
16430 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'
16431 else
16432 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'
16433 fi
16434 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16435 hardcode_libdir_separator_GCJ=:
16436 hardcode_direct_GCJ=yes
16437
16438 # hardcode_minus_L: Not really in the search PATH,
16439 # but as the default location of the library.
16440 hardcode_minus_L_GCJ=yes
16441 export_dynamic_flag_spec_GCJ='${wl}-E'
16442 ;;
16443
16444 hpux10* | hpux11*)
16445 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16446 case "$host_cpu" in
16447 hppa*64*|ia64*)
16448 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 ;;
16450 *)
16451 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16452 ;;
16453 esac
16454 else
16455 case "$host_cpu" in
16456 hppa*64*|ia64*)
16457 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 ;;
16459 *)
16460 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16461 ;;
16462 esac
16463 fi
16464 if test "$with_gnu_ld" = no; then
16465 case "$host_cpu" in
16466 hppa*64*)
16467 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16468 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16469 hardcode_libdir_separator_GCJ=:
16470 hardcode_direct_GCJ=no
16471 hardcode_shlibpath_var_GCJ=no
16472 ;;
16473 ia64*)
16474 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16475 hardcode_direct_GCJ=no
16476 hardcode_shlibpath_var_GCJ=no
16477
16478 # hardcode_minus_L: Not really in the search PATH,
16479 # but as the default location of the library.
16480 hardcode_minus_L_GCJ=yes
16481 ;;
16482 *)
16483 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16484 hardcode_libdir_separator_GCJ=:
16485 hardcode_direct_GCJ=yes
16486 export_dynamic_flag_spec_GCJ='${wl}-E'
16487
16488 # hardcode_minus_L: Not really in the search PATH,
16489 # but as the default location of the library.
16490 hardcode_minus_L_GCJ=yes
16491 ;;
16492 esac
16493 fi
16494 ;;
16495
16496 irix5* | irix6* | nonstopux*)
16497 if test "$GCC" = yes; then
16498 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'
16499 else
16500 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'
16501 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16502 fi
16503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16504 hardcode_libdir_separator_GCJ=:
16505 link_all_deplibs_GCJ=yes
16506 ;;
16507
16508 netbsd*)
16509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16510 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16511 else
16512 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16513 fi
16514 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16515 hardcode_direct_GCJ=yes
16516 hardcode_shlibpath_var_GCJ=no
16517 ;;
16518
16519 newsos6)
16520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_direct_GCJ=yes
16522 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16523 hardcode_libdir_separator_GCJ=:
16524 hardcode_shlibpath_var_GCJ=no
16525 ;;
16526
16527 openbsd*)
16528 hardcode_direct_GCJ=yes
16529 hardcode_shlibpath_var_GCJ=no
16530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16531 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16533 export_dynamic_flag_spec_GCJ='${wl}-E'
16534 else
16535 case $host_os in
16536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16537 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16539 ;;
16540 *)
16541 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16542 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16543 ;;
16544 esac
16545 fi
16546 ;;
16547
16548 os2*)
16549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550 hardcode_minus_L_GCJ=yes
16551 allow_undefined_flag_GCJ=unsupported
16552 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'
16553 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16554 ;;
16555
16556 osf3*)
16557 if test "$GCC" = yes; then
16558 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16559 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'
16560 else
16561 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16562 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'
16563 fi
16564 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16565 hardcode_libdir_separator_GCJ=:
16566 ;;
16567
16568 osf4* | osf5*) # as osf3* with the addition of -msym flag
16569 if test "$GCC" = yes; then
16570 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16571 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'
16572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16573 else
16574 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16575 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'
16576 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~
16577 $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'
16578
16579 # Both c and cxx compiler support -rpath directly
16580 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16581 fi
16582 hardcode_libdir_separator_GCJ=:
16583 ;;
16584
16585 sco3.2v5*)
16586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_shlibpath_var_GCJ=no
16588 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16589 runpath_var=LD_RUN_PATH
16590 hardcode_runpath_var=yes
16591 ;;
16592
16593 solaris*)
16594 no_undefined_flag_GCJ=' -z text'
16595 if test "$GCC" = yes; then
16596 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16599 else
16600 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16601 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16603 fi
16604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16605 hardcode_shlibpath_var_GCJ=no
16606 case $host_os in
16607 solaris2.[0-5] | solaris2.[0-5].*) ;;
16608 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16609 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16610 esac
16611 link_all_deplibs_GCJ=yes
16612 ;;
16613
16614 sunos4*)
16615 if test "x$host_vendor" = xsequent; then
16616 # Use $CC to link under sequent, because it throws in some extra .o
16617 # files that make .init and .fini sections work.
16618 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16619 else
16620 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16621 fi
16622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16623 hardcode_direct_GCJ=yes
16624 hardcode_minus_L_GCJ=yes
16625 hardcode_shlibpath_var_GCJ=no
16626 ;;
16627
16628 sysv4)
16629 case $host_vendor in
16630 sni)
16631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_direct_GCJ=yes # is this really true???
16633 ;;
16634 siemens)
16635 ## LD is ld it makes a PLAMLIB
16636 ## CC just makes a GrossModule.
16637 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16638 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16639 hardcode_direct_GCJ=no
16640 ;;
16641 motorola)
16642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16643 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16644 ;;
16645 esac
16646 runpath_var='LD_RUN_PATH'
16647 hardcode_shlibpath_var_GCJ=no
16648 ;;
16649
16650 sysv4.3*)
16651 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 hardcode_shlibpath_var_GCJ=no
16653 export_dynamic_flag_spec_GCJ='-Bexport'
16654 ;;
16655
16656 sysv4*MP*)
16657 if test -d /usr/nec; then
16658 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16659 hardcode_shlibpath_var_GCJ=no
16660 runpath_var=LD_RUN_PATH
16661 hardcode_runpath_var=yes
16662 ld_shlibs_GCJ=yes
16663 fi
16664 ;;
16665
16666 sysv4.2uw2*)
16667 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_direct_GCJ=yes
16669 hardcode_minus_L_GCJ=no
16670 hardcode_shlibpath_var_GCJ=no
16671 hardcode_runpath_var=yes
16672 runpath_var=LD_RUN_PATH
16673 ;;
16674
16675 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16676 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16677 if test "$GCC" = yes; then
16678 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 else
16680 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16681 fi
16682 runpath_var='LD_RUN_PATH'
16683 hardcode_shlibpath_var_GCJ=no
16684 ;;
16685
16686 sysv5*)
16687 no_undefined_flag_GCJ=' -z text'
16688 # $CC -shared without GNU ld will not create a library from C++
16689 # object files and a static libstdc++, better avoid it by now
16690 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16691 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16692 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16693 hardcode_libdir_flag_spec_GCJ=
16694 hardcode_shlibpath_var_GCJ=no
16695 runpath_var='LD_RUN_PATH'
16696 ;;
16697
16698 uts4*)
16699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16701 hardcode_shlibpath_var_GCJ=no
16702 ;;
16703
16704 *)
16705 ld_shlibs_GCJ=no
16706 ;;
16707 esac
16708 fi
16709
16710 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16711 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16712 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16713
16714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16715 if test "$GCC" = yes; then
16716 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16717 fi
16718
16719 #
16720 # Do we need to explicitly link libc?
16721 #
16722 case "x$archive_cmds_need_lc_GCJ" in
16723 x|xyes)
16724 # Assume -lc should be added
16725 archive_cmds_need_lc_GCJ=yes
16726
16727 if test "$enable_shared" = yes && test "$GCC" = yes; then
16728 case $archive_cmds_GCJ in
16729 *'~'*)
16730 # FIXME: we may have to deal with multi-command sequences.
16731 ;;
16732 '$CC '*)
16733 # Test whether the compiler implicitly links with -lc since on some
16734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16735 # to ld, don't add -lc before -lgcc.
16736 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16737 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16738 $rm conftest*
16739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16740
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742 (eval $ac_compile) 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } 2>conftest.err; then
16746 soname=conftest
16747 lib=conftest
16748 libobjs=conftest.$ac_objext
16749 deplibs=
16750 wl=$lt_prog_compiler_wl_GCJ
16751 compiler_flags=-v
16752 linker_flags=-v
16753 verstring=
16754 output_objdir=.
16755 libname=conftest
16756 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16757 allow_undefined_flag_GCJ=
16758 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16759 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }
16763 then
16764 archive_cmds_need_lc_GCJ=no
16765 else
16766 archive_cmds_need_lc_GCJ=yes
16767 fi
16768 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16769 else
16770 cat conftest.err 1>&5
16771 fi
16772 $rm conftest*
16773 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16774 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16775 ;;
16776 esac
16777 fi
16778 ;;
16779 esac
16780
16781 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16783 library_names_spec=
16784 libname_spec='lib$name'
16785 soname_spec=
16786 shrext_cmds=".so"
16787 postinstall_cmds=
16788 postuninstall_cmds=
16789 finish_cmds=
16790 finish_eval=
16791 shlibpath_var=
16792 shlibpath_overrides_runpath=unknown
16793 version_type=none
16794 dynamic_linker="$host_os ld.so"
16795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16796 if test "$GCC" = yes; then
16797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16798 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16799 # if the path contains ";" then we assume it to be the separator
16800 # otherwise default to the standard path separator (i.e. ":") - it is
16801 # assumed that no part of a normal pathname contains ";" but that should
16802 # okay in the real world where ";" in dirpaths is itself problematic.
16803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16804 else
16805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16806 fi
16807 else
16808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16809 fi
16810 need_lib_prefix=unknown
16811 hardcode_into_libs=no
16812
16813 # when you set need_version to no, make sure it does not cause -set_version
16814 # flags to be left without arguments
16815 need_version=unknown
16816
16817 case $host_os in
16818 aix3*)
16819 version_type=linux
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16821 shlibpath_var=LIBPATH
16822
16823 # AIX 3 has no versioning support, so we append a major version to the name.
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 ;;
16826
16827 aix4* | aix5*)
16828 version_type=linux
16829 need_lib_prefix=no
16830 need_version=no
16831 hardcode_into_libs=yes
16832 if test "$host_cpu" = ia64; then
16833 # AIX 5 supports IA64
16834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 else
16837 # With GCC up to 2.95.x, collect2 would create an import file
16838 # for dependence libraries. The import file would start with
16839 # the line `#! .'. This would cause the generated library to
16840 # depend on `.', always an invalid library. This was fixed in
16841 # development snapshots of GCC prior to 3.0.
16842 case $host_os in
16843 aix4 | aix4.[01] | aix4.[01].*)
16844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16845 echo ' yes '
16846 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16847 :
16848 else
16849 can_build_shared=no
16850 fi
16851 ;;
16852 esac
16853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16854 # soname into executable. Probably we can add versioning support to
16855 # collect2, so additional links can be useful in future.
16856 if test "$aix_use_runtimelinking" = yes; then
16857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16858 # instead of lib<name>.a to let people know that these are not
16859 # typical AIX shared libraries.
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 else
16862 # We preserve .a as extension for shared libraries through AIX4.2
16863 # and later when we are not doing run time linking.
16864 library_names_spec='${libname}${release}.a $libname.a'
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 fi
16867 shlibpath_var=LIBPATH
16868 fi
16869 ;;
16870
16871 amigaos*)
16872 library_names_spec='$libname.ixlibrary $libname.a'
16873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16874 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'
16875 ;;
16876
16877 beos*)
16878 library_names_spec='${libname}${shared_ext}'
16879 dynamic_linker="$host_os ld.so"
16880 shlibpath_var=LIBRARY_PATH
16881 ;;
16882
16883 bsdi4*)
16884 version_type=linux
16885 need_version=no
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16889 shlibpath_var=LD_LIBRARY_PATH
16890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16892 # the default ld.so.conf also contains /usr/contrib/lib and
16893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16894 # libtool to hard-code these into programs
16895 ;;
16896
16897 cygwin* | mingw* | pw32*)
16898 version_type=windows
16899 shrext_cmds=".dll"
16900 need_version=no
16901 need_lib_prefix=no
16902
16903 case $GCC,$host_os in
16904 yes,cygwin* | yes,mingw* | yes,pw32*)
16905 library_names_spec='$libname.dll.a'
16906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16907 postinstall_cmds='base_file=`basename \${file}`~
16908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16909 dldir=$destdir/`dirname \$dlpath`~
16910 test -d \$dldir || mkdir -p \$dldir~
16911 $install_prog $dir/$dlname \$dldir/$dlname'
16912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16913 dlpath=$dir/\$dldll~
16914 $rm \$dlpath'
16915 shlibpath_overrides_runpath=yes
16916
16917 case $host_os in
16918 cygwin*)
16919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16921 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16922 ;;
16923 mingw*)
16924 # MinGW DLLs use traditional 'lib' prefix
16925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16927 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16928 # It is most probably a Windows format PATH printed by
16929 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16930 # path with ; separators, and with drive letters. We can handle the
16931 # drive letters (cygwin fileutils understands them), so leave them,
16932 # especially as we might pass files found there to a mingw objdump,
16933 # which wouldn't understand a cygwinified path. Ahh.
16934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16935 else
16936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16937 fi
16938 ;;
16939 pw32*)
16940 # pw32 DLLs use 'pw' prefix rather than 'lib'
16941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16942 ;;
16943 esac
16944 ;;
16945
16946 *)
16947 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16948 ;;
16949 esac
16950 dynamic_linker='Win32 ld.exe'
16951 # FIXME: first we should search . and the directory the executable is in
16952 shlibpath_var=PATH
16953 ;;
16954
16955 darwin* | rhapsody*)
16956 dynamic_linker="$host_os dyld"
16957 version_type=darwin
16958 need_lib_prefix=no
16959 need_version=no
16960 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16961 soname_spec='${libname}${release}${major}$shared_ext'
16962 shlibpath_overrides_runpath=yes
16963 shlibpath_var=DYLD_LIBRARY_PATH
16964 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16965 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16966 if test "$GCC" = yes; then
16967 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"`
16968 else
16969 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16970 fi
16971 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16972 ;;
16973
16974 dgux*)
16975 version_type=linux
16976 need_lib_prefix=no
16977 need_version=no
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 ;;
16982
16983 freebsd1*)
16984 dynamic_linker=no
16985 ;;
16986
16987 kfreebsd*-gnu)
16988 version_type=linux
16989 need_lib_prefix=no
16990 need_version=no
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16992 soname_spec='${libname}${release}${shared_ext}$major'
16993 shlibpath_var=LD_LIBRARY_PATH
16994 shlibpath_overrides_runpath=no
16995 hardcode_into_libs=yes
16996 dynamic_linker='GNU ld.so'
16997 ;;
16998
16999 freebsd*)
17000 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17001 version_type=freebsd-$objformat
17002 case $version_type in
17003 freebsd-elf*)
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17005 need_version=no
17006 need_lib_prefix=no
17007 ;;
17008 freebsd-*)
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17010 need_version=yes
17011 ;;
17012 esac
17013 shlibpath_var=LD_LIBRARY_PATH
17014 case $host_os in
17015 freebsd2*)
17016 shlibpath_overrides_runpath=yes
17017 ;;
17018 freebsd3.01* | freebsdelf3.01*)
17019 shlibpath_overrides_runpath=yes
17020 hardcode_into_libs=yes
17021 ;;
17022 *) # from 3.2 on
17023 shlibpath_overrides_runpath=no
17024 hardcode_into_libs=yes
17025 ;;
17026 esac
17027 ;;
17028
17029 gnu*)
17030 version_type=linux
17031 need_lib_prefix=no
17032 need_version=no
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 shlibpath_var=LD_LIBRARY_PATH
17036 hardcode_into_libs=yes
17037 ;;
17038
17039 hpux9* | hpux10* | hpux11*)
17040 # Give a soname corresponding to the major version so that dld.sl refuses to
17041 # link against other versions.
17042 version_type=sunos
17043 need_lib_prefix=no
17044 need_version=no
17045 case "$host_cpu" in
17046 ia64*)
17047 shrext_cmds='.so'
17048 hardcode_into_libs=yes
17049 dynamic_linker="$host_os dld.so"
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 if test "X$HPUX_IA64_MODE" = X32; then
17055 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17056 else
17057 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17058 fi
17059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17060 ;;
17061 hppa*64*)
17062 shrext_cmds='.sl'
17063 hardcode_into_libs=yes
17064 dynamic_linker="$host_os dld.sl"
17065 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068 soname_spec='${libname}${release}${shared_ext}$major'
17069 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17071 ;;
17072 *)
17073 shrext_cmds='.sl'
17074 dynamic_linker="$host_os dld.sl"
17075 shlibpath_var=SHLIB_PATH
17076 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 ;;
17080 esac
17081 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17082 postinstall_cmds='chmod 555 $lib'
17083 ;;
17084
17085 irix5* | irix6* | nonstopux*)
17086 case $host_os in
17087 nonstopux*) version_type=nonstopux ;;
17088 *)
17089 if test "$lt_cv_prog_gnu_ld" = yes; then
17090 version_type=linux
17091 else
17092 version_type=irix
17093 fi ;;
17094 esac
17095 need_lib_prefix=no
17096 need_version=no
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17099 case $host_os in
17100 irix5* | nonstopux*)
17101 libsuff= shlibsuff=
17102 ;;
17103 *)
17104 case $LD in # libtool.m4 will add one of these switches to LD
17105 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17106 libsuff= shlibsuff= libmagic=32-bit;;
17107 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17108 libsuff=32 shlibsuff=N32 libmagic=N32;;
17109 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17110 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17111 *) libsuff= shlibsuff= libmagic=never-match;;
17112 esac
17113 ;;
17114 esac
17115 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17116 shlibpath_overrides_runpath=no
17117 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17118 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17119 hardcode_into_libs=yes
17120 ;;
17121
17122 # No shared lib support for Linux oldld, aout, or coff.
17123 linux*oldld* | linux*aout* | linux*coff*)
17124 dynamic_linker=no
17125 ;;
17126
17127 # This must be Linux ELF.
17128 linux*)
17129 version_type=linux
17130 need_lib_prefix=no
17131 need_version=no
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17135 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=no
17137 # This implies no fast_install, which is unacceptable.
17138 # Some rework will be needed to allow for fast_install
17139 # before this can be enabled.
17140 hardcode_into_libs=yes
17141
17142 # find out which ABI we are using
17143 libsuff=
17144 case "$host_cpu" in
17145 x86_64*|s390x*|powerpc64*)
17146 echo '#line 17146 "configure"' > conftest.$ac_ext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; then
17152 case `/usr/bin/file conftest.$ac_objext` in
17153 *64-bit*)
17154 libsuff=64
17155 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17156 ;;
17157 esac
17158 fi
17159 rm -rf conftest*
17160 ;;
17161 esac
17162
17163 # Append ld.so.conf contents to the search path
17164 if test -f /etc/ld.so.conf; then
17165 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17166 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17167 fi
17168
17169 # We used to test for /lib/ld.so.1 and disable shared libraries on
17170 # powerpc, because MkLinux only supported shared libraries with the
17171 # GNU dynamic linker. Since this was broken with cross compilers,
17172 # most powerpc-linux boxes support dynamic linking these days and
17173 # people can always --disable-shared, the test was removed, and we
17174 # assume the GNU/Linux dynamic linker is in use.
17175 dynamic_linker='GNU/Linux ld.so'
17176 ;;
17177
17178 knetbsd*-gnu)
17179 version_type=linux
17180 need_lib_prefix=no
17181 need_version=no
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=no
17186 hardcode_into_libs=yes
17187 dynamic_linker='GNU ld.so'
17188 ;;
17189
17190 netbsd*)
17191 version_type=sunos
17192 need_lib_prefix=no
17193 need_version=no
17194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 dynamic_linker='NetBSD (a.out) ld.so'
17198 else
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 dynamic_linker='NetBSD ld.elf_so'
17202 fi
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=yes
17205 hardcode_into_libs=yes
17206 ;;
17207
17208 newsos6)
17209 version_type=linux
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17213 ;;
17214
17215 nto-qnx*)
17216 version_type=linux
17217 need_lib_prefix=no
17218 need_version=no
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=yes
17223 ;;
17224
17225 openbsd*)
17226 version_type=sunos
17227 need_lib_prefix=no
17228 need_version=yes
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17233 case $host_os in
17234 openbsd2.[89] | openbsd2.[89].*)
17235 shlibpath_overrides_runpath=no
17236 ;;
17237 *)
17238 shlibpath_overrides_runpath=yes
17239 ;;
17240 esac
17241 else
17242 shlibpath_overrides_runpath=yes
17243 fi
17244 ;;
17245
17246 os2*)
17247 libname_spec='$name'
17248 shrext_cmds=".dll"
17249 need_lib_prefix=no
17250 library_names_spec='$libname${shared_ext} $libname.a'
17251 dynamic_linker='OS/2 ld.exe'
17252 shlibpath_var=LIBPATH
17253 ;;
17254
17255 osf3* | osf4* | osf5*)
17256 version_type=osf
17257 need_lib_prefix=no
17258 need_version=no
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17264 ;;
17265
17266 sco3.2v5*)
17267 version_type=osf
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 ;;
17272
17273 solaris*)
17274 version_type=linux
17275 need_lib_prefix=no
17276 need_version=no
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=yes
17281 hardcode_into_libs=yes
17282 # ldd complains unless libraries are executable
17283 postinstall_cmds='chmod +x $lib'
17284 ;;
17285
17286 sunos4*)
17287 version_type=sunos
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes
17292 if test "$with_gnu_ld" = yes; then
17293 need_lib_prefix=no
17294 fi
17295 need_version=yes
17296 ;;
17297
17298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17299 version_type=linux
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 case $host_vendor in
17304 sni)
17305 shlibpath_overrides_runpath=no
17306 need_lib_prefix=no
17307 export_dynamic_flag_spec='${wl}-Blargedynsym'
17308 runpath_var=LD_RUN_PATH
17309 ;;
17310 siemens)
17311 need_lib_prefix=no
17312 ;;
17313 motorola)
17314 need_lib_prefix=no
17315 need_version=no
17316 shlibpath_overrides_runpath=no
17317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17318 ;;
17319 esac
17320 ;;
17321
17322 sysv4*MP*)
17323 if test -d /usr/nec ;then
17324 version_type=linux
17325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17326 soname_spec='$libname${shared_ext}.$major'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 fi
17329 ;;
17330
17331 uts4*)
17332 version_type=linux
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 ;;
17337
17338 *)
17339 dynamic_linker=no
17340 ;;
17341 esac
17342 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17343 echo "${ECHO_T}$dynamic_linker" >&6
17344 test "$dynamic_linker" = no && can_build_shared=no
17345
17346 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17347 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17348 hardcode_action_GCJ=
17349 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17350 test -n "$runpath_var GCJ" || \
17351 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17352
17353 # We can hardcode non-existant directories.
17354 if test "$hardcode_direct_GCJ" != no &&
17355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17356 # have to relink, otherwise we might link with an installed library
17357 # when we should be linking with a yet-to-be-installed one
17358 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17359 test "$hardcode_minus_L_GCJ" != no; then
17360 # Linking always hardcodes the temporary library directory.
17361 hardcode_action_GCJ=relink
17362 else
17363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17364 hardcode_action_GCJ=immediate
17365 fi
17366 else
17367 # We cannot hardcode anything, or else we can only hardcode existing
17368 # directories.
17369 hardcode_action_GCJ=unsupported
17370 fi
17371 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17372 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17373
17374 if test "$hardcode_action_GCJ" = relink; then
17375 # Fast installation is not supported
17376 enable_fast_install=no
17377 elif test "$shlibpath_overrides_runpath" = yes ||
17378 test "$enable_shared" = no; then
17379 # Fast installation is not necessary
17380 enable_fast_install=needless
17381 fi
17382
17383 striplib=
17384 old_striplib=
17385 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17386 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17387 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17390 echo "$as_me:$LINENO: result: yes" >&5
17391 echo "${ECHO_T}yes" >&6
17392 else
17393 # FIXME - insert some real tests, host_os isn't really good enough
17394 case $host_os in
17395 darwin*)
17396 if test -n "$STRIP" ; then
17397 striplib="$STRIP -x"
17398 echo "$as_me:$LINENO: result: yes" >&5
17399 echo "${ECHO_T}yes" >&6
17400 else
17401 echo "$as_me:$LINENO: result: no" >&5
17402 echo "${ECHO_T}no" >&6
17403 fi
17404 ;;
17405 *)
17406 echo "$as_me:$LINENO: result: no" >&5
17407 echo "${ECHO_T}no" >&6
17408 ;;
17409 esac
17410 fi
17411
17412 if test "x$enable_dlopen" != xyes; then
17413 enable_dlopen=unknown
17414 enable_dlopen_self=unknown
17415 enable_dlopen_self_static=unknown
17416 else
17417 lt_cv_dlopen=no
17418 lt_cv_dlopen_libs=
17419
17420 case $host_os in
17421 beos*)
17422 lt_cv_dlopen="load_add_on"
17423 lt_cv_dlopen_libs=
17424 lt_cv_dlopen_self=yes
17425 ;;
17426
17427 mingw* | pw32*)
17428 lt_cv_dlopen="LoadLibrary"
17429 lt_cv_dlopen_libs=
17430 ;;
17431
17432 cygwin*)
17433 lt_cv_dlopen="dlopen"
17434 lt_cv_dlopen_libs=
17435 ;;
17436
17437 darwin*)
17438 # if libdl is installed we need to link against it
17439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 else
17444 ac_check_lib_save_LIBS=$LIBS
17445 LIBS="-ldl $LIBS"
17446 cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h. */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452
17453 /* Override any gcc2 internal prototype to avoid an error. */
17454 #ifdef __cplusplus
17455 extern "C"
17456 #endif
17457 /* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17459 char dlopen ();
17460 int
17461 main ()
17462 {
17463 dlopen ();
17464 ;
17465 return 0;
17466 }
17467 _ACEOF
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470 (eval $ac_link) 2>conftest.er1
17471 ac_status=$?
17472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_cxx_werror_flag"
17478 || test ! -s conftest.err'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest$ac_exeext'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_lib_dl_dlopen=yes
17491 else
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495 ac_cv_lib_dl_dlopen=no
17496 fi
17497 rm -f conftest.err conftest.$ac_objext \
17498 conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17500 fi
17501 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17503 if test $ac_cv_lib_dl_dlopen = yes; then
17504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17505 else
17506
17507 lt_cv_dlopen="dyld"
17508 lt_cv_dlopen_libs=
17509 lt_cv_dlopen_self=yes
17510
17511 fi
17512
17513 ;;
17514
17515 *)
17516 echo "$as_me:$LINENO: checking for shl_load" >&5
17517 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17518 if test "${ac_cv_func_shl_load+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521 cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h. */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529 #define shl_load innocuous_shl_load
17530
17531 /* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char shl_load (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17535
17536 #ifdef __STDC__
17537 # include <limits.h>
17538 #else
17539 # include <assert.h>
17540 #endif
17541
17542 #undef shl_load
17543
17544 /* Override any gcc2 internal prototype to avoid an error. */
17545 #ifdef __cplusplus
17546 extern "C"
17547 {
17548 #endif
17549 /* We use char because int might match the return type of a gcc2
17550 builtin and then its argument prototype would still apply. */
17551 char shl_load ();
17552 /* The GNU C library defines this for functions which it implements
17553 to always fail with ENOSYS. Some functions are actually named
17554 something starting with __ and the normal name is an alias. */
17555 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17556 choke me
17557 #else
17558 char (*f) () = shl_load;
17559 #endif
17560 #ifdef __cplusplus
17561 }
17562 #endif
17563
17564 int
17565 main ()
17566 {
17567 return f != shl_load;
17568 ;
17569 return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574 (eval $ac_link) 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_cxx_werror_flag"
17582 || test ! -s conftest.err'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 ac_cv_func_shl_load=yes
17595 else
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599 ac_cv_func_shl_load=no
17600 fi
17601 rm -f conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603 fi
17604 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17605 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17606 if test $ac_cv_func_shl_load = yes; then
17607 lt_cv_dlopen="shl_load"
17608 else
17609 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17610 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614 ac_check_lib_save_LIBS=$LIBS
17615 LIBS="-ldld $LIBS"
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622
17623 /* Override any gcc2 internal prototype to avoid an error. */
17624 #ifdef __cplusplus
17625 extern "C"
17626 #endif
17627 /* We use char because int might match the return type of a gcc2
17628 builtin and then its argument prototype would still apply. */
17629 char shl_load ();
17630 int
17631 main ()
17632 {
17633 shl_load ();
17634 ;
17635 return 0;
17636 }
17637 _ACEOF
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640 (eval $ac_link) 2>conftest.er1
17641 ac_status=$?
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -z "$ac_cxx_werror_flag"
17648 || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest$ac_exeext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_lib_dld_shl_load=yes
17661 else
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 ac_cv_lib_dld_shl_load=no
17666 fi
17667 rm -f conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_check_lib_save_LIBS
17670 fi
17671 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17672 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17673 if test $ac_cv_lib_dld_shl_load = yes; then
17674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17675 else
17676 echo "$as_me:$LINENO: checking for dlopen" >&5
17677 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17678 if test "${ac_cv_func_dlopen+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17689 #define dlopen innocuous_dlopen
17690
17691 /* System header to define __stub macros and hopefully few prototypes,
17692 which can conflict with char dlopen (); below.
17693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 <limits.h> exists even on freestanding compilers. */
17695
17696 #ifdef __STDC__
17697 # include <limits.h>
17698 #else
17699 # include <assert.h>
17700 #endif
17701
17702 #undef dlopen
17703
17704 /* Override any gcc2 internal prototype to avoid an error. */
17705 #ifdef __cplusplus
17706 extern "C"
17707 {
17708 #endif
17709 /* We use char because int might match the return type of a gcc2
17710 builtin and then its argument prototype would still apply. */
17711 char dlopen ();
17712 /* The GNU C library defines this for functions which it implements
17713 to always fail with ENOSYS. Some functions are actually named
17714 something starting with __ and the normal name is an alias. */
17715 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17716 choke me
17717 #else
17718 char (*f) () = dlopen;
17719 #endif
17720 #ifdef __cplusplus
17721 }
17722 #endif
17723
17724 int
17725 main ()
17726 {
17727 return f != dlopen;
17728 ;
17729 return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>conftest.er1
17735 ac_status=$?
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -z "$ac_cxx_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_cv_func_dlopen=yes
17755 else
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17758
17759 ac_cv_func_dlopen=no
17760 fi
17761 rm -f conftest.err conftest.$ac_objext \
17762 conftest$ac_exeext conftest.$ac_ext
17763 fi
17764 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17766 if test $ac_cv_func_dlopen = yes; then
17767 lt_cv_dlopen="dlopen"
17768 else
17769 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774 ac_check_lib_save_LIBS=$LIBS
17775 LIBS="-ldl $LIBS"
17776 cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h. */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17782
17783 /* Override any gcc2 internal prototype to avoid an error. */
17784 #ifdef __cplusplus
17785 extern "C"
17786 #endif
17787 /* We use char because int might match the return type of a gcc2
17788 builtin and then its argument prototype would still apply. */
17789 char dlopen ();
17790 int
17791 main ()
17792 {
17793 dlopen ();
17794 ;
17795 return 0;
17796 }
17797 _ACEOF
17798 rm -f conftest.$ac_objext conftest$ac_exeext
17799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17800 (eval $ac_link) 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -z "$ac_cxx_werror_flag"
17808 || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest$ac_exeext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 ac_cv_lib_dl_dlopen=yes
17821 else
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 ac_cv_lib_dl_dlopen=no
17826 fi
17827 rm -f conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17829 LIBS=$ac_check_lib_save_LIBS
17830 fi
17831 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17832 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17833 if test $ac_cv_lib_dl_dlopen = yes; then
17834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17835 else
17836 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17837 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17838 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841 ac_check_lib_save_LIBS=$LIBS
17842 LIBS="-lsvld $LIBS"
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849
17850 /* Override any gcc2 internal prototype to avoid an error. */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 /* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17856 char dlopen ();
17857 int
17858 main ()
17859 {
17860 dlopen ();
17861 ;
17862 return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_cxx_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_lib_svld_dlopen=yes
17888 else
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 ac_cv_lib_svld_dlopen=no
17893 fi
17894 rm -f conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17897 fi
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17899 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17900 if test $ac_cv_lib_svld_dlopen = yes; then
17901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17902 else
17903 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17904 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17905 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908 ac_check_lib_save_LIBS=$LIBS
17909 LIBS="-ldld $LIBS"
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h. */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916
17917 /* Override any gcc2 internal prototype to avoid an error. */
17918 #ifdef __cplusplus
17919 extern "C"
17920 #endif
17921 /* We use char because int might match the return type of a gcc2
17922 builtin and then its argument prototype would still apply. */
17923 char dld_link ();
17924 int
17925 main ()
17926 {
17927 dld_link ();
17928 ;
17929 return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17934 (eval $ac_link) 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_cxx_werror_flag"
17942 || test ! -s conftest.err'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_lib_dld_dld_link=yes
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_cv_lib_dld_dld_link=no
17960 fi
17961 rm -f conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17964 fi
17965 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17966 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17967 if test $ac_cv_lib_dld_dld_link = yes; then
17968 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17969 fi
17970
17971
17972 fi
17973
17974
17975 fi
17976
17977
17978 fi
17979
17980
17981 fi
17982
17983
17984 fi
17985
17986 ;;
17987 esac
17988
17989 if test "x$lt_cv_dlopen" != xno; then
17990 enable_dlopen=yes
17991 else
17992 enable_dlopen=no
17993 fi
17994
17995 case $lt_cv_dlopen in
17996 dlopen)
17997 save_CPPFLAGS="$CPPFLAGS"
17998 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17999
18000 save_LDFLAGS="$LDFLAGS"
18001 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18002
18003 save_LIBS="$LIBS"
18004 LIBS="$lt_cv_dlopen_libs $LIBS"
18005
18006 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18007 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18008 if test "${lt_cv_dlopen_self+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011 if test "$cross_compiling" = yes; then :
18012 lt_cv_dlopen_self=cross
18013 else
18014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18015 lt_status=$lt_dlunknown
18016 cat > conftest.$ac_ext <<EOF
18017 #line 18017 "configure"
18018 #include "confdefs.h"
18019
18020 #if HAVE_DLFCN_H
18021 #include <dlfcn.h>
18022 #endif
18023
18024 #include <stdio.h>
18025
18026 #ifdef RTLD_GLOBAL
18027 # define LT_DLGLOBAL RTLD_GLOBAL
18028 #else
18029 # ifdef DL_GLOBAL
18030 # define LT_DLGLOBAL DL_GLOBAL
18031 # else
18032 # define LT_DLGLOBAL 0
18033 # endif
18034 #endif
18035
18036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18037 find out it does not work in some platform. */
18038 #ifndef LT_DLLAZY_OR_NOW
18039 # ifdef RTLD_LAZY
18040 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18041 # else
18042 # ifdef DL_LAZY
18043 # define LT_DLLAZY_OR_NOW DL_LAZY
18044 # else
18045 # ifdef RTLD_NOW
18046 # define LT_DLLAZY_OR_NOW RTLD_NOW
18047 # else
18048 # ifdef DL_NOW
18049 # define LT_DLLAZY_OR_NOW DL_NOW
18050 # else
18051 # define LT_DLLAZY_OR_NOW 0
18052 # endif
18053 # endif
18054 # endif
18055 # endif
18056 #endif
18057
18058 #ifdef __cplusplus
18059 extern "C" void exit (int);
18060 #endif
18061
18062 void fnord() { int i=42;}
18063 int main ()
18064 {
18065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18066 int status = $lt_dlunknown;
18067
18068 if (self)
18069 {
18070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18071 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18072 /* dlclose (self); */
18073 }
18074
18075 exit (status);
18076 }
18077 EOF
18078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18079 (eval $ac_link) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18083 (./conftest; exit; ) 2>/dev/null
18084 lt_status=$?
18085 case x$lt_status in
18086 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18087 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18088 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18089 esac
18090 else :
18091 # compilation failed
18092 lt_cv_dlopen_self=no
18093 fi
18094 fi
18095 rm -fr conftest*
18096
18097
18098 fi
18099 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18100 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18101
18102 if test "x$lt_cv_dlopen_self" = xyes; then
18103 LDFLAGS="$LDFLAGS $link_static_flag"
18104 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18105 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18106 if test "${lt_cv_dlopen_self_static+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109 if test "$cross_compiling" = yes; then :
18110 lt_cv_dlopen_self_static=cross
18111 else
18112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18113 lt_status=$lt_dlunknown
18114 cat > conftest.$ac_ext <<EOF
18115 #line 18115 "configure"
18116 #include "confdefs.h"
18117
18118 #if HAVE_DLFCN_H
18119 #include <dlfcn.h>
18120 #endif
18121
18122 #include <stdio.h>
18123
18124 #ifdef RTLD_GLOBAL
18125 # define LT_DLGLOBAL RTLD_GLOBAL
18126 #else
18127 # ifdef DL_GLOBAL
18128 # define LT_DLGLOBAL DL_GLOBAL
18129 # else
18130 # define LT_DLGLOBAL 0
18131 # endif
18132 #endif
18133
18134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18135 find out it does not work in some platform. */
18136 #ifndef LT_DLLAZY_OR_NOW
18137 # ifdef RTLD_LAZY
18138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18139 # else
18140 # ifdef DL_LAZY
18141 # define LT_DLLAZY_OR_NOW DL_LAZY
18142 # else
18143 # ifdef RTLD_NOW
18144 # define LT_DLLAZY_OR_NOW RTLD_NOW
18145 # else
18146 # ifdef DL_NOW
18147 # define LT_DLLAZY_OR_NOW DL_NOW
18148 # else
18149 # define LT_DLLAZY_OR_NOW 0
18150 # endif
18151 # endif
18152 # endif
18153 # endif
18154 #endif
18155
18156 #ifdef __cplusplus
18157 extern "C" void exit (int);
18158 #endif
18159
18160 void fnord() { int i=42;}
18161 int main ()
18162 {
18163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18164 int status = $lt_dlunknown;
18165
18166 if (self)
18167 {
18168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18169 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18170 /* dlclose (self); */
18171 }
18172
18173 exit (status);
18174 }
18175 EOF
18176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18177 (eval $ac_link) 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18181 (./conftest; exit; ) 2>/dev/null
18182 lt_status=$?
18183 case x$lt_status in
18184 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18185 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18186 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18187 esac
18188 else :
18189 # compilation failed
18190 lt_cv_dlopen_self_static=no
18191 fi
18192 fi
18193 rm -fr conftest*
18194
18195
18196 fi
18197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18198 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18199 fi
18200
18201 CPPFLAGS="$save_CPPFLAGS"
18202 LDFLAGS="$save_LDFLAGS"
18203 LIBS="$save_LIBS"
18204 ;;
18205 esac
18206
18207 case $lt_cv_dlopen_self in
18208 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18209 *) enable_dlopen_self=unknown ;;
18210 esac
18211
18212 case $lt_cv_dlopen_self_static in
18213 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18214 *) enable_dlopen_self_static=unknown ;;
18215 esac
18216 fi
18217
18218
18219 # The else clause should only fire when bootstrapping the
18220 # libtool distribution, otherwise you forgot to ship ltmain.sh
18221 # with your package, and you will get complaints that there are
18222 # no rules to generate ltmain.sh.
18223 if test -f "$ltmain"; then
18224 # See if we are running on zsh, and set the options which allow our commands through
18225 # without removal of \ escapes.
18226 if test -n "${ZSH_VERSION+set}" ; then
18227 setopt NO_GLOB_SUBST
18228 fi
18229 # Now quote all the things that may contain metacharacters while being
18230 # careful not to overquote the AC_SUBSTed values. We take copies of the
18231 # variables and quote the copies for generation of the libtool script.
18232 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18233 SED SHELL STRIP \
18234 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18235 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18236 deplibs_check_method reload_flag reload_cmds need_locks \
18237 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18238 lt_cv_sys_global_symbol_to_c_name_address \
18239 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18240 old_postinstall_cmds old_postuninstall_cmds \
18241 compiler_GCJ \
18242 CC_GCJ \
18243 LD_GCJ \
18244 lt_prog_compiler_wl_GCJ \
18245 lt_prog_compiler_pic_GCJ \
18246 lt_prog_compiler_static_GCJ \
18247 lt_prog_compiler_no_builtin_flag_GCJ \
18248 export_dynamic_flag_spec_GCJ \
18249 thread_safe_flag_spec_GCJ \
18250 whole_archive_flag_spec_GCJ \
18251 enable_shared_with_static_runtimes_GCJ \
18252 old_archive_cmds_GCJ \
18253 old_archive_from_new_cmds_GCJ \
18254 predep_objects_GCJ \
18255 postdep_objects_GCJ \
18256 predeps_GCJ \
18257 postdeps_GCJ \
18258 compiler_lib_search_path_GCJ \
18259 archive_cmds_GCJ \
18260 archive_expsym_cmds_GCJ \
18261 postinstall_cmds_GCJ \
18262 postuninstall_cmds_GCJ \
18263 old_archive_from_expsyms_cmds_GCJ \
18264 allow_undefined_flag_GCJ \
18265 no_undefined_flag_GCJ \
18266 export_symbols_cmds_GCJ \
18267 hardcode_libdir_flag_spec_GCJ \
18268 hardcode_libdir_flag_spec_ld_GCJ \
18269 hardcode_libdir_separator_GCJ \
18270 hardcode_automatic_GCJ \
18271 module_cmds_GCJ \
18272 module_expsym_cmds_GCJ \
18273 lt_cv_prog_compiler_c_o_GCJ \
18274 exclude_expsyms_GCJ \
18275 include_expsyms_GCJ; do
18276
18277 case $var in
18278 old_archive_cmds_GCJ | \
18279 old_archive_from_new_cmds_GCJ | \
18280 archive_cmds_GCJ | \
18281 archive_expsym_cmds_GCJ | \
18282 module_cmds_GCJ | \
18283 module_expsym_cmds_GCJ | \
18284 old_archive_from_expsyms_cmds_GCJ | \
18285 export_symbols_cmds_GCJ | \
18286 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18287 postinstall_cmds | postuninstall_cmds | \
18288 old_postinstall_cmds | old_postuninstall_cmds | \
18289 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18290 # Double-quote double-evaled strings.
18291 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18292 ;;
18293 *)
18294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18295 ;;
18296 esac
18297 done
18298
18299 case $lt_echo in
18300 *'\$0 --fallback-echo"')
18301 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18302 ;;
18303 esac
18304
18305 cfgfile="$ofile"
18306
18307 cat <<__EOF__ >> "$cfgfile"
18308 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18309
18310 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18311
18312 # Shell to use when invoking shell scripts.
18313 SHELL=$lt_SHELL
18314
18315 # Whether or not to build shared libraries.
18316 build_libtool_libs=$enable_shared
18317
18318 # Whether or not to build static libraries.
18319 build_old_libs=$enable_static
18320
18321 # Whether or not to add -lc for building shared libraries.
18322 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18323
18324 # Whether or not to disallow shared libs when runtime libs are static
18325 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18326
18327 # Whether or not to optimize for fast installation.
18328 fast_install=$enable_fast_install
18329
18330 # The host system.
18331 host_alias=$host_alias
18332 host=$host
18333
18334 # An echo program that does not interpret backslashes.
18335 echo=$lt_echo
18336
18337 # The archiver.
18338 AR=$lt_AR
18339 AR_FLAGS=$lt_AR_FLAGS
18340
18341 # A C compiler.
18342 LTCC=$lt_LTCC
18343
18344 # A language-specific compiler.
18345 CC=$lt_compiler_GCJ
18346
18347 # Is the compiler the GNU C compiler?
18348 with_gcc=$GCC_GCJ
18349
18350 # An ERE matcher.
18351 EGREP=$lt_EGREP
18352
18353 # The linker used to build libraries.
18354 LD=$lt_LD_GCJ
18355
18356 # Whether we need hard or soft links.
18357 LN_S=$lt_LN_S
18358
18359 # A BSD-compatible nm program.
18360 NM=$lt_NM
18361
18362 # A symbol stripping program
18363 STRIP=$lt_STRIP
18364
18365 # Used to examine libraries when file_magic_cmd begins "file"
18366 MAGIC_CMD=$MAGIC_CMD
18367
18368 # Used on cygwin: DLL creation program.
18369 DLLTOOL="$DLLTOOL"
18370
18371 # Used on cygwin: object dumper.
18372 OBJDUMP="$OBJDUMP"
18373
18374 # Used on cygwin: assembler.
18375 AS="$AS"
18376
18377 # The name of the directory that contains temporary libtool files.
18378 objdir=$objdir
18379
18380 # How to create reloadable object files.
18381 reload_flag=$lt_reload_flag
18382 reload_cmds=$lt_reload_cmds
18383
18384 # How to pass a linker flag through the compiler.
18385 wl=$lt_lt_prog_compiler_wl_GCJ
18386
18387 # Object file suffix (normally "o").
18388 objext="$ac_objext"
18389
18390 # Old archive suffix (normally "a").
18391 libext="$libext"
18392
18393 # Shared library suffix (normally ".so").
18394 shrext_cmds='$shrext_cmds'
18395
18396 # Executable file suffix (normally "").
18397 exeext="$exeext"
18398
18399 # Additional compiler flags for building library objects.
18400 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18401 pic_mode=$pic_mode
18402
18403 # What is the maximum length of a command?
18404 max_cmd_len=$lt_cv_sys_max_cmd_len
18405
18406 # Does compiler simultaneously support -c and -o options?
18407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18408
18409 # Must we lock files when doing compilation ?
18410 need_locks=$lt_need_locks
18411
18412 # Do we need the lib prefix for modules?
18413 need_lib_prefix=$need_lib_prefix
18414
18415 # Do we need a version for libraries?
18416 need_version=$need_version
18417
18418 # Whether dlopen is supported.
18419 dlopen_support=$enable_dlopen
18420
18421 # Whether dlopen of programs is supported.
18422 dlopen_self=$enable_dlopen_self
18423
18424 # Whether dlopen of statically linked programs is supported.
18425 dlopen_self_static=$enable_dlopen_self_static
18426
18427 # Compiler flag to prevent dynamic linking.
18428 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18429
18430 # Compiler flag to turn off builtin functions.
18431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18432
18433 # Compiler flag to allow reflexive dlopens.
18434 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18435
18436 # Compiler flag to generate shared objects directly from archives.
18437 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18438
18439 # Compiler flag to generate thread-safe objects.
18440 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18441
18442 # Library versioning type.
18443 version_type=$version_type
18444
18445 # Format of library name prefix.
18446 libname_spec=$lt_libname_spec
18447
18448 # List of archive names. First name is the real one, the rest are links.
18449 # The last name is the one that the linker finds with -lNAME.
18450 library_names_spec=$lt_library_names_spec
18451
18452 # The coded name of the library, if different from the real name.
18453 soname_spec=$lt_soname_spec
18454
18455 # Commands used to build and install an old-style archive.
18456 RANLIB=$lt_RANLIB
18457 old_archive_cmds=$lt_old_archive_cmds_GCJ
18458 old_postinstall_cmds=$lt_old_postinstall_cmds
18459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18460
18461 # Create an old-style archive from a shared archive.
18462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18463
18464 # Create a temporary old-style archive to link instead of a shared archive.
18465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18466
18467 # Commands used to build and install a shared archive.
18468 archive_cmds=$lt_archive_cmds_GCJ
18469 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18470 postinstall_cmds=$lt_postinstall_cmds
18471 postuninstall_cmds=$lt_postuninstall_cmds
18472
18473 # Commands used to build a loadable module (assumed same as above if empty)
18474 module_cmds=$lt_module_cmds_GCJ
18475 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18476
18477 # Commands to strip libraries.
18478 old_striplib=$lt_old_striplib
18479 striplib=$lt_striplib
18480
18481 # Dependencies to place before the objects being linked to create a
18482 # shared library.
18483 predep_objects=$lt_predep_objects_GCJ
18484
18485 # Dependencies to place after the objects being linked to create a
18486 # shared library.
18487 postdep_objects=$lt_postdep_objects_GCJ
18488
18489 # Dependencies to place before the objects being linked to create a
18490 # shared library.
18491 predeps=$lt_predeps_GCJ
18492
18493 # Dependencies to place after the objects being linked to create a
18494 # shared library.
18495 postdeps=$lt_postdeps_GCJ
18496
18497 # The library search path used internally by the compiler when linking
18498 # a shared library.
18499 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18500
18501 # Method to check whether dependent libraries are shared objects.
18502 deplibs_check_method=$lt_deplibs_check_method
18503
18504 # Command to use when deplibs_check_method == file_magic.
18505 file_magic_cmd=$lt_file_magic_cmd
18506
18507 # Flag that allows shared libraries with undefined symbols to be built.
18508 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18509
18510 # Flag that forces no undefined symbols.
18511 no_undefined_flag=$lt_no_undefined_flag_GCJ
18512
18513 # Commands used to finish a libtool library installation in a directory.
18514 finish_cmds=$lt_finish_cmds
18515
18516 # Same as above, but a single script fragment to be evaled but not shown.
18517 finish_eval=$lt_finish_eval
18518
18519 # Take the output of nm and produce a listing of raw symbols and C names.
18520 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18521
18522 # Transform the output of nm in a proper C declaration
18523 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18524
18525 # Transform the output of nm in a C name address pair
18526 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18527
18528 # This is the shared library runtime path variable.
18529 runpath_var=$runpath_var
18530
18531 # This is the shared library path variable.
18532 shlibpath_var=$shlibpath_var
18533
18534 # Is shlibpath searched before the hard-coded library search path?
18535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18536
18537 # How to hardcode a shared library path into an executable.
18538 hardcode_action=$hardcode_action_GCJ
18539
18540 # Whether we should hardcode library paths into libraries.
18541 hardcode_into_libs=$hardcode_into_libs
18542
18543 # Flag to hardcode \$libdir into a binary during linking.
18544 # This must work even if \$libdir does not exist.
18545 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18546
18547 # If ld is used when linking, flag to hardcode \$libdir into
18548 # a binary during linking. This must work even if \$libdir does
18549 # not exist.
18550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18551
18552 # Whether we need a single -rpath flag with a separated argument.
18553 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18554
18555 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18556 # resulting binary.
18557 hardcode_direct=$hardcode_direct_GCJ
18558
18559 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18560 # resulting binary.
18561 hardcode_minus_L=$hardcode_minus_L_GCJ
18562
18563 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18564 # the resulting binary.
18565 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18566
18567 # Set to yes if building a shared library automatically hardcodes DIR into the library
18568 # and all subsequent libraries and executables linked against it.
18569 hardcode_automatic=$hardcode_automatic_GCJ
18570
18571 # Variables whose values should be saved in libtool wrapper scripts and
18572 # restored at relink time.
18573 variables_saved_for_relink="$variables_saved_for_relink"
18574
18575 # Whether libtool must link a program against all its dependency libraries.
18576 link_all_deplibs=$link_all_deplibs_GCJ
18577
18578 # Compile-time system search path for libraries
18579 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18580
18581 # Run-time system search path for libraries
18582 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18583
18584 # Fix the shell variable \$srcfile for the compiler.
18585 fix_srcfile_path="$fix_srcfile_path_GCJ"
18586
18587 # Set to yes if exported symbols are required.
18588 always_export_symbols=$always_export_symbols_GCJ
18589
18590 # The commands to list exported symbols.
18591 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18592
18593 # The commands to extract the exported symbol list from a shared archive.
18594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18595
18596 # Symbols that should not be listed in the preloaded symbols.
18597 exclude_expsyms=$lt_exclude_expsyms_GCJ
18598
18599 # Symbols that must always be exported.
18600 include_expsyms=$lt_include_expsyms_GCJ
18601
18602 # ### END LIBTOOL TAG CONFIG: $tagname
18603
18604 __EOF__
18605
18606
18607 else
18608 # If there is no Makefile yet, we rely on a make rule to execute
18609 # `config.status --recheck' to rerun these tests and create the
18610 # libtool script then.
18611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18612 if test -f "$ltmain_in"; then
18613 test -f Makefile && make "$ltmain"
18614 fi
18615 fi
18616
18617
18618 ac_ext=cc
18619 ac_cpp='$CXXCPP $CPPFLAGS'
18620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18623
18624 CC="$lt_save_CC"
18625
18626 else
18627 tagname=""
18628 fi
18629 ;;
18630
18631 RC)
18632
18633
18634
18635 # Source file extension for RC test sources.
18636 ac_ext=rc
18637
18638 # Object file extension for compiled RC test sources.
18639 objext=o
18640 objext_RC=$objext
18641
18642 # Code to be used in simple compile tests
18643 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18644
18645 # Code to be used in simple link tests
18646 lt_simple_link_test_code="$lt_simple_compile_test_code"
18647
18648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18649
18650 # If no C compiler was specified, use CC.
18651 LTCC=${LTCC-"$CC"}
18652
18653 # Allow CC to be a program name with arguments.
18654 compiler=$CC
18655
18656
18657 # Allow CC to be a program name with arguments.
18658 lt_save_CC="$CC"
18659 CC=${RC-"windres"}
18660 compiler=$CC
18661 compiler_RC=$CC
18662 lt_cv_prog_compiler_c_o_RC=yes
18663
18664 # The else clause should only fire when bootstrapping the
18665 # libtool distribution, otherwise you forgot to ship ltmain.sh
18666 # with your package, and you will get complaints that there are
18667 # no rules to generate ltmain.sh.
18668 if test -f "$ltmain"; then
18669 # See if we are running on zsh, and set the options which allow our commands through
18670 # without removal of \ escapes.
18671 if test -n "${ZSH_VERSION+set}" ; then
18672 setopt NO_GLOB_SUBST
18673 fi
18674 # Now quote all the things that may contain metacharacters while being
18675 # careful not to overquote the AC_SUBSTed values. We take copies of the
18676 # variables and quote the copies for generation of the libtool script.
18677 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18678 SED SHELL STRIP \
18679 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18680 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18681 deplibs_check_method reload_flag reload_cmds need_locks \
18682 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18683 lt_cv_sys_global_symbol_to_c_name_address \
18684 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18685 old_postinstall_cmds old_postuninstall_cmds \
18686 compiler_RC \
18687 CC_RC \
18688 LD_RC \
18689 lt_prog_compiler_wl_RC \
18690 lt_prog_compiler_pic_RC \
18691 lt_prog_compiler_static_RC \
18692 lt_prog_compiler_no_builtin_flag_RC \
18693 export_dynamic_flag_spec_RC \
18694 thread_safe_flag_spec_RC \
18695 whole_archive_flag_spec_RC \
18696 enable_shared_with_static_runtimes_RC \
18697 old_archive_cmds_RC \
18698 old_archive_from_new_cmds_RC \
18699 predep_objects_RC \
18700 postdep_objects_RC \
18701 predeps_RC \
18702 postdeps_RC \
18703 compiler_lib_search_path_RC \
18704 archive_cmds_RC \
18705 archive_expsym_cmds_RC \
18706 postinstall_cmds_RC \
18707 postuninstall_cmds_RC \
18708 old_archive_from_expsyms_cmds_RC \
18709 allow_undefined_flag_RC \
18710 no_undefined_flag_RC \
18711 export_symbols_cmds_RC \
18712 hardcode_libdir_flag_spec_RC \
18713 hardcode_libdir_flag_spec_ld_RC \
18714 hardcode_libdir_separator_RC \
18715 hardcode_automatic_RC \
18716 module_cmds_RC \
18717 module_expsym_cmds_RC \
18718 lt_cv_prog_compiler_c_o_RC \
18719 exclude_expsyms_RC \
18720 include_expsyms_RC; do
18721
18722 case $var in
18723 old_archive_cmds_RC | \
18724 old_archive_from_new_cmds_RC | \
18725 archive_cmds_RC | \
18726 archive_expsym_cmds_RC | \
18727 module_cmds_RC | \
18728 module_expsym_cmds_RC | \
18729 old_archive_from_expsyms_cmds_RC | \
18730 export_symbols_cmds_RC | \
18731 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18732 postinstall_cmds | postuninstall_cmds | \
18733 old_postinstall_cmds | old_postuninstall_cmds | \
18734 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18735 # Double-quote double-evaled strings.
18736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18737 ;;
18738 *)
18739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18740 ;;
18741 esac
18742 done
18743
18744 case $lt_echo in
18745 *'\$0 --fallback-echo"')
18746 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18747 ;;
18748 esac
18749
18750 cfgfile="$ofile"
18751
18752 cat <<__EOF__ >> "$cfgfile"
18753 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18754
18755 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18756
18757 # Shell to use when invoking shell scripts.
18758 SHELL=$lt_SHELL
18759
18760 # Whether or not to build shared libraries.
18761 build_libtool_libs=$enable_shared
18762
18763 # Whether or not to build static libraries.
18764 build_old_libs=$enable_static
18765
18766 # Whether or not to add -lc for building shared libraries.
18767 build_libtool_need_lc=$archive_cmds_need_lc_RC
18768
18769 # Whether or not to disallow shared libs when runtime libs are static
18770 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18771
18772 # Whether or not to optimize for fast installation.
18773 fast_install=$enable_fast_install
18774
18775 # The host system.
18776 host_alias=$host_alias
18777 host=$host
18778
18779 # An echo program that does not interpret backslashes.
18780 echo=$lt_echo
18781
18782 # The archiver.
18783 AR=$lt_AR
18784 AR_FLAGS=$lt_AR_FLAGS
18785
18786 # A C compiler.
18787 LTCC=$lt_LTCC
18788
18789 # A language-specific compiler.
18790 CC=$lt_compiler_RC
18791
18792 # Is the compiler the GNU C compiler?
18793 with_gcc=$GCC_RC
18794
18795 # An ERE matcher.
18796 EGREP=$lt_EGREP
18797
18798 # The linker used to build libraries.
18799 LD=$lt_LD_RC
18800
18801 # Whether we need hard or soft links.
18802 LN_S=$lt_LN_S
18803
18804 # A BSD-compatible nm program.
18805 NM=$lt_NM
18806
18807 # A symbol stripping program
18808 STRIP=$lt_STRIP
18809
18810 # Used to examine libraries when file_magic_cmd begins "file"
18811 MAGIC_CMD=$MAGIC_CMD
18812
18813 # Used on cygwin: DLL creation program.
18814 DLLTOOL="$DLLTOOL"
18815
18816 # Used on cygwin: object dumper.
18817 OBJDUMP="$OBJDUMP"
18818
18819 # Used on cygwin: assembler.
18820 AS="$AS"
18821
18822 # The name of the directory that contains temporary libtool files.
18823 objdir=$objdir
18824
18825 # How to create reloadable object files.
18826 reload_flag=$lt_reload_flag
18827 reload_cmds=$lt_reload_cmds
18828
18829 # How to pass a linker flag through the compiler.
18830 wl=$lt_lt_prog_compiler_wl_RC
18831
18832 # Object file suffix (normally "o").
18833 objext="$ac_objext"
18834
18835 # Old archive suffix (normally "a").
18836 libext="$libext"
18837
18838 # Shared library suffix (normally ".so").
18839 shrext_cmds='$shrext_cmds'
18840
18841 # Executable file suffix (normally "").
18842 exeext="$exeext"
18843
18844 # Additional compiler flags for building library objects.
18845 pic_flag=$lt_lt_prog_compiler_pic_RC
18846 pic_mode=$pic_mode
18847
18848 # What is the maximum length of a command?
18849 max_cmd_len=$lt_cv_sys_max_cmd_len
18850
18851 # Does compiler simultaneously support -c and -o options?
18852 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18853
18854 # Must we lock files when doing compilation ?
18855 need_locks=$lt_need_locks
18856
18857 # Do we need the lib prefix for modules?
18858 need_lib_prefix=$need_lib_prefix
18859
18860 # Do we need a version for libraries?
18861 need_version=$need_version
18862
18863 # Whether dlopen is supported.
18864 dlopen_support=$enable_dlopen
18865
18866 # Whether dlopen of programs is supported.
18867 dlopen_self=$enable_dlopen_self
18868
18869 # Whether dlopen of statically linked programs is supported.
18870 dlopen_self_static=$enable_dlopen_self_static
18871
18872 # Compiler flag to prevent dynamic linking.
18873 link_static_flag=$lt_lt_prog_compiler_static_RC
18874
18875 # Compiler flag to turn off builtin functions.
18876 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18877
18878 # Compiler flag to allow reflexive dlopens.
18879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18880
18881 # Compiler flag to generate shared objects directly from archives.
18882 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18883
18884 # Compiler flag to generate thread-safe objects.
18885 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18886
18887 # Library versioning type.
18888 version_type=$version_type
18889
18890 # Format of library name prefix.
18891 libname_spec=$lt_libname_spec
18892
18893 # List of archive names. First name is the real one, the rest are links.
18894 # The last name is the one that the linker finds with -lNAME.
18895 library_names_spec=$lt_library_names_spec
18896
18897 # The coded name of the library, if different from the real name.
18898 soname_spec=$lt_soname_spec
18899
18900 # Commands used to build and install an old-style archive.
18901 RANLIB=$lt_RANLIB
18902 old_archive_cmds=$lt_old_archive_cmds_RC
18903 old_postinstall_cmds=$lt_old_postinstall_cmds
18904 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18905
18906 # Create an old-style archive from a shared archive.
18907 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18908
18909 # Create a temporary old-style archive to link instead of a shared archive.
18910 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18911
18912 # Commands used to build and install a shared archive.
18913 archive_cmds=$lt_archive_cmds_RC
18914 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18915 postinstall_cmds=$lt_postinstall_cmds
18916 postuninstall_cmds=$lt_postuninstall_cmds
18917
18918 # Commands used to build a loadable module (assumed same as above if empty)
18919 module_cmds=$lt_module_cmds_RC
18920 module_expsym_cmds=$lt_module_expsym_cmds_RC
18921
18922 # Commands to strip libraries.
18923 old_striplib=$lt_old_striplib
18924 striplib=$lt_striplib
18925
18926 # Dependencies to place before the objects being linked to create a
18927 # shared library.
18928 predep_objects=$lt_predep_objects_RC
18929
18930 # Dependencies to place after the objects being linked to create a
18931 # shared library.
18932 postdep_objects=$lt_postdep_objects_RC
18933
18934 # Dependencies to place before the objects being linked to create a
18935 # shared library.
18936 predeps=$lt_predeps_RC
18937
18938 # Dependencies to place after the objects being linked to create a
18939 # shared library.
18940 postdeps=$lt_postdeps_RC
18941
18942 # The library search path used internally by the compiler when linking
18943 # a shared library.
18944 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18945
18946 # Method to check whether dependent libraries are shared objects.
18947 deplibs_check_method=$lt_deplibs_check_method
18948
18949 # Command to use when deplibs_check_method == file_magic.
18950 file_magic_cmd=$lt_file_magic_cmd
18951
18952 # Flag that allows shared libraries with undefined symbols to be built.
18953 allow_undefined_flag=$lt_allow_undefined_flag_RC
18954
18955 # Flag that forces no undefined symbols.
18956 no_undefined_flag=$lt_no_undefined_flag_RC
18957
18958 # Commands used to finish a libtool library installation in a directory.
18959 finish_cmds=$lt_finish_cmds
18960
18961 # Same as above, but a single script fragment to be evaled but not shown.
18962 finish_eval=$lt_finish_eval
18963
18964 # Take the output of nm and produce a listing of raw symbols and C names.
18965 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18966
18967 # Transform the output of nm in a proper C declaration
18968 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18969
18970 # Transform the output of nm in a C name address pair
18971 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18972
18973 # This is the shared library runtime path variable.
18974 runpath_var=$runpath_var
18975
18976 # This is the shared library path variable.
18977 shlibpath_var=$shlibpath_var
18978
18979 # Is shlibpath searched before the hard-coded library search path?
18980 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18981
18982 # How to hardcode a shared library path into an executable.
18983 hardcode_action=$hardcode_action_RC
18984
18985 # Whether we should hardcode library paths into libraries.
18986 hardcode_into_libs=$hardcode_into_libs
18987
18988 # Flag to hardcode \$libdir into a binary during linking.
18989 # This must work even if \$libdir does not exist.
18990 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18991
18992 # If ld is used when linking, flag to hardcode \$libdir into
18993 # a binary during linking. This must work even if \$libdir does
18994 # not exist.
18995 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18996
18997 # Whether we need a single -rpath flag with a separated argument.
18998 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18999
19000 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19001 # resulting binary.
19002 hardcode_direct=$hardcode_direct_RC
19003
19004 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19005 # resulting binary.
19006 hardcode_minus_L=$hardcode_minus_L_RC
19007
19008 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19009 # the resulting binary.
19010 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19011
19012 # Set to yes if building a shared library automatically hardcodes DIR into the library
19013 # and all subsequent libraries and executables linked against it.
19014 hardcode_automatic=$hardcode_automatic_RC
19015
19016 # Variables whose values should be saved in libtool wrapper scripts and
19017 # restored at relink time.
19018 variables_saved_for_relink="$variables_saved_for_relink"
19019
19020 # Whether libtool must link a program against all its dependency libraries.
19021 link_all_deplibs=$link_all_deplibs_RC
19022
19023 # Compile-time system search path for libraries
19024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19025
19026 # Run-time system search path for libraries
19027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19028
19029 # Fix the shell variable \$srcfile for the compiler.
19030 fix_srcfile_path="$fix_srcfile_path_RC"
19031
19032 # Set to yes if exported symbols are required.
19033 always_export_symbols=$always_export_symbols_RC
19034
19035 # The commands to list exported symbols.
19036 export_symbols_cmds=$lt_export_symbols_cmds_RC
19037
19038 # The commands to extract the exported symbol list from a shared archive.
19039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19040
19041 # Symbols that should not be listed in the preloaded symbols.
19042 exclude_expsyms=$lt_exclude_expsyms_RC
19043
19044 # Symbols that must always be exported.
19045 include_expsyms=$lt_include_expsyms_RC
19046
19047 # ### END LIBTOOL TAG CONFIG: $tagname
19048
19049 __EOF__
19050
19051
19052 else
19053 # If there is no Makefile yet, we rely on a make rule to execute
19054 # `config.status --recheck' to rerun these tests and create the
19055 # libtool script then.
19056 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19057 if test -f "$ltmain_in"; then
19058 test -f Makefile && make "$ltmain"
19059 fi
19060 fi
19061
19062
19063 ac_ext=cc
19064 ac_cpp='$CXXCPP $CPPFLAGS'
19065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19068
19069 CC="$lt_save_CC"
19070
19071 ;;
19072
19073 *)
19074 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19075 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19076 { (exit 1); exit 1; }; }
19077 ;;
19078 esac
19079
19080 # Append the new tag name to the list of available tags.
19081 if test -n "$tagname" ; then
19082 available_tags="$available_tags $tagname"
19083 fi
19084 fi
19085 done
19086 IFS="$lt_save_ifs"
19087
19088 # Now substitute the updated list of available tags.
19089 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19090 mv "${ofile}T" "$ofile"
19091 chmod +x "$ofile"
19092 else
19093 rm -f "${ofile}T"
19094 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19095 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19096 { (exit 1); exit 1; }; }
19097 fi
19098 fi
19099
19100
19101
19102 # This can be used to rebuild libtool when needed
19103 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19104
19105 # Always use our own libtool.
19106 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19107
19108 # Prevent multiple expansion
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130 ac_config_files="$ac_config_files Makefile src/Makefile"
19131 cat >confcache <<\_ACEOF
19132 # This file is a shell script that caches the results of configure
19133 # tests run on this system so they can be shared between configure
19134 # scripts and configure runs, see configure's option --config-cache.
19135 # It is not useful on other systems. If it contains results you don't
19136 # want to keep, you may remove or edit it.
19137 #
19138 # config.status only pays attention to the cache file if you give it
19139 # the --recheck option to rerun configure.
19140 #
19141 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19142 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19143 # following values.
19144
19145 _ACEOF
19146
19147 # The following way of writing the cache mishandles newlines in values,
19148 # but we know of no workaround that is simple, portable, and efficient.
19149 # So, don't put newlines in cache variables' values.
19150 # Ultrix sh set writes to stderr and can't be redirected directly,
19151 # and sets the high bit in the cache file unless we assign to the vars.
19152 {
19153 (set) 2>&1 |
19154 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19155 *ac_space=\ *)
19156 # `set' does not quote correctly, so add quotes (double-quote
19157 # substitution turns \\\\ into \\, and sed turns \\ into \).
19158 sed -n \
19159 "s/'/'\\\\''/g;
19160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19161 ;;
19162 *)
19163 # `set' quotes correctly as required by POSIX, so do not add quotes.
19164 sed -n \
19165 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19166 ;;
19167 esac;
19168 } |
19169 sed '
19170 t clear
19171 : clear
19172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19173 t end
19174 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19175 : end' >>confcache
19176 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19177 if test -w $cache_file; then
19178 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19179 cat confcache >$cache_file
19180 else
19181 echo "not updating unwritable cache $cache_file"
19182 fi
19183 fi
19184 rm -f confcache
19185
19186 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19187 # Let make expand exec_prefix.
19188 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19189
19190 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19191 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19192 # trailing colons and then remove the whole line if VPATH becomes empty
19193 # (actually we leave an empty line to preserve line numbers).
19194 if test "x$srcdir" = x.; then
19195 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19196 s/:*\$(srcdir):*/:/;
19197 s/:*\${srcdir}:*/:/;
19198 s/:*@srcdir@:*/:/;
19199 s/^\([^=]*=[ ]*\):*/\1/;
19200 s/:*$//;
19201 s/^[^=]*=[ ]*$//;
19202 }'
19203 fi
19204
19205 DEFS=-DHAVE_CONFIG_H
19206
19207 ac_libobjs=
19208 ac_ltlibobjs=
19209 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19210 # 1. Remove the extension, and $U if already installed.
19211 ac_i=`echo "$ac_i" |
19212 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19213 # 2. Add them.
19214 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19215 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19216 done
19217 LIBOBJS=$ac_libobjs
19218
19219 LTLIBOBJS=$ac_ltlibobjs
19220
19221
19222 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19223 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19224 Usually this means the macro was only invoked conditionally." >&5
19225 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19226 Usually this means the macro was only invoked conditionally." >&2;}
19227 { (exit 1); exit 1; }; }
19228 fi
19229 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19230 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19231 Usually this means the macro was only invoked conditionally." >&5
19232 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19233 Usually this means the macro was only invoked conditionally." >&2;}
19234 { (exit 1); exit 1; }; }
19235 fi
19236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19237 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19238 Usually this means the macro was only invoked conditionally." >&5
19239 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19240 Usually this means the macro was only invoked conditionally." >&2;}
19241 { (exit 1); exit 1; }; }
19242 fi
19243
19244 : ${CONFIG_STATUS=./config.status}
19245 ac_clean_files_save=$ac_clean_files
19246 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19247 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19248 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19249 cat >$CONFIG_STATUS <<_ACEOF
19250 #! $SHELL
19251 # Generated by $as_me.
19252 # Run this file to recreate the current configuration.
19253 # Compiler output produced by configure, useful for debugging
19254 # configure, is in config.log if it exists.
19255
19256 debug=false
19257 ac_cs_recheck=false
19258 ac_cs_silent=false
19259 SHELL=\${CONFIG_SHELL-$SHELL}
19260 _ACEOF
19261
19262 cat >>$CONFIG_STATUS <<\_ACEOF
19263 ## --------------------- ##
19264 ## M4sh Initialization. ##
19265 ## --------------------- ##
19266
19267 # Be Bourne compatible
19268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19269 emulate sh
19270 NULLCMD=:
19271 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19272 # is contrary to our usage. Disable this feature.
19273 alias -g '${1+"$@"}'='"$@"'
19274 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19275 set -o posix
19276 fi
19277 DUALCASE=1; export DUALCASE # for MKS sh
19278
19279 # Support unset when possible.
19280 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19281 as_unset=unset
19282 else
19283 as_unset=false
19284 fi
19285
19286
19287 # Work around bugs in pre-3.0 UWIN ksh.
19288 $as_unset ENV MAIL MAILPATH
19289 PS1='$ '
19290 PS2='> '
19291 PS4='+ '
19292
19293 # NLS nuisances.
19294 for as_var in \
19295 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19296 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19297 LC_TELEPHONE LC_TIME
19298 do
19299 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19300 eval $as_var=C; export $as_var
19301 else
19302 $as_unset $as_var
19303 fi
19304 done
19305
19306 # Required to use basename.
19307 if expr a : '\(a\)' >/dev/null 2>&1; then
19308 as_expr=expr
19309 else
19310 as_expr=false
19311 fi
19312
19313 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19314 as_basename=basename
19315 else
19316 as_basename=false
19317 fi
19318
19319
19320 # Name of the executable.
19321 as_me=`$as_basename "$0" ||
19322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19323 X"$0" : 'X\(//\)$' \| \
19324 X"$0" : 'X\(/\)$' \| \
19325 . : '\(.\)' 2>/dev/null ||
19326 echo X/"$0" |
19327 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19328 /^X\/\(\/\/\)$/{ s//\1/; q; }
19329 /^X\/\(\/\).*/{ s//\1/; q; }
19330 s/.*/./; q'`
19331
19332
19333 # PATH needs CR, and LINENO needs CR and PATH.
19334 # Avoid depending upon Character Ranges.
19335 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19338 as_cr_digits='0123456789'
19339 as_cr_alnum=$as_cr_Letters$as_cr_digits
19340
19341 # The user is always right.
19342 if test "${PATH_SEPARATOR+set}" != set; then
19343 echo "#! /bin/sh" >conf$$.sh
19344 echo "exit 0" >>conf$$.sh
19345 chmod +x conf$$.sh
19346 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19347 PATH_SEPARATOR=';'
19348 else
19349 PATH_SEPARATOR=:
19350 fi
19351 rm -f conf$$.sh
19352 fi
19353
19354
19355 as_lineno_1=$LINENO
19356 as_lineno_2=$LINENO
19357 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19358 test "x$as_lineno_1" != "x$as_lineno_2" &&
19359 test "x$as_lineno_3" = "x$as_lineno_2" || {
19360 # Find who we are. Look in the path if we contain no path at all
19361 # relative or not.
19362 case $0 in
19363 *[\\/]* ) as_myself=$0 ;;
19364 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19365 for as_dir in $PATH
19366 do
19367 IFS=$as_save_IFS
19368 test -z "$as_dir" && as_dir=.
19369 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19370 done
19371
19372 ;;
19373 esac
19374 # We did not find ourselves, most probably we were run as `sh COMMAND'
19375 # in which case we are not to be found in the path.
19376 if test "x$as_myself" = x; then
19377 as_myself=$0
19378 fi
19379 if test ! -f "$as_myself"; then
19380 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19381 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19382 { (exit 1); exit 1; }; }
19383 fi
19384 case $CONFIG_SHELL in
19385 '')
19386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19387 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19388 do
19389 IFS=$as_save_IFS
19390 test -z "$as_dir" && as_dir=.
19391 for as_base in sh bash ksh sh5; do
19392 case $as_dir in
19393 /*)
19394 if ("$as_dir/$as_base" -c '
19395 as_lineno_1=$LINENO
19396 as_lineno_2=$LINENO
19397 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19398 test "x$as_lineno_1" != "x$as_lineno_2" &&
19399 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19400 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19401 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19402 CONFIG_SHELL=$as_dir/$as_base
19403 export CONFIG_SHELL
19404 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19405 fi;;
19406 esac
19407 done
19408 done
19409 ;;
19410 esac
19411
19412 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19413 # uniformly replaced by the line number. The first 'sed' inserts a
19414 # line-number line before each line; the second 'sed' does the real
19415 # work. The second script uses 'N' to pair each line-number line
19416 # with the numbered line, and appends trailing '-' during
19417 # substitution so that $LINENO is not a special case at line end.
19418 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19419 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19420 sed '=' <$as_myself |
19421 sed '
19422 N
19423 s,$,-,
19424 : loop
19425 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19426 t loop
19427 s,-$,,
19428 s,^['$as_cr_digits']*\n,,
19429 ' >$as_me.lineno &&
19430 chmod +x $as_me.lineno ||
19431 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19432 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19433 { (exit 1); exit 1; }; }
19434
19435 # Don't try to exec as it changes $[0], causing all sort of problems
19436 # (the dirname of $[0] is not the place where we might find the
19437 # original and so on. Autoconf is especially sensible to this).
19438 . ./$as_me.lineno
19439 # Exit status is that of the last command.
19440 exit
19441 }
19442
19443
19444 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19445 *c*,-n*) ECHO_N= ECHO_C='
19446 ' ECHO_T=' ' ;;
19447 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19448 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19449 esac
19450
19451 if expr a : '\(a\)' >/dev/null 2>&1; then
19452 as_expr=expr
19453 else
19454 as_expr=false
19455 fi
19456
19457 rm -f conf$$ conf$$.exe conf$$.file
19458 echo >conf$$.file
19459 if ln -s conf$$.file conf$$ 2>/dev/null; then
19460 # We could just check for DJGPP; but this test a) works b) is more generic
19461 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19462 if test -f conf$$.exe; then
19463 # Don't use ln at all; we don't have any links
19464 as_ln_s='cp -p'
19465 else
19466 as_ln_s='ln -s'
19467 fi
19468 elif ln conf$$.file conf$$ 2>/dev/null; then
19469 as_ln_s=ln
19470 else
19471 as_ln_s='cp -p'
19472 fi
19473 rm -f conf$$ conf$$.exe conf$$.file
19474
19475 if mkdir -p . 2>/dev/null; then
19476 as_mkdir_p=:
19477 else
19478 test -d ./-p && rmdir ./-p
19479 as_mkdir_p=false
19480 fi
19481
19482 as_executable_p="test -f"
19483
19484 # Sed expression to map a string onto a valid CPP name.
19485 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19486
19487 # Sed expression to map a string onto a valid variable name.
19488 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19489
19490
19491 # IFS
19492 # We need space, tab and new line, in precisely that order.
19493 as_nl='
19494 '
19495 IFS=" $as_nl"
19496
19497 # CDPATH.
19498 $as_unset CDPATH
19499
19500 exec 6>&1
19501
19502 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19503 # report actual input values of CONFIG_FILES etc. instead of their
19504 # values after options handling. Logging --version etc. is OK.
19505 exec 5>>config.log
19506 {
19507 echo
19508 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19509 ## Running $as_me. ##
19510 _ASBOX
19511 } >&5
19512 cat >&5 <<_CSEOF
19513
19514 This file was extended by $as_me, which was
19515 generated by GNU Autoconf 2.59. Invocation command line was
19516
19517 CONFIG_FILES = $CONFIG_FILES
19518 CONFIG_HEADERS = $CONFIG_HEADERS
19519 CONFIG_LINKS = $CONFIG_LINKS
19520 CONFIG_COMMANDS = $CONFIG_COMMANDS
19521 $ $0 $@
19522
19523 _CSEOF
19524 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19525 echo >&5
19526 _ACEOF
19527
19528 # Files that config.status was made for.
19529 if test -n "$ac_config_files"; then
19530 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19531 fi
19532
19533 if test -n "$ac_config_headers"; then
19534 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19535 fi
19536
19537 if test -n "$ac_config_links"; then
19538 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19539 fi
19540
19541 if test -n "$ac_config_commands"; then
19542 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19543 fi
19544
19545 cat >>$CONFIG_STATUS <<\_ACEOF
19546
19547 ac_cs_usage="\
19548 \`$as_me' instantiates files from templates according to the
19549 current configuration.
19550
19551 Usage: $0 [OPTIONS] [FILE]...
19552
19553 -h, --help print this help, then exit
19554 -V, --version print version number, then exit
19555 -q, --quiet do not print progress messages
19556 -d, --debug don't remove temporary files
19557 --recheck update $as_me by reconfiguring in the same conditions
19558 --file=FILE[:TEMPLATE]
19559 instantiate the configuration file FILE
19560 --header=FILE[:TEMPLATE]
19561 instantiate the configuration header FILE
19562
19563 Configuration files:
19564 $config_files
19565
19566 Configuration headers:
19567 $config_headers
19568
19569 Configuration commands:
19570 $config_commands
19571
19572 Report bugs to <bug-autoconf@gnu.org>."
19573 _ACEOF
19574
19575 cat >>$CONFIG_STATUS <<_ACEOF
19576 ac_cs_version="\\
19577 config.status
19578 configured by $0, generated by GNU Autoconf 2.59,
19579 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19580
19581 Copyright (C) 2003 Free Software Foundation, Inc.
19582 This config.status script is free software; the Free Software Foundation
19583 gives unlimited permission to copy, distribute and modify it."
19584 srcdir=$srcdir
19585 INSTALL="$INSTALL"
19586 _ACEOF
19587
19588 cat >>$CONFIG_STATUS <<\_ACEOF
19589 # If no file are specified by the user, then we need to provide default
19590 # value. By we need to know if files were specified by the user.
19591 ac_need_defaults=:
19592 while test $# != 0
19593 do
19594 case $1 in
19595 --*=*)
19596 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19597 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19598 ac_shift=:
19599 ;;
19600 -*)
19601 ac_option=$1
19602 ac_optarg=$2
19603 ac_shift=shift
19604 ;;
19605 *) # This is not an option, so the user has probably given explicit
19606 # arguments.
19607 ac_option=$1
19608 ac_need_defaults=false;;
19609 esac
19610
19611 case $ac_option in
19612 # Handling of the options.
19613 _ACEOF
19614 cat >>$CONFIG_STATUS <<\_ACEOF
19615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19616 ac_cs_recheck=: ;;
19617 --version | --vers* | -V )
19618 echo "$ac_cs_version"; exit 0 ;;
19619 --he | --h)
19620 # Conflict between --help and --header
19621 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19622 Try \`$0 --help' for more information." >&5
19623 echo "$as_me: error: ambiguous option: $1
19624 Try \`$0 --help' for more information." >&2;}
19625 { (exit 1); exit 1; }; };;
19626 --help | --hel | -h )
19627 echo "$ac_cs_usage"; exit 0 ;;
19628 --debug | --d* | -d )
19629 debug=: ;;
19630 --file | --fil | --fi | --f )
19631 $ac_shift
19632 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19633 ac_need_defaults=false;;
19634 --header | --heade | --head | --hea )
19635 $ac_shift
19636 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19637 ac_need_defaults=false;;
19638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19639 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19640 ac_cs_silent=: ;;
19641
19642 # This is an error.
19643 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19644 Try \`$0 --help' for more information." >&5
19645 echo "$as_me: error: unrecognized option: $1
19646 Try \`$0 --help' for more information." >&2;}
19647 { (exit 1); exit 1; }; } ;;
19648
19649 *) ac_config_targets="$ac_config_targets $1" ;;
19650
19651 esac
19652 shift
19653 done
19654
19655 ac_configure_extra_args=
19656
19657 if $ac_cs_silent; then
19658 exec 6>/dev/null
19659 ac_configure_extra_args="$ac_configure_extra_args --silent"
19660 fi
19661
19662 _ACEOF
19663 cat >>$CONFIG_STATUS <<_ACEOF
19664 if \$ac_cs_recheck; then
19665 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19666 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19667 fi
19668
19669 _ACEOF
19670
19671 cat >>$CONFIG_STATUS <<_ACEOF
19672 #
19673 # INIT-COMMANDS section.
19674 #
19675
19676 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19677
19678 _ACEOF
19679
19680
19681
19682 cat >>$CONFIG_STATUS <<\_ACEOF
19683 for ac_config_target in $ac_config_targets
19684 do
19685 case "$ac_config_target" in
19686 # Handling of arguments.
19687 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19688 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19689 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19690 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19691 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19692 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19693 { (exit 1); exit 1; }; };;
19694 esac
19695 done
19696
19697 # If the user did not use the arguments to specify the items to instantiate,
19698 # then the envvar interface is used. Set only those that are not.
19699 # We use the long form for the default assignment because of an extremely
19700 # bizarre bug on SunOS 4.1.3.
19701 if $ac_need_defaults; then
19702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19705 fi
19706
19707 # Have a temporary directory for convenience. Make it in the build tree
19708 # simply because there is no reason to put it here, and in addition,
19709 # creating and moving files from /tmp can sometimes cause problems.
19710 # Create a temporary directory, and hook for its removal unless debugging.
19711 $debug ||
19712 {
19713 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19714 trap '{ (exit 1); exit 1; }' 1 2 13 15
19715 }
19716
19717 # Create a (secure) tmp directory for tmp files.
19718
19719 {
19720 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19721 test -n "$tmp" && test -d "$tmp"
19722 } ||
19723 {
19724 tmp=./confstat$$-$RANDOM
19725 (umask 077 && mkdir $tmp)
19726 } ||
19727 {
19728 echo "$me: cannot create a temporary directory in ." >&2
19729 { (exit 1); exit 1; }
19730 }
19731
19732 _ACEOF
19733
19734 cat >>$CONFIG_STATUS <<_ACEOF
19735
19736 #
19737 # CONFIG_FILES section.
19738 #
19739
19740 # No need to generate the scripts if there are no CONFIG_FILES.
19741 # This happens for instance when ./config.status config.h
19742 if test -n "\$CONFIG_FILES"; then
19743 # Protect against being on the right side of a sed subst in config.status.
19744 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19745 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19746 s,@SHELL@,$SHELL,;t t
19747 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19748 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19749 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19750 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19751 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19752 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19753 s,@exec_prefix@,$exec_prefix,;t t
19754 s,@prefix@,$prefix,;t t
19755 s,@program_transform_name@,$program_transform_name,;t t
19756 s,@bindir@,$bindir,;t t
19757 s,@sbindir@,$sbindir,;t t
19758 s,@libexecdir@,$libexecdir,;t t
19759 s,@datadir@,$datadir,;t t
19760 s,@sysconfdir@,$sysconfdir,;t t
19761 s,@sharedstatedir@,$sharedstatedir,;t t
19762 s,@localstatedir@,$localstatedir,;t t
19763 s,@libdir@,$libdir,;t t
19764 s,@includedir@,$includedir,;t t
19765 s,@oldincludedir@,$oldincludedir,;t t
19766 s,@infodir@,$infodir,;t t
19767 s,@mandir@,$mandir,;t t
19768 s,@build_alias@,$build_alias,;t t
19769 s,@host_alias@,$host_alias,;t t
19770 s,@target_alias@,$target_alias,;t t
19771 s,@DEFS@,$DEFS,;t t
19772 s,@ECHO_C@,$ECHO_C,;t t
19773 s,@ECHO_N@,$ECHO_N,;t t
19774 s,@ECHO_T@,$ECHO_T,;t t
19775 s,@LIBS@,$LIBS,;t t
19776 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19777 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19778 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19779 s,@CYGPATH_W@,$CYGPATH_W,;t t
19780 s,@PACKAGE@,$PACKAGE,;t t
19781 s,@VERSION@,$VERSION,;t t
19782 s,@ACLOCAL@,$ACLOCAL,;t t
19783 s,@AUTOCONF@,$AUTOCONF,;t t
19784 s,@AUTOMAKE@,$AUTOMAKE,;t t
19785 s,@AUTOHEADER@,$AUTOHEADER,;t t
19786 s,@MAKEINFO@,$MAKEINFO,;t t
19787 s,@install_sh@,$install_sh,;t t
19788 s,@STRIP@,$STRIP,;t t
19789 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19790 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19791 s,@mkdir_p@,$mkdir_p,;t t
19792 s,@AWK@,$AWK,;t t
19793 s,@SET_MAKE@,$SET_MAKE,;t t
19794 s,@am__leading_dot@,$am__leading_dot,;t t
19795 s,@AMTAR@,$AMTAR,;t t
19796 s,@am__tar@,$am__tar,;t t
19797 s,@am__untar@,$am__untar,;t t
19798 s,@CXX@,$CXX,;t t
19799 s,@CXXFLAGS@,$CXXFLAGS,;t t
19800 s,@LDFLAGS@,$LDFLAGS,;t t
19801 s,@CPPFLAGS@,$CPPFLAGS,;t t
19802 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19803 s,@EXEEXT@,$EXEEXT,;t t
19804 s,@OBJEXT@,$OBJEXT,;t t
19805 s,@DEPDIR@,$DEPDIR,;t t
19806 s,@am__include@,$am__include,;t t
19807 s,@am__quote@,$am__quote,;t t
19808 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19809 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19810 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19811 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19812 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19813 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19814 s,@build@,$build,;t t
19815 s,@build_cpu@,$build_cpu,;t t
19816 s,@build_vendor@,$build_vendor,;t t
19817 s,@build_os@,$build_os,;t t
19818 s,@host@,$host,;t t
19819 s,@host_cpu@,$host_cpu,;t t
19820 s,@host_vendor@,$host_vendor,;t t
19821 s,@host_os@,$host_os,;t t
19822 s,@CC@,$CC,;t t
19823 s,@CFLAGS@,$CFLAGS,;t t
19824 s,@ac_ct_CC@,$ac_ct_CC,;t t
19825 s,@CCDEPMODE@,$CCDEPMODE,;t t
19826 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19827 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19828 s,@EGREP@,$EGREP,;t t
19829 s,@LN_S@,$LN_S,;t t
19830 s,@ECHO@,$ECHO,;t t
19831 s,@AR@,$AR,;t t
19832 s,@ac_ct_AR@,$ac_ct_AR,;t t
19833 s,@RANLIB@,$RANLIB,;t t
19834 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19835 s,@CPP@,$CPP,;t t
19836 s,@CXXCPP@,$CXXCPP,;t t
19837 s,@F77@,$F77,;t t
19838 s,@FFLAGS@,$FFLAGS,;t t
19839 s,@ac_ct_F77@,$ac_ct_F77,;t t
19840 s,@LIBTOOL@,$LIBTOOL,;t t
19841 s,@LIBOBJS@,$LIBOBJS,;t t
19842 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19843 CEOF
19844
19845 _ACEOF
19846
19847 cat >>$CONFIG_STATUS <<\_ACEOF
19848 # Split the substitutions into bite-sized pieces for seds with
19849 # small command number limits, like on Digital OSF/1 and HP-UX.
19850 ac_max_sed_lines=48
19851 ac_sed_frag=1 # Number of current file.
19852 ac_beg=1 # First line for current file.
19853 ac_end=$ac_max_sed_lines # Line after last line for current file.
19854 ac_more_lines=:
19855 ac_sed_cmds=
19856 while $ac_more_lines; do
19857 if test $ac_beg -gt 1; then
19858 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19859 else
19860 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19861 fi
19862 if test ! -s $tmp/subs.frag; then
19863 ac_more_lines=false
19864 else
19865 # The purpose of the label and of the branching condition is to
19866 # speed up the sed processing (if there are no `@' at all, there
19867 # is no need to browse any of the substitutions).
19868 # These are the two extra sed commands mentioned above.
19869 (echo ':t
19870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19871 if test -z "$ac_sed_cmds"; then
19872 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19873 else
19874 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19875 fi
19876 ac_sed_frag=`expr $ac_sed_frag + 1`
19877 ac_beg=$ac_end
19878 ac_end=`expr $ac_end + $ac_max_sed_lines`
19879 fi
19880 done
19881 if test -z "$ac_sed_cmds"; then
19882 ac_sed_cmds=cat
19883 fi
19884 fi # test -n "$CONFIG_FILES"
19885
19886 _ACEOF
19887 cat >>$CONFIG_STATUS <<\_ACEOF
19888 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19890 case $ac_file in
19891 - | *:- | *:-:* ) # input from stdin
19892 cat >$tmp/stdin
19893 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19895 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19897 * ) ac_file_in=$ac_file.in ;;
19898 esac
19899
19900 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19901 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19902 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19903 X"$ac_file" : 'X\(//\)[^/]' \| \
19904 X"$ac_file" : 'X\(//\)$' \| \
19905 X"$ac_file" : 'X\(/\)' \| \
19906 . : '\(.\)' 2>/dev/null ||
19907 echo X"$ac_file" |
19908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19910 /^X\(\/\/\)$/{ s//\1/; q; }
19911 /^X\(\/\).*/{ s//\1/; q; }
19912 s/.*/./; q'`
19913 { if $as_mkdir_p; then
19914 mkdir -p "$ac_dir"
19915 else
19916 as_dir="$ac_dir"
19917 as_dirs=
19918 while test ! -d "$as_dir"; do
19919 as_dirs="$as_dir $as_dirs"
19920 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19922 X"$as_dir" : 'X\(//\)[^/]' \| \
19923 X"$as_dir" : 'X\(//\)$' \| \
19924 X"$as_dir" : 'X\(/\)' \| \
19925 . : '\(.\)' 2>/dev/null ||
19926 echo X"$as_dir" |
19927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19929 /^X\(\/\/\)$/{ s//\1/; q; }
19930 /^X\(\/\).*/{ s//\1/; q; }
19931 s/.*/./; q'`
19932 done
19933 test ! -n "$as_dirs" || mkdir $as_dirs
19934 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19935 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19936 { (exit 1); exit 1; }; }; }
19937
19938 ac_builddir=.
19939
19940 if test "$ac_dir" != .; then
19941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19942 # A "../" for each directory in $ac_dir_suffix.
19943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19944 else
19945 ac_dir_suffix= ac_top_builddir=
19946 fi
19947
19948 case $srcdir in
19949 .) # No --srcdir option. We are building in place.
19950 ac_srcdir=.
19951 if test -z "$ac_top_builddir"; then
19952 ac_top_srcdir=.
19953 else
19954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19955 fi ;;
19956 [\\/]* | ?:[\\/]* ) # Absolute path.
19957 ac_srcdir=$srcdir$ac_dir_suffix;
19958 ac_top_srcdir=$srcdir ;;
19959 *) # Relative path.
19960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19962 esac
19963
19964 # Do not use `cd foo && pwd` to compute absolute paths, because
19965 # the directories may not exist.
19966 case `pwd` in
19967 .) ac_abs_builddir="$ac_dir";;
19968 *)
19969 case "$ac_dir" in
19970 .) ac_abs_builddir=`pwd`;;
19971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19972 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19973 esac;;
19974 esac
19975 case $ac_abs_builddir in
19976 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19977 *)
19978 case ${ac_top_builddir}. in
19979 .) ac_abs_top_builddir=$ac_abs_builddir;;
19980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19982 esac;;
19983 esac
19984 case $ac_abs_builddir in
19985 .) ac_abs_srcdir=$ac_srcdir;;
19986 *)
19987 case $ac_srcdir in
19988 .) ac_abs_srcdir=$ac_abs_builddir;;
19989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19991 esac;;
19992 esac
19993 case $ac_abs_builddir in
19994 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19995 *)
19996 case $ac_top_srcdir in
19997 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20000 esac;;
20001 esac
20002
20003
20004 case $INSTALL in
20005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20006 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20007 esac
20008
20009 if test x"$ac_file" != x-; then
20010 { echo "$as_me:$LINENO: creating $ac_file" >&5
20011 echo "$as_me: creating $ac_file" >&6;}
20012 rm -f "$ac_file"
20013 fi
20014 # Let's still pretend it is `configure' which instantiates (i.e., don't
20015 # use $as_me), people would be surprised to read:
20016 # /* config.h. Generated by config.status. */
20017 if test x"$ac_file" = x-; then
20018 configure_input=
20019 else
20020 configure_input="$ac_file. "
20021 fi
20022 configure_input=$configure_input"Generated from `echo $ac_file_in |
20023 sed 's,.*/,,'` by configure."
20024
20025 # First look for the input files in the build tree, otherwise in the
20026 # src tree.
20027 ac_file_inputs=`IFS=:
20028 for f in $ac_file_in; do
20029 case $f in
20030 -) echo $tmp/stdin ;;
20031 [\\/$]*)
20032 # Absolute (can't be DOS-style, as IFS=:)
20033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20034 echo "$as_me: error: cannot find input file: $f" >&2;}
20035 { (exit 1); exit 1; }; }
20036 echo "$f";;
20037 *) # Relative
20038 if test -f "$f"; then
20039 # Build tree
20040 echo "$f"
20041 elif test -f "$srcdir/$f"; then
20042 # Source tree
20043 echo "$srcdir/$f"
20044 else
20045 # /dev/null tree
20046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20047 echo "$as_me: error: cannot find input file: $f" >&2;}
20048 { (exit 1); exit 1; }; }
20049 fi;;
20050 esac
20051 done` || { (exit 1); exit 1; }
20052 _ACEOF
20053 cat >>$CONFIG_STATUS <<_ACEOF
20054 sed "$ac_vpsub
20055 $extrasub
20056 _ACEOF
20057 cat >>$CONFIG_STATUS <<\_ACEOF
20058 :t
20059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20060 s,@configure_input@,$configure_input,;t t
20061 s,@srcdir@,$ac_srcdir,;t t
20062 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20063 s,@top_srcdir@,$ac_top_srcdir,;t t
20064 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20065 s,@builddir@,$ac_builddir,;t t
20066 s,@abs_builddir@,$ac_abs_builddir,;t t
20067 s,@top_builddir@,$ac_top_builddir,;t t
20068 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20069 s,@INSTALL@,$ac_INSTALL,;t t
20070 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20071 rm -f $tmp/stdin
20072 if test x"$ac_file" != x-; then
20073 mv $tmp/out $ac_file
20074 else
20075 cat $tmp/out
20076 rm -f $tmp/out
20077 fi
20078
20079 done
20080 _ACEOF
20081 cat >>$CONFIG_STATUS <<\_ACEOF
20082
20083 #
20084 # CONFIG_HEADER section.
20085 #
20086
20087 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20088 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20089 #
20090 # ac_d sets the value in "#define NAME VALUE" lines.
20091 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20092 ac_dB='[ ].*$,\1#\2'
20093 ac_dC=' '
20094 ac_dD=',;t'
20095 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20096 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20097 ac_uB='$,\1#\2define\3'
20098 ac_uC=' '
20099 ac_uD=',;t'
20100
20101 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20102 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20103 case $ac_file in
20104 - | *:- | *:-:* ) # input from stdin
20105 cat >$tmp/stdin
20106 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20108 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20109 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20110 * ) ac_file_in=$ac_file.in ;;
20111 esac
20112
20113 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20114 echo "$as_me: creating $ac_file" >&6;}
20115
20116 # First look for the input files in the build tree, otherwise in the
20117 # src tree.
20118 ac_file_inputs=`IFS=:
20119 for f in $ac_file_in; do
20120 case $f in
20121 -) echo $tmp/stdin ;;
20122 [\\/$]*)
20123 # Absolute (can't be DOS-style, as IFS=:)
20124 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20125 echo "$as_me: error: cannot find input file: $f" >&2;}
20126 { (exit 1); exit 1; }; }
20127 # Do quote $f, to prevent DOS paths from being IFS'd.
20128 echo "$f";;
20129 *) # Relative
20130 if test -f "$f"; then
20131 # Build tree
20132 echo "$f"
20133 elif test -f "$srcdir/$f"; then
20134 # Source tree
20135 echo "$srcdir/$f"
20136 else
20137 # /dev/null tree
20138 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20139 echo "$as_me: error: cannot find input file: $f" >&2;}
20140 { (exit 1); exit 1; }; }
20141 fi;;
20142 esac
20143 done` || { (exit 1); exit 1; }
20144 # Remove the trailing spaces.
20145 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20146
20147 _ACEOF
20148
20149 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20150 # `conftest.undefs', that substitutes the proper values into
20151 # config.h.in to produce config.h. The first handles `#define'
20152 # templates, and the second `#undef' templates.
20153 # And first: Protect against being on the right side of a sed subst in
20154 # config.status. Protect against being in an unquoted here document
20155 # in config.status.
20156 rm -f conftest.defines conftest.undefs
20157 # Using a here document instead of a string reduces the quoting nightmare.
20158 # Putting comments in sed scripts is not portable.
20159 #
20160 # `end' is used to avoid that the second main sed command (meant for
20161 # 0-ary CPP macros) applies to n-ary macro definitions.
20162 # See the Autoconf documentation for `clear'.
20163 cat >confdef2sed.sed <<\_ACEOF
20164 s/[\\&,]/\\&/g
20165 s,[\\$`],\\&,g
20166 t clear
20167 : clear
20168 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20169 t end
20170 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20171 : end
20172 _ACEOF
20173 # If some macros were called several times there might be several times
20174 # the same #defines, which is useless. Nevertheless, we may not want to
20175 # sort them, since we want the *last* AC-DEFINE to be honored.
20176 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20177 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20178 rm -f confdef2sed.sed
20179
20180 # This sed command replaces #undef with comments. This is necessary, for
20181 # example, in the case of _POSIX_SOURCE, which is predefined and required
20182 # on some systems where configure will not decide to define it.
20183 cat >>conftest.undefs <<\_ACEOF
20184 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20185 _ACEOF
20186
20187 # Break up conftest.defines because some shells have a limit on the size
20188 # of here documents, and old seds have small limits too (100 cmds).
20189 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20190 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20191 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20192 echo ' :' >>$CONFIG_STATUS
20193 rm -f conftest.tail
20194 while grep . conftest.defines >/dev/null
20195 do
20196 # Write a limited-size here document to $tmp/defines.sed.
20197 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20198 # Speed up: don't consider the non `#define' lines.
20199 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20200 # Work around the forget-to-reset-the-flag bug.
20201 echo 't clr' >>$CONFIG_STATUS
20202 echo ': clr' >>$CONFIG_STATUS
20203 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20204 echo 'CEOF
20205 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20206 rm -f $tmp/in
20207 mv $tmp/out $tmp/in
20208 ' >>$CONFIG_STATUS
20209 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20210 rm -f conftest.defines
20211 mv conftest.tail conftest.defines
20212 done
20213 rm -f conftest.defines
20214 echo ' fi # grep' >>$CONFIG_STATUS
20215 echo >>$CONFIG_STATUS
20216
20217 # Break up conftest.undefs because some shells have a limit on the size
20218 # of here documents, and old seds have small limits too (100 cmds).
20219 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20220 rm -f conftest.tail
20221 while grep . conftest.undefs >/dev/null
20222 do
20223 # Write a limited-size here document to $tmp/undefs.sed.
20224 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20225 # Speed up: don't consider the non `#undef'
20226 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20227 # Work around the forget-to-reset-the-flag bug.
20228 echo 't clr' >>$CONFIG_STATUS
20229 echo ': clr' >>$CONFIG_STATUS
20230 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20231 echo 'CEOF
20232 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20233 rm -f $tmp/in
20234 mv $tmp/out $tmp/in
20235 ' >>$CONFIG_STATUS
20236 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20237 rm -f conftest.undefs
20238 mv conftest.tail conftest.undefs
20239 done
20240 rm -f conftest.undefs
20241
20242 cat >>$CONFIG_STATUS <<\_ACEOF
20243 # Let's still pretend it is `configure' which instantiates (i.e., don't
20244 # use $as_me), people would be surprised to read:
20245 # /* config.h. Generated by config.status. */
20246 if test x"$ac_file" = x-; then
20247 echo "/* Generated by configure. */" >$tmp/config.h
20248 else
20249 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20250 fi
20251 cat $tmp/in >>$tmp/config.h
20252 rm -f $tmp/in
20253 if test x"$ac_file" != x-; then
20254 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20255 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20256 echo "$as_me: $ac_file is unchanged" >&6;}
20257 else
20258 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20260 X"$ac_file" : 'X\(//\)[^/]' \| \
20261 X"$ac_file" : 'X\(//\)$' \| \
20262 X"$ac_file" : 'X\(/\)' \| \
20263 . : '\(.\)' 2>/dev/null ||
20264 echo X"$ac_file" |
20265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20267 /^X\(\/\/\)$/{ s//\1/; q; }
20268 /^X\(\/\).*/{ s//\1/; q; }
20269 s/.*/./; q'`
20270 { if $as_mkdir_p; then
20271 mkdir -p "$ac_dir"
20272 else
20273 as_dir="$ac_dir"
20274 as_dirs=
20275 while test ! -d "$as_dir"; do
20276 as_dirs="$as_dir $as_dirs"
20277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20279 X"$as_dir" : 'X\(//\)[^/]' \| \
20280 X"$as_dir" : 'X\(//\)$' \| \
20281 X"$as_dir" : 'X\(/\)' \| \
20282 . : '\(.\)' 2>/dev/null ||
20283 echo X"$as_dir" |
20284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20286 /^X\(\/\/\)$/{ s//\1/; q; }
20287 /^X\(\/\).*/{ s//\1/; q; }
20288 s/.*/./; q'`
20289 done
20290 test ! -n "$as_dirs" || mkdir $as_dirs
20291 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20292 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20293 { (exit 1); exit 1; }; }; }
20294
20295 rm -f $ac_file
20296 mv $tmp/config.h $ac_file
20297 fi
20298 else
20299 cat $tmp/config.h
20300 rm -f $tmp/config.h
20301 fi
20302 # Compute $ac_file's index in $config_headers.
20303 _am_stamp_count=1
20304 for _am_header in $config_headers :; do
20305 case $_am_header in
20306 $ac_file | $ac_file:* )
20307 break ;;
20308 * )
20309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20310 esac
20311 done
20312 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20313 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20314 X$ac_file : 'X\(//\)[^/]' \| \
20315 X$ac_file : 'X\(//\)$' \| \
20316 X$ac_file : 'X\(/\)' \| \
20317 . : '\(.\)' 2>/dev/null ||
20318 echo X$ac_file |
20319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20321 /^X\(\/\/\)$/{ s//\1/; q; }
20322 /^X\(\/\).*/{ s//\1/; q; }
20323 s/.*/./; q'`/stamp-h$_am_stamp_count
20324 done
20325 _ACEOF
20326 cat >>$CONFIG_STATUS <<\_ACEOF
20327
20328 #
20329 # CONFIG_COMMANDS section.
20330 #
20331 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20332 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20333 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20334 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20335 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20336 X"$ac_dest" : 'X\(//\)[^/]' \| \
20337 X"$ac_dest" : 'X\(//\)$' \| \
20338 X"$ac_dest" : 'X\(/\)' \| \
20339 . : '\(.\)' 2>/dev/null ||
20340 echo X"$ac_dest" |
20341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20343 /^X\(\/\/\)$/{ s//\1/; q; }
20344 /^X\(\/\).*/{ s//\1/; q; }
20345 s/.*/./; q'`
20346 { if $as_mkdir_p; then
20347 mkdir -p "$ac_dir"
20348 else
20349 as_dir="$ac_dir"
20350 as_dirs=
20351 while test ! -d "$as_dir"; do
20352 as_dirs="$as_dir $as_dirs"
20353 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20355 X"$as_dir" : 'X\(//\)[^/]' \| \
20356 X"$as_dir" : 'X\(//\)$' \| \
20357 X"$as_dir" : 'X\(/\)' \| \
20358 . : '\(.\)' 2>/dev/null ||
20359 echo X"$as_dir" |
20360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20362 /^X\(\/\/\)$/{ s//\1/; q; }
20363 /^X\(\/\).*/{ s//\1/; q; }
20364 s/.*/./; q'`
20365 done
20366 test ! -n "$as_dirs" || mkdir $as_dirs
20367 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20368 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20369 { (exit 1); exit 1; }; }; }
20370
20371 ac_builddir=.
20372
20373 if test "$ac_dir" != .; then
20374 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20375 # A "../" for each directory in $ac_dir_suffix.
20376 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20377 else
20378 ac_dir_suffix= ac_top_builddir=
20379 fi
20380
20381 case $srcdir in
20382 .) # No --srcdir option. We are building in place.
20383 ac_srcdir=.
20384 if test -z "$ac_top_builddir"; then
20385 ac_top_srcdir=.
20386 else
20387 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20388 fi ;;
20389 [\\/]* | ?:[\\/]* ) # Absolute path.
20390 ac_srcdir=$srcdir$ac_dir_suffix;
20391 ac_top_srcdir=$srcdir ;;
20392 *) # Relative path.
20393 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20394 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20395 esac
20396
20397 # Do not use `cd foo && pwd` to compute absolute paths, because
20398 # the directories may not exist.
20399 case `pwd` in
20400 .) ac_abs_builddir="$ac_dir";;
20401 *)
20402 case "$ac_dir" in
20403 .) ac_abs_builddir=`pwd`;;
20404 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20405 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20406 esac;;
20407 esac
20408 case $ac_abs_builddir in
20409 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20410 *)
20411 case ${ac_top_builddir}. in
20412 .) ac_abs_top_builddir=$ac_abs_builddir;;
20413 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20414 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20415 esac;;
20416 esac
20417 case $ac_abs_builddir in
20418 .) ac_abs_srcdir=$ac_srcdir;;
20419 *)
20420 case $ac_srcdir in
20421 .) ac_abs_srcdir=$ac_abs_builddir;;
20422 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20423 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20424 esac;;
20425 esac
20426 case $ac_abs_builddir in
20427 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20428 *)
20429 case $ac_top_srcdir in
20430 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20431 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20432 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20433 esac;;
20434 esac
20435
20436
20437 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20438 echo "$as_me: executing $ac_dest commands" >&6;}
20439 case $ac_dest in
20440 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20441 # Strip MF so we end up with the name of the file.
20442 mf=`echo "$mf" | sed -e 's/:.*$//'`
20443 # Check whether this is an Automake generated Makefile or not.
20444 # We used to match only the files named `Makefile.in', but
20445 # some people rename them; so instead we look at the file content.
20446 # Grep'ing the first line is not enough: some people post-process
20447 # each Makefile.in and add a new line on top of each file to say so.
20448 # So let's grep whole file.
20449 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20450 dirpart=`(dirname "$mf") 2>/dev/null ||
20451 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20452 X"$mf" : 'X\(//\)[^/]' \| \
20453 X"$mf" : 'X\(//\)$' \| \
20454 X"$mf" : 'X\(/\)' \| \
20455 . : '\(.\)' 2>/dev/null ||
20456 echo X"$mf" |
20457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20459 /^X\(\/\/\)$/{ s//\1/; q; }
20460 /^X\(\/\).*/{ s//\1/; q; }
20461 s/.*/./; q'`
20462 else
20463 continue
20464 fi
20465 # Extract the definition of DEPDIR, am__include, and am__quote
20466 # from the Makefile without running `make'.
20467 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20468 test -z "$DEPDIR" && continue
20469 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20470 test -z "am__include" && continue
20471 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20472 # When using ansi2knr, U may be empty or an underscore; expand it
20473 U=`sed -n 's/^U = //p' < "$mf"`
20474 # Find all dependency output files, they are included files with
20475 # $(DEPDIR) in their names. We invoke sed twice because it is the
20476 # simplest approach to changing $(DEPDIR) to its actual value in the
20477 # expansion.
20478 for file in `sed -n "
20479 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20481 # Make sure the directory exists.
20482 test -f "$dirpart/$file" && continue
20483 fdir=`(dirname "$file") 2>/dev/null ||
20484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485 X"$file" : 'X\(//\)[^/]' \| \
20486 X"$file" : 'X\(//\)$' \| \
20487 X"$file" : 'X\(/\)' \| \
20488 . : '\(.\)' 2>/dev/null ||
20489 echo X"$file" |
20490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20492 /^X\(\/\/\)$/{ s//\1/; q; }
20493 /^X\(\/\).*/{ s//\1/; q; }
20494 s/.*/./; q'`
20495 { if $as_mkdir_p; then
20496 mkdir -p $dirpart/$fdir
20497 else
20498 as_dir=$dirpart/$fdir
20499 as_dirs=
20500 while test ! -d "$as_dir"; do
20501 as_dirs="$as_dir $as_dirs"
20502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20504 X"$as_dir" : 'X\(//\)[^/]' \| \
20505 X"$as_dir" : 'X\(//\)$' \| \
20506 X"$as_dir" : 'X\(/\)' \| \
20507 . : '\(.\)' 2>/dev/null ||
20508 echo X"$as_dir" |
20509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20511 /^X\(\/\/\)$/{ s//\1/; q; }
20512 /^X\(\/\).*/{ s//\1/; q; }
20513 s/.*/./; q'`
20514 done
20515 test ! -n "$as_dirs" || mkdir $as_dirs
20516 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20517 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20518 { (exit 1); exit 1; }; }; }
20519
20520 # echo "creating $dirpart/$file"
20521 echo '# dummy' > "$dirpart/$file"
20522 done
20523 done
20524 ;;
20525 esac
20526 done
20527 _ACEOF
20528
20529 cat >>$CONFIG_STATUS <<\_ACEOF
20530
20531 { (exit 0); exit 0; }
20532 _ACEOF
20533 chmod +x $CONFIG_STATUS
20534 ac_clean_files=$ac_clean_files_save
20535
20536
20537 # configure is writing to config.log, and then calls config.status.
20538 # config.status does its own redirection, appending to config.log.
20539 # Unfortunately, on DOS this fails, as config.log is still kept open
20540 # by configure, so config.status won't be able to write to it; its
20541 # output is simply discarded. So we exec the FD to /dev/null,
20542 # effectively closing config.log, so it can be properly (re)opened and
20543 # appended to by config.status. When coming back to configure, we
20544 # need to make the FD available again.
20545 if test "$no_create" != yes; then
20546 ac_cs_success=:
20547 ac_config_status_args=
20548 test "$silent" = yes &&
20549 ac_config_status_args="$ac_config_status_args --quiet"
20550 exec 5>/dev/null
20551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20552 exec 5>>config.log
20553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20554 # would make configure fail if this is the last instruction.
20555 $ac_cs_success || { (exit 1); exit 1; }
20556 fi
20557