Debian Codegraph @

configure

raw
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL XML2_CONFIG XML_CPPFLAGS XML_LIBS 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 builds
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 --disable-xmltest Do not try to compile and run a test LIBXML program
1036
1037 Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1042 both]
1043 --with-tags[=TAGS]
1044 include additional configurations [automatic]
1045 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
1046 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1047
1048 Some influential environment variables:
1049 CXX C++ compiler command
1050 CXXFLAGS C++ compiler flags
1051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1052 nonstandard directory <lib dir>
1053 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054 headers in a nonstandard directory <include dir>
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 CPP C preprocessor
1058 CXXCPP C++ preprocessor
1059 F77 Fortran 77 compiler command
1060 FFLAGS Fortran 77 compiler flags
1061
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1064
1065 _ACEOF
1066 fi
1067
1068 if test "$ac_init_help" = "recursive"; then
1069 # If there are subdirs, report their specific --help.
1070 ac_popdir=`pwd`
1071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072 test -d $ac_dir || continue
1073 ac_builddir=.
1074
1075 if test "$ac_dir" != .; then
1076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077 # A "../" for each directory in $ac_dir_suffix.
1078 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 else
1080 ac_dir_suffix= ac_top_builddir=
1081 fi
1082
1083 case $srcdir in
1084 .) # No --srcdir option. We are building in place.
1085 ac_srcdir=.
1086 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=.
1088 else
1089 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090 fi ;;
1091 [\\/]* | ?:[\\/]* ) # Absolute path.
1092 ac_srcdir=$srcdir$ac_dir_suffix;
1093 ac_top_srcdir=$srcdir ;;
1094 *) # Relative path.
1095 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 esac
1098
1099 # Do not use `cd foo && pwd` to compute absolute paths, because
1100 # the directories may not exist.
1101 case `pwd` in
1102 .) ac_abs_builddir="$ac_dir";;
1103 *)
1104 case "$ac_dir" in
1105 .) ac_abs_builddir=`pwd`;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108 esac;;
1109 esac
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 *)
1113 case ${ac_top_builddir}. in
1114 .) ac_abs_top_builddir=$ac_abs_builddir;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117 esac;;
1118 esac
1119 case $ac_abs_builddir in
1120 .) ac_abs_srcdir=$ac_srcdir;;
1121 *)
1122 case $ac_srcdir in
1123 .) ac_abs_srcdir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126 esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 *)
1131 case $ac_top_srcdir in
1132 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1135 esac;;
1136 esac
1137
1138 cd $ac_dir
1139 # Check for guested configure; otherwise get Cygnus style configure.
1140 if test -f $ac_srcdir/configure.gnu; then
1141 echo
1142 $SHELL $ac_srcdir/configure.gnu --help=recursive
1143 elif test -f $ac_srcdir/configure; then
1144 echo
1145 $SHELL $ac_srcdir/configure --help=recursive
1146 elif test -f $ac_srcdir/configure.ac ||
1147 test -f $ac_srcdir/configure.in; then
1148 echo
1149 $ac_configure --help
1150 else
1151 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1152 fi
1153 cd $ac_popdir
1154 done
1155 fi
1156
1157 test -n "$ac_init_help" && exit 0
1158 if $ac_init_version; then
1159 cat <<\_ACEOF
1160
1161 Copyright (C) 2003 Free Software Foundation, Inc.
1162 This configure script is free software; the Free Software Foundation
1163 gives unlimited permission to copy, distribute and modify it.
1164 _ACEOF
1165 exit 0
1166 fi
1167 exec 5>config.log
1168 cat >&5 <<_ACEOF
1169 This file contains any messages produced by compilers while
1170 running configure, to aid debugging if configure makes a mistake.
1171
1172 It was created by $as_me, which was
1173 generated by GNU Autoconf 2.59. Invocation command line was
1174
1175 $ $0 $@
1176
1177 _ACEOF
1178 {
1179 cat <<_ASUNAME
1180 ## --------- ##
1181 ## Platform. ##
1182 ## --------- ##
1183
1184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
1190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1192
1193 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1194 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1197 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1198 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1199 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1200
1201 _ASUNAME
1202
1203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204 for as_dir in $PATH
1205 do
1206 IFS=$as_save_IFS
1207 test -z "$as_dir" && as_dir=.
1208 echo "PATH: $as_dir"
1209 done
1210
1211 } >&5
1212
1213 cat >&5 <<_ACEOF
1214
1215
1216 ## ----------- ##
1217 ## Core tests. ##
1218 ## ----------- ##
1219
1220 _ACEOF
1221
1222
1223 # Keep a trace of the command line.
1224 # Strip out --no-create and --no-recursion so they do not pile up.
1225 # Strip out --silent because we don't want to record it for future runs.
1226 # Also quote any args containing shell meta-characters.
1227 # Make two passes to allow for proper duplicate-argument suppression.
1228 ac_configure_args=
1229 ac_configure_args0=
1230 ac_configure_args1=
1231 ac_sep=
1232 ac_must_keep_next=false
1233 for ac_pass in 1 2
1234 do
1235 for ac_arg
1236 do
1237 case $ac_arg in
1238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 continue ;;
1242 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 esac
1245 case $ac_pass in
1246 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247 2)
1248 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249 if test $ac_must_keep_next = true; then
1250 ac_must_keep_next=false # Got value, back to normal.
1251 else
1252 case $ac_arg in
1253 *=* | --config-cache | -C | -disable-* | --disable-* \
1254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256 | -with-* | --with-* | -without-* | --without-* | --x)
1257 case "$ac_configure_args0 " in
1258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259 esac
1260 ;;
1261 -* ) ac_must_keep_next=true ;;
1262 esac
1263 fi
1264 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265 # Get rid of the leading space.
1266 ac_sep=" "
1267 ;;
1268 esac
1269 done
1270 done
1271 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
1274 # When interrupted or exit'd, cleanup temporary files, and complete
1275 # config.log. We remove comments because anyway the quotes in there
1276 # would cause problems or look ugly.
1277 # WARNING: Be sure not to use single quotes in there, as some shells,
1278 # such as our DU 5.0 friend, will then `close' the trap.
1279 trap 'exit_status=$?
1280 # Save into config.log some information that might help in debugging.
1281 {
1282 echo
1283
1284 cat <<\_ASBOX
1285 ## ---------------- ##
1286 ## Cache variables. ##
1287 ## ---------------- ##
1288 _ASBOX
1289 echo
1290 # The following way of writing the cache mishandles newlines in values,
1291 {
1292 (set) 2>&1 |
1293 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294 *ac_space=\ *)
1295 sed -n \
1296 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298 ;;
1299 *)
1300 sed -n \
1301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1302 ;;
1303 esac;
1304 }
1305 echo
1306
1307 cat <<\_ASBOX
1308 ## ----------------- ##
1309 ## Output variables. ##
1310 ## ----------------- ##
1311 _ASBOX
1312 echo
1313 for ac_var in $ac_subst_vars
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319
1320 if test -n "$ac_subst_files"; then
1321 cat <<\_ASBOX
1322 ## ------------- ##
1323 ## Output files. ##
1324 ## ------------- ##
1325 _ASBOX
1326 echo
1327 for ac_var in $ac_subst_files
1328 do
1329 eval ac_val=$`echo $ac_var`
1330 echo "$ac_var='"'"'$ac_val'"'"'"
1331 done | sort
1332 echo
1333 fi
1334
1335 if test -s confdefs.h; then
1336 cat <<\_ASBOX
1337 ## ----------- ##
1338 ## confdefs.h. ##
1339 ## ----------- ##
1340 _ASBOX
1341 echo
1342 sed "/^$/d" confdefs.h | sort
1343 echo
1344 fi
1345 test "$ac_signal" != 0 &&
1346 echo "$as_me: caught signal $ac_signal"
1347 echo "$as_me: exit $exit_status"
1348 } >&5
1349 rm -f core *.core &&
1350 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351 exit $exit_status
1352 ' 0
1353 for ac_signal in 1 2 13 15; do
1354 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355 done
1356 ac_signal=0
1357
1358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1359 rm -rf conftest* confdefs.h
1360 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 echo >confdefs.h
1362
1363 # Predefined preprocessor variables.
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_NAME "$PACKAGE_NAME"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_STRING "$PACKAGE_STRING"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387 _ACEOF
1388
1389
1390 # Let the site file select an alternate cache file if it wants to.
1391 # Prefer explicitly selected file to automatically selected ones.
1392 if test -z "$CONFIG_SITE"; then
1393 if test "x$prefix" != xNONE; then
1394 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395 else
1396 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 fi
1398 fi
1399 for ac_site_file in $CONFIG_SITE; do
1400 if test -r "$ac_site_file"; then
1401 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402 echo "$as_me: loading site script $ac_site_file" >&6;}
1403 sed 's/^/| /' "$ac_site_file" >&5
1404 . "$ac_site_file"
1405 fi
1406 done
1407
1408 if test -r "$cache_file"; then
1409 # Some versions of bash will fail to source /dev/null (special
1410 # files actually), so we avoid doing that.
1411 if test -f "$cache_file"; then
1412 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413 echo "$as_me: loading cache $cache_file" >&6;}
1414 case $cache_file in
1415 [\\/]* | ?:[\\/]* ) . $cache_file;;
1416 *) . ./$cache_file;;
1417 esac
1418 fi
1419 else
1420 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421 echo "$as_me: creating cache $cache_file" >&6;}
1422 >$cache_file
1423 fi
1424
1425 # Check that the precious variables saved in the cache have kept the same
1426 # value.
1427 ac_cache_corrupted=false
1428 for ac_var in `(set) 2>&1 |
1429 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431 eval ac_new_set=\$ac_env_${ac_var}_set
1432 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433 eval ac_new_val="\$ac_env_${ac_var}_value"
1434 case $ac_old_set,$ac_new_set in
1435 set,)
1436 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438 ac_cache_corrupted=: ;;
1439 ,set)
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1443 ,);;
1444 *)
1445 if test "x$ac_old_val" != "x$ac_new_val"; then
1446 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1449 echo "$as_me: former value: $ac_old_val" >&2;}
1450 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1451 echo "$as_me: current value: $ac_new_val" >&2;}
1452 ac_cache_corrupted=:
1453 fi;;
1454 esac
1455 # Pass precious variables to config.status.
1456 if test "$ac_new_set" = set; then
1457 case $ac_new_val in
1458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460 *) ac_arg=$ac_var=$ac_new_val ;;
1461 esac
1462 case " $ac_configure_args " in
1463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1464 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465 esac
1466 fi
1467 done
1468 if $ac_cache_corrupted; then
1469 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473 { (exit 1); exit 1; }; }
1474 fi
1475
1476 ac_ext=c
1477 ac_cpp='$CPP $CPPFLAGS'
1478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501 # Add the stamp file to the list of files AC keeps track of,
1502 # along with our hook.
1503 ac_config_headers="$ac_config_headers config.h"
1504
1505
1506
1507 am__api_version="1.6"
1508 ac_aux_dir=
1509 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1510 if test -f $ac_dir/install-sh; then
1511 ac_aux_dir=$ac_dir
1512 ac_install_sh="$ac_aux_dir/install-sh -c"
1513 break
1514 elif test -f $ac_dir/install.sh; then
1515 ac_aux_dir=$ac_dir
1516 ac_install_sh="$ac_aux_dir/install.sh -c"
1517 break
1518 elif test -f $ac_dir/shtool; then
1519 ac_aux_dir=$ac_dir
1520 ac_install_sh="$ac_aux_dir/shtool install -c"
1521 break
1522 fi
1523 done
1524 if test -z "$ac_aux_dir"; then
1525 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1526 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1527 { (exit 1); exit 1; }; }
1528 fi
1529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
1533 # Find a good install program. We prefer a C program (faster),
1534 # so one script is as good as another. But avoid the broken or
1535 # incompatible versions:
1536 # SysV /etc/install, /usr/sbin/install
1537 # SunOS /usr/etc/install
1538 # IRIX /sbin/install
1539 # AIX /bin/install
1540 # AmigaOS /C/install, which installs bootblocks on floppy discs
1541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1544 # OS/2's system install, which has a completely different semantic
1545 # ./install, which can be erroneously created by make from ./install.sh.
1546 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1547 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1548 if test -z "$INSTALL"; then
1549 if test "${ac_cv_path_install+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 # Account for people who put trailing slashes in PATH elements.
1558 case $as_dir/ in
1559 ./ | .// | /cC/* | \
1560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1561 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1562 /usr/ucb/* ) ;;
1563 *)
1564 # OSF1 and SCO ODT 3.0 have their own names for install.
1565 # Don't use installbsd from OSF since it installs stuff as root
1566 # by default.
1567 for ac_prog in ginstall scoinst install; do
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1570 if test $ac_prog = install &&
1571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1572 # AIX install. It has an incompatible calling convention.
1573 :
1574 elif test $ac_prog = install &&
1575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1576 # program-specific install script used by HP pwplus--don't use.
1577 :
1578 else
1579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1580 break 3
1581 fi
1582 fi
1583 done
1584 done
1585 ;;
1586 esac
1587 done
1588
1589
1590 fi
1591 if test "${ac_cv_path_install+set}" = set; then
1592 INSTALL=$ac_cv_path_install
1593 else
1594 # As a last resort, use the slow shell script. We don't cache a
1595 # path for INSTALL within a source directory, because that will
1596 # break other packages using the cache if that directory is
1597 # removed, or if the path is relative.
1598 INSTALL=$ac_install_sh
1599 fi
1600 fi
1601 echo "$as_me:$LINENO: result: $INSTALL" >&5
1602 echo "${ECHO_T}$INSTALL" >&6
1603
1604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1605 # It thinks the first close brace ends the variable substitution.
1606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1607
1608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1609
1610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1611
1612 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1613 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1614 # Just in case
1615 sleep 1
1616 echo timestamp > conftest.file
1617 # Do `set' in a subshell so we don't clobber the current shell's
1618 # arguments. Must try -L first in case configure is actually a
1619 # symlink; some systems play weird games with the mod time of symlinks
1620 # (eg FreeBSD returns the mod time of the symlink's containing
1621 # directory).
1622 if (
1623 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1624 if test "$*" = "X"; then
1625 # -L didn't work.
1626 set X `ls -t $srcdir/configure conftest.file`
1627 fi
1628 rm -f conftest.file
1629 if test "$*" != "X $srcdir/configure conftest.file" \
1630 && test "$*" != "X conftest.file $srcdir/configure"; then
1631
1632 # If neither matched, then we have a broken ls. This can happen
1633 # if, for instance, CONFIG_SHELL is bash and it inherits a
1634 # broken ls alias from the environment. This has actually
1635 # happened. Such a system could not be considered "sane".
1636 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1637 alias in your environment" >&5
1638 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1639 alias in your environment" >&2;}
1640 { (exit 1); exit 1; }; }
1641 fi
1642
1643 test "$2" = conftest.file
1644 )
1645 then
1646 # Ok.
1647 :
1648 else
1649 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1650 Check your system clock" >&5
1651 echo "$as_me: error: newly created file is older than distributed files!
1652 Check your system clock" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655 echo "$as_me:$LINENO: result: yes" >&5
1656 echo "${ECHO_T}yes" >&6
1657 test "$program_prefix" != NONE &&
1658 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1659 # Use a double $ so make ignores it.
1660 test "$program_suffix" != NONE &&
1661 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1662 # Double any \ or $. echo might interpret backslashes.
1663 # By default was `s,x,x', remove it if useless.
1664 cat <<\_ACEOF >conftest.sed
1665 s/[\\$]/&&/g;s/;s,x,x,$//
1666 _ACEOF
1667 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1668 rm conftest.sed
1669
1670
1671 # expand $ac_aux_dir to an absolute path
1672 am_aux_dir=`cd $ac_aux_dir && pwd`
1673
1674 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1675 # Use eval to expand $SHELL
1676 if eval "$MISSING --run true"; then
1677 am_missing_run="$MISSING --run "
1678 else
1679 am_missing_run=
1680 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1681 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1682 fi
1683
1684 for ac_prog in gawk mawk nawk awk
1685 do
1686 # Extract the first word of "$ac_prog", so it can be a program name with args.
1687 set dummy $ac_prog; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_AWK+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$AWK"; then
1694 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_AWK="$ac_prog"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707 done
1708 done
1709
1710 fi
1711 fi
1712 AWK=$ac_cv_prog_AWK
1713 if test -n "$AWK"; then
1714 echo "$as_me:$LINENO: result: $AWK" >&5
1715 echo "${ECHO_T}$AWK" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1719 fi
1720
1721 test -n "$AWK" && break
1722 done
1723
1724 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1725 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1726 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1727 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 cat >conftest.make <<\_ACEOF
1731 all:
1732 @echo 'ac_maketemp="$(MAKE)"'
1733 _ACEOF
1734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1735 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1736 if test -n "$ac_maketemp"; then
1737 eval ac_cv_prog_make_${ac_make}_set=yes
1738 else
1739 eval ac_cv_prog_make_${ac_make}_set=no
1740 fi
1741 rm -f conftest.make
1742 fi
1743 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1744 echo "$as_me:$LINENO: result: yes" >&5
1745 echo "${ECHO_T}yes" >&6
1746 SET_MAKE=
1747 else
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 SET_MAKE="MAKE=${MAKE-make}"
1751 fi
1752
1753 # test to see if srcdir already configured
1754 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1755 test -f $srcdir/config.status; then
1756 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1757 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1758 { (exit 1); exit 1; }; }
1759 fi
1760
1761 # Define the identity of the package.
1762 PACKAGE=dictconv
1763 VERSION=0.1
1764
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE "$PACKAGE"
1768 _ACEOF
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define VERSION "$VERSION"
1773 _ACEOF
1774
1775 # Some tools Automake needs.
1776
1777 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1778
1779
1780 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1781
1782
1783 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1784
1785
1786 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1787
1788
1789 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1790
1791
1792 AMTAR=${AMTAR-"${am_missing_run}tar"}
1793
1794 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1795
1796 # Installed binaries are usually stripped using `strip' when the user
1797 # run `make install-strip'. However `strip' might not be the right
1798 # tool to use in cross-compilation environments, therefore Automake
1799 # will honor the `STRIP' environment variable to overrule this program.
1800 if test "$cross_compiling" != no; then
1801 if test -n "$ac_tool_prefix"; then
1802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1803 set dummy ${ac_tool_prefix}strip; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_STRIP+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 if test -n "$STRIP"; then
1810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 break 2
1822 fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 STRIP=$ac_cv_prog_STRIP
1829 if test -n "$STRIP"; then
1830 echo "$as_me:$LINENO: result: $STRIP" >&5
1831 echo "${ECHO_T}$STRIP" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837 fi
1838 if test -z "$ac_cv_prog_STRIP"; then
1839 ac_ct_STRIP=$STRIP
1840 # Extract the first word of "strip", so it can be a program name with args.
1841 set dummy strip; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 if test -n "$ac_ct_STRIP"; then
1848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1849 else
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_ac_ct_STRIP="strip"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 break 2
1860 fi
1861 done
1862 done
1863
1864 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1865 fi
1866 fi
1867 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1868 if test -n "$ac_ct_STRIP"; then
1869 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1870 echo "${ECHO_T}$ac_ct_STRIP" >&6
1871 else
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 fi
1875
1876 STRIP=$ac_ct_STRIP
1877 else
1878 STRIP="$ac_cv_prog_STRIP"
1879 fi
1880
1881 fi
1882 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1883
1884 # We need awk for the "check" target. The system "awk" is bad on
1885 # some platforms.
1886
1887
1888
1889
1890 ac_ext=cc
1891 ac_cpp='$CXXCPP $CPPFLAGS'
1892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1895
1896 ac_ext=cc
1897 ac_cpp='$CXXCPP $CPPFLAGS'
1898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1901 if test -n "$ac_tool_prefix"; then
1902 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1903 do
1904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_CXX+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 if test -n "$CXX"; then
1912 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1924 fi
1925 done
1926 done
1927
1928 fi
1929 fi
1930 CXX=$ac_cv_prog_CXX
1931 if test -n "$CXX"; then
1932 echo "$as_me:$LINENO: result: $CXX" >&5
1933 echo "${ECHO_T}$CXX" >&6
1934 else
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 fi
1938
1939 test -n "$CXX" && break
1940 done
1941 fi
1942 if test -z "$CXX"; then
1943 ac_ct_CXX=$CXX
1944 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1945 do
1946 # Extract the first word of "$ac_prog", so it can be a program name with args.
1947 set dummy $ac_prog; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test -n "$ac_ct_CXX"; then
1954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CXX="$ac_prog"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1966 fi
1967 done
1968 done
1969
1970 fi
1971 fi
1972 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1973 if test -n "$ac_ct_CXX"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1975 echo "${ECHO_T}$ac_ct_CXX" >&6
1976 else
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 fi
1980
1981 test -n "$ac_ct_CXX" && break
1982 done
1983 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1984
1985 CXX=$ac_ct_CXX
1986 fi
1987
1988
1989 # Provide some information about the compiler.
1990 echo "$as_me:$LINENO:" \
1991 "checking for C++ compiler version" >&5
1992 ac_compiler=`set X $ac_compile; echo $2`
1993 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1994 (eval $ac_compiler --version </dev/null >&5) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1999 (eval $ac_compiler -v </dev/null >&5) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2004 (eval $ac_compiler -V </dev/null >&5) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }
2008
2009 cat >conftest.$ac_ext <<_ACEOF
2010 /* confdefs.h. */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2015
2016 int
2017 main ()
2018 {
2019
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 ac_clean_files_save=$ac_clean_files
2025 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2026 # Try to create an executable without -o first, disregard a.out.
2027 # It will help us diagnose broken compilers, and finding out an intuition
2028 # of exeext.
2029 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2030 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2031 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033 (eval $ac_link_default) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # Find the output, starting from the most likely. This scheme is
2038 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2039 # resort.
2040
2041 # Be careful to initialize this variable, since it used to be cached.
2042 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2043 ac_cv_exeext=
2044 # b.out is created by i960 compilers.
2045 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2046 do
2047 test -f "$ac_file" || continue
2048 case $ac_file in
2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2050 ;;
2051 conftest.$ac_ext )
2052 # This is the source file.
2053 ;;
2054 [ab].out )
2055 # We found the default executable, but exeext='' is most
2056 # certainly right.
2057 break;;
2058 *.* )
2059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060 # FIXME: I believe we export ac_cv_exeext for Libtool,
2061 # but it would be cool to find out if it's true. Does anybody
2062 # maintain Libtool? --akim.
2063 export ac_cv_exeext
2064 break;;
2065 * )
2066 break;;
2067 esac
2068 done
2069 else
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: C++ compiler cannot create executables
2076 See \`config.log' for more details." >&2;}
2077 { (exit 77); exit 77; }; }
2078 fi
2079
2080 ac_exeext=$ac_cv_exeext
2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2082 echo "${ECHO_T}$ac_file" >&6
2083
2084 # Check the compiler produces executables we can run. If not, either
2085 # the compiler is broken, or we cross compile.
2086 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2087 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2088 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089 # If not cross compiling, check that we can run a simple program.
2090 if test "$cross_compiling" != yes; then
2091 if { ac_try='./$ac_file'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 (eval $ac_try) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; }; then
2097 cross_compiling=no
2098 else
2099 if test "$cross_compiling" = maybe; then
2100 cross_compiling=yes
2101 else
2102 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2103 If you meant to cross compile, use \`--host'.
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot run C++ compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2109 fi
2110 fi
2111 fi
2112 echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6
2114
2115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2116 ac_clean_files=$ac_clean_files_save
2117 # Check the compiler produces executables we can run. If not, either
2118 # the compiler is broken, or we cross compile.
2119 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122 echo "${ECHO_T}$cross_compiling" >&6
2123
2124 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127 (eval $ac_link) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2133 # work properly (i.e., refer to `conftest.exe'), while it won't with
2134 # `rm'.
2135 for ac_file in conftest.exe conftest conftest.*; do
2136 test -f "$ac_file" || continue
2137 case $ac_file in
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140 export ac_cv_exeext
2141 break;;
2142 * ) break;;
2143 esac
2144 done
2145 else
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2151 fi
2152
2153 rm -f conftest$ac_cv_exeext
2154 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155 echo "${ECHO_T}$ac_cv_exeext" >&6
2156
2157 rm -f conftest.$ac_ext
2158 EXEEXT=$ac_cv_exeext
2159 ac_exeext=$EXEEXT
2160 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162 if test "${ac_cv_objext+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h. */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2171
2172 int
2173 main ()
2174 {
2175
2176 ;
2177 return 0;
2178 }
2179 _ACEOF
2180 rm -f conftest.o conftest.obj
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; then
2186 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2187 case $ac_file in
2188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2190 break;;
2191 esac
2192 done
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2200 See \`config.log' for more details." >&2;}
2201 { (exit 1); exit 1; }; }
2202 fi
2203
2204 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2205 fi
2206 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2207 echo "${ECHO_T}$ac_cv_objext" >&6
2208 OBJEXT=$ac_cv_objext
2209 ac_objext=$OBJEXT
2210 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2211 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2212 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h. */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2221
2222 int
2223 main ()
2224 {
2225 #ifndef __GNUC__
2226 choke me
2227 #endif
2228
2229 ;
2230 return 0;
2231 }
2232 _ACEOF
2233 rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>conftest.er1
2236 ac_status=$?
2237 grep -v '^ *+' conftest.er1 >conftest.err
2238 rm -f conftest.er1
2239 cat conftest.err >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -z "$ac_cxx_werror_flag"
2243 || test ! -s conftest.err'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 (eval $ac_try) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 ac_compiler_gnu=yes
2256 else
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 ac_compiler_gnu=no
2261 fi
2262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2264
2265 fi
2266 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2267 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2268 GXX=`test $ac_compiler_gnu = yes && echo yes`
2269 ac_test_CXXFLAGS=${CXXFLAGS+set}
2270 ac_save_CXXFLAGS=$CXXFLAGS
2271 CXXFLAGS="-g"
2272 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2273 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2274 if test "${ac_cv_prog_cxx_g+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2283
2284 int
2285 main ()
2286 {
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>conftest.er1
2295 ac_status=$?
2296 grep -v '^ *+' conftest.er1 >conftest.err
2297 rm -f conftest.er1
2298 cat conftest.err >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try='test -z "$ac_cxx_werror_flag"
2302 || test ! -s conftest.err'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; } &&
2308 { ac_try='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2314 ac_cv_prog_cxx_g=yes
2315 else
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2318
2319 ac_cv_prog_cxx_g=no
2320 fi
2321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2324 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2325 if test "$ac_test_CXXFLAGS" = set; then
2326 CXXFLAGS=$ac_save_CXXFLAGS
2327 elif test $ac_cv_prog_cxx_g = yes; then
2328 if test "$GXX" = yes; then
2329 CXXFLAGS="-g -O2"
2330 else
2331 CXXFLAGS="-g"
2332 fi
2333 else
2334 if test "$GXX" = yes; then
2335 CXXFLAGS="-O2"
2336 else
2337 CXXFLAGS=
2338 fi
2339 fi
2340 for ac_declaration in \
2341 '' \
2342 'extern "C" void std::exit (int) throw (); using std::exit;' \
2343 'extern "C" void std::exit (int); using std::exit;' \
2344 'extern "C" void exit (int) throw ();' \
2345 'extern "C" void exit (int);' \
2346 'void exit (int);'
2347 do
2348 cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h. */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2354 $ac_declaration
2355 #include <stdlib.h>
2356 int
2357 main ()
2358 {
2359 exit (42);
2360 ;
2361 return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_cxx_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 :
2387 else
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 continue
2392 fi
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394 cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h. */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2400 $ac_declaration
2401 int
2402 main ()
2403 {
2404 exit (42);
2405 ;
2406 return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_cxx_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 break
2432 else
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 fi
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 done
2439 rm -f conftest*
2440 if test -n "$ac_declaration"; then
2441 echo '#ifdef __cplusplus' >>confdefs.h
2442 echo $ac_declaration >>confdefs.h
2443 echo '#endif' >>confdefs.h
2444 fi
2445
2446 ac_ext=cc
2447 ac_cpp='$CXXCPP $CPPFLAGS'
2448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2451 rm -f .deps 2>/dev/null
2452 mkdir .deps 2>/dev/null
2453 if test -d .deps; then
2454 DEPDIR=.deps
2455 else
2456 # MS-DOS does not allow filenames that begin with a dot.
2457 DEPDIR=_deps
2458 fi
2459 rmdir .deps 2>/dev/null
2460
2461
2462 ac_config_commands="$ac_config_commands depfiles"
2463
2464
2465 am_make=${MAKE-make}
2466 cat > confinc << 'END'
2467 doit:
2468 @echo done
2469 END
2470 # If we don't find an include directive, just comment out the code.
2471 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2472 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2473 am__include="#"
2474 am__quote=
2475 _am_result=none
2476 # First try GNU make style include.
2477 echo "include confinc" > confmf
2478 # We grep out `Entering directory' and `Leaving directory'
2479 # messages which can occur if `w' ends up in MAKEFLAGS.
2480 # In particular we don't look at `^make:' because GNU make might
2481 # be invoked under some other name (usually "gmake"), in which
2482 # case it prints its new name instead of `make'.
2483 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2484 am__include=include
2485 am__quote=
2486 _am_result=GNU
2487 fi
2488 # Now try BSD make style include.
2489 if test "$am__include" = "#"; then
2490 echo '.include "confinc"' > confmf
2491 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2492 am__include=.include
2493 am__quote="\""
2494 _am_result=BSD
2495 fi
2496 fi
2497
2498
2499 echo "$as_me:$LINENO: result: $_am_result" >&5
2500 echo "${ECHO_T}$_am_result" >&6
2501 rm -f confinc confmf
2502
2503 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2504 if test "${enable_dependency_tracking+set}" = set; then
2505 enableval="$enable_dependency_tracking"
2506
2507 fi;
2508 if test "x$enable_dependency_tracking" != xno; then
2509 am_depcomp="$ac_aux_dir/depcomp"
2510 AMDEPBACKSLASH='\'
2511 fi
2512
2513
2514 if test "x$enable_dependency_tracking" != xno; then
2515 AMDEP_TRUE=
2516 AMDEP_FALSE='#'
2517 else
2518 AMDEP_TRUE='#'
2519 AMDEP_FALSE=
2520 fi
2521
2522
2523
2524
2525 depcc="$CXX" am_compiler_list=
2526
2527 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2528 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2529 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2533 # We make a subdir and do the tests there. Otherwise we can end up
2534 # making bogus files that we don't know about and never remove. For
2535 # instance it was reported that on HP-UX the gcc test will end up
2536 # making a dummy file named `D' -- because `-MD' means `put the output
2537 # in D'.
2538 mkdir conftest.dir
2539 # Copy depcomp to subdir because otherwise we won't find it if we're
2540 # using a relative directory.
2541 cp "$am_depcomp" conftest.dir
2542 cd conftest.dir
2543
2544 am_cv_CXX_dependencies_compiler_type=none
2545 if test "$am_compiler_list" = ""; then
2546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2547 fi
2548 for depmode in $am_compiler_list; do
2549 # We need to recreate these files for each test, as the compiler may
2550 # overwrite some of them when testing with obscure command lines.
2551 # This happens at least with the AIX C compiler.
2552 echo '#include "conftest.h"' > conftest.c
2553 echo 'int i;' > conftest.h
2554 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2555
2556 case $depmode in
2557 nosideeffect)
2558 # after this tag, mechanisms are not by side-effect, so they'll
2559 # only be used when explicitly requested
2560 if test "x$enable_dependency_tracking" = xyes; then
2561 continue
2562 else
2563 break
2564 fi
2565 ;;
2566 none) break ;;
2567 esac
2568 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2569 # mode. It turns out that the SunPro C++ compiler does not properly
2570 # handle `-M -o', and we need to detect this.
2571 if depmode=$depmode \
2572 source=conftest.c object=conftest.o \
2573 depfile=conftest.Po tmpdepfile=conftest.TPo \
2574 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2575 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2577 am_cv_CXX_dependencies_compiler_type=$depmode
2578 break
2579 fi
2580 done
2581
2582 cd ..
2583 rm -rf conftest.dir
2584 else
2585 am_cv_CXX_dependencies_compiler_type=none
2586 fi
2587
2588 fi
2589 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2590 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2591 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2592
2593
2594 # Check whether --enable-shared or --disable-shared was given.
2595 if test "${enable_shared+set}" = set; then
2596 enableval="$enable_shared"
2597 p=${PACKAGE-default}
2598 case $enableval in
2599 yes) enable_shared=yes ;;
2600 no) enable_shared=no ;;
2601 *)
2602 enable_shared=no
2603 # Look at the argument we got. We use all the common list separators.
2604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2605 for pkg in $enableval; do
2606 IFS="$lt_save_ifs"
2607 if test "X$pkg" = "X$p"; then
2608 enable_shared=yes
2609 fi
2610 done
2611 IFS="$lt_save_ifs"
2612 ;;
2613 esac
2614 else
2615 enable_shared=yes
2616 fi;
2617
2618 # Check whether --enable-static or --disable-static was given.
2619 if test "${enable_static+set}" = set; then
2620 enableval="$enable_static"
2621 p=${PACKAGE-default}
2622 case $enableval in
2623 yes) enable_static=yes ;;
2624 no) enable_static=no ;;
2625 *)
2626 enable_static=no
2627 # Look at the argument we got. We use all the common list separators.
2628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2629 for pkg in $enableval; do
2630 IFS="$lt_save_ifs"
2631 if test "X$pkg" = "X$p"; then
2632 enable_static=yes
2633 fi
2634 done
2635 IFS="$lt_save_ifs"
2636 ;;
2637 esac
2638 else
2639 enable_static=yes
2640 fi;
2641
2642 # Check whether --enable-fast-install or --disable-fast-install was given.
2643 if test "${enable_fast_install+set}" = set; then
2644 enableval="$enable_fast_install"
2645 p=${PACKAGE-default}
2646 case $enableval in
2647 yes) enable_fast_install=yes ;;
2648 no) enable_fast_install=no ;;
2649 *)
2650 enable_fast_install=no
2651 # Look at the argument we got. We use all the common list separators.
2652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2653 for pkg in $enableval; do
2654 IFS="$lt_save_ifs"
2655 if test "X$pkg" = "X$p"; then
2656 enable_fast_install=yes
2657 fi
2658 done
2659 IFS="$lt_save_ifs"
2660 ;;
2661 esac
2662 else
2663 enable_fast_install=yes
2664 fi;
2665
2666 # Make sure we can run config.sub.
2667 $ac_config_sub sun4 >/dev/null 2>&1 ||
2668 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2669 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2670 { (exit 1); exit 1; }; }
2671
2672 echo "$as_me:$LINENO: checking build system type" >&5
2673 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2674 if test "${ac_cv_build+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 ac_cv_build_alias=$build_alias
2678 test -z "$ac_cv_build_alias" &&
2679 ac_cv_build_alias=`$ac_config_guess`
2680 test -z "$ac_cv_build_alias" &&
2681 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2682 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2683 { (exit 1); exit 1; }; }
2684 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2685 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2686 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2687 { (exit 1); exit 1; }; }
2688
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2691 echo "${ECHO_T}$ac_cv_build" >&6
2692 build=$ac_cv_build
2693 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2694 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2695 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2696
2697
2698 echo "$as_me:$LINENO: checking host system type" >&5
2699 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2700 if test "${ac_cv_host+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703 ac_cv_host_alias=$host_alias
2704 test -z "$ac_cv_host_alias" &&
2705 ac_cv_host_alias=$ac_cv_build_alias
2706 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2707 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2708 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2709 { (exit 1); exit 1; }; }
2710
2711 fi
2712 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2713 echo "${ECHO_T}$ac_cv_host" >&6
2714 host=$ac_cv_host
2715 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2716 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2717 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2718
2719
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2728 echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754 echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6
2756 else
2757 echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2759 fi
2760
2761 fi
2762 if test -z "$ac_cv_prog_CC"; then
2763 ac_ct_CC=$CC
2764 # Extract the first word of "gcc", so it can be a program name with args.
2765 set dummy gcc; ac_word=$2
2766 echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_ac_ct_CC="gcc"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787
2788 fi
2789 fi
2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791 if test -n "$ac_ct_CC"; then
2792 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2793 echo "${ECHO_T}$ac_ct_CC" >&6
2794 else
2795 echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6
2797 fi
2798
2799 CC=$ac_ct_CC
2800 else
2801 CC="$ac_cv_prog_CC"
2802 fi
2803
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}cc; 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}cc"
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 "cc", so it can be a program name with args.
2845 set dummy cc; 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="cc"
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 fi
2885 if test -z "$CC"; then
2886 # Extract the first word of "cc", so it can be a program name with args.
2887 set dummy 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 ac_prog_rejected=no
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905 ac_prog_rejected=yes
2906 continue
2907 fi
2908 ac_cv_prog_CC="cc"
2909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914
2915 if test $ac_prog_rejected = yes; then
2916 # We found a bogon in the path, so make sure we never use it.
2917 set dummy $ac_cv_prog_CC
2918 shift
2919 if test $# != 0; then
2920 # We chose a different compiler from the bogus one.
2921 # However, it has the same basename, so the bogon will be chosen
2922 # first if we set CC to just the basename; use the full file name.
2923 shift
2924 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2925 fi
2926 fi
2927 fi
2928 fi
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931 echo "$as_me:$LINENO: result: $CC" >&5
2932 echo "${ECHO_T}$CC" >&6
2933 else
2934 echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6
2936 fi
2937
2938 fi
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 for ac_prog in cl
2942 do
2943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2945 echo "$as_me:$LINENO: checking for $ac_word" >&5
2946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947 if test "${ac_cv_prog_CC+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 echo "$as_me:$LINENO: result: $CC" >&5
2972 echo "${ECHO_T}$CC" >&6
2973 else
2974 echo "$as_me:$LINENO: result: no" >&5
2975 echo "${ECHO_T}no" >&6
2976 fi
2977
2978 test -n "$CC" && break
2979 done
2980 fi
2981 if test -z "$CC"; then
2982 ac_ct_CC=$CC
2983 for ac_prog in cl
2984 do
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_CC="$ac_prog"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008
3009 fi
3010 fi
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3014 echo "${ECHO_T}$ac_ct_CC" >&6
3015 else
3016 echo "$as_me:$LINENO: result: no" >&5
3017 echo "${ECHO_T}no" >&6
3018 fi
3019
3020 test -n "$ac_ct_CC" && break
3021 done
3022
3023 CC=$ac_ct_CC
3024 fi
3025
3026 fi
3027
3028
3029 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&2;}
3033 { (exit 1); exit 1; }; }
3034
3035 # Provide some information about the compiler.
3036 echo "$as_me:$LINENO:" \
3037 "checking for C compiler version" >&5
3038 ac_compiler=`set X $ac_compile; echo $2`
3039 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3040 (eval $ac_compiler --version </dev/null >&5) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }
3044 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3045 (eval $ac_compiler -v </dev/null >&5) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }
3049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3050 (eval $ac_compiler -V </dev/null >&5) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }
3054
3055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066
3067 int
3068 main ()
3069 {
3070 #ifndef __GNUC__
3071 choke me
3072 #endif
3073
3074 ;
3075 return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -z "$ac_c_werror_flag"
3088 || test ! -s conftest.err'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_compiler_gnu=yes
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_compiler_gnu=no
3106 fi
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3109
3110 fi
3111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3113 GCC=`test $ac_compiler_gnu = yes && echo yes`
3114 ac_test_CFLAGS=${CFLAGS+set}
3115 ac_save_CFLAGS=$CFLAGS
3116 CFLAGS="-g"
3117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3119 if test "${ac_cv_prog_cc_g+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128
3129 int
3130 main ()
3131 {
3132
3133 ;
3134 return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_c_werror_flag"
3147 || test ! -s conftest.err'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_prog_cc_g=yes
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_cv_prog_cc_g=no
3165 fi
3166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3167 fi
3168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3170 if test "$ac_test_CFLAGS" = set; then
3171 CFLAGS=$ac_save_CFLAGS
3172 elif test $ac_cv_prog_cc_g = yes; then
3173 if test "$GCC" = yes; then
3174 CFLAGS="-g -O2"
3175 else
3176 CFLAGS="-g"
3177 fi
3178 else
3179 if test "$GCC" = yes; then
3180 CFLAGS="-O2"
3181 else
3182 CFLAGS=
3183 fi
3184 fi
3185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 ac_cv_prog_cc_stdc=no
3191 ac_save_CC=$CC
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3198 #include <stdarg.h>
3199 #include <stdio.h>
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3203 struct buf { int x; };
3204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3205 static char *e (p, i)
3206 char **p;
3207 int i;
3208 {
3209 return p[i];
3210 }
3211 static char *f (char * (*g) (char **, int), char **p, ...)
3212 {
3213 char *s;
3214 va_list v;
3215 va_start (v,p);
3216 s = g (p, va_arg (v,int));
3217 va_end (v);
3218 return s;
3219 }
3220
3221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3222 function prototypes and stuff, but not '\xHH' hex character constants.
3223 These don't provoke an error unfortunately, instead are silently treated
3224 as 'x'. The following induces an error, until -std1 is added to get
3225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3226 array size at least. It's necessary to write '\x00'==0 to get something
3227 that's true only with -std1. */
3228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3229
3230 int test (int i, double x);
3231 struct s1 {int (*f) (int a);};
3232 struct s2 {int (*f) (double a);};
3233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3234 int argc;
3235 char **argv;
3236 int
3237 main ()
3238 {
3239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 # Don't try gcc -ansi; that turns off useful extensions and
3245 # breaks some systems' header files.
3246 # AIX -qlanglvl=ansi
3247 # Ultrix and OSF/1 -std1
3248 # HP-UX 10.20 and later -Ae
3249 # HP-UX older versions -Aa -D_HPUX_SOURCE
3250 # SVR4 -Xc -D__EXTENSIONS__
3251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3252 do
3253 CC="$ac_save_CC $ac_arg"
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -z "$ac_c_werror_flag"
3264 || test ! -s conftest.err'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; } &&
3270 { ac_try='test -s conftest.$ac_objext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 ac_cv_prog_cc_stdc=$ac_arg
3277 break
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 fi
3283 rm -f conftest.err conftest.$ac_objext
3284 done
3285 rm -f conftest.$ac_ext conftest.$ac_objext
3286 CC=$ac_save_CC
3287
3288 fi
3289
3290 case "x$ac_cv_prog_cc_stdc" in
3291 x|xno)
3292 echo "$as_me:$LINENO: result: none needed" >&5
3293 echo "${ECHO_T}none needed" >&6 ;;
3294 *)
3295 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3297 CC="$CC $ac_cv_prog_cc_stdc" ;;
3298 esac
3299
3300 # Some people use a C++ compiler to compile C. Since we use `exit',
3301 # in C++ we need to declare it. In case someone uses the same compiler
3302 # for both compiling C and C++ we need to have the C++ compiler decide
3303 # the declaration of exit, since it's the most demanding environment.
3304 cat >conftest.$ac_ext <<_ACEOF
3305 #ifndef __cplusplus
3306 choke me
3307 #endif
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag"
3319 || test ! -s conftest.err'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; } &&
3325 { ac_try='test -s conftest.$ac_objext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3331 for ac_declaration in \
3332 '' \
3333 'extern "C" void std::exit (int) throw (); using std::exit;' \
3334 'extern "C" void std::exit (int); using std::exit;' \
3335 'extern "C" void exit (int) throw ();' \
3336 'extern "C" void exit (int);' \
3337 'void exit (int);'
3338 do
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 $ac_declaration
3346 #include <stdlib.h>
3347 int
3348 main ()
3349 {
3350 exit (42);
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 :
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 continue
3383 fi
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 $ac_declaration
3392 int
3393 main ()
3394 {
3395 exit (42);
3396 ;
3397 return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -z "$ac_c_werror_flag"
3410 || test ! -s conftest.err'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 break
3423 else
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427 fi
3428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429 done
3430 rm -f conftest*
3431 if test -n "$ac_declaration"; then
3432 echo '#ifdef __cplusplus' >>confdefs.h
3433 echo $ac_declaration >>confdefs.h
3434 echo '#endif' >>confdefs.h
3435 fi
3436
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 fi
3442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3443 ac_ext=cc
3444 ac_cpp='$CXXCPP $CPPFLAGS'
3445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3448
3449 depcc="$CC" am_compiler_list=
3450
3451 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3452 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3453 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3457 # We make a subdir and do the tests there. Otherwise we can end up
3458 # making bogus files that we don't know about and never remove. For
3459 # instance it was reported that on HP-UX the gcc test will end up
3460 # making a dummy file named `D' -- because `-MD' means `put the output
3461 # in D'.
3462 mkdir conftest.dir
3463 # Copy depcomp to subdir because otherwise we won't find it if we're
3464 # using a relative directory.
3465 cp "$am_depcomp" conftest.dir
3466 cd conftest.dir
3467
3468 am_cv_CC_dependencies_compiler_type=none
3469 if test "$am_compiler_list" = ""; then
3470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3471 fi
3472 for depmode in $am_compiler_list; do
3473 # We need to recreate these files for each test, as the compiler may
3474 # overwrite some of them when testing with obscure command lines.
3475 # This happens at least with the AIX C compiler.
3476 echo '#include "conftest.h"' > conftest.c
3477 echo 'int i;' > conftest.h
3478 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3479
3480 case $depmode in
3481 nosideeffect)
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x$enable_dependency_tracking" = xyes; then
3485 continue
3486 else
3487 break
3488 fi
3489 ;;
3490 none) break ;;
3491 esac
3492 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3493 # mode. It turns out that the SunPro C++ compiler does not properly
3494 # handle `-M -o', and we need to detect this.
3495 if depmode=$depmode \
3496 source=conftest.c object=conftest.o \
3497 depfile=conftest.Po tmpdepfile=conftest.TPo \
3498 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3499 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3501 am_cv_CC_dependencies_compiler_type=$depmode
3502 break
3503 fi
3504 done
3505
3506 cd ..
3507 rm -rf conftest.dir
3508 else
3509 am_cv_CC_dependencies_compiler_type=none
3510 fi
3511
3512 fi
3513 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3514 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3515 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3516
3517
3518 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3519 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3520 if test "${lt_cv_path_SED+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523 # Loop through the user's path and test for sed and gsed.
3524 # Then use that list of sed's as ones to test for truncation.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for lt_ac_prog in sed gsed; do
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3533 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3534 fi
3535 done
3536 done
3537 done
3538 lt_ac_max=0
3539 lt_ac_count=0
3540 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3541 # along with /bin/sed that truncates output.
3542 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3543 test ! -f $lt_ac_sed && continue
3544 cat /dev/null > conftest.in
3545 lt_ac_count=0
3546 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3547 # Check for GNU sed and select it if it is found.
3548 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3549 lt_cv_path_SED=$lt_ac_sed
3550 break
3551 fi
3552 while true; do
3553 cat conftest.in conftest.in >conftest.tmp
3554 mv conftest.tmp conftest.in
3555 cp conftest.in conftest.nl
3556 echo >>conftest.nl
3557 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3558 cmp -s conftest.out conftest.nl || break
3559 # 10000 chars as input seems more than enough
3560 test $lt_ac_count -gt 10 && break
3561 lt_ac_count=`expr $lt_ac_count + 1`
3562 if test $lt_ac_count -gt $lt_ac_max; then
3563 lt_ac_max=$lt_ac_count
3564 lt_cv_path_SED=$lt_ac_sed
3565 fi
3566 done
3567 done
3568
3569 fi
3570
3571 SED=$lt_cv_path_SED
3572 echo "$as_me:$LINENO: result: $SED" >&5
3573 echo "${ECHO_T}$SED" >&6
3574
3575 echo "$as_me:$LINENO: checking for egrep" >&5
3576 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3577 if test "${ac_cv_prog_egrep+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3581 then ac_cv_prog_egrep='grep -E'
3582 else ac_cv_prog_egrep='egrep'
3583 fi
3584 fi
3585 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3586 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3587 EGREP=$ac_cv_prog_egrep
3588
3589
3590
3591 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3592 if test "${with_gnu_ld+set}" = set; then
3593 withval="$with_gnu_ld"
3594 test "$withval" = no || with_gnu_ld=yes
3595 else
3596 with_gnu_ld=no
3597 fi;
3598 ac_prog=ld
3599 if test "$GCC" = yes; then
3600 # Check if gcc -print-prog-name=ld gives a path.
3601 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3602 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3603 case $host in
3604 *-*-mingw*)
3605 # gcc leaves a trailing carriage return which upsets mingw
3606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3607 *)
3608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3609 esac
3610 case $ac_prog in
3611 # Accept absolute paths.
3612 [\\/]* | ?:[\\/]*)
3613 re_direlt='/[^/][^/]*/\.\./'
3614 # Canonicalize the pathname of ld
3615 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3616 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3617 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3618 done
3619 test -z "$LD" && LD="$ac_prog"
3620 ;;
3621 "")
3622 # If it fails, then pretend we aren't using GCC.
3623 ac_prog=ld
3624 ;;
3625 *)
3626 # If it is relative, then search for the first ld in PATH.
3627 with_gnu_ld=unknown
3628 ;;
3629 esac
3630 elif test "$with_gnu_ld" = yes; then
3631 echo "$as_me:$LINENO: checking for GNU ld" >&5
3632 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3633 else
3634 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3635 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3636 fi
3637 if test "${lt_cv_path_LD+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 if test -z "$LD"; then
3641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3642 for ac_dir in $PATH; do
3643 IFS="$lt_save_ifs"
3644 test -z "$ac_dir" && ac_dir=.
3645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3646 lt_cv_path_LD="$ac_dir/$ac_prog"
3647 # Check to see if the program is GNU ld. I'd rather use --version,
3648 # but apparently some variants of GNU ld only accept -v.
3649 # Break only if it was the GNU/non-GNU ld that we prefer.
3650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3651 *GNU* | *'with BFD'*)
3652 test "$with_gnu_ld" != no && break
3653 ;;
3654 *)
3655 test "$with_gnu_ld" != yes && break
3656 ;;
3657 esac
3658 fi
3659 done
3660 IFS="$lt_save_ifs"
3661 else
3662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3663 fi
3664 fi
3665
3666 LD="$lt_cv_path_LD"
3667 if test -n "$LD"; then
3668 echo "$as_me:$LINENO: result: $LD" >&5
3669 echo "${ECHO_T}$LD" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3673 fi
3674 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3675 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3676 { (exit 1); exit 1; }; }
3677 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3678 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3679 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3683 case `$LD -v 2>&1 </dev/null` in
3684 *GNU* | *'with BFD'*)
3685 lt_cv_prog_gnu_ld=yes
3686 ;;
3687 *)
3688 lt_cv_prog_gnu_ld=no
3689 ;;
3690 esac
3691 fi
3692 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3693 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3694 with_gnu_ld=$lt_cv_prog_gnu_ld
3695
3696
3697 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3698 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3699 if test "${lt_cv_ld_reload_flag+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 lt_cv_ld_reload_flag='-r'
3703 fi
3704 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3705 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3706 reload_flag=$lt_cv_ld_reload_flag
3707 case $reload_flag in
3708 "" | " "*) ;;
3709 *) reload_flag=" $reload_flag" ;;
3710 esac
3711 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3712 case $host_os in
3713 darwin*)
3714 if test "$GCC" = yes; then
3715 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3716 else
3717 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3718 fi
3719 ;;
3720 esac
3721
3722 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3723 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3724 if test "${lt_cv_path_NM+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 if test -n "$NM"; then
3728 # Let the user override the test.
3729 lt_cv_path_NM="$NM"
3730 else
3731 lt_nm_to_check="${ac_tool_prefix}nm"
3732 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3733 lt_nm_to_check="$lt_nm_to_check nm"
3734 fi
3735 for lt_tmp_nm in $lt_nm_to_check; do
3736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3737 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3738 IFS="$lt_save_ifs"
3739 test -z "$ac_dir" && ac_dir=.
3740 tmp_nm="$ac_dir/$lt_tmp_nm"
3741 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3742 # Check to see if the nm accepts a BSD-compat flag.
3743 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3744 # nm: unknown option "B" ignored
3745 # Tru64's nm complains that /dev/null is an invalid object file
3746 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3747 */dev/null* | *'Invalid file or object type'*)
3748 lt_cv_path_NM="$tmp_nm -B"
3749 break
3750 ;;
3751 *)
3752 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3753 */dev/null*)
3754 lt_cv_path_NM="$tmp_nm -p"
3755 break
3756 ;;
3757 *)
3758 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3759 continue # so that we can try to find one that supports BSD flags
3760 ;;
3761 esac
3762 ;;
3763 esac
3764 fi
3765 done
3766 IFS="$lt_save_ifs"
3767 done
3768 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3769 fi
3770 fi
3771 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3772 echo "${ECHO_T}$lt_cv_path_NM" >&6
3773 NM="$lt_cv_path_NM"
3774
3775 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3776 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3777 LN_S=$as_ln_s
3778 if test "$LN_S" = "ln -s"; then
3779 echo "$as_me:$LINENO: result: yes" >&5
3780 echo "${ECHO_T}yes" >&6
3781 else
3782 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3783 echo "${ECHO_T}no, using $LN_S" >&6
3784 fi
3785
3786 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3787 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3788 if test "${lt_cv_deplibs_check_method+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 lt_cv_file_magic_cmd='$MAGIC_CMD'
3792 lt_cv_file_magic_test_file=
3793 lt_cv_deplibs_check_method='unknown'
3794 # Need to set the preceding variable on all platforms that support
3795 # interlibrary dependencies.
3796 # 'none' -- dependencies not supported.
3797 # `unknown' -- same as none, but documents that we really don't know.
3798 # 'pass_all' -- all dependencies passed with no checks.
3799 # 'test_compile' -- check by making test program.
3800 # 'file_magic [[regex]]' -- check by looking for files in library path
3801 # which responds to the $file_magic_cmd with a given extended regex.
3802 # If you have `file' or equivalent on your system and you're not sure
3803 # whether `pass_all' will *always* work, you probably want this one.
3804
3805 case $host_os in
3806 aix4* | aix5*)
3807 lt_cv_deplibs_check_method=pass_all
3808 ;;
3809
3810 beos*)
3811 lt_cv_deplibs_check_method=pass_all
3812 ;;
3813
3814 bsdi[45]*)
3815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3816 lt_cv_file_magic_cmd='/usr/bin/file -L'
3817 lt_cv_file_magic_test_file=/shlib/libc.so
3818 ;;
3819
3820 cygwin*)
3821 # func_win32_libid is a shell function defined in ltmain.sh
3822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3823 lt_cv_file_magic_cmd='func_win32_libid'
3824 ;;
3825
3826 mingw* | pw32*)
3827 # Base MSYS/MinGW do not provide the 'file' command needed by
3828 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3829 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3830 lt_cv_file_magic_cmd='$OBJDUMP -f'
3831 ;;
3832
3833 darwin* | rhapsody*)
3834 lt_cv_deplibs_check_method=pass_all
3835 ;;
3836
3837 freebsd* | kfreebsd*-gnu | dragonfly*)
3838 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3839 case $host_cpu in
3840 i*86 )
3841 # Not sure whether the presence of OpenBSD here was a mistake.
3842 # Let's accept both of them until this is cleared up.
3843 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3844 lt_cv_file_magic_cmd=/usr/bin/file
3845 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3846 ;;
3847 esac
3848 else
3849 lt_cv_deplibs_check_method=pass_all
3850 fi
3851 ;;
3852
3853 gnu*)
3854 lt_cv_deplibs_check_method=pass_all
3855 ;;
3856
3857 hpux10.20* | hpux11*)
3858 lt_cv_file_magic_cmd=/usr/bin/file
3859 case $host_cpu in
3860 ia64*)
3861 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3862 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3863 ;;
3864 hppa*64*)
3865 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]'
3866 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3867 ;;
3868 *)
3869 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3870 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3871 ;;
3872 esac
3873 ;;
3874
3875 interix3*)
3876 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3878 ;;
3879
3880 irix5* | irix6* | nonstopux*)
3881 case $LD in
3882 *-32|*"-32 ") libmagic=32-bit;;
3883 *-n32|*"-n32 ") libmagic=N32;;
3884 *-64|*"-64 ") libmagic=64-bit;;
3885 *) libmagic=never-match;;
3886 esac
3887 lt_cv_deplibs_check_method=pass_all
3888 ;;
3889
3890 # This must be Linux ELF.
3891 linux*)
3892 lt_cv_deplibs_check_method=pass_all
3893 ;;
3894
3895 netbsd*)
3896 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3898 else
3899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3900 fi
3901 ;;
3902
3903 newos6*)
3904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3905 lt_cv_file_magic_cmd=/usr/bin/file
3906 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3907 ;;
3908
3909 nto-qnx*)
3910 lt_cv_deplibs_check_method=unknown
3911 ;;
3912
3913 openbsd*)
3914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3916 else
3917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3918 fi
3919 ;;
3920
3921 osf3* | osf4* | osf5*)
3922 lt_cv_deplibs_check_method=pass_all
3923 ;;
3924
3925 solaris*)
3926 lt_cv_deplibs_check_method=pass_all
3927 ;;
3928
3929 sysv4 | sysv4.3*)
3930 case $host_vendor in
3931 motorola)
3932 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]'
3933 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3934 ;;
3935 ncr)
3936 lt_cv_deplibs_check_method=pass_all
3937 ;;
3938 sequent)
3939 lt_cv_file_magic_cmd='/bin/file'
3940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3941 ;;
3942 sni)
3943 lt_cv_file_magic_cmd='/bin/file'
3944 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3945 lt_cv_file_magic_test_file=/lib/libc.so
3946 ;;
3947 siemens)
3948 lt_cv_deplibs_check_method=pass_all
3949 ;;
3950 pc)
3951 lt_cv_deplibs_check_method=pass_all
3952 ;;
3953 esac
3954 ;;
3955
3956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3957 lt_cv_deplibs_check_method=pass_all
3958 ;;
3959 esac
3960
3961 fi
3962 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3963 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3964 file_magic_cmd=$lt_cv_file_magic_cmd
3965 deplibs_check_method=$lt_cv_deplibs_check_method
3966 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3967
3968
3969
3970
3971 # If no C compiler was specified, use CC.
3972 LTCC=${LTCC-"$CC"}
3973
3974 # If no C compiler flags were specified, use CFLAGS.
3975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3976
3977 # Allow CC to be a program name with arguments.
3978 compiler=$CC
3979
3980
3981 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3982 if test "${enable_libtool_lock+set}" = set; then
3983 enableval="$enable_libtool_lock"
3984
3985 fi;
3986 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3987
3988 # Some flags need to be propagated to the compiler or linker for good
3989 # libtool support.
3990 case $host in
3991 ia64-*-hpux*)
3992 # Find out which ABI we are using.
3993 echo 'int i;' > conftest.$ac_ext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; then
3999 case `/usr/bin/file conftest.$ac_objext` in
4000 *ELF-32*)
4001 HPUX_IA64_MODE="32"
4002 ;;
4003 *ELF-64*)
4004 HPUX_IA64_MODE="64"
4005 ;;
4006 esac
4007 fi
4008 rm -rf conftest*
4009 ;;
4010 *-*-irix6*)
4011 # Find out which ABI we are using.
4012 echo '#line 4012 "configure"' > conftest.$ac_ext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; then
4018 if test "$lt_cv_prog_gnu_ld" = yes; then
4019 case `/usr/bin/file conftest.$ac_objext` in
4020 *32-bit*)
4021 LD="${LD-ld} -melf32bsmip"
4022 ;;
4023 *N32*)
4024 LD="${LD-ld} -melf32bmipn32"
4025 ;;
4026 *64-bit*)
4027 LD="${LD-ld} -melf64bmip"
4028 ;;
4029 esac
4030 else
4031 case `/usr/bin/file conftest.$ac_objext` in
4032 *32-bit*)
4033 LD="${LD-ld} -32"
4034 ;;
4035 *N32*)
4036 LD="${LD-ld} -n32"
4037 ;;
4038 *64-bit*)
4039 LD="${LD-ld} -64"
4040 ;;
4041 esac
4042 fi
4043 fi
4044 rm -rf conftest*
4045 ;;
4046
4047 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4048 # Find out which ABI we are using.
4049 echo 'int i;' > conftest.$ac_ext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; then
4055 case `/usr/bin/file conftest.o` in
4056 *32-bit*)
4057 case $host in
4058 x86_64-*linux*)
4059 LD="${LD-ld} -m elf_i386"
4060 ;;
4061 ppc64-*linux*|powerpc64-*linux*)
4062 LD="${LD-ld} -m elf32ppclinux"
4063 ;;
4064 s390x-*linux*)
4065 LD="${LD-ld} -m elf_s390"
4066 ;;
4067 sparc64-*linux*)
4068 LD="${LD-ld} -m elf32_sparc"
4069 ;;
4070 esac
4071 ;;
4072 *64-bit*)
4073 case $host in
4074 x86_64-*linux*)
4075 LD="${LD-ld} -m elf_x86_64"
4076 ;;
4077 ppc*-*linux*|powerpc*-*linux*)
4078 LD="${LD-ld} -m elf64ppc"
4079 ;;
4080 s390*-*linux*)
4081 LD="${LD-ld} -m elf64_s390"
4082 ;;
4083 sparc*-*linux*)
4084 LD="${LD-ld} -m elf64_sparc"
4085 ;;
4086 esac
4087 ;;
4088 esac
4089 fi
4090 rm -rf conftest*
4091 ;;
4092
4093 *-*-sco3.2v5*)
4094 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4095 SAVE_CFLAGS="$CFLAGS"
4096 CFLAGS="$CFLAGS -belf"
4097 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4098 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4099 if test "${lt_cv_cc_needs_belf+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114
4115 int
4116 main ()
4117 {
4118
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext conftest$ac_exeext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4125 (eval $ac_link) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_c_werror_flag"
4133 || test ! -s conftest.err'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try='test -s conftest$ac_exeext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 lt_cv_cc_needs_belf=yes
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 lt_cv_cc_needs_belf=no
4151 fi
4152 rm -f conftest.err conftest.$ac_objext \
4153 conftest$ac_exeext conftest.$ac_ext
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160 fi
4161 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4162 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4163 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4165 CFLAGS="$SAVE_CFLAGS"
4166 fi
4167 ;;
4168 sparc*-*solaris*)
4169 # Find out which ABI we are using.
4170 echo 'int i;' > conftest.$ac_ext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; then
4176 case `/usr/bin/file conftest.o` in
4177 *64-bit*)
4178 case $lt_cv_prog_gnu_ld in
4179 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4180 *) LD="${LD-ld} -64" ;;
4181 esac
4182 ;;
4183 esac
4184 fi
4185 rm -rf conftest*
4186 ;;
4187
4188
4189 esac
4190
4191 need_locks="$enable_libtool_lock"
4192
4193
4194 ac_ext=c
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4200 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4201 # On Suns, sometimes $CPP names a directory.
4202 if test -n "$CPP" && test -d "$CPP"; then
4203 CPP=
4204 fi
4205 if test -z "$CPP"; then
4206 if test "${ac_cv_prog_CPP+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 # Double quotes because CPP needs to be expanded
4210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4211 do
4212 ac_preproc_ok=false
4213 for ac_c_preproc_warn_flag in '' yes
4214 do
4215 # Use a header file that comes with gcc, so configuring glibc
4216 # with a fresh cross-compiler works.
4217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 # <limits.h> exists even on freestanding compilers.
4219 # On the NeXT, cc -E runs the code through the compiler's parser,
4220 # not just through cpp. "Syntax error" is here to catch this case.
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 #ifdef __STDC__
4228 # include <limits.h>
4229 #else
4230 # include <assert.h>
4231 #endif
4232 Syntax error
4233 _ACEOF
4234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } >/dev/null; then
4242 if test -s conftest.err; then
4243 ac_cpp_err=$ac_c_preproc_warn_flag
4244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4245 else
4246 ac_cpp_err=
4247 fi
4248 else
4249 ac_cpp_err=yes
4250 fi
4251 if test -z "$ac_cpp_err"; then
4252 :
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 # Broken: fails on valid input.
4258 continue
4259 fi
4260 rm -f conftest.err conftest.$ac_ext
4261
4262 # OK, works on sane cases. Now check whether non-existent headers
4263 # can be detected and how.
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <ac_nonexistent.h>
4271 _ACEOF
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null; then
4280 if test -s conftest.err; then
4281 ac_cpp_err=$ac_c_preproc_warn_flag
4282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283 else
4284 ac_cpp_err=
4285 fi
4286 else
4287 ac_cpp_err=yes
4288 fi
4289 if test -z "$ac_cpp_err"; then
4290 # Broken: success on invalid input.
4291 continue
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 # Passes both tests.
4297 ac_preproc_ok=:
4298 break
4299 fi
4300 rm -f conftest.err conftest.$ac_ext
4301
4302 done
4303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304 rm -f conftest.err conftest.$ac_ext
4305 if $ac_preproc_ok; then
4306 break
4307 fi
4308
4309 done
4310 ac_cv_prog_CPP=$CPP
4311
4312 fi
4313 CPP=$ac_cv_prog_CPP
4314 else
4315 ac_cv_prog_CPP=$CPP
4316 fi
4317 echo "$as_me:$LINENO: result: $CPP" >&5
4318 echo "${ECHO_T}$CPP" >&6
4319 ac_preproc_ok=false
4320 for ac_c_preproc_warn_flag in '' yes
4321 do
4322 # Use a header file that comes with gcc, so configuring glibc
4323 # with a fresh cross-compiler works.
4324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325 # <limits.h> exists even on freestanding compilers.
4326 # On the NeXT, cc -E runs the code through the compiler's parser,
4327 # not just through cpp. "Syntax error" is here to catch this case.
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #ifdef __STDC__
4335 # include <limits.h>
4336 #else
4337 # include <assert.h>
4338 #endif
4339 Syntax error
4340 _ACEOF
4341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } >/dev/null; then
4349 if test -s conftest.err; then
4350 ac_cpp_err=$ac_c_preproc_warn_flag
4351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4352 else
4353 ac_cpp_err=
4354 fi
4355 else
4356 ac_cpp_err=yes
4357 fi
4358 if test -z "$ac_cpp_err"; then
4359 :
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 # Broken: fails on valid input.
4365 continue
4366 fi
4367 rm -f conftest.err conftest.$ac_ext
4368
4369 # OK, works on sane cases. Now check whether non-existent headers
4370 # can be detected and how.
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h. */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <ac_nonexistent.h>
4378 _ACEOF
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } >/dev/null; then
4387 if test -s conftest.err; then
4388 ac_cpp_err=$ac_c_preproc_warn_flag
4389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4390 else
4391 ac_cpp_err=
4392 fi
4393 else
4394 ac_cpp_err=yes
4395 fi
4396 if test -z "$ac_cpp_err"; then
4397 # Broken: success on invalid input.
4398 continue
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 # Passes both tests.
4404 ac_preproc_ok=:
4405 break
4406 fi
4407 rm -f conftest.err conftest.$ac_ext
4408
4409 done
4410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411 rm -f conftest.err conftest.$ac_ext
4412 if $ac_preproc_ok; then
4413 :
4414 else
4415 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4416 See \`config.log' for more details." >&5
4417 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4418 See \`config.log' for more details." >&2;}
4419 { (exit 1); exit 1; }; }
4420 fi
4421
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428
4429 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4430 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4431 if test "${ac_cv_header_stdc+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 #include <stdlib.h>
4441 #include <stdarg.h>
4442 #include <string.h>
4443 #include <float.h>
4444
4445 int
4446 main ()
4447 {
4448
4449 ;
4450 return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag"
4463 || test ! -s conftest.err'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_header_stdc=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 ac_cv_header_stdc=no
4481 fi
4482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483
4484 if test $ac_cv_header_stdc = yes; then
4485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 #include <string.h>
4493
4494 _ACEOF
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev/null 2>&1; then
4497 :
4498 else
4499 ac_cv_header_stdc=no
4500 fi
4501 rm -f conftest*
4502
4503 fi
4504
4505 if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 #include <stdlib.h>
4514
4515 _ACEOF
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 $EGREP "free" >/dev/null 2>&1; then
4518 :
4519 else
4520 ac_cv_header_stdc=no
4521 fi
4522 rm -f conftest*
4523
4524 fi
4525
4526 if test $ac_cv_header_stdc = yes; then
4527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4528 if test "$cross_compiling" = yes; then
4529 :
4530 else
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #include <ctype.h>
4538 #if ((' ' & 0x0FF) == 0x020)
4539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4541 #else
4542 # define ISLOWER(c) \
4543 (('a' <= (c) && (c) <= 'i') \
4544 || ('j' <= (c) && (c) <= 'r') \
4545 || ('s' <= (c) && (c) <= 'z'))
4546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4547 #endif
4548
4549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4550 int
4551 main ()
4552 {
4553 int i;
4554 for (i = 0; i < 256; i++)
4555 if (XOR (islower (i), ISLOWER (i))
4556 || toupper (i) != TOUPPER (i))
4557 exit(2);
4558 exit (0);
4559 }
4560 _ACEOF
4561 rm -f conftest$ac_exeext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4563 (eval $ac_link) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 :
4573 else
4574 echo "$as_me: program exited with status $ac_status" >&5
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578 ( exit $ac_status )
4579 ac_cv_header_stdc=no
4580 fi
4581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4582 fi
4583 fi
4584 fi
4585 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4586 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4587 if test $ac_cv_header_stdc = yes; then
4588
4589 cat >>confdefs.h <<\_ACEOF
4590 #define STDC_HEADERS 1
4591 _ACEOF
4592
4593 fi
4594
4595 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4606 inttypes.h stdint.h unistd.h
4607 do
4608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4609 echo "$as_me:$LINENO: checking for $ac_header" >&5
4610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4621
4622 #include <$ac_header>
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 eval "$as_ac_Header=yes"
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 eval "$as_ac_Header=no"
4652 fi
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4658 cat >>confdefs.h <<_ACEOF
4659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4660 _ACEOF
4661
4662 fi
4663
4664 done
4665
4666
4667
4668 for ac_header in dlfcn.h
4669 do
4670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4672 echo "$as_me:$LINENO: checking for $ac_header" >&5
4673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 fi
4677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4679 else
4680 # Is the header compilable?
4681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4683 cat >conftest.$ac_ext <<_ACEOF
4684 /* confdefs.h. */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 $ac_includes_default
4690 #include <$ac_header>
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_header_compiler=yes
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 ac_header_compiler=no
4720 fi
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4723 echo "${ECHO_T}$ac_header_compiler" >&6
4724
4725 # Is the header present?
4726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <$ac_header>
4735 _ACEOF
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null; then
4744 if test -s conftest.err; then
4745 ac_cpp_err=$ac_c_preproc_warn_flag
4746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4747 else
4748 ac_cpp_err=
4749 fi
4750 else
4751 ac_cpp_err=yes
4752 fi
4753 if test -z "$ac_cpp_err"; then
4754 ac_header_preproc=yes
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 ac_header_preproc=no
4760 fi
4761 rm -f conftest.err conftest.$ac_ext
4762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4763 echo "${ECHO_T}$ac_header_preproc" >&6
4764
4765 # So? What about this header?
4766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4767 yes:no: )
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4772 ac_header_preproc=yes
4773 ;;
4774 no:yes:* )
4775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4787 (
4788 cat <<\_ASBOX
4789 ## ------------------------------------------ ##
4790 ## Report this to the AC_PACKAGE_NAME lists. ##
4791 ## ------------------------------------------ ##
4792 _ASBOX
4793 ) |
4794 sed "s/^/$as_me: WARNING: /" >&2
4795 ;;
4796 esac
4797 echo "$as_me:$LINENO: checking for $ac_header" >&5
4798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802 eval "$as_ac_Header=\$ac_header_preproc"
4803 fi
4804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806
4807 fi
4808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4809 cat >>confdefs.h <<_ACEOF
4810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4811 _ACEOF
4812
4813 fi
4814
4815 done
4816
4817
4818
4819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4820 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4821 (test "X$CXX" != "Xg++"))) ; then
4822 ac_ext=cc
4823 ac_cpp='$CXXCPP $CPPFLAGS'
4824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4827 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4828 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4829 if test -z "$CXXCPP"; then
4830 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 # Double quotes because CXXCPP needs to be expanded
4834 for CXXCPP in "$CXX -E" "/lib/cpp"
4835 do
4836 ac_preproc_ok=false
4837 for ac_cxx_preproc_warn_flag in '' yes
4838 do
4839 # Use a header file that comes with gcc, so configuring glibc
4840 # with a fresh cross-compiler works.
4841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4842 # <limits.h> exists even on freestanding compilers.
4843 # On the NeXT, cc -E runs the code through the compiler's parser,
4844 # not just through cpp. "Syntax error" is here to catch this case.
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #ifdef __STDC__
4852 # include <limits.h>
4853 #else
4854 # include <assert.h>
4855 #endif
4856 Syntax error
4857 _ACEOF
4858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null; then
4866 if test -s conftest.err; then
4867 ac_cpp_err=$ac_cxx_preproc_warn_flag
4868 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4869 else
4870 ac_cpp_err=
4871 fi
4872 else
4873 ac_cpp_err=yes
4874 fi
4875 if test -z "$ac_cpp_err"; then
4876 :
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 # Broken: fails on valid input.
4882 continue
4883 fi
4884 rm -f conftest.err conftest.$ac_ext
4885
4886 # OK, works on sane cases. Now check whether non-existent headers
4887 # can be detected and how.
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h. */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 #include <ac_nonexistent.h>
4895 _ACEOF
4896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } >/dev/null; then
4904 if test -s conftest.err; then
4905 ac_cpp_err=$ac_cxx_preproc_warn_flag
4906 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4907 else
4908 ac_cpp_err=
4909 fi
4910 else
4911 ac_cpp_err=yes
4912 fi
4913 if test -z "$ac_cpp_err"; then
4914 # Broken: success on invalid input.
4915 continue
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 # Passes both tests.
4921 ac_preproc_ok=:
4922 break
4923 fi
4924 rm -f conftest.err conftest.$ac_ext
4925
4926 done
4927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4928 rm -f conftest.err conftest.$ac_ext
4929 if $ac_preproc_ok; then
4930 break
4931 fi
4932
4933 done
4934 ac_cv_prog_CXXCPP=$CXXCPP
4935
4936 fi
4937 CXXCPP=$ac_cv_prog_CXXCPP
4938 else
4939 ac_cv_prog_CXXCPP=$CXXCPP
4940 fi
4941 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4942 echo "${ECHO_T}$CXXCPP" >&6
4943 ac_preproc_ok=false
4944 for ac_cxx_preproc_warn_flag in '' yes
4945 do
4946 # Use a header file that comes with gcc, so configuring glibc
4947 # with a fresh cross-compiler works.
4948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949 # <limits.h> exists even on freestanding compilers.
4950 # On the NeXT, cc -E runs the code through the compiler's parser,
4951 # not just through cpp. "Syntax error" is here to catch this case.
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 #ifdef __STDC__
4959 # include <limits.h>
4960 #else
4961 # include <assert.h>
4962 #endif
4963 Syntax error
4964 _ACEOF
4965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } >/dev/null; then
4973 if test -s conftest.err; then
4974 ac_cpp_err=$ac_cxx_preproc_warn_flag
4975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4976 else
4977 ac_cpp_err=
4978 fi
4979 else
4980 ac_cpp_err=yes
4981 fi
4982 if test -z "$ac_cpp_err"; then
4983 :
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 # Broken: fails on valid input.
4989 continue
4990 fi
4991 rm -f conftest.err conftest.$ac_ext
4992
4993 # OK, works on sane cases. Now check whether non-existent headers
4994 # can be detected and how.
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #include <ac_nonexistent.h>
5002 _ACEOF
5003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } >/dev/null; then
5011 if test -s conftest.err; then
5012 ac_cpp_err=$ac_cxx_preproc_warn_flag
5013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5014 else
5015 ac_cpp_err=
5016 fi
5017 else
5018 ac_cpp_err=yes
5019 fi
5020 if test -z "$ac_cpp_err"; then
5021 # Broken: success on invalid input.
5022 continue
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 # Passes both tests.
5028 ac_preproc_ok=:
5029 break
5030 fi
5031 rm -f conftest.err conftest.$ac_ext
5032
5033 done
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.err conftest.$ac_ext
5036 if $ac_preproc_ok; then
5037 :
5038 else
5039 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5040 See \`config.log' for more details." >&5
5041 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5042 See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5044 fi
5045
5046 ac_ext=cc
5047 ac_cpp='$CXXCPP $CPPFLAGS'
5048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5051
5052 fi
5053
5054
5055 ac_ext=f
5056 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5057 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5059 if test -n "$ac_tool_prefix"; then
5060 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5061 do
5062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5064 echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5066 if test "${ac_cv_prog_F77+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 if test -n "$F77"; then
5070 ac_cv_prog_F77="$F77" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085
5086 fi
5087 fi
5088 F77=$ac_cv_prog_F77
5089 if test -n "$F77"; then
5090 echo "$as_me:$LINENO: result: $F77" >&5
5091 echo "${ECHO_T}$F77" >&6
5092 else
5093 echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6
5095 fi
5096
5097 test -n "$F77" && break
5098 done
5099 fi
5100 if test -z "$F77"; then
5101 ac_ct_F77=$F77
5102 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5103 do
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105 set dummy $ac_prog; ac_word=$2
5106 echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5108 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 if test -n "$ac_ct_F77"; then
5112 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_ac_ct_F77="$ac_prog"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127
5128 fi
5129 fi
5130 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5131 if test -n "$ac_ct_F77"; then
5132 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5133 echo "${ECHO_T}$ac_ct_F77" >&6
5134 else
5135 echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5137 fi
5138
5139 test -n "$ac_ct_F77" && break
5140 done
5141
5142 F77=$ac_ct_F77
5143 fi
5144
5145
5146 # Provide some information about the compiler.
5147 echo "$as_me:5147:" \
5148 "checking for Fortran 77 compiler version" >&5
5149 ac_compiler=`set X $ac_compile; echo $2`
5150 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5151 (eval $ac_compiler --version </dev/null >&5) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }
5155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5156 (eval $ac_compiler -v </dev/null >&5) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }
5160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5161 (eval $ac_compiler -V </dev/null >&5) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }
5165 rm -f a.out
5166
5167 # If we don't use `.F' as extension, the preprocessor is not run on the
5168 # input file. (Note that this only needs to work for GNU compilers.)
5169 ac_save_ext=$ac_ext
5170 ac_ext=F
5171 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5172 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5173 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176 cat >conftest.$ac_ext <<_ACEOF
5177 program main
5178 #ifndef __GNUC__
5179 choke me
5180 #endif
5181
5182 end
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_f77_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_compiler_gnu=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211 ac_compiler_gnu=no
5212 fi
5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5215
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5218 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5219 ac_ext=$ac_save_ext
5220 ac_test_FFLAGS=${FFLAGS+set}
5221 ac_save_FFLAGS=$FFLAGS
5222 FFLAGS=
5223 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5224 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5225 if test "${ac_cv_prog_f77_g+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 FFLAGS=-g
5229 cat >conftest.$ac_ext <<_ACEOF
5230 program main
5231
5232 end
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_f77_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 ac_cv_prog_f77_g=yes
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261 ac_cv_prog_f77_g=no
5262 fi
5263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5264
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5267 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5268 if test "$ac_test_FFLAGS" = set; then
5269 FFLAGS=$ac_save_FFLAGS
5270 elif test $ac_cv_prog_f77_g = yes; then
5271 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5272 FFLAGS="-g -O2"
5273 else
5274 FFLAGS="-g"
5275 fi
5276 else
5277 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5278 FFLAGS="-O2"
5279 else
5280 FFLAGS=
5281 fi
5282 fi
5283
5284 G77=`test $ac_compiler_gnu = yes && echo yes`
5285 ac_ext=cc
5286 ac_cpp='$CXXCPP $CPPFLAGS'
5287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5290
5291
5292
5293 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5294
5295 # find the maximum length of command line arguments
5296 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5297 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5298 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 i=0
5302 teststring="ABCD"
5303
5304 case $build_os in
5305 msdosdjgpp*)
5306 # On DJGPP, this test can blow up pretty badly due to problems in libc
5307 # (any single argument exceeding 2000 bytes causes a buffer overrun
5308 # during glob expansion). Even if it were fixed, the result of this
5309 # check would be larger than it should be.
5310 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5311 ;;
5312
5313 gnu*)
5314 # Under GNU Hurd, this test is not required because there is
5315 # no limit to the length of command line arguments.
5316 # Libtool will interpret -1 as no limit whatsoever
5317 lt_cv_sys_max_cmd_len=-1;
5318 ;;
5319
5320 cygwin* | mingw*)
5321 # On Win9x/ME, this test blows up -- it succeeds, but takes
5322 # about 5 minutes as the teststring grows exponentially.
5323 # Worse, since 9x/ME are not pre-emptively multitasking,
5324 # you end up with a "frozen" computer, even though with patience
5325 # the test eventually succeeds (with a max line length of 256k).
5326 # Instead, let's just punt: use the minimum linelength reported by
5327 # all of the supported platforms: 8192 (on NT/2K/XP).
5328 lt_cv_sys_max_cmd_len=8192;
5329 ;;
5330
5331 amigaos*)
5332 # On AmigaOS with pdksh, this test takes hours, literally.
5333 # So we just punt and use a minimum line length of 8192.
5334 lt_cv_sys_max_cmd_len=8192;
5335 ;;
5336
5337 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5338 # This has been around since 386BSD, at least. Likely further.
5339 if test -x /sbin/sysctl; then
5340 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5341 elif test -x /usr/sbin/sysctl; then
5342 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5343 else
5344 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5345 fi
5346 # And add a safety zone
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5349 ;;
5350
5351 interix*)
5352 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5353 lt_cv_sys_max_cmd_len=196608
5354 ;;
5355
5356 osf*)
5357 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5358 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5359 # nice to cause kernel panics so lets avoid the loop below.
5360 # First set a reasonable default.
5361 lt_cv_sys_max_cmd_len=16384
5362 #
5363 if test -x /sbin/sysconfig; then
5364 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5365 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5366 esac
5367 fi
5368 ;;
5369 sco3.2v5*)
5370 lt_cv_sys_max_cmd_len=102400
5371 ;;
5372 sysv5* | sco5v6* | sysv4.2uw2*)
5373 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5374 if test -n "$kargmax"; then
5375 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5376 else
5377 lt_cv_sys_max_cmd_len=32768
5378 fi
5379 ;;
5380 *)
5381 # If test is not a shell built-in, we'll probably end up computing a
5382 # maximum length that is only half of the actual maximum length, but
5383 # we can't tell.
5384 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5385 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5386 = "XX$teststring") >/dev/null 2>&1 &&
5387 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5388 lt_cv_sys_max_cmd_len=$new_result &&
5389 test $i != 17 # 1/2 MB should be enough
5390 do
5391 i=`expr $i + 1`
5392 teststring=$teststring$teststring
5393 done
5394 teststring=
5395 # Add a significant safety factor because C++ compilers can tack on massive
5396 # amounts of additional arguments before passing them to the linker.
5397 # It appears as though 1/2 is a usable value.
5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5399 ;;
5400 esac
5401
5402 fi
5403
5404 if test -n $lt_cv_sys_max_cmd_len ; then
5405 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5406 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5407 else
5408 echo "$as_me:$LINENO: result: none" >&5
5409 echo "${ECHO_T}none" >&6
5410 fi
5411
5412
5413
5414
5415 # Check for command to grab the raw symbol name followed by C symbol from nm.
5416 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5417 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5418 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421
5422 # These are sane defaults that work on at least a few old systems.
5423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5424
5425 # Character class describing NM global symbol codes.
5426 symcode='[BCDEGRST]'
5427
5428 # Regexp to match symbols that can be accessed directly from C.
5429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5430
5431 # Transform an extracted symbol line into a proper C declaration
5432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5433
5434 # Transform an extracted symbol line into symbol name and symbol address
5435 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'"
5436
5437 # Define system-specific variables.
5438 case $host_os in
5439 aix*)
5440 symcode='[BCDT]'
5441 ;;
5442 cygwin* | mingw* | pw32*)
5443 symcode='[ABCDGISTW]'
5444 ;;
5445 hpux*) # Its linker distinguishes data from code symbols
5446 if test "$host_cpu" = ia64; then
5447 symcode='[ABCDEGRST]'
5448 fi
5449 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5450 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'"
5451 ;;
5452 linux*)
5453 if test "$host_cpu" = ia64; then
5454 symcode='[ABCDGIRSTW]'
5455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5456 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'"
5457 fi
5458 ;;
5459 irix* | nonstopux*)
5460 symcode='[BCDEGRST]'
5461 ;;
5462 osf*)
5463 symcode='[BCDEGQRST]'
5464 ;;
5465 solaris*)
5466 symcode='[BDRT]'
5467 ;;
5468 sco3.2v5*)
5469 symcode='[DT]'
5470 ;;
5471 sysv4.2uw2*)
5472 symcode='[DT]'
5473 ;;
5474 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5475 symcode='[ABDT]'
5476 ;;
5477 sysv4)
5478 symcode='[DFNSTU]'
5479 ;;
5480 esac
5481
5482 # Handle CRLF in mingw tool chain
5483 opt_cr=
5484 case $build_os in
5485 mingw*)
5486 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5487 ;;
5488 esac
5489
5490 # If we're using GNU nm, then use its standard symbol codes.
5491 case `$NM -V 2>&1` in
5492 *GNU* | *'with BFD'*)
5493 symcode='[ABCDGIRSTW]' ;;
5494 esac
5495
5496 # Try without a prefix undercore, then with it.
5497 for ac_symprfx in "" "_"; do
5498
5499 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5500 symxfrm="\\1 $ac_symprfx\\2 \\2"
5501
5502 # Write the raw and C identifiers.
5503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5504
5505 # Check to see that the pipe works correctly.
5506 pipe_works=no
5507
5508 rm -f conftest*
5509 cat > conftest.$ac_ext <<EOF
5510 #ifdef __cplusplus
5511 extern "C" {
5512 #endif
5513 char nm_test_var;
5514 void nm_test_func(){}
5515 #ifdef __cplusplus
5516 }
5517 #endif
5518 int main(){nm_test_var='a';nm_test_func();return(0);}
5519 EOF
5520
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; then
5526 # Now try to grab the symbols.
5527 nlist=conftest.nm
5528 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5529 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && test -s "$nlist"; then
5533 # Try sorting and uniquifying the output.
5534 if sort "$nlist" | uniq > "$nlist"T; then
5535 mv -f "$nlist"T "$nlist"
5536 else
5537 rm -f "$nlist"T
5538 fi
5539
5540 # Make sure that we snagged all the symbols we need.
5541 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5542 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5543 cat <<EOF > conftest.$ac_ext
5544 #ifdef __cplusplus
5545 extern "C" {
5546 #endif
5547
5548 EOF
5549 # Now generate the symbol file.
5550 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5551
5552 cat <<EOF >> conftest.$ac_ext
5553 #if defined (__STDC__) && __STDC__
5554 # define lt_ptr_t void *
5555 #else
5556 # define lt_ptr_t char *
5557 # define const
5558 #endif
5559
5560 /* The mapping between symbol names and symbols. */
5561 const struct {
5562 const char *name;
5563 lt_ptr_t address;
5564 }
5565 lt_preloaded_symbols[] =
5566 {
5567 EOF
5568 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5569 cat <<\EOF >> conftest.$ac_ext
5570 {0, (lt_ptr_t) 0}
5571 };
5572
5573 #ifdef __cplusplus
5574 }
5575 #endif
5576 EOF
5577 # Now try linking the two files.
5578 mv conftest.$ac_objext conftstm.$ac_objext
5579 lt_save_LIBS="$LIBS"
5580 lt_save_CFLAGS="$CFLAGS"
5581 LIBS="conftstm.$ac_objext"
5582 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5588 pipe_works=yes
5589 fi
5590 LIBS="$lt_save_LIBS"
5591 CFLAGS="$lt_save_CFLAGS"
5592 else
5593 echo "cannot find nm_test_func in $nlist" >&5
5594 fi
5595 else
5596 echo "cannot find nm_test_var in $nlist" >&5
5597 fi
5598 else
5599 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5600 fi
5601 else
5602 echo "$progname: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5604 fi
5605 rm -f conftest* conftst*
5606
5607 # Do not use the global_symbol_pipe unless it works.
5608 if test "$pipe_works" = yes; then
5609 break
5610 else
5611 lt_cv_sys_global_symbol_pipe=
5612 fi
5613 done
5614
5615 fi
5616
5617 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5618 lt_cv_sys_global_symbol_to_cdecl=
5619 fi
5620 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5621 echo "$as_me:$LINENO: result: failed" >&5
5622 echo "${ECHO_T}failed" >&6
5623 else
5624 echo "$as_me:$LINENO: result: ok" >&5
5625 echo "${ECHO_T}ok" >&6
5626 fi
5627
5628 echo "$as_me:$LINENO: checking for objdir" >&5
5629 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5630 if test "${lt_cv_objdir+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633 rm -f .libs 2>/dev/null
5634 mkdir .libs 2>/dev/null
5635 if test -d .libs; then
5636 lt_cv_objdir=.libs
5637 else
5638 # MS-DOS does not allow filenames that begin with a dot.
5639 lt_cv_objdir=_libs
5640 fi
5641 rmdir .libs 2>/dev/null
5642 fi
5643 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5644 echo "${ECHO_T}$lt_cv_objdir" >&6
5645 objdir=$lt_cv_objdir
5646
5647
5648
5649
5650
5651 case $host_os in
5652 aix3*)
5653 # AIX sometimes has problems with the GCC collect2 program. For some
5654 # reason, if we set the COLLECT_NAMES environment variable, the problems
5655 # vanish in a puff of smoke.
5656 if test "X${COLLECT_NAMES+set}" != Xset; then
5657 COLLECT_NAMES=
5658 export COLLECT_NAMES
5659 fi
5660 ;;
5661 esac
5662
5663 # Sed substitution that helps us do robust quoting. It backslashifies
5664 # metacharacters that are still active within double-quoted strings.
5665 Xsed='sed -e 1s/^X//'
5666 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5667
5668 # Same as above, but do not quote variable references.
5669 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5670
5671 # Sed substitution to delay expansion of an escaped shell variable in a
5672 # double_quote_subst'ed string.
5673 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5674
5675 # Sed substitution to avoid accidental globbing in evaled expressions
5676 no_glob_subst='s/\*/\\\*/g'
5677
5678 # Constants:
5679 rm="rm -f"
5680
5681 # Global variables:
5682 default_ofile=libtool
5683 can_build_shared=yes
5684
5685 # All known linkers require a `.a' archive for static linking (except MSVC,
5686 # which needs '.lib').
5687 libext=a
5688 ltmain="$ac_aux_dir/ltmain.sh"
5689 ofile="$default_ofile"
5690 with_gnu_ld="$lt_cv_prog_gnu_ld"
5691
5692 if test -n "$ac_tool_prefix"; then
5693 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5694 set dummy ${ac_tool_prefix}ar; ac_word=$2
5695 echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5697 if test "${ac_cv_prog_AR+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 if test -n "$AR"; then
5701 ac_cv_prog_AR="$AR" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_AR="${ac_tool_prefix}ar"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714 done
5715 done
5716
5717 fi
5718 fi
5719 AR=$ac_cv_prog_AR
5720 if test -n "$AR"; then
5721 echo "$as_me:$LINENO: result: $AR" >&5
5722 echo "${ECHO_T}$AR" >&6
5723 else
5724 echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5726 fi
5727
5728 fi
5729 if test -z "$ac_cv_prog_AR"; then
5730 ac_ct_AR=$AR
5731 # Extract the first word of "ar", so it can be a program name with args.
5732 set dummy ar; ac_word=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738 if test -n "$ac_ct_AR"; then
5739 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_ac_ct_AR="ar"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752 done
5753 done
5754
5755 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5756 fi
5757 fi
5758 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5759 if test -n "$ac_ct_AR"; then
5760 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5761 echo "${ECHO_T}$ac_ct_AR" >&6
5762 else
5763 echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6
5765 fi
5766
5767 AR=$ac_ct_AR
5768 else
5769 AR="$ac_cv_prog_AR"
5770 fi
5771
5772 if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5775 echo "$as_me:$LINENO: checking for $ac_word" >&5
5776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5777 if test "${ac_cv_prog_RANLIB+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 if test -n "$RANLIB"; then
5781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794 done
5795 done
5796
5797 fi
5798 fi
5799 RANLIB=$ac_cv_prog_RANLIB
5800 if test -n "$RANLIB"; then
5801 echo "$as_me:$LINENO: result: $RANLIB" >&5
5802 echo "${ECHO_T}$RANLIB" >&6
5803 else
5804 echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6
5806 fi
5807
5808 fi
5809 if test -z "$ac_cv_prog_RANLIB"; then
5810 ac_ct_RANLIB=$RANLIB
5811 # Extract the first word of "ranlib", so it can be a program name with args.
5812 set dummy ranlib; ac_word=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 if test -n "$ac_ct_RANLIB"; then
5819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_ac_ct_RANLIB="ranlib"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834
5835 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5836 fi
5837 fi
5838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5839 if test -n "$ac_ct_RANLIB"; then
5840 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5841 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5842 else
5843 echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6
5845 fi
5846
5847 RANLIB=$ac_ct_RANLIB
5848 else
5849 RANLIB="$ac_cv_prog_RANLIB"
5850 fi
5851
5852 if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5854 set dummy ${ac_tool_prefix}strip; ac_word=$2
5855 echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5857 if test "${ac_cv_prog_STRIP+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 if test -n "$STRIP"; then
5861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874 done
5875 done
5876
5877 fi
5878 fi
5879 STRIP=$ac_cv_prog_STRIP
5880 if test -n "$STRIP"; then
5881 echo "$as_me:$LINENO: result: $STRIP" >&5
5882 echo "${ECHO_T}$STRIP" >&6
5883 else
5884 echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6
5886 fi
5887
5888 fi
5889 if test -z "$ac_cv_prog_STRIP"; then
5890 ac_ct_STRIP=$STRIP
5891 # Extract the first word of "strip", so it can be a program name with args.
5892 set dummy strip; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 if test -n "$ac_ct_STRIP"; then
5899 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_ac_ct_STRIP="strip"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912 done
5913 done
5914
5915 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5916 fi
5917 fi
5918 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5919 if test -n "$ac_ct_STRIP"; then
5920 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5921 echo "${ECHO_T}$ac_ct_STRIP" >&6
5922 else
5923 echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6
5925 fi
5926
5927 STRIP=$ac_ct_STRIP
5928 else
5929 STRIP="$ac_cv_prog_STRIP"
5930 fi
5931
5932
5933 old_CC="$CC"
5934 old_CFLAGS="$CFLAGS"
5935
5936 # Set sane defaults for various variables
5937 test -z "$AR" && AR=ar
5938 test -z "$AR_FLAGS" && AR_FLAGS=cru
5939 test -z "$AS" && AS=as
5940 test -z "$CC" && CC=cc
5941 test -z "$LTCC" && LTCC=$CC
5942 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5943 test -z "$DLLTOOL" && DLLTOOL=dlltool
5944 test -z "$LD" && LD=ld
5945 test -z "$LN_S" && LN_S="ln -s"
5946 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5947 test -z "$NM" && NM=nm
5948 test -z "$SED" && SED=sed
5949 test -z "$OBJDUMP" && OBJDUMP=objdump
5950 test -z "$RANLIB" && RANLIB=:
5951 test -z "$STRIP" && STRIP=:
5952 test -z "$ac_objext" && ac_objext=o
5953
5954 # Determine commands to create old-style static archives.
5955 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5956 old_postinstall_cmds='chmod 644 $oldlib'
5957 old_postuninstall_cmds=
5958
5959 if test -n "$RANLIB"; then
5960 case $host_os in
5961 openbsd*)
5962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5963 ;;
5964 *)
5965 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5966 ;;
5967 esac
5968 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5969 fi
5970
5971 for cc_temp in $compiler""; do
5972 case $cc_temp in
5973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5975 \-*) ;;
5976 *) break;;
5977 esac
5978 done
5979 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5980
5981
5982 # Only perform the check for file, if the check method requires it
5983 case $deplibs_check_method in
5984 file_magic*)
5985 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5986 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5987 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5988 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 case $MAGIC_CMD in
5992 [\\/*] | ?:[\\/]*)
5993 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5994 ;;
5995 *)
5996 lt_save_MAGIC_CMD="$MAGIC_CMD"
5997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5999 for ac_dir in $ac_dummy; do
6000 IFS="$lt_save_ifs"
6001 test -z "$ac_dir" && ac_dir=.
6002 if test -f $ac_dir/${ac_tool_prefix}file; then
6003 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6004 if test -n "$file_magic_test_file"; then
6005 case $deplibs_check_method in
6006 "file_magic "*)
6007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6010 $EGREP "$file_magic_regex" > /dev/null; then
6011 :
6012 else
6013 cat <<EOF 1>&2
6014
6015 *** Warning: the command libtool uses to detect shared libraries,
6016 *** $file_magic_cmd, produces output that libtool cannot recognize.
6017 *** The result is that libtool may fail to recognize shared libraries
6018 *** as such. This will affect the creation of libtool libraries that
6019 *** depend on shared libraries, but programs linked with such libtool
6020 *** libraries will work regardless of this problem. Nevertheless, you
6021 *** may want to report the problem to your system manager and/or to
6022 *** [email protected]
6023
6024 EOF
6025 fi ;;
6026 esac
6027 fi
6028 break
6029 fi
6030 done
6031 IFS="$lt_save_ifs"
6032 MAGIC_CMD="$lt_save_MAGIC_CMD"
6033 ;;
6034 esac
6035 fi
6036
6037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6038 if test -n "$MAGIC_CMD"; then
6039 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6040 echo "${ECHO_T}$MAGIC_CMD" >&6
6041 else
6042 echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6
6044 fi
6045
6046 if test -z "$lt_cv_path_MAGIC_CMD"; then
6047 if test -n "$ac_tool_prefix"; then
6048 echo "$as_me:$LINENO: checking for file" >&5
6049 echo $ECHO_N "checking for file... $ECHO_C" >&6
6050 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 case $MAGIC_CMD in
6054 [\\/*] | ?:[\\/]*)
6055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6056 ;;
6057 *)
6058 lt_save_MAGIC_CMD="$MAGIC_CMD"
6059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6061 for ac_dir in $ac_dummy; do
6062 IFS="$lt_save_ifs"
6063 test -z "$ac_dir" && ac_dir=.
6064 if test -f $ac_dir/file; then
6065 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6066 if test -n "$file_magic_test_file"; then
6067 case $deplibs_check_method in
6068 "file_magic "*)
6069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6072 $EGREP "$file_magic_regex" > /dev/null; then
6073 :
6074 else
6075 cat <<EOF 1>&2
6076
6077 *** Warning: the command libtool uses to detect shared libraries,
6078 *** $file_magic_cmd, produces output that libtool cannot recognize.
6079 *** The result is that libtool may fail to recognize shared libraries
6080 *** as such. This will affect the creation of libtool libraries that
6081 *** depend on shared libraries, but programs linked with such libtool
6082 *** libraries will work regardless of this problem. Nevertheless, you
6083 *** may want to report the problem to your system manager and/or to
6084 *** [email protected]
6085
6086 EOF
6087 fi ;;
6088 esac
6089 fi
6090 break
6091 fi
6092 done
6093 IFS="$lt_save_ifs"
6094 MAGIC_CMD="$lt_save_MAGIC_CMD"
6095 ;;
6096 esac
6097 fi
6098
6099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6100 if test -n "$MAGIC_CMD"; then
6101 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6102 echo "${ECHO_T}$MAGIC_CMD" >&6
6103 else
6104 echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6
6106 fi
6107
6108 else
6109 MAGIC_CMD=:
6110 fi
6111 fi
6112
6113 fi
6114 ;;
6115 esac
6116
6117 enable_dlopen=no
6118 enable_win32_dll=no
6119
6120 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6121 if test "${enable_libtool_lock+set}" = set; then
6122 enableval="$enable_libtool_lock"
6123
6124 fi;
6125 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6126
6127
6128 # Check whether --with-pic or --without-pic was given.
6129 if test "${with_pic+set}" = set; then
6130 withval="$with_pic"
6131 pic_mode="$withval"
6132 else
6133 pic_mode=default
6134 fi;
6135 test -z "$pic_mode" && pic_mode=default
6136
6137 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6138 #
6139 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6140 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6141 # calls AC_LIBTOOL_CONFIG and creates libtool.
6142 #
6143 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6144 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6145 if test "x$ltmain" = "x" ; then
6146 echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6148 { { echo "$as_me:$LINENO: error:
6149
6150 *** [Gentoo] sanity check failed! ***
6151 *** \$ltmain is not defined, please check the patch for consistency! ***
6152 " >&5
6153 echo "$as_me: error:
6154
6155 *** [Gentoo] sanity check failed! ***
6156 *** \$ltmain is not defined, please check the patch for consistency! ***
6157 " >&2;}
6158 { (exit 1); exit 1; }; }
6159 fi
6160 gentoo_lt_version="1.5.22"
6161 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6162 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6163 echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6
6165 { { echo "$as_me:$LINENO: error:
6166
6167 *** [Gentoo] sanity check failed! ***
6168 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6169 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6170
6171 Please run:
6172
6173 libtoolize --copy --force
6174
6175 if appropriate, please contact the maintainer of this
6176 package (or your distribution) for help.
6177 " >&5
6178 echo "$as_me: error:
6179
6180 *** [Gentoo] sanity check failed! ***
6181 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6182 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6183
6184 Please run:
6185
6186 libtoolize --copy --force
6187
6188 if appropriate, please contact the maintainer of this
6189 package (or your distribution) for help.
6190 " >&2;}
6191 { (exit 1); exit 1; }; }
6192 else
6193 echo "$as_me:$LINENO: result: yes" >&5
6194 echo "${ECHO_T}yes" >&6
6195 fi
6196
6197
6198 # Use C for the default configuration in the libtool script
6199 tagname=
6200 lt_save_CC="$CC"
6201 ac_ext=c
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206
6207
6208 # Source file extension for C test sources.
6209 ac_ext=c
6210
6211 # Object file extension for compiled C test sources.
6212 objext=o
6213 objext=$objext
6214
6215 # Code to be used in simple compile tests
6216 lt_simple_compile_test_code="int some_variable = 0;\n"
6217
6218 # Code to be used in simple link tests
6219 lt_simple_link_test_code='int main(){return(0);}\n'
6220
6221
6222 # If no C compiler was specified, use CC.
6223 LTCC=${LTCC-"$CC"}
6224
6225 # If no C compiler flags were specified, use CFLAGS.
6226 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6227
6228 # Allow CC to be a program name with arguments.
6229 compiler=$CC
6230
6231
6232 # save warnings/boilerplate of simple test code
6233 ac_outfile=conftest.$ac_objext
6234 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6235 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6236 _lt_compiler_boilerplate=`cat conftest.err`
6237 $rm conftest*
6238
6239 ac_outfile=conftest.$ac_objext
6240 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6241 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6242 _lt_linker_boilerplate=`cat conftest.err`
6243 $rm conftest*
6244
6245
6246
6247 lt_prog_compiler_no_builtin_flag=
6248
6249 if test "$GCC" = yes; then
6250 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6251
6252
6253 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6254 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6255 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 lt_cv_prog_compiler_rtti_exceptions=no
6259 ac_outfile=conftest.$ac_objext
6260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6261 lt_compiler_flag="-fno-rtti -fno-exceptions"
6262 # Insert the option either (1) after the last *FLAGS variable, or
6263 # (2) before a word containing "conftest.", or (3) at the end.
6264 # Note that $ac_compile itself does not contain backslashes and begins
6265 # with a dollar sign (not a hyphen), so the echo should work correctly.
6266 # The option is referenced via a variable to avoid confusing sed.
6267 lt_compile=`echo "$ac_compile" | $SED \
6268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6270 -e 's:$: $lt_compiler_flag:'`
6271 (eval echo "\"\$as_me:6271: $lt_compile\"" >&5)
6272 (eval "$lt_compile" 2>conftest.err)
6273 ac_status=$?
6274 cat conftest.err >&5
6275 echo "$as_me:6275: \$? = $ac_status" >&5
6276 if (exit $ac_status) && test -s "$ac_outfile"; then
6277 # The compiler can only warn and ignore the option if not recognized
6278 # So say no if there are warnings other than the usual output.
6279 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6282 lt_cv_prog_compiler_rtti_exceptions=yes
6283 fi
6284 fi
6285 $rm conftest*
6286
6287 fi
6288 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6289 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6290
6291 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6292 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6293 else
6294 :
6295 fi
6296
6297 fi
6298
6299 lt_prog_compiler_wl=
6300 lt_prog_compiler_pic=
6301 lt_prog_compiler_static=
6302
6303 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6304 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6305
6306 if test "$GCC" = yes; then
6307 lt_prog_compiler_wl='-Wl,'
6308 lt_prog_compiler_static='-static'
6309
6310 case $host_os in
6311 aix*)
6312 # All AIX code is PIC.
6313 if test "$host_cpu" = ia64; then
6314 # AIX 5 now supports IA64 processor
6315 lt_prog_compiler_static='-Bstatic'
6316 fi
6317 ;;
6318
6319 amigaos*)
6320 # FIXME: we need at least 68020 code to build shared libraries, but
6321 # adding the `-m68020' flag to GCC prevents building anything better,
6322 # like `-m68040'.
6323 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6324 ;;
6325
6326 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6327 # PIC is the default for these OSes.
6328 ;;
6329
6330 mingw* | pw32* | os2*)
6331 # This hack is so that the source file can tell whether it is being
6332 # built for inclusion in a dll (and should export symbols for example).
6333 lt_prog_compiler_pic='-DDLL_EXPORT'
6334 ;;
6335
6336 darwin* | rhapsody*)
6337 # PIC is the default on this platform
6338 # Common symbols not allowed in MH_DYLIB files
6339 lt_prog_compiler_pic='-fno-common'
6340 ;;
6341
6342 interix3*)
6343 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6344 # Instead, we relocate shared libraries at runtime.
6345 ;;
6346
6347 msdosdjgpp*)
6348 # Just because we use GCC doesn't mean we suddenly get shared libraries
6349 # on systems that don't support them.
6350 lt_prog_compiler_can_build_shared=no
6351 enable_shared=no
6352 ;;
6353
6354 sysv4*MP*)
6355 if test -d /usr/nec; then
6356 lt_prog_compiler_pic=-Kconform_pic
6357 fi
6358 ;;
6359
6360 hpux*)
6361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6362 # not for PA HP-UX.
6363 case $host_cpu in
6364 hppa*64*|ia64*)
6365 # +Z the default
6366 ;;
6367 *)
6368 lt_prog_compiler_pic='-fPIC'
6369 ;;
6370 esac
6371 ;;
6372
6373 *)
6374 lt_prog_compiler_pic='-fPIC'
6375 ;;
6376 esac
6377 else
6378 # PORTME Check for flag to pass linker flags through the system compiler.
6379 case $host_os in
6380 aix*)
6381 lt_prog_compiler_wl='-Wl,'
6382 if test "$host_cpu" = ia64; then
6383 # AIX 5 now supports IA64 processor
6384 lt_prog_compiler_static='-Bstatic'
6385 else
6386 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6387 fi
6388 ;;
6389 darwin*)
6390 # PIC is the default on this platform
6391 # Common symbols not allowed in MH_DYLIB files
6392 case $cc_basename in
6393 xlc*)
6394 lt_prog_compiler_pic='-qnocommon'
6395 lt_prog_compiler_wl='-Wl,'
6396 ;;
6397 esac
6398 ;;
6399
6400 mingw* | pw32* | os2*)
6401 # This hack is so that the source file can tell whether it is being
6402 # built for inclusion in a dll (and should export symbols for example).
6403 lt_prog_compiler_pic='-DDLL_EXPORT'
6404 ;;
6405
6406 hpux9* | hpux10* | hpux11*)
6407 lt_prog_compiler_wl='-Wl,'
6408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6409 # not for PA HP-UX.
6410 case $host_cpu in
6411 hppa*64*|ia64*)
6412 # +Z the default
6413 ;;
6414 *)
6415 lt_prog_compiler_pic='+Z'
6416 ;;
6417 esac
6418 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6419 lt_prog_compiler_static='${wl}-a ${wl}archive'
6420 ;;
6421
6422 irix5* | irix6* | nonstopux*)
6423 lt_prog_compiler_wl='-Wl,'
6424 # PIC (with -KPIC) is the default.
6425 lt_prog_compiler_static='-non_shared'
6426 ;;
6427
6428 newsos6)
6429 lt_prog_compiler_pic='-KPIC'
6430 lt_prog_compiler_static='-Bstatic'
6431 ;;
6432
6433 linux*)
6434 case $cc_basename in
6435 icc* | ecc*)
6436 lt_prog_compiler_wl='-Wl,'
6437 lt_prog_compiler_pic='-KPIC'
6438 lt_prog_compiler_static='-static'
6439 ;;
6440 pgcc* | pgf77* | pgf90* | pgf95*)
6441 # Portland Group compilers (*not* the Pentium gcc compiler,
6442 # which looks to be a dead project)
6443 lt_prog_compiler_wl='-Wl,'
6444 lt_prog_compiler_pic='-fpic'
6445 lt_prog_compiler_static='-Bstatic'
6446 ;;
6447 ccc*)
6448 lt_prog_compiler_wl='-Wl,'
6449 # All Alpha code is PIC.
6450 lt_prog_compiler_static='-non_shared'
6451 ;;
6452 esac
6453 ;;
6454
6455 osf3* | osf4* | osf5*)
6456 lt_prog_compiler_wl='-Wl,'
6457 # All OSF/1 code is PIC.
6458 lt_prog_compiler_static='-non_shared'
6459 ;;
6460
6461 solaris*)
6462 lt_prog_compiler_pic='-KPIC'
6463 lt_prog_compiler_static='-Bstatic'
6464 case $cc_basename in
6465 f77* | f90* | f95*)
6466 lt_prog_compiler_wl='-Qoption ld ';;
6467 *)
6468 lt_prog_compiler_wl='-Wl,';;
6469 esac
6470 ;;
6471
6472 sunos4*)
6473 lt_prog_compiler_wl='-Qoption ld '
6474 lt_prog_compiler_pic='-PIC'
6475 lt_prog_compiler_static='-Bstatic'
6476 ;;
6477
6478 sysv4 | sysv4.2uw2* | sysv4.3*)
6479 lt_prog_compiler_wl='-Wl,'
6480 lt_prog_compiler_pic='-KPIC'
6481 lt_prog_compiler_static='-Bstatic'
6482 ;;
6483
6484 sysv4*MP*)
6485 if test -d /usr/nec ;then
6486 lt_prog_compiler_pic='-Kconform_pic'
6487 lt_prog_compiler_static='-Bstatic'
6488 fi
6489 ;;
6490
6491 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6492 lt_prog_compiler_wl='-Wl,'
6493 lt_prog_compiler_pic='-KPIC'
6494 lt_prog_compiler_static='-Bstatic'
6495 ;;
6496
6497 unicos*)
6498 lt_prog_compiler_wl='-Wl,'
6499 lt_prog_compiler_can_build_shared=no
6500 ;;
6501
6502 uts4*)
6503 lt_prog_compiler_pic='-pic'
6504 lt_prog_compiler_static='-Bstatic'
6505 ;;
6506
6507 *)
6508 lt_prog_compiler_can_build_shared=no
6509 ;;
6510 esac
6511 fi
6512
6513 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6514 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6515
6516 #
6517 # Check to make sure the PIC flag actually works.
6518 #
6519 if test -n "$lt_prog_compiler_pic"; then
6520
6521 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6522 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6523 if test "${lt_prog_compiler_pic_works+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 lt_prog_compiler_pic_works=no
6527 ac_outfile=conftest.$ac_objext
6528 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6529 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6530 # Insert the option either (1) after the last *FLAGS variable, or
6531 # (2) before a word containing "conftest.", or (3) at the end.
6532 # Note that $ac_compile itself does not contain backslashes and begins
6533 # with a dollar sign (not a hyphen), so the echo should work correctly.
6534 # The option is referenced via a variable to avoid confusing sed.
6535 lt_compile=`echo "$ac_compile" | $SED \
6536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6538 -e 's:$: $lt_compiler_flag:'`
6539 (eval echo "\"\$as_me:6539: $lt_compile\"" >&5)
6540 (eval "$lt_compile" 2>conftest.err)
6541 ac_status=$?
6542 cat conftest.err >&5
6543 echo "$as_me:6543: \$? = $ac_status" >&5
6544 if (exit $ac_status) && test -s "$ac_outfile"; then
6545 # The compiler can only warn and ignore the option if not recognized
6546 # So say no if there are warnings other than the usual output.
6547 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6549 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6550 lt_prog_compiler_pic_works=yes
6551 fi
6552 fi
6553 $rm conftest*
6554
6555 fi
6556 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6557 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6558
6559 if test x"$lt_prog_compiler_pic_works" = xyes; then
6560 case $lt_prog_compiler_pic in
6561 "" | " "*) ;;
6562 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6563 esac
6564 else
6565 lt_prog_compiler_pic=
6566 lt_prog_compiler_can_build_shared=no
6567 fi
6568
6569 fi
6570 case $host_os in
6571 # For platforms which do not support PIC, -DPIC is meaningless:
6572 *djgpp*)
6573 lt_prog_compiler_pic=
6574 ;;
6575 *)
6576 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6577 ;;
6578 esac
6579
6580 #
6581 # Check to make sure the static flag actually works.
6582 #
6583 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6584 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6585 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6586 if test "${lt_prog_compiler_static_works+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 lt_prog_compiler_static_works=no
6590 save_LDFLAGS="$LDFLAGS"
6591 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6592 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6593 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6594 # The linker can only warn and ignore the option if not recognized
6595 # So say no if there are warnings
6596 if test -s conftest.err; then
6597 # Append any errors to the config.log.
6598 cat conftest.err 1>&5
6599 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6601 if diff conftest.exp conftest.er2 >/dev/null; then
6602 lt_prog_compiler_static_works=yes
6603 fi
6604 else
6605 lt_prog_compiler_static_works=yes
6606 fi
6607 fi
6608 $rm conftest*
6609 LDFLAGS="$save_LDFLAGS"
6610
6611 fi
6612 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6613 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6614
6615 if test x"$lt_prog_compiler_static_works" = xyes; then
6616 :
6617 else
6618 lt_prog_compiler_static=
6619 fi
6620
6621
6622 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6623 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6624 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 lt_cv_prog_compiler_c_o=no
6628 $rm -r conftest 2>/dev/null
6629 mkdir conftest
6630 cd conftest
6631 mkdir out
6632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6633
6634 lt_compiler_flag="-o out/conftest2.$ac_objext"
6635 # Insert the option either (1) after the last *FLAGS variable, or
6636 # (2) before a word containing "conftest.", or (3) at the end.
6637 # Note that $ac_compile itself does not contain backslashes and begins
6638 # with a dollar sign (not a hyphen), so the echo should work correctly.
6639 lt_compile=`echo "$ac_compile" | $SED \
6640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6642 -e 's:$: $lt_compiler_flag:'`
6643 (eval echo "\"\$as_me:6643: $lt_compile\"" >&5)
6644 (eval "$lt_compile" 2>out/conftest.err)
6645 ac_status=$?
6646 cat out/conftest.err >&5
6647 echo "$as_me:6647: \$? = $ac_status" >&5
6648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6649 then
6650 # The compiler can only warn and ignore the option if not recognized
6651 # So say no if there are warnings
6652 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6655 lt_cv_prog_compiler_c_o=yes
6656 fi
6657 fi
6658 chmod u+w . 2>&5
6659 $rm conftest*
6660 # SGI C++ compiler will create directory out/ii_files/ for
6661 # template instantiation
6662 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6663 $rm out/* && rmdir out
6664 cd ..
6665 rmdir conftest
6666 $rm conftest*
6667
6668 fi
6669 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6670 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6671
6672
6673 hard_links="nottested"
6674 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6675 # do not overwrite the value of need_locks provided by the user
6676 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6677 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6678 hard_links=yes
6679 $rm conftest*
6680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6681 touch conftest.a
6682 ln conftest.a conftest.b 2>&5 || hard_links=no
6683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6684 echo "$as_me:$LINENO: result: $hard_links" >&5
6685 echo "${ECHO_T}$hard_links" >&6
6686 if test "$hard_links" = no; then
6687 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6688 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6689 need_locks=warn
6690 fi
6691 else
6692 need_locks=no
6693 fi
6694
6695 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6696 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6697
6698 runpath_var=
6699 allow_undefined_flag=
6700 enable_shared_with_static_runtimes=no
6701 archive_cmds=
6702 archive_expsym_cmds=
6703 old_archive_From_new_cmds=
6704 old_archive_from_expsyms_cmds=
6705 export_dynamic_flag_spec=
6706 whole_archive_flag_spec=
6707 thread_safe_flag_spec=
6708 hardcode_libdir_flag_spec=
6709 hardcode_libdir_flag_spec_ld=
6710 hardcode_libdir_separator=
6711 hardcode_direct=no
6712 hardcode_minus_L=no
6713 hardcode_shlibpath_var=unsupported
6714 link_all_deplibs=unknown
6715 hardcode_automatic=no
6716 module_cmds=
6717 module_expsym_cmds=
6718 always_export_symbols=no
6719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6720 # include_expsyms should be a list of space-separated symbols to be *always*
6721 # included in the symbol list
6722 include_expsyms=
6723 # exclude_expsyms can be an extended regexp of symbols to exclude
6724 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6725 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6726 # as well as any symbol that contains `d'.
6727 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6728 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6729 # platforms (ab)use it in PIC code, but their linkers get confused if
6730 # the symbol is explicitly referenced. Since portable code cannot
6731 # rely on this symbol name, it's probably fine to never include it in
6732 # preloaded symbol tables.
6733 extract_expsyms_cmds=
6734 # Just being paranoid about ensuring that cc_basename is set.
6735 for cc_temp in $compiler""; do
6736 case $cc_temp in
6737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6739 \-*) ;;
6740 *) break;;
6741 esac
6742 done
6743 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6744
6745 case $host_os in
6746 cygwin* | mingw* | pw32*)
6747 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6748 # When not using gcc, we currently assume that we are using
6749 # Microsoft Visual C++.
6750 if test "$GCC" != yes; then
6751 with_gnu_ld=no
6752 fi
6753 ;;
6754 interix*)
6755 # we just hope/assume this is gcc and not c89 (= MSVC++)
6756 with_gnu_ld=yes
6757 ;;
6758 openbsd*)
6759 with_gnu_ld=no
6760 ;;
6761 esac
6762
6763 ld_shlibs=yes
6764 if test "$with_gnu_ld" = yes; then
6765 # If archive_cmds runs LD, not CC, wlarc should be empty
6766 wlarc='${wl}'
6767
6768 # Set some defaults for GNU ld with shared library support. These
6769 # are reset later if shared libraries are not supported. Putting them
6770 # here allows them to be overridden if necessary.
6771 runpath_var=LD_RUN_PATH
6772 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6773 export_dynamic_flag_spec='${wl}--export-dynamic'
6774 # ancient GNU ld didn't support --whole-archive et. al.
6775 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6776 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6777 else
6778 whole_archive_flag_spec=
6779 fi
6780 supports_anon_versioning=no
6781 case `$LD -v 2>/dev/null` in
6782 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6783 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6784 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6785 *\ 2.11.*) ;; # other 2.11 versions
6786 *) supports_anon_versioning=yes ;;
6787 esac
6788
6789 # See if GNU ld supports shared libraries.
6790 case $host_os in
6791 aix3* | aix4* | aix5*)
6792 # On AIX/PPC, the GNU linker is very broken
6793 if test "$host_cpu" != ia64; then
6794 ld_shlibs=no
6795 cat <<EOF 1>&2
6796
6797 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6798 *** to be unable to reliably create shared libraries on AIX.
6799 *** Therefore, libtool is disabling shared libraries support. If you
6800 *** really care for shared libraries, you may want to modify your PATH
6801 *** so that a non-GNU linker is found, and then restart.
6802
6803 EOF
6804 fi
6805 ;;
6806
6807 amigaos*)
6808 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)'
6809 hardcode_libdir_flag_spec='-L$libdir'
6810 hardcode_minus_L=yes
6811
6812 # Samuel A. Falvo II <[email protected]> reports
6813 # that the semantics of dynamic libraries on AmigaOS, at least up
6814 # to version 4, is to share data among multiple programs linked
6815 # with the same dynamic library. Since this doesn't match the
6816 # behavior of shared libraries on other platforms, we can't use
6817 # them.
6818 ld_shlibs=no
6819 ;;
6820
6821 beos*)
6822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6823 allow_undefined_flag=unsupported
6824 # Joseph Beckenbach <[email protected]> says some releases of gcc
6825 # support --undefined. This deserves some investigation. FIXME
6826 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6827 else
6828 ld_shlibs=no
6829 fi
6830 ;;
6831
6832 cygwin* | mingw* | pw32*)
6833 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6834 # as there is no search path for DLLs.
6835 hardcode_libdir_flag_spec='-L$libdir'
6836 allow_undefined_flag=unsupported
6837 always_export_symbols=no
6838 enable_shared_with_static_runtimes=yes
6839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6840
6841 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6843 # If the export-symbols file already is a .def file (1st line
6844 # is EXPORTS), use it as is; otherwise, prepend...
6845 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6846 cp $export_symbols $output_objdir/$soname.def;
6847 else
6848 echo EXPORTS > $output_objdir/$soname.def;
6849 cat $export_symbols >> $output_objdir/$soname.def;
6850 fi~
6851 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6852 else
6853 ld_shlibs=no
6854 fi
6855 ;;
6856
6857 interix3*)
6858 hardcode_direct=no
6859 hardcode_shlibpath_var=no
6860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6861 export_dynamic_flag_spec='${wl}-E'
6862 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6863 # Instead, shared libraries are loaded at an image base (0x10000000 by
6864 # default) and relocated if they conflict, which is a slow very memory
6865 # consuming and fragmenting process. To avoid this, we pick a random,
6866 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6867 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6869 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6870 ;;
6871
6872 linux*)
6873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6874 tmp_addflag=
6875 case $cc_basename,$host_cpu in
6876 pgcc*) # Portland Group C compiler
6877 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6878 tmp_addflag=' $pic_flag'
6879 ;;
6880 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6881 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6882 tmp_addflag=' $pic_flag -Mnomain' ;;
6883 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6884 tmp_addflag=' -i_dynamic' ;;
6885 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6886 tmp_addflag=' -i_dynamic -nofor_main' ;;
6887 ifc* | ifort*) # Intel Fortran compiler
6888 tmp_addflag=' -nofor_main' ;;
6889 esac
6890 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6891
6892 if test $supports_anon_versioning = yes; then
6893 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6895 $echo "local: *; };" >> $output_objdir/$libname.ver~
6896 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6897 fi
6898 else
6899 ld_shlibs=no
6900 fi
6901 ;;
6902
6903 netbsd*)
6904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6905 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6906 wlarc=
6907 else
6908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6910 fi
6911 ;;
6912
6913 solaris*)
6914 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6915 ld_shlibs=no
6916 cat <<EOF 1>&2
6917
6918 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6919 *** create shared libraries on Solaris systems. Therefore, libtool
6920 *** is disabling shared libraries support. We urge you to upgrade GNU
6921 *** binutils to release 2.9.1 or newer. Another option is to modify
6922 *** your PATH or compiler configuration so that the native linker is
6923 *** used, and then restart.
6924
6925 EOF
6926 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6928 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6929 else
6930 ld_shlibs=no
6931 fi
6932 ;;
6933
6934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6935 case `$LD -v 2>&1` in
6936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6937 ld_shlibs=no
6938 cat <<_LT_EOF 1>&2
6939
6940 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6941 *** reliably create shared libraries on SCO systems. Therefore, libtool
6942 *** is disabling shared libraries support. We urge you to upgrade GNU
6943 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6944 *** your PATH or compiler configuration so that the native linker is
6945 *** used, and then restart.
6946
6947 _LT_EOF
6948 ;;
6949 *)
6950 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6951 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6954 else
6955 ld_shlibs=no
6956 fi
6957 ;;
6958 esac
6959 ;;
6960
6961 sunos4*)
6962 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6963 wlarc=
6964 hardcode_direct=yes
6965 hardcode_shlibpath_var=no
6966 ;;
6967
6968 *)
6969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6972 else
6973 ld_shlibs=no
6974 fi
6975 ;;
6976 esac
6977
6978 if test "$ld_shlibs" = no; then
6979 runpath_var=
6980 hardcode_libdir_flag_spec=
6981 export_dynamic_flag_spec=
6982 whole_archive_flag_spec=
6983 fi
6984 else
6985 # PORTME fill in a description of your system's linker (not GNU ld)
6986 case $host_os in
6987 aix3*)
6988 allow_undefined_flag=unsupported
6989 always_export_symbols=yes
6990 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'
6991 # Note: this linker hardcodes the directories in LIBPATH if there
6992 # are no directories specified by -L.
6993 hardcode_minus_L=yes
6994 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6995 # Neither direct hardcoding nor static linking is supported with a
6996 # broken collect2.
6997 hardcode_direct=unsupported
6998 fi
6999 ;;
7000
7001 aix4* | aix5*)
7002 if test "$host_cpu" = ia64; then
7003 # On IA64, the linker does run time linking by default, so we don't
7004 # have to do anything special.
7005 aix_use_runtimelinking=no
7006 exp_sym_flag='-Bexport'
7007 no_entry_flag=""
7008 else
7009 # If we're using GNU nm, then we don't want the "-C" option.
7010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7011 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7012 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'
7013 else
7014 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'
7015 fi
7016 aix_use_runtimelinking=no
7017
7018 # Test if we are trying to use run time linking or normal
7019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7020 # need to do runtime linking.
7021 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7022 for ld_flag in $LDFLAGS; do
7023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7024 aix_use_runtimelinking=yes
7025 break
7026 fi
7027 done
7028 ;;
7029 esac
7030
7031 exp_sym_flag='-bexport'
7032 no_entry_flag='-bnoentry'
7033 fi
7034
7035 # When large executables or shared objects are built, AIX ld can
7036 # have problems creating the table of contents. If linking a library
7037 # or program results in "error TOC overflow" add -mminimal-toc to
7038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7040
7041 archive_cmds=''
7042 hardcode_direct=yes
7043 hardcode_libdir_separator=':'
7044 link_all_deplibs=yes
7045
7046 if test "$GCC" = yes; then
7047 case $host_os in aix4.[012]|aix4.[012].*)
7048 # We only want to do this on AIX 4.2 and lower, the check
7049 # below for broken collect2 doesn't work under 4.3+
7050 collect2name=`${CC} -print-prog-name=collect2`
7051 if test -f "$collect2name" && \
7052 strings "$collect2name" | grep resolve_lib_name >/dev/null
7053 then
7054 # We have reworked collect2
7055 hardcode_direct=yes
7056 else
7057 # We have old collect2
7058 hardcode_direct=unsupported
7059 # It fails to find uninstalled libraries when the uninstalled
7060 # path is not listed in the libpath. Setting hardcode_minus_L
7061 # to unsupported forces relinking
7062 hardcode_minus_L=yes
7063 hardcode_libdir_flag_spec='-L$libdir'
7064 hardcode_libdir_separator=
7065 fi
7066 ;;
7067 esac
7068 shared_flag='-shared'
7069 if test "$aix_use_runtimelinking" = yes; then
7070 shared_flag="$shared_flag "'${wl}-G'
7071 fi
7072 else
7073 # not using gcc
7074 if test "$host_cpu" = ia64; then
7075 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7076 # chokes on -Wl,-G. The following line is correct:
7077 shared_flag='-G'
7078 else
7079 if test "$aix_use_runtimelinking" = yes; then
7080 shared_flag='${wl}-G'
7081 else
7082 shared_flag='${wl}-bM:SRE'
7083 fi
7084 fi
7085 fi
7086
7087 # It seems that -bexpall does not export symbols beginning with
7088 # underscore (_), so it is better to generate a list of symbols to export.
7089 always_export_symbols=yes
7090 if test "$aix_use_runtimelinking" = yes; then
7091 # Warning - without using the other runtime loading flags (-brtl),
7092 # -berok will link without error, but may produce a broken library.
7093 allow_undefined_flag='-berok'
7094 # Determine the default libpath from the value encoded in an empty executable.
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101
7102 int
7103 main ()
7104 {
7105
7106 ;
7107 return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try='test -s conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132
7133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7134 }'`
7135 # Check for a 64-bit object if we didn't find anything.
7136 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; }
7137 }'`; fi
7138 else
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7141
7142 fi
7143 rm -f conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7146
7147 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7148 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7149 else
7150 if test "$host_cpu" = ia64; then
7151 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7152 allow_undefined_flag="-z nodefs"
7153 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7154 else
7155 # Determine the default libpath from the value encoded in an empty executable.
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162
7163 int
7164 main ()
7165 {
7166
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173 (eval $ac_link) 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193
7194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7195 }'`
7196 # Check for a 64-bit object if we didn't find anything.
7197 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; }
7198 }'`; fi
7199 else
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 fi
7204 rm -f conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7207
7208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7209 # Warning - without using the other run time loading flags,
7210 # -berok will link without error, but may produce a broken library.
7211 no_undefined_flag=' ${wl}-bernotok'
7212 allow_undefined_flag=' ${wl}-berok'
7213 # Exported symbols can be pulled into shared objects from archives
7214 whole_archive_flag_spec='$convenience'
7215 archive_cmds_need_lc=yes
7216 # This is similar to how AIX traditionally builds its shared libraries.
7217 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7218 fi
7219 fi
7220 ;;
7221
7222 amigaos*)
7223 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)'
7224 hardcode_libdir_flag_spec='-L$libdir'
7225 hardcode_minus_L=yes
7226 # see comment about different semantics on the GNU ld section
7227 ld_shlibs=no
7228 ;;
7229
7230 bsdi[45]*)
7231 export_dynamic_flag_spec=-rdynamic
7232 ;;
7233
7234 cygwin* | mingw* | pw32*)
7235 # When not using gcc, we currently assume that we are using
7236 # Microsoft Visual C++.
7237 # hardcode_libdir_flag_spec is actually meaningless, as there is
7238 # no search path for DLLs.
7239 hardcode_libdir_flag_spec=' '
7240 allow_undefined_flag=unsupported
7241 # Tell ltmain to make .lib files, not .a files.
7242 libext=lib
7243 # Tell ltmain to make .dll files, not .so files.
7244 shrext_cmds=".dll"
7245 # FIXME: Setting linknames here is a bad hack.
7246 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7247 # The linker will automatically build a .lib file if we build a DLL.
7248 old_archive_From_new_cmds='true'
7249 # FIXME: Should let the user specify the lib program.
7250 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7251 fix_srcfile_path='`cygpath -w "$srcfile"`'
7252 enable_shared_with_static_runtimes=yes
7253 ;;
7254
7255 darwin* | rhapsody*)
7256 case $host_os in
7257 rhapsody* | darwin1.[012])
7258 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7259 ;;
7260 *) # Darwin 1.3 on
7261 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7262 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7263 else
7264 case ${MACOSX_DEPLOYMENT_TARGET} in
7265 10.[012])
7266 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7267 ;;
7268 10.*)
7269 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7270 ;;
7271 esac
7272 fi
7273 ;;
7274 esac
7275 archive_cmds_need_lc=no
7276 hardcode_direct=no
7277 hardcode_automatic=yes
7278 hardcode_shlibpath_var=unsupported
7279 whole_archive_flag_spec=''
7280 link_all_deplibs=yes
7281 if test "$GCC" = yes ; then
7282 output_verbose_link_cmd='echo'
7283 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7284 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7285 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7286 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}'
7287 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}'
7288 else
7289 case $cc_basename in
7290 xlc*)
7291 output_verbose_link_cmd='echo'
7292 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7293 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7294 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7295 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7296 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}'
7297 ;;
7298 *)
7299 ld_shlibs=no
7300 ;;
7301 esac
7302 fi
7303 ;;
7304
7305 dgux*)
7306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7307 hardcode_libdir_flag_spec='-L$libdir'
7308 hardcode_shlibpath_var=no
7309 ;;
7310
7311 freebsd1*)
7312 ld_shlibs=no
7313 ;;
7314
7315 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7316 # support. Future versions do this automatically, but an explicit c++rt0.o
7317 # does not break anything, and helps significantly (at the cost of a little
7318 # extra space).
7319 freebsd2.2*)
7320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7321 hardcode_libdir_flag_spec='-R$libdir'
7322 hardcode_direct=yes
7323 hardcode_shlibpath_var=no
7324 ;;
7325
7326 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7327 freebsd2*)
7328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7329 hardcode_direct=yes
7330 hardcode_minus_L=yes
7331 hardcode_shlibpath_var=no
7332 ;;
7333
7334 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7335 freebsd* | kfreebsd*-gnu | dragonfly*)
7336 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7337 hardcode_libdir_flag_spec='-R$libdir'
7338 hardcode_direct=yes
7339 hardcode_shlibpath_var=no
7340 ;;
7341
7342 hpux9*)
7343 if test "$GCC" = yes; then
7344 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'
7345 else
7346 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'
7347 fi
7348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7349 hardcode_libdir_separator=:
7350 hardcode_direct=yes
7351
7352 # hardcode_minus_L: Not really in the search PATH,
7353 # but as the default location of the library.
7354 hardcode_minus_L=yes
7355 export_dynamic_flag_spec='${wl}-E'
7356 ;;
7357
7358 hpux10*)
7359 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7360 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7361 else
7362 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7363 fi
7364 if test "$with_gnu_ld" = no; then
7365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7366 hardcode_libdir_separator=:
7367
7368 hardcode_direct=yes
7369 export_dynamic_flag_spec='${wl}-E'
7370
7371 # hardcode_minus_L: Not really in the search PATH,
7372 # but as the default location of the library.
7373 hardcode_minus_L=yes
7374 fi
7375 ;;
7376
7377 hpux11*)
7378 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7379 case $host_cpu in
7380 hppa*64*)
7381 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7382 ;;
7383 ia64*)
7384 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7385 ;;
7386 *)
7387 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7388 ;;
7389 esac
7390 else
7391 case $host_cpu in
7392 hppa*64*)
7393 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7394 ;;
7395 ia64*)
7396 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7397 ;;
7398 *)
7399 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7400 ;;
7401 esac
7402 fi
7403 if test "$with_gnu_ld" = no; then
7404 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7405 hardcode_libdir_separator=:
7406
7407 case $host_cpu in
7408 hppa*64*|ia64*)
7409 hardcode_libdir_flag_spec_ld='+b $libdir'
7410 hardcode_direct=no
7411 hardcode_shlibpath_var=no
7412 ;;
7413 *)
7414 hardcode_direct=yes
7415 export_dynamic_flag_spec='${wl}-E'
7416
7417 # hardcode_minus_L: Not really in the search PATH,
7418 # but as the default location of the library.
7419 hardcode_minus_L=yes
7420 ;;
7421 esac
7422 fi
7423 ;;
7424
7425 irix5* | irix6* | nonstopux*)
7426 if test "$GCC" = yes; then
7427 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'
7428 else
7429 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'
7430 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7431 fi
7432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7433 hardcode_libdir_separator=:
7434 link_all_deplibs=yes
7435 ;;
7436
7437 netbsd*)
7438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7440 else
7441 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7442 fi
7443 hardcode_libdir_flag_spec='-R$libdir'
7444 hardcode_direct=yes
7445 hardcode_shlibpath_var=no
7446 ;;
7447
7448 newsos6)
7449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450 hardcode_direct=yes
7451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7452 hardcode_libdir_separator=:
7453 hardcode_shlibpath_var=no
7454 ;;
7455
7456 openbsd*)
7457 hardcode_direct=yes
7458 hardcode_shlibpath_var=no
7459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7460 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7461 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7463 export_dynamic_flag_spec='${wl}-E'
7464 else
7465 case $host_os in
7466 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7468 hardcode_libdir_flag_spec='-R$libdir'
7469 ;;
7470 *)
7471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7473 ;;
7474 esac
7475 fi
7476 ;;
7477
7478 os2*)
7479 hardcode_libdir_flag_spec='-L$libdir'
7480 hardcode_minus_L=yes
7481 allow_undefined_flag=unsupported
7482 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'
7483 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7484 ;;
7485
7486 osf3*)
7487 if test "$GCC" = yes; then
7488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7489 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'
7490 else
7491 allow_undefined_flag=' -expect_unresolved \*'
7492 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'
7493 fi
7494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7495 hardcode_libdir_separator=:
7496 ;;
7497
7498 osf4* | osf5*) # as osf3* with the addition of -msym flag
7499 if test "$GCC" = yes; then
7500 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7501 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'
7502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7503 else
7504 allow_undefined_flag=' -expect_unresolved \*'
7505 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'
7506 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7507 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7508
7509 # Both c and cxx compiler support -rpath directly
7510 hardcode_libdir_flag_spec='-rpath $libdir'
7511 fi
7512 hardcode_libdir_separator=:
7513 ;;
7514
7515 solaris*)
7516 no_undefined_flag=' -z text'
7517 if test "$GCC" = yes; then
7518 wlarc='${wl}'
7519 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7520 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7521 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7522 else
7523 wlarc=''
7524 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7525 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7526 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7527 fi
7528 hardcode_libdir_flag_spec='-R$libdir'
7529 hardcode_shlibpath_var=no
7530 case $host_os in
7531 solaris2.[0-5] | solaris2.[0-5].*) ;;
7532 *)
7533 # The compiler driver will combine linker options so we
7534 # cannot just pass the convience library names through
7535 # without $wl, iff we do not link with $LD.
7536 # Luckily, gcc supports the same syntax we need for Sun Studio.
7537 # Supported since Solaris 2.6 (maybe 2.5.1?)
7538 case $wlarc in
7539 '')
7540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7541 *)
7542 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7543 esac ;;
7544 esac
7545 link_all_deplibs=yes
7546 ;;
7547
7548 sunos4*)
7549 if test "x$host_vendor" = xsequent; then
7550 # Use $CC to link under sequent, because it throws in some extra .o
7551 # files that make .init and .fini sections work.
7552 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7553 else
7554 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7555 fi
7556 hardcode_libdir_flag_spec='-L$libdir'
7557 hardcode_direct=yes
7558 hardcode_minus_L=yes
7559 hardcode_shlibpath_var=no
7560 ;;
7561
7562 sysv4)
7563 case $host_vendor in
7564 sni)
7565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7566 hardcode_direct=yes # is this really true???
7567 ;;
7568 siemens)
7569 ## LD is ld it makes a PLAMLIB
7570 ## CC just makes a GrossModule.
7571 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7572 reload_cmds='$CC -r -o $output$reload_objs'
7573 hardcode_direct=no
7574 ;;
7575 motorola)
7576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7577 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7578 ;;
7579 esac
7580 runpath_var='LD_RUN_PATH'
7581 hardcode_shlibpath_var=no
7582 ;;
7583
7584 sysv4.3*)
7585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7586 hardcode_shlibpath_var=no
7587 export_dynamic_flag_spec='-Bexport'
7588 ;;
7589
7590 sysv4*MP*)
7591 if test -d /usr/nec; then
7592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7593 hardcode_shlibpath_var=no
7594 runpath_var=LD_RUN_PATH
7595 hardcode_runpath_var=yes
7596 ld_shlibs=yes
7597 fi
7598 ;;
7599
7600 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7601 no_undefined_flag='${wl}-z,text'
7602 archive_cmds_need_lc=no
7603 hardcode_shlibpath_var=no
7604 runpath_var='LD_RUN_PATH'
7605
7606 if test "$GCC" = yes; then
7607 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7609 else
7610 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7612 fi
7613 ;;
7614
7615 sysv5* | sco3.2v5* | sco5v6*)
7616 # Note: We can NOT use -z defs as we might desire, because we do not
7617 # link with -lc, and that would cause any symbols used from libc to
7618 # always be unresolved, which means just about no library would
7619 # ever link correctly. If we're not using GNU ld we use -z text
7620 # though, which does catch some bad symbols but isn't as heavy-handed
7621 # as -z defs.
7622 no_undefined_flag='${wl}-z,text'
7623 allow_undefined_flag='${wl}-z,nodefs'
7624 archive_cmds_need_lc=no
7625 hardcode_shlibpath_var=no
7626 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7627 hardcode_libdir_separator=':'
7628 link_all_deplibs=yes
7629 export_dynamic_flag_spec='${wl}-Bexport'
7630 runpath_var='LD_RUN_PATH'
7631
7632 if test "$GCC" = yes; then
7633 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7634 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7635 else
7636 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7637 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7638 fi
7639 ;;
7640
7641 uts4*)
7642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7643 hardcode_libdir_flag_spec='-L$libdir'
7644 hardcode_shlibpath_var=no
7645 ;;
7646
7647 *)
7648 ld_shlibs=no
7649 ;;
7650 esac
7651 fi
7652
7653 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7654 echo "${ECHO_T}$ld_shlibs" >&6
7655 test "$ld_shlibs" = no && can_build_shared=no
7656
7657 #
7658 # Do we need to explicitly link libc?
7659 #
7660 case "x$archive_cmds_need_lc" in
7661 x|xyes)
7662 # Assume -lc should be added
7663 archive_cmds_need_lc=yes
7664
7665 if test "$enable_shared" = yes && test "$GCC" = yes; then
7666 case $archive_cmds in
7667 *'~'*)
7668 # FIXME: we may have to deal with multi-command sequences.
7669 ;;
7670 '$CC '*)
7671 # Test whether the compiler implicitly links with -lc since on some
7672 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7673 # to ld, don't add -lc before -lgcc.
7674 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7675 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7676 $rm conftest*
7677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7678
7679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680 (eval $ac_compile) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } 2>conftest.err; then
7684 soname=conftest
7685 lib=conftest
7686 libobjs=conftest.$ac_objext
7687 deplibs=
7688 wl=$lt_prog_compiler_wl
7689 pic_flag=$lt_prog_compiler_pic
7690 compiler_flags=-v
7691 linker_flags=-v
7692 verstring=
7693 output_objdir=.
7694 libname=conftest
7695 lt_save_allow_undefined_flag=$allow_undefined_flag
7696 allow_undefined_flag=
7697 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7698 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }
7702 then
7703 archive_cmds_need_lc=no
7704 else
7705 archive_cmds_need_lc=yes
7706 fi
7707 allow_undefined_flag=$lt_save_allow_undefined_flag
7708 else
7709 cat conftest.err 1>&5
7710 fi
7711 $rm conftest*
7712 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7713 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7714 ;;
7715 esac
7716 fi
7717 ;;
7718 esac
7719
7720 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7721 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7722 library_names_spec=
7723 libname_spec='lib$name'
7724 soname_spec=
7725 shrext_cmds=".so"
7726 postinstall_cmds=
7727 postuninstall_cmds=
7728 finish_cmds=
7729 finish_eval=
7730 shlibpath_var=
7731 shlibpath_overrides_runpath=unknown
7732 version_type=none
7733 dynamic_linker="$host_os ld.so"
7734 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7735 if test "$GCC" = yes; then
7736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7737 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7738 # if the path contains ";" then we assume it to be the separator
7739 # otherwise default to the standard path separator (i.e. ":") - it is
7740 # assumed that no part of a normal pathname contains ";" but that should
7741 # okay in the real world where ";" in dirpaths is itself problematic.
7742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7743 else
7744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7745 fi
7746 else
7747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7748 fi
7749 need_lib_prefix=unknown
7750 hardcode_into_libs=no
7751
7752 # when you set need_version to no, make sure it does not cause -set_version
7753 # flags to be left without arguments
7754 need_version=unknown
7755
7756 case $host_os in
7757 aix3*)
7758 version_type=linux
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7760 shlibpath_var=LIBPATH
7761
7762 # AIX 3 has no versioning support, so we append a major version to the name.
7763 soname_spec='${libname}${release}${shared_ext}$major'
7764 ;;
7765
7766 aix4* | aix5*)
7767 version_type=linux
7768 need_lib_prefix=no
7769 need_version=no
7770 hardcode_into_libs=yes
7771 if test "$host_cpu" = ia64; then
7772 # AIX 5 supports IA64
7773 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7774 shlibpath_var=LD_LIBRARY_PATH
7775 else
7776 # With GCC up to 2.95.x, collect2 would create an import file
7777 # for dependence libraries. The import file would start with
7778 # the line `#! .'. This would cause the generated library to
7779 # depend on `.', always an invalid library. This was fixed in
7780 # development snapshots of GCC prior to 3.0.
7781 case $host_os in
7782 aix4 | aix4.[01] | aix4.[01].*)
7783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7784 echo ' yes '
7785 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7786 :
7787 else
7788 can_build_shared=no
7789 fi
7790 ;;
7791 esac
7792 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7793 # soname into executable. Probably we can add versioning support to
7794 # collect2, so additional links can be useful in future.
7795 if test "$aix_use_runtimelinking" = yes; then
7796 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7797 # instead of lib<name>.a to let people know that these are not
7798 # typical AIX shared libraries.
7799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7800 else
7801 # We preserve .a as extension for shared libraries through AIX4.2
7802 # and later when we are not doing run time linking.
7803 library_names_spec='${libname}${release}.a $libname.a'
7804 soname_spec='${libname}${release}${shared_ext}$major'
7805 fi
7806 shlibpath_var=LIBPATH
7807 fi
7808 ;;
7809
7810 amigaos*)
7811 library_names_spec='$libname.ixlibrary $libname.a'
7812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7813 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'
7814 ;;
7815
7816 beos*)
7817 library_names_spec='${libname}${shared_ext}'
7818 dynamic_linker="$host_os ld.so"
7819 shlibpath_var=LIBRARY_PATH
7820 ;;
7821
7822 bsdi[45]*)
7823 version_type=linux
7824 need_version=no
7825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826 soname_spec='${libname}${release}${shared_ext}$major'
7827 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7828 shlibpath_var=LD_LIBRARY_PATH
7829 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7830 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7831 # the default ld.so.conf also contains /usr/contrib/lib and
7832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7833 # libtool to hard-code these into programs
7834 ;;
7835
7836 cygwin* | mingw* | pw32*)
7837 version_type=windows
7838 shrext_cmds=".dll"
7839 need_version=no
7840 need_lib_prefix=no
7841
7842 case $GCC,$host_os in
7843 yes,cygwin* | yes,mingw* | yes,pw32*)
7844 library_names_spec='$libname.dll.a'
7845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7846 postinstall_cmds='base_file=`basename \${file}`~
7847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7848 dldir=$destdir/`dirname \$dlpath`~
7849 test -d \$dldir || mkdir -p \$dldir~
7850 $install_prog $dir/$dlname \$dldir/$dlname~
7851 chmod a+x \$dldir/$dlname'
7852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7853 dlpath=$dir/\$dldll~
7854 $rm \$dlpath'
7855 shlibpath_overrides_runpath=yes
7856
7857 case $host_os in
7858 cygwin*)
7859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7861 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7862 ;;
7863 mingw*)
7864 # MinGW DLLs use traditional 'lib' prefix
7865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7867 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7868 # It is most probably a Windows format PATH printed by
7869 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7870 # path with ; separators, and with drive letters. We can handle the
7871 # drive letters (cygwin fileutils understands them), so leave them,
7872 # especially as we might pass files found there to a mingw objdump,
7873 # which wouldn't understand a cygwinified path. Ahh.
7874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7875 else
7876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7877 fi
7878 ;;
7879 pw32*)
7880 # pw32 DLLs use 'pw' prefix rather than 'lib'
7881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7882 ;;
7883 esac
7884 ;;
7885
7886 linux*)
7887 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889 supports_anon_versioning=no
7890 case `$LD -v 2>/dev/null` in
7891 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7892 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7893 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7894 *\ 2.11.*) ;; # other 2.11 versions
7895 *) supports_anon_versioning=yes ;;
7896 esac
7897 if test $supports_anon_versioning = yes; then
7898 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7899 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7900 $echo "local: *; };" >> $output_objdir/$libname.ver~
7901 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7902 else
7903 $archive_expsym_cmds="$archive_cmds"
7904 fi
7905 else
7906 ld_shlibs=no
7907 fi
7908 ;;
7909
7910 *)
7911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7912 ;;
7913 esac
7914 dynamic_linker='Win32 ld.exe'
7915 # FIXME: first we should search . and the directory the executable is in
7916 shlibpath_var=PATH
7917 ;;
7918
7919 darwin* | rhapsody*)
7920 dynamic_linker="$host_os dyld"
7921 version_type=darwin
7922 need_lib_prefix=no
7923 need_version=no
7924 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7925 soname_spec='${libname}${release}${major}$shared_ext'
7926 shlibpath_overrides_runpath=yes
7927 shlibpath_var=DYLD_LIBRARY_PATH
7928 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7929 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7930 if test "$GCC" = yes; then
7931 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"`
7932 else
7933 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7934 fi
7935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7936 ;;
7937
7938 dgux*)
7939 version_type=linux
7940 need_lib_prefix=no
7941 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
7945 ;;
7946
7947 freebsd1*)
7948 dynamic_linker=no
7949 ;;
7950
7951 kfreebsd*-gnu)
7952 version_type=linux
7953 need_lib_prefix=no
7954 need_version=no
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=no
7959 hardcode_into_libs=yes
7960 dynamic_linker='GNU ld.so'
7961 ;;
7962
7963 freebsd* | dragonfly*)
7964 # DragonFly does not have aout. When/if they implement a new
7965 # versioning mechanism, adjust this.
7966 if test -x /usr/bin/objformat; then
7967 objformat=`/usr/bin/objformat`
7968 else
7969 case $host_os in
7970 freebsd[123]*) objformat=aout ;;
7971 *) objformat=elf ;;
7972 esac
7973 fi
7974 # Handle Gentoo/FreeBSD as it was Linux
7975 case $host_vendor in
7976 gentoo)
7977 version_type=linux ;;
7978 *)
7979 version_type=freebsd-$objformat ;;
7980 esac
7981
7982 case $version_type in
7983 freebsd-elf*)
7984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7985 need_version=no
7986 need_lib_prefix=no
7987 ;;
7988 freebsd-*)
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7990 need_version=yes
7991 ;;
7992 linux)
7993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7994 soname_spec='${libname}${release}${shared_ext}$major'
7995 need_lib_prefix=no
7996 need_version=no
7997 ;;
7998 esac
7999 shlibpath_var=LD_LIBRARY_PATH
8000 case $host_os in
8001 freebsd2*)
8002 shlibpath_overrides_runpath=yes
8003 ;;
8004 freebsd3.[01]* | freebsdelf3.[01]*)
8005 shlibpath_overrides_runpath=yes
8006 hardcode_into_libs=yes
8007 ;;
8008 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8009 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8010 shlibpath_overrides_runpath=no
8011 hardcode_into_libs=yes
8012 ;;
8013 freebsd*) # from 4.6 on
8014 shlibpath_overrides_runpath=yes
8015 hardcode_into_libs=yes
8016 ;;
8017 esac
8018 ;;
8019
8020 gnu*)
8021 version_type=linux
8022 need_lib_prefix=no
8023 need_version=no
8024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8025 soname_spec='${libname}${release}${shared_ext}$major'
8026 shlibpath_var=LD_LIBRARY_PATH
8027 hardcode_into_libs=yes
8028 ;;
8029
8030 hpux9* | hpux10* | hpux11*)
8031 # Give a soname corresponding to the major version so that dld.sl refuses to
8032 # link against other versions.
8033 version_type=sunos
8034 need_lib_prefix=no
8035 need_version=no
8036 case $host_cpu in
8037 ia64*)
8038 shrext_cmds='.so'
8039 hardcode_into_libs=yes
8040 dynamic_linker="$host_os dld.so"
8041 shlibpath_var=LD_LIBRARY_PATH
8042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
8046 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8047 else
8048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8049 fi
8050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8051 ;;
8052 hppa*64*)
8053 shrext_cmds='.sl'
8054 hardcode_into_libs=yes
8055 dynamic_linker="$host_os dld.sl"
8056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8059 soname_spec='${libname}${release}${shared_ext}$major'
8060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8062 ;;
8063 *)
8064 shrext_cmds='.sl'
8065 dynamic_linker="$host_os dld.sl"
8066 shlibpath_var=SHLIB_PATH
8067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 ;;
8071 esac
8072 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8073 postinstall_cmds='chmod 555 $lib'
8074 ;;
8075
8076 interix3*)
8077 version_type=linux
8078 need_lib_prefix=no
8079 need_version=no
8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8081 soname_spec='${libname}${release}${shared_ext}$major'
8082 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8083 shlibpath_var=LD_LIBRARY_PATH
8084 shlibpath_overrides_runpath=no
8085 hardcode_into_libs=yes
8086 ;;
8087
8088 irix5* | irix6* | nonstopux*)
8089 case $host_os in
8090 nonstopux*) version_type=nonstopux ;;
8091 *)
8092 if test "$lt_cv_prog_gnu_ld" = yes; then
8093 version_type=linux
8094 else
8095 version_type=irix
8096 fi ;;
8097 esac
8098 need_lib_prefix=no
8099 need_version=no
8100 soname_spec='${libname}${release}${shared_ext}$major'
8101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8102 case $host_os in
8103 irix5* | nonstopux*)
8104 libsuff= shlibsuff=
8105 ;;
8106 *)
8107 case $LD in # libtool.m4 will add one of these switches to LD
8108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8109 libsuff= shlibsuff= libmagic=32-bit;;
8110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8111 libsuff=32 shlibsuff=N32 libmagic=N32;;
8112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8113 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8114 *) libsuff= shlibsuff= libmagic=never-match;;
8115 esac
8116 ;;
8117 esac
8118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8119 shlibpath_overrides_runpath=no
8120 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8121 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8122 hardcode_into_libs=yes
8123 ;;
8124
8125 # No shared lib support for Linux oldld, aout, or coff.
8126 linux*oldld* | linux*aout* | linux*coff*)
8127 dynamic_linker=no
8128 ;;
8129
8130 # This must be Linux ELF.
8131 linux*)
8132 version_type=linux
8133 need_lib_prefix=no
8134 need_version=no
8135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8136 soname_spec='${libname}${release}${shared_ext}$major'
8137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8138 shlibpath_var=LD_LIBRARY_PATH
8139 shlibpath_overrides_runpath=no
8140 # This implies no fast_install, which is unacceptable.
8141 # Some rework will be needed to allow for fast_install
8142 # before this can be enabled.
8143 hardcode_into_libs=yes
8144
8145 # Append ld.so.conf contents to the search path
8146 if test -f /etc/ld.so.conf; then
8147 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8149 fi
8150
8151 # We used to test for /lib/ld.so.1 and disable shared libraries on
8152 # powerpc, because MkLinux only supported shared libraries with the
8153 # GNU dynamic linker. Since this was broken with cross compilers,
8154 # most powerpc-linux boxes support dynamic linking these days and
8155 # people can always --disable-shared, the test was removed, and we
8156 # assume the GNU/Linux dynamic linker is in use.
8157 dynamic_linker='GNU/Linux ld.so'
8158 ;;
8159
8160 knetbsd*-gnu)
8161 version_type=linux
8162 need_lib_prefix=no
8163 need_version=no
8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8165 soname_spec='${libname}${release}${shared_ext}$major'
8166 shlibpath_var=LD_LIBRARY_PATH
8167 shlibpath_overrides_runpath=no
8168 hardcode_into_libs=yes
8169 dynamic_linker='GNU ld.so'
8170 ;;
8171
8172 netbsd*)
8173 version_type=sunos
8174 need_lib_prefix=no
8175 need_version=no
8176 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8179 dynamic_linker='NetBSD (a.out) ld.so'
8180 else
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8182 soname_spec='${libname}${release}${shared_ext}$major'
8183 dynamic_linker='NetBSD ld.elf_so'
8184 fi
8185 shlibpath_var=LD_LIBRARY_PATH
8186 shlibpath_overrides_runpath=yes
8187 hardcode_into_libs=yes
8188 ;;
8189
8190 newsos6)
8191 version_type=linux
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193 shlibpath_var=LD_LIBRARY_PATH
8194 shlibpath_overrides_runpath=yes
8195 ;;
8196
8197 nto-qnx*)
8198 version_type=linux
8199 need_lib_prefix=no
8200 need_version=no
8201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8202 soname_spec='${libname}${release}${shared_ext}$major'
8203 shlibpath_var=LD_LIBRARY_PATH
8204 shlibpath_overrides_runpath=yes
8205 ;;
8206
8207 openbsd*)
8208 version_type=sunos
8209 sys_lib_dlsearch_path_spec="/usr/lib"
8210 need_lib_prefix=no
8211 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8212 case $host_os in
8213 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8214 *) need_version=no ;;
8215 esac
8216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8218 shlibpath_var=LD_LIBRARY_PATH
8219 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8220 case $host_os in
8221 openbsd2.[89] | openbsd2.[89].*)
8222 shlibpath_overrides_runpath=no
8223 ;;
8224 *)
8225 shlibpath_overrides_runpath=yes
8226 ;;
8227 esac
8228 else
8229 shlibpath_overrides_runpath=yes
8230 fi
8231 ;;
8232
8233 os2*)
8234 libname_spec='$name'
8235 shrext_cmds=".dll"
8236 need_lib_prefix=no
8237 library_names_spec='$libname${shared_ext} $libname.a'
8238 dynamic_linker='OS/2 ld.exe'
8239 shlibpath_var=LIBPATH
8240 ;;
8241
8242 osf3* | osf4* | osf5*)
8243 version_type=osf
8244 need_lib_prefix=no
8245 need_version=no
8246 soname_spec='${libname}${release}${shared_ext}$major'
8247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248 shlibpath_var=LD_LIBRARY_PATH
8249 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8250 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8251 ;;
8252
8253 solaris*)
8254 version_type=linux
8255 need_lib_prefix=no
8256 need_version=no
8257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8258 soname_spec='${libname}${release}${shared_ext}$major'
8259 shlibpath_var=LD_LIBRARY_PATH
8260 shlibpath_overrides_runpath=yes
8261 hardcode_into_libs=yes
8262 # ldd complains unless libraries are executable
8263 postinstall_cmds='chmod +x $lib'
8264 ;;
8265
8266 sunos4*)
8267 version_type=sunos
8268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8269 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8270 shlibpath_var=LD_LIBRARY_PATH
8271 shlibpath_overrides_runpath=yes
8272 if test "$with_gnu_ld" = yes; then
8273 need_lib_prefix=no
8274 fi
8275 need_version=yes
8276 ;;
8277
8278 sysv4 | sysv4.3*)
8279 version_type=linux
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281 soname_spec='${libname}${release}${shared_ext}$major'
8282 shlibpath_var=LD_LIBRARY_PATH
8283 case $host_vendor in
8284 sni)
8285 shlibpath_overrides_runpath=no
8286 need_lib_prefix=no
8287 export_dynamic_flag_spec='${wl}-Blargedynsym'
8288 runpath_var=LD_RUN_PATH
8289 ;;
8290 siemens)
8291 need_lib_prefix=no
8292 ;;
8293 motorola)
8294 need_lib_prefix=no
8295 need_version=no
8296 shlibpath_overrides_runpath=no
8297 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8298 ;;
8299 esac
8300 ;;
8301
8302 sysv4*MP*)
8303 if test -d /usr/nec ;then
8304 version_type=linux
8305 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8306 soname_spec='$libname${shared_ext}.$major'
8307 shlibpath_var=LD_LIBRARY_PATH
8308 fi
8309 ;;
8310
8311 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8312 version_type=freebsd-elf
8313 need_lib_prefix=no
8314 need_version=no
8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8316 soname_spec='${libname}${release}${shared_ext}$major'
8317 shlibpath_var=LD_LIBRARY_PATH
8318 hardcode_into_libs=yes
8319 if test "$with_gnu_ld" = yes; then
8320 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8321 shlibpath_overrides_runpath=no
8322 else
8323 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8324 shlibpath_overrides_runpath=yes
8325 case $host_os in
8326 sco3.2v5*)
8327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8328 ;;
8329 esac
8330 fi
8331 sys_lib_dlsearch_path_spec='/usr/lib'
8332 ;;
8333
8334 uts4*)
8335 version_type=linux
8336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8337 soname_spec='${libname}${release}${shared_ext}$major'
8338 shlibpath_var=LD_LIBRARY_PATH
8339 ;;
8340
8341 *)
8342 dynamic_linker=no
8343 ;;
8344 esac
8345 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8346 echo "${ECHO_T}$dynamic_linker" >&6
8347 test "$dynamic_linker" = no && can_build_shared=no
8348
8349 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8350 if test "$GCC" = yes; then
8351 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8352 fi
8353
8354 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8355 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8356 hardcode_action=
8357 if test -n "$hardcode_libdir_flag_spec" || \
8358 test -n "$runpath_var" || \
8359 test "X$hardcode_automatic" = "Xyes" ; then
8360
8361 # We can hardcode non-existant directories.
8362 if test "$hardcode_direct" != no &&
8363 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8364 # have to relink, otherwise we might link with an installed library
8365 # when we should be linking with a yet-to-be-installed one
8366 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8367 test "$hardcode_minus_L" != no; then
8368 # Linking always hardcodes the temporary library directory.
8369 hardcode_action=relink
8370 else
8371 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8372 hardcode_action=immediate
8373 fi
8374 else
8375 # We cannot hardcode anything, or else we can only hardcode existing
8376 # directories.
8377 hardcode_action=unsupported
8378 fi
8379 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8380 echo "${ECHO_T}$hardcode_action" >&6
8381
8382 if test "$hardcode_action" = relink; then
8383 # Fast installation is not supported
8384 enable_fast_install=no
8385 elif test "$shlibpath_overrides_runpath" = yes ||
8386 test "$enable_shared" = no; then
8387 # Fast installation is not necessary
8388 enable_fast_install=needless
8389 fi
8390
8391 striplib=
8392 old_striplib=
8393 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8394 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8395 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8396 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8397 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8398 echo "$as_me:$LINENO: result: yes" >&5
8399 echo "${ECHO_T}yes" >&6
8400 else
8401 # FIXME - insert some real tests, host_os isn't really good enough
8402 case $host_os in
8403 darwin*)
8404 if test -n "$STRIP" ; then
8405 striplib="$STRIP -x"
8406 echo "$as_me:$LINENO: result: yes" >&5
8407 echo "${ECHO_T}yes" >&6
8408 else
8409 echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6
8411 fi
8412 ;;
8413 *)
8414 echo "$as_me:$LINENO: result: no" >&5
8415 echo "${ECHO_T}no" >&6
8416 ;;
8417 esac
8418 fi
8419
8420 if test "x$enable_dlopen" != xyes; then
8421 enable_dlopen=unknown
8422 enable_dlopen_self=unknown
8423 enable_dlopen_self_static=unknown
8424 else
8425 lt_cv_dlopen=no
8426 lt_cv_dlopen_libs=
8427
8428 case $host_os in
8429 beos*)
8430 lt_cv_dlopen="load_add_on"
8431 lt_cv_dlopen_libs=
8432 lt_cv_dlopen_self=yes
8433 ;;
8434
8435 mingw* | pw32*)
8436 lt_cv_dlopen="LoadLibrary"
8437 lt_cv_dlopen_libs=
8438 ;;
8439
8440 cygwin*)
8441 lt_cv_dlopen="dlopen"
8442 lt_cv_dlopen_libs=
8443 ;;
8444
8445 darwin*)
8446 # if libdl is installed we need to link against it
8447 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8448 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8449 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452 ac_check_lib_save_LIBS=$LIBS
8453 LIBS="-ldl $LIBS"
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460
8461 /* Override any gcc2 internal prototype to avoid an error. */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 /* We use char because int might match the return type of a gcc2
8466 builtin and then its argument prototype would still apply. */
8467 char dlopen ();
8468 int
8469 main ()
8470 {
8471 dlopen ();
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_lib_dl_dlopen=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_cv_lib_dl_dlopen=no
8504 fi
8505 rm -f conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8507 LIBS=$ac_check_lib_save_LIBS
8508 fi
8509 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8510 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8511 if test $ac_cv_lib_dl_dlopen = yes; then
8512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8513 else
8514
8515 lt_cv_dlopen="dyld"
8516 lt_cv_dlopen_libs=
8517 lt_cv_dlopen_self=yes
8518
8519 fi
8520
8521 ;;
8522
8523 *)
8524 echo "$as_me:$LINENO: checking for shl_load" >&5
8525 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8526 if test "${ac_cv_func_shl_load+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8537 #define shl_load innocuous_shl_load
8538
8539 /* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char shl_load (); below.
8541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8542 <limits.h> exists even on freestanding compilers. */
8543
8544 #ifdef __STDC__
8545 # include <limits.h>
8546 #else
8547 # include <assert.h>
8548 #endif
8549
8550 #undef shl_load
8551
8552 /* Override any gcc2 internal prototype to avoid an error. */
8553 #ifdef __cplusplus
8554 extern "C"
8555 {
8556 #endif
8557 /* We use char because int might match the return type of a gcc2
8558 builtin and then its argument prototype would still apply. */
8559 char shl_load ();
8560 /* The GNU C library defines this for functions which it implements
8561 to always fail with ENOSYS. Some functions are actually named
8562 something starting with __ and the normal name is an alias. */
8563 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8564 choke me
8565 #else
8566 char (*f) () = shl_load;
8567 #endif
8568 #ifdef __cplusplus
8569 }
8570 #endif
8571
8572 int
8573 main ()
8574 {
8575 return f != shl_load;
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>conftest.er1
8583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag"
8590 || test ! -s conftest.err'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 (eval $ac_try) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest$ac_exeext'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 (eval $ac_try) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 ac_cv_func_shl_load=yes
8603 else
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 ac_cv_func_shl_load=no
8608 fi
8609 rm -f conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 fi
8612 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8613 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8614 if test $ac_cv_func_shl_load = yes; then
8615 lt_cv_dlopen="shl_load"
8616 else
8617 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8618 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8619 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 ac_check_lib_save_LIBS=$LIBS
8623 LIBS="-ldld $LIBS"
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630
8631 /* Override any gcc2 internal prototype to avoid an error. */
8632 #ifdef __cplusplus
8633 extern "C"
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637 char shl_load ();
8638 int
8639 main ()
8640 {
8641 shl_load ();
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_lib_dld_shl_load=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_cv_lib_dld_shl_load=no
8674 fi
8675 rm -f conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677 LIBS=$ac_check_lib_save_LIBS
8678 fi
8679 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8680 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8681 if test $ac_cv_lib_dld_shl_load = yes; then
8682 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8683 else
8684 echo "$as_me:$LINENO: checking for dlopen" >&5
8685 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8686 if test "${ac_cv_func_dlopen+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8697 #define dlopen innocuous_dlopen
8698
8699 /* System header to define __stub macros and hopefully few prototypes,
8700 which can conflict with char dlopen (); below.
8701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8702 <limits.h> exists even on freestanding compilers. */
8703
8704 #ifdef __STDC__
8705 # include <limits.h>
8706 #else
8707 # include <assert.h>
8708 #endif
8709
8710 #undef dlopen
8711
8712 /* Override any gcc2 internal prototype to avoid an error. */
8713 #ifdef __cplusplus
8714 extern "C"
8715 {
8716 #endif
8717 /* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */
8719 char dlopen ();
8720 /* The GNU C library defines this for functions which it implements
8721 to always fail with ENOSYS. Some functions are actually named
8722 something starting with __ and the normal name is an alias. */
8723 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8724 choke me
8725 #else
8726 char (*f) () = dlopen;
8727 #endif
8728 #ifdef __cplusplus
8729 }
8730 #endif
8731
8732 int
8733 main ()
8734 {
8735 return f != dlopen;
8736 ;
8737 return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext conftest$ac_exeext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8742 (eval $ac_link) 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag"
8750 || test ! -s conftest.err'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 (eval $ac_try) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; } &&
8756 { ac_try='test -s conftest$ac_exeext'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_cv_func_dlopen=yes
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ac_cv_func_dlopen=no
8768 fi
8769 rm -f conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8773 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8774 if test $ac_cv_func_dlopen = yes; then
8775 lt_cv_dlopen="dlopen"
8776 else
8777 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8778 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8779 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782 ac_check_lib_save_LIBS=$LIBS
8783 LIBS="-ldl $LIBS"
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790
8791 /* Override any gcc2 internal prototype to avoid an error. */
8792 #ifdef __cplusplus
8793 extern "C"
8794 #endif
8795 /* We use char because int might match the return type of a gcc2
8796 builtin and then its argument prototype would still apply. */
8797 char dlopen ();
8798 int
8799 main ()
8800 {
8801 dlopen ();
8802 ;
8803 return 0;
8804 }
8805 _ACEOF
8806 rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest$ac_exeext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_cv_lib_dl_dlopen=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833 ac_cv_lib_dl_dlopen=no
8834 fi
8835 rm -f conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8837 LIBS=$ac_check_lib_save_LIBS
8838 fi
8839 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8840 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8841 if test $ac_cv_lib_dl_dlopen = yes; then
8842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8843 else
8844 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8845 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8846 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849 ac_check_lib_save_LIBS=$LIBS
8850 LIBS="-lsvld $LIBS"
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 /* We use char because int might match the return type of a gcc2
8863 builtin and then its argument prototype would still apply. */
8864 char dlopen ();
8865 int
8866 main ()
8867 {
8868 dlopen ();
8869 ;
8870 return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag"
8883 || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 ac_cv_lib_svld_dlopen=yes
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ac_cv_lib_svld_dlopen=no
8901 fi
8902 rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 LIBS=$ac_check_lib_save_LIBS
8905 fi
8906 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8907 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8908 if test $ac_cv_lib_svld_dlopen = yes; then
8909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8910 else
8911 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8912 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8913 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 ac_check_lib_save_LIBS=$LIBS
8917 LIBS="-ldld $LIBS"
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924
8925 /* Override any gcc2 internal prototype to avoid an error. */
8926 #ifdef __cplusplus
8927 extern "C"
8928 #endif
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8931 char dld_link ();
8932 int
8933 main ()
8934 {
8935 dld_link ();
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_lib_dld_dld_link=yes
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 ac_cv_lib_dld_dld_link=no
8968 fi
8969 rm -f conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8971 LIBS=$ac_check_lib_save_LIBS
8972 fi
8973 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8974 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8975 if test $ac_cv_lib_dld_dld_link = yes; then
8976 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8977 fi
8978
8979
8980 fi
8981
8982
8983 fi
8984
8985
8986 fi
8987
8988
8989 fi
8990
8991
8992 fi
8993
8994 ;;
8995 esac
8996
8997 if test "x$lt_cv_dlopen" != xno; then
8998 enable_dlopen=yes
8999 else
9000 enable_dlopen=no
9001 fi
9002
9003 case $lt_cv_dlopen in
9004 dlopen)
9005 save_CPPFLAGS="$CPPFLAGS"
9006 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9007
9008 save_LDFLAGS="$LDFLAGS"
9009 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9010
9011 save_LIBS="$LIBS"
9012 LIBS="$lt_cv_dlopen_libs $LIBS"
9013
9014 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9015 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9016 if test "${lt_cv_dlopen_self+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 if test "$cross_compiling" = yes; then :
9020 lt_cv_dlopen_self=cross
9021 else
9022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9023 lt_status=$lt_dlunknown
9024 cat > conftest.$ac_ext <<EOF
9025 #line 9025 "configure"
9026 #include "confdefs.h"
9027
9028 #if HAVE_DLFCN_H
9029 #include <dlfcn.h>
9030 #endif
9031
9032 #include <stdio.h>
9033
9034 #ifdef RTLD_GLOBAL
9035 # define LT_DLGLOBAL RTLD_GLOBAL
9036 #else
9037 # ifdef DL_GLOBAL
9038 # define LT_DLGLOBAL DL_GLOBAL
9039 # else
9040 # define LT_DLGLOBAL 0
9041 # endif
9042 #endif
9043
9044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9045 find out it does not work in some platform. */
9046 #ifndef LT_DLLAZY_OR_NOW
9047 # ifdef RTLD_LAZY
9048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9049 # else
9050 # ifdef DL_LAZY
9051 # define LT_DLLAZY_OR_NOW DL_LAZY
9052 # else
9053 # ifdef RTLD_NOW
9054 # define LT_DLLAZY_OR_NOW RTLD_NOW
9055 # else
9056 # ifdef DL_NOW
9057 # define LT_DLLAZY_OR_NOW DL_NOW
9058 # else
9059 # define LT_DLLAZY_OR_NOW 0
9060 # endif
9061 # endif
9062 # endif
9063 # endif
9064 #endif
9065
9066 #ifdef __cplusplus
9067 extern "C" void exit (int);
9068 #endif
9069
9070 void fnord() { int i=42;}
9071 int main ()
9072 {
9073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9074 int status = $lt_dlunknown;
9075
9076 if (self)
9077 {
9078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9079 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9080 /* dlclose (self); */
9081 }
9082 else
9083 puts (dlerror ());
9084
9085 exit (status);
9086 }
9087 EOF
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9093 (./conftest; exit; ) >&5 2>/dev/null
9094 lt_status=$?
9095 case x$lt_status in
9096 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9097 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9098 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9099 esac
9100 else :
9101 # compilation failed
9102 lt_cv_dlopen_self=no
9103 fi
9104 fi
9105 rm -fr conftest*
9106
9107
9108 fi
9109 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9110 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9111
9112 if test "x$lt_cv_dlopen_self" = xyes; then
9113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9114 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9115 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9116 if test "${lt_cv_dlopen_self_static+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119 if test "$cross_compiling" = yes; then :
9120 lt_cv_dlopen_self_static=cross
9121 else
9122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9123 lt_status=$lt_dlunknown
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9125 "configure"
9126 #include "confdefs.h"
9127
9128 #if HAVE_DLFCN_H
9129 #include <dlfcn.h>
9130 #endif
9131
9132 #include <stdio.h>
9133
9134 #ifdef RTLD_GLOBAL
9135 # define LT_DLGLOBAL RTLD_GLOBAL
9136 #else
9137 # ifdef DL_GLOBAL
9138 # define LT_DLGLOBAL DL_GLOBAL
9139 # else
9140 # define LT_DLGLOBAL 0
9141 # endif
9142 #endif
9143
9144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9145 find out it does not work in some platform. */
9146 #ifndef LT_DLLAZY_OR_NOW
9147 # ifdef RTLD_LAZY
9148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9149 # else
9150 # ifdef DL_LAZY
9151 # define LT_DLLAZY_OR_NOW DL_LAZY
9152 # else
9153 # ifdef RTLD_NOW
9154 # define LT_DLLAZY_OR_NOW RTLD_NOW
9155 # else
9156 # ifdef DL_NOW
9157 # define LT_DLLAZY_OR_NOW DL_NOW
9158 # else
9159 # define LT_DLLAZY_OR_NOW 0
9160 # endif
9161 # endif
9162 # endif
9163 # endif
9164 #endif
9165
9166 #ifdef __cplusplus
9167 extern "C" void exit (int);
9168 #endif
9169
9170 void fnord() { int i=42;}
9171 int main ()
9172 {
9173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9174 int status = $lt_dlunknown;
9175
9176 if (self)
9177 {
9178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9179 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9180 /* dlclose (self); */
9181 }
9182 else
9183 puts (dlerror ());
9184
9185 exit (status);
9186 }
9187 EOF
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9193 (./conftest; exit; ) >&5 2>/dev/null
9194 lt_status=$?
9195 case x$lt_status in
9196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9198 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9199 esac
9200 else :
9201 # compilation failed
9202 lt_cv_dlopen_self_static=no
9203 fi
9204 fi
9205 rm -fr conftest*
9206
9207
9208 fi
9209 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9210 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9211 fi
9212
9213 CPPFLAGS="$save_CPPFLAGS"
9214 LDFLAGS="$save_LDFLAGS"
9215 LIBS="$save_LIBS"
9216 ;;
9217 esac
9218
9219 case $lt_cv_dlopen_self in
9220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9221 *) enable_dlopen_self=unknown ;;
9222 esac
9223
9224 case $lt_cv_dlopen_self_static in
9225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9226 *) enable_dlopen_self_static=unknown ;;
9227 esac
9228 fi
9229
9230
9231 # Report which library types will actually be built
9232 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9233 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9234 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9235 echo "${ECHO_T}$can_build_shared" >&6
9236
9237 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9238 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9239 test "$can_build_shared" = "no" && enable_shared=no
9240
9241 # On AIX, shared libraries and static libraries use the same namespace, and
9242 # are all built from PIC.
9243 case $host_os in
9244 aix3*)
9245 test "$enable_shared" = yes && enable_static=no
9246 if test -n "$RANLIB"; then
9247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9248 postinstall_cmds='$RANLIB $lib'
9249 fi
9250 ;;
9251
9252 aix4* | aix5*)
9253 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9254 test "$enable_shared" = yes && enable_static=no
9255 fi
9256 ;;
9257 esac
9258 echo "$as_me:$LINENO: result: $enable_shared" >&5
9259 echo "${ECHO_T}$enable_shared" >&6
9260
9261 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9262 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9263 # Make sure either enable_shared or enable_static is yes.
9264 test "$enable_shared" = yes || enable_static=yes
9265 echo "$as_me:$LINENO: result: $enable_static" >&5
9266 echo "${ECHO_T}$enable_static" >&6
9267
9268 # The else clause should only fire when bootstrapping the
9269 # libtool distribution, otherwise you forgot to ship ltmain.sh
9270 # with your package, and you will get complaints that there are
9271 # no rules to generate ltmain.sh.
9272 if test -f "$ltmain"; then
9273 # See if we are running on zsh, and set the options which allow our commands through
9274 # without removal of \ escapes.
9275 if test -n "${ZSH_VERSION+set}" ; then
9276 setopt NO_GLOB_SUBST
9277 fi
9278 # Now quote all the things that may contain metacharacters while being
9279 # careful not to overquote the AC_SUBSTed values. We take copies of the
9280 # variables and quote the copies for generation of the libtool script.
9281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9282 SED SHELL STRIP \
9283 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9284 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9285 deplibs_check_method reload_flag reload_cmds need_locks \
9286 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9287 lt_cv_sys_global_symbol_to_c_name_address \
9288 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9289 old_postinstall_cmds old_postuninstall_cmds \
9290 compiler \
9291 CC \
9292 LD \
9293 lt_prog_compiler_wl \
9294 lt_prog_compiler_pic \
9295 lt_prog_compiler_static \
9296 lt_prog_compiler_no_builtin_flag \
9297 export_dynamic_flag_spec \
9298 thread_safe_flag_spec \
9299 whole_archive_flag_spec \
9300 enable_shared_with_static_runtimes \
9301 old_archive_cmds \
9302 old_archive_from_new_cmds \
9303 predep_objects \
9304 postdep_objects \
9305 predeps \
9306 postdeps \
9307 compiler_lib_search_path \
9308 archive_cmds \
9309 archive_expsym_cmds \
9310 postinstall_cmds \
9311 postuninstall_cmds \
9312 old_archive_from_expsyms_cmds \
9313 allow_undefined_flag \
9314 no_undefined_flag \
9315 export_symbols_cmds \
9316 hardcode_libdir_flag_spec \
9317 hardcode_libdir_flag_spec_ld \
9318 hardcode_libdir_separator \
9319 hardcode_automatic \
9320 module_cmds \
9321 module_expsym_cmds \
9322 lt_cv_prog_compiler_c_o \
9323 exclude_expsyms \
9324 include_expsyms; do
9325
9326 case $var in
9327 old_archive_cmds | \
9328 old_archive_from_new_cmds | \
9329 archive_cmds | \
9330 archive_expsym_cmds | \
9331 module_cmds | \
9332 module_expsym_cmds | \
9333 old_archive_from_expsyms_cmds | \
9334 export_symbols_cmds | \
9335 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9336 postinstall_cmds | postuninstall_cmds | \
9337 old_postinstall_cmds | old_postuninstall_cmds | \
9338 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9339 # Double-quote double-evaled strings.
9340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9341 ;;
9342 *)
9343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9344 ;;
9345 esac
9346 done
9347
9348 case $lt_echo in
9349 *'\$0 --fallback-echo"')
9350 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9351 ;;
9352 esac
9353
9354 cfgfile="${ofile}T"
9355 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9356 $rm -f "$cfgfile"
9357 { echo "$as_me:$LINENO: creating $ofile" >&5
9358 echo "$as_me: creating $ofile" >&6;}
9359
9360 cat <<__EOF__ >> "$cfgfile"
9361 #! $SHELL
9362
9363 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9364 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9365 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9366 #
9367 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9368 # Free Software Foundation, Inc.
9369 #
9370 # This file is part of GNU Libtool:
9371 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9372 #
9373 # This program is free software; you can redistribute it and/or modify
9374 # it under the terms of the GNU General Public License as published by
9375 # the Free Software Foundation; either version 2 of the License, or
9376 # (at your option) any later version.
9377 #
9378 # This program is distributed in the hope that it will be useful, but
9379 # WITHOUT ANY WARRANTY; without even the implied warranty of
9380 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9381 # General Public License for more details.
9382 #
9383 # You should have received a copy of the GNU General Public License
9384 # along with this program; if not, write to the Free Software
9385 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9386 #
9387 # As a special exception to the GNU General Public License, if you
9388 # distribute this file as part of a program that contains a
9389 # configuration script generated by Autoconf, you may include it under
9390 # the same distribution terms that you use for the rest of that program.
9391
9392 # A sed program that does not truncate output.
9393 SED=$lt_SED
9394
9395 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9396 Xsed="$SED -e 1s/^X//"
9397
9398 # The HP-UX ksh and POSIX shell print the target directory to stdout
9399 # if CDPATH is set.
9400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9401
9402 # The names of the tagged configurations supported by this script.
9403 available_tags=
9404
9405 # ### BEGIN LIBTOOL CONFIG
9406
9407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9408
9409 # Shell to use when invoking shell scripts.
9410 SHELL=$lt_SHELL
9411
9412 # Whether or not to build shared libraries.
9413 build_libtool_libs=$enable_shared
9414
9415 # Whether or not to build static libraries.
9416 build_old_libs=$enable_static
9417
9418 # Whether or not to add -lc for building shared libraries.
9419 build_libtool_need_lc=$archive_cmds_need_lc
9420
9421 # Whether or not to disallow shared libs when runtime libs are static
9422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9423
9424 # Whether or not to optimize for fast installation.
9425 fast_install=$enable_fast_install
9426
9427 # The host system.
9428 host_alias=$host_alias
9429 host=$host
9430 host_os=$host_os
9431
9432 # The build system.
9433 build_alias=$build_alias
9434 build=$build
9435 build_os=$build_os
9436
9437 # An echo program that does not interpret backslashes.
9438 echo=$lt_echo
9439
9440 # The archiver.
9441 AR=$lt_AR
9442 AR_FLAGS=$lt_AR_FLAGS
9443
9444 # A C compiler.
9445 LTCC=$lt_LTCC
9446
9447 # LTCC compiler flags.
9448 LTCFLAGS=$lt_LTCFLAGS
9449
9450 # A language-specific compiler.
9451 CC=$lt_compiler
9452
9453 # Is the compiler the GNU C compiler?
9454 with_gcc=$GCC
9455
9456 # An ERE matcher.
9457 EGREP=$lt_EGREP
9458
9459 # The linker used to build libraries.
9460 LD=$lt_LD
9461
9462 # Whether we need hard or soft links.
9463 LN_S=$lt_LN_S
9464
9465 # A BSD-compatible nm program.
9466 NM=$lt_NM
9467
9468 # A symbol stripping program
9469 STRIP=$lt_STRIP
9470
9471 # Used to examine libraries when file_magic_cmd begins "file"
9472 MAGIC_CMD=$MAGIC_CMD
9473
9474 # Used on cygwin: DLL creation program.
9475 DLLTOOL="$DLLTOOL"
9476
9477 # Used on cygwin: object dumper.
9478 OBJDUMP="$OBJDUMP"
9479
9480 # Used on cygwin: assembler.
9481 AS="$AS"
9482
9483 # The name of the directory that contains temporary libtool files.
9484 objdir=$objdir
9485
9486 # How to create reloadable object files.
9487 reload_flag=$lt_reload_flag
9488 reload_cmds=$lt_reload_cmds
9489
9490 # How to pass a linker flag through the compiler.
9491 wl=$lt_lt_prog_compiler_wl
9492
9493 # Object file suffix (normally "o").
9494 objext="$ac_objext"
9495
9496 # Old archive suffix (normally "a").
9497 libext="$libext"
9498
9499 # Shared library suffix (normally ".so").
9500 shrext_cmds='$shrext_cmds'
9501
9502 # Executable file suffix (normally "").
9503 exeext="$exeext"
9504
9505 # Additional compiler flags for building library objects.
9506 pic_flag=$lt_lt_prog_compiler_pic
9507 pic_mode=$pic_mode
9508
9509 # What is the maximum length of a command?
9510 max_cmd_len=$lt_cv_sys_max_cmd_len
9511
9512 # Does compiler simultaneously support -c and -o options?
9513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9514
9515 # Must we lock files when doing compilation?
9516 need_locks=$lt_need_locks
9517
9518 # Do we need the lib prefix for modules?
9519 need_lib_prefix=$need_lib_prefix
9520
9521 # Do we need a version for libraries?
9522 need_version=$need_version
9523
9524 # Whether dlopen is supported.
9525 dlopen_support=$enable_dlopen
9526
9527 # Whether dlopen of programs is supported.
9528 dlopen_self=$enable_dlopen_self
9529
9530 # Whether dlopen of statically linked programs is supported.
9531 dlopen_self_static=$enable_dlopen_self_static
9532
9533 # Compiler flag to prevent dynamic linking.
9534 link_static_flag=$lt_lt_prog_compiler_static
9535
9536 # Compiler flag to turn off builtin functions.
9537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9538
9539 # Compiler flag to allow reflexive dlopens.
9540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9541
9542 # Compiler flag to generate shared objects directly from archives.
9543 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9544
9545 # Compiler flag to generate thread-safe objects.
9546 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9547
9548 # Library versioning type.
9549 version_type=$version_type
9550
9551 # Format of library name prefix.
9552 libname_spec=$lt_libname_spec
9553
9554 # List of archive names. First name is the real one, the rest are links.
9555 # The last name is the one that the linker finds with -lNAME.
9556 library_names_spec=$lt_library_names_spec
9557
9558 # The coded name of the library, if different from the real name.
9559 soname_spec=$lt_soname_spec
9560
9561 # Commands used to build and install an old-style archive.
9562 RANLIB=$lt_RANLIB
9563 old_archive_cmds=$lt_old_archive_cmds
9564 old_postinstall_cmds=$lt_old_postinstall_cmds
9565 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9566
9567 # Create an old-style archive from a shared archive.
9568 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9569
9570 # Create a temporary old-style archive to link instead of a shared archive.
9571 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9572
9573 # Commands used to build and install a shared archive.
9574 archive_cmds=$lt_archive_cmds
9575 archive_expsym_cmds=$lt_archive_expsym_cmds
9576 postinstall_cmds=$lt_postinstall_cmds
9577 postuninstall_cmds=$lt_postuninstall_cmds
9578
9579 # Commands used to build a loadable module (assumed same as above if empty)
9580 module_cmds=$lt_module_cmds
9581 module_expsym_cmds=$lt_module_expsym_cmds
9582
9583 # Commands to strip libraries.
9584 old_striplib=$lt_old_striplib
9585 striplib=$lt_striplib
9586
9587 # Dependencies to place before the objects being linked to create a
9588 # shared library.
9589 predep_objects=$lt_predep_objects
9590
9591 # Dependencies to place after the objects being linked to create a
9592 # shared library.
9593 postdep_objects=$lt_postdep_objects
9594
9595 # Dependencies to place before the objects being linked to create a
9596 # shared library.
9597 predeps=$lt_predeps
9598
9599 # Dependencies to place after the objects being linked to create a
9600 # shared library.
9601 postdeps=$lt_postdeps
9602
9603 # The library search path used internally by the compiler when linking
9604 # a shared library.
9605 compiler_lib_search_path=$lt_compiler_lib_search_path
9606
9607 # Method to check whether dependent libraries are shared objects.
9608 deplibs_check_method=$lt_deplibs_check_method
9609
9610 # Command to use when deplibs_check_method == file_magic.
9611 file_magic_cmd=$lt_file_magic_cmd
9612
9613 # Flag that allows shared libraries with undefined symbols to be built.
9614 allow_undefined_flag=$lt_allow_undefined_flag
9615
9616 # Flag that forces no undefined symbols.
9617 no_undefined_flag=$lt_no_undefined_flag
9618
9619 # Commands used to finish a libtool library installation in a directory.
9620 finish_cmds=$lt_finish_cmds
9621
9622 # Same as above, but a single script fragment to be evaled but not shown.
9623 finish_eval=$lt_finish_eval
9624
9625 # Take the output of nm and produce a listing of raw symbols and C names.
9626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9627
9628 # Transform the output of nm in a proper C declaration
9629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9630
9631 # Transform the output of nm in a C name address pair
9632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9633
9634 # This is the shared library runtime path variable.
9635 runpath_var=$runpath_var
9636
9637 # This is the shared library path variable.
9638 shlibpath_var=$shlibpath_var
9639
9640 # Is shlibpath searched before the hard-coded library search path?
9641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9642
9643 # How to hardcode a shared library path into an executable.
9644 hardcode_action=$hardcode_action
9645
9646 # Whether we should hardcode library paths into libraries.
9647 hardcode_into_libs=$hardcode_into_libs
9648
9649 # Flag to hardcode \$libdir into a binary during linking.
9650 # This must work even if \$libdir does not exist.
9651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9652
9653 # If ld is used when linking, flag to hardcode \$libdir into
9654 # a binary during linking. This must work even if \$libdir does
9655 # not exist.
9656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9657
9658 # Whether we need a single -rpath flag with a separated argument.
9659 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9660
9661 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9662 # resulting binary.
9663 hardcode_direct=$hardcode_direct
9664
9665 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9666 # resulting binary.
9667 hardcode_minus_L=$hardcode_minus_L
9668
9669 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9670 # the resulting binary.
9671 hardcode_shlibpath_var=$hardcode_shlibpath_var
9672
9673 # Set to yes if building a shared library automatically hardcodes DIR into the library
9674 # and all subsequent libraries and executables linked against it.
9675 hardcode_automatic=$hardcode_automatic
9676
9677 # Variables whose values should be saved in libtool wrapper scripts and
9678 # restored at relink time.
9679 variables_saved_for_relink="$variables_saved_for_relink"
9680
9681 # Whether libtool must link a program against all its dependency libraries.
9682 link_all_deplibs=$link_all_deplibs
9683
9684 # Compile-time system search path for libraries
9685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9686
9687 # Run-time system search path for libraries
9688 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9689
9690 # Fix the shell variable \$srcfile for the compiler.
9691 fix_srcfile_path="$fix_srcfile_path"
9692
9693 # Set to yes if exported symbols are required.
9694 always_export_symbols=$always_export_symbols
9695
9696 # The commands to list exported symbols.
9697 export_symbols_cmds=$lt_export_symbols_cmds
9698
9699 # The commands to extract the exported symbol list from a shared archive.
9700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9701
9702 # Symbols that should not be listed in the preloaded symbols.
9703 exclude_expsyms=$lt_exclude_expsyms
9704
9705 # Symbols that must always be exported.
9706 include_expsyms=$lt_include_expsyms
9707
9708 # ### END LIBTOOL CONFIG
9709
9710 __EOF__
9711
9712
9713 case $host_os in
9714 aix3*)
9715 cat <<\EOF >> "$cfgfile"
9716
9717 # AIX sometimes has problems with the GCC collect2 program. For some
9718 # reason, if we set the COLLECT_NAMES environment variable, the problems
9719 # vanish in a puff of smoke.
9720 if test "X${COLLECT_NAMES+set}" != Xset; then
9721 COLLECT_NAMES=
9722 export COLLECT_NAMES
9723 fi
9724 EOF
9725 ;;
9726 esac
9727
9728 # We use sed instead of cat because bash on DJGPP gets confused if
9729 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9730 # text mode, it properly converts lines to CR/LF. This bash problem
9731 # is reportedly fixed, but why not run on old versions too?
9732 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9733
9734 mv -f "$cfgfile" "$ofile" || \
9735 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9736 chmod +x "$ofile"
9737
9738 else
9739 # If there is no Makefile yet, we rely on a make rule to execute
9740 # `config.status --recheck' to rerun these tests and create the
9741 # libtool script then.
9742 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9743 if test -f "$ltmain_in"; then
9744 test -f Makefile && make "$ltmain"
9745 fi
9746 fi
9747
9748
9749 ac_ext=cc
9750 ac_cpp='$CXXCPP $CPPFLAGS'
9751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9754
9755 CC="$lt_save_CC"
9756
9757
9758 # Check whether --with-tags or --without-tags was given.
9759 if test "${with_tags+set}" = set; then
9760 withval="$with_tags"
9761 tagnames="$withval"
9762 fi;
9763
9764 if test -f "$ltmain" && test -n "$tagnames"; then
9765 if test ! -f "${ofile}"; then
9766 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9767 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9768 fi
9769
9770 if test -z "$LTCC"; then
9771 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9772 if test -z "$LTCC"; then
9773 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9774 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9775 else
9776 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9777 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9778 fi
9779 fi
9780 if test -z "$LTCFLAGS"; then
9781 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9782 fi
9783
9784 # Extract list of available tagged configurations in $ofile.
9785 # Note that this assumes the entire list is on one line.
9786 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9787
9788 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9789 for tagname in $tagnames; do
9790 IFS="$lt_save_ifs"
9791 # Check whether tagname contains only valid characters
9792 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9793 "") ;;
9794 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9795 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9796 { (exit 1); exit 1; }; }
9797 ;;
9798 esac
9799
9800 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9801 then
9802 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9803 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9804 { (exit 1); exit 1; }; }
9805 fi
9806
9807 # Update the list of available tags.
9808 if test -n "$tagname"; then
9809 echo appending configuration tag \"$tagname\" to $ofile
9810
9811 case $tagname in
9812 CXX)
9813 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9814 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9815 (test "X$CXX" != "Xg++"))) ; then
9816 ac_ext=cc
9817 ac_cpp='$CXXCPP $CPPFLAGS'
9818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9821
9822
9823
9824
9825 archive_cmds_need_lc_CXX=no
9826 allow_undefined_flag_CXX=
9827 always_export_symbols_CXX=no
9828 archive_expsym_cmds_CXX=
9829 export_dynamic_flag_spec_CXX=
9830 hardcode_direct_CXX=no
9831 hardcode_libdir_flag_spec_CXX=
9832 hardcode_libdir_flag_spec_ld_CXX=
9833 hardcode_libdir_separator_CXX=
9834 hardcode_minus_L_CXX=no
9835 hardcode_shlibpath_var_CXX=unsupported
9836 hardcode_automatic_CXX=no
9837 module_cmds_CXX=
9838 module_expsym_cmds_CXX=
9839 link_all_deplibs_CXX=unknown
9840 old_archive_cmds_CXX=$old_archive_cmds
9841 no_undefined_flag_CXX=
9842 whole_archive_flag_spec_CXX=
9843 enable_shared_with_static_runtimes_CXX=no
9844
9845 # Dependencies to place before and after the object being linked:
9846 predep_objects_CXX=
9847 postdep_objects_CXX=
9848 predeps_CXX=
9849 postdeps_CXX=
9850 compiler_lib_search_path_CXX=
9851
9852 # Source file extension for C++ test sources.
9853 ac_ext=cpp
9854
9855 # Object file extension for compiled C++ test sources.
9856 objext=o
9857 objext_CXX=$objext
9858
9859 # Code to be used in simple compile tests
9860 lt_simple_compile_test_code="int some_variable = 0;\n"
9861
9862 # Code to be used in simple link tests
9863 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9864
9865 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9866
9867 # If no C compiler was specified, use CC.
9868 LTCC=${LTCC-"$CC"}
9869
9870 # If no C compiler flags were specified, use CFLAGS.
9871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9872
9873 # Allow CC to be a program name with arguments.
9874 compiler=$CC
9875
9876
9877 # save warnings/boilerplate of simple test code
9878 ac_outfile=conftest.$ac_objext
9879 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9881 _lt_compiler_boilerplate=`cat conftest.err`
9882 $rm conftest*
9883
9884 ac_outfile=conftest.$ac_objext
9885 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9887 _lt_linker_boilerplate=`cat conftest.err`
9888 $rm conftest*
9889
9890
9891 # Allow CC to be a program name with arguments.
9892 lt_save_CC=$CC
9893 lt_save_LD=$LD
9894 lt_save_GCC=$GCC
9895 GCC=$GXX
9896 lt_save_with_gnu_ld=$with_gnu_ld
9897 lt_save_path_LD=$lt_cv_path_LD
9898 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9899 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9900 else
9901 $as_unset lt_cv_prog_gnu_ld
9902 fi
9903 if test -n "${lt_cv_path_LDCXX+set}"; then
9904 lt_cv_path_LD=$lt_cv_path_LDCXX
9905 else
9906 $as_unset lt_cv_path_LD
9907 fi
9908 test -z "${LDCXX+set}" || LD=$LDCXX
9909 CC=${CXX-"c++"}
9910 compiler=$CC
9911 compiler_CXX=$CC
9912 for cc_temp in $compiler""; do
9913 case $cc_temp in
9914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9916 \-*) ;;
9917 *) break;;
9918 esac
9919 done
9920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9921
9922
9923 # We don't want -fno-exception wen compiling C++ code, so set the
9924 # no_builtin_flag separately
9925 if test "$GXX" = yes; then
9926 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9927 else
9928 lt_prog_compiler_no_builtin_flag_CXX=
9929 fi
9930
9931 if test "$GXX" = yes; then
9932 # Set up default GNU C++ configuration
9933
9934
9935 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9936 if test "${with_gnu_ld+set}" = set; then
9937 withval="$with_gnu_ld"
9938 test "$withval" = no || with_gnu_ld=yes
9939 else
9940 with_gnu_ld=no
9941 fi;
9942 ac_prog=ld
9943 if test "$GCC" = yes; then
9944 # Check if gcc -print-prog-name=ld gives a path.
9945 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9946 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9947 case $host in
9948 *-*-mingw*)
9949 # gcc leaves a trailing carriage return which upsets mingw
9950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9951 *)
9952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9953 esac
9954 case $ac_prog in
9955 # Accept absolute paths.
9956 [\\/]* | ?:[\\/]*)
9957 re_direlt='/[^/][^/]*/\.\./'
9958 # Canonicalize the pathname of ld
9959 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9961 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9962 done
9963 test -z "$LD" && LD="$ac_prog"
9964 ;;
9965 "")
9966 # If it fails, then pretend we aren't using GCC.
9967 ac_prog=ld
9968 ;;
9969 *)
9970 # If it is relative, then search for the first ld in PATH.
9971 with_gnu_ld=unknown
9972 ;;
9973 esac
9974 elif test "$with_gnu_ld" = yes; then
9975 echo "$as_me:$LINENO: checking for GNU ld" >&5
9976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9977 else
9978 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9980 fi
9981 if test "${lt_cv_path_LD+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 if test -z "$LD"; then
9985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9986 for ac_dir in $PATH; do
9987 IFS="$lt_save_ifs"
9988 test -z "$ac_dir" && ac_dir=.
9989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9990 lt_cv_path_LD="$ac_dir/$ac_prog"
9991 # Check to see if the program is GNU ld. I'd rather use --version,
9992 # but apparently some variants of GNU ld only accept -v.
9993 # Break only if it was the GNU/non-GNU ld that we prefer.
9994 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9995 *GNU* | *'with BFD'*)
9996 test "$with_gnu_ld" != no && break
9997 ;;
9998 *)
9999 test "$with_gnu_ld" != yes && break
10000 ;;
10001 esac
10002 fi
10003 done
10004 IFS="$lt_save_ifs"
10005 else
10006 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10007 fi
10008 fi
10009
10010 LD="$lt_cv_path_LD"
10011 if test -n "$LD"; then
10012 echo "$as_me:$LINENO: result: $LD" >&5
10013 echo "${ECHO_T}$LD" >&6
10014 else
10015 echo "$as_me:$LINENO: result: no" >&5
10016 echo "${ECHO_T}no" >&6
10017 fi
10018 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10019 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10020 { (exit 1); exit 1; }; }
10021 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10022 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10023 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10027 case `$LD -v 2>&1 </dev/null` in
10028 *GNU* | *'with BFD'*)
10029 lt_cv_prog_gnu_ld=yes
10030 ;;
10031 *)
10032 lt_cv_prog_gnu_ld=no
10033 ;;
10034 esac
10035 fi
10036 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10037 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10038 with_gnu_ld=$lt_cv_prog_gnu_ld
10039
10040
10041
10042 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10043 # archiving commands below assume that GNU ld is being used.
10044 if test "$with_gnu_ld" = yes; then
10045 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10046 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'
10047
10048 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10049 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10050
10051 # If archive_cmds runs LD, not CC, wlarc should be empty
10052 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10053 # investigate it a little bit more. (MM)
10054 wlarc='${wl}'
10055
10056 # ancient GNU ld didn't support --whole-archive et. al.
10057 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10058 grep 'no-whole-archive' > /dev/null; then
10059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10060 else
10061 whole_archive_flag_spec_CXX=
10062 fi
10063 else
10064 with_gnu_ld=no
10065 wlarc=
10066
10067 # A generic and very simple default shared library creation
10068 # command for GNU C++ for the case where it uses the native
10069 # linker, instead of GNU ld. If possible, this setting should
10070 # overridden to take advantage of the native linker features on
10071 # the platform it is being used on.
10072 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10073 fi
10074
10075 # Commands to make compiler produce verbose output that lists
10076 # what "hidden" libraries, object files and flags are used when
10077 # linking a shared library.
10078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10079
10080 else
10081 GXX=no
10082 with_gnu_ld=no
10083 wlarc=
10084 fi
10085
10086 # PORTME: fill in a description of your system's C++ link characteristics
10087 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10088 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10089 ld_shlibs_CXX=yes
10090 case $host_os in
10091 aix3*)
10092 # FIXME: insert proper C++ library support
10093 ld_shlibs_CXX=no
10094 ;;
10095 aix4* | aix5*)
10096 if test "$host_cpu" = ia64; then
10097 # On IA64, the linker does run time linking by default, so we don't
10098 # have to do anything special.
10099 aix_use_runtimelinking=no
10100 exp_sym_flag='-Bexport'
10101 no_entry_flag=""
10102 else
10103 aix_use_runtimelinking=no
10104
10105 # Test if we are trying to use run time linking or normal
10106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10107 # need to do runtime linking.
10108 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10109 for ld_flag in $LDFLAGS; do
10110 case $ld_flag in
10111 *-brtl*)
10112 aix_use_runtimelinking=yes
10113 break
10114 ;;
10115 esac
10116 done
10117 ;;
10118 esac
10119
10120 exp_sym_flag='-bexport'
10121 no_entry_flag='-bnoentry'
10122 fi
10123
10124 # When large executables or shared objects are built, AIX ld can
10125 # have problems creating the table of contents. If linking a library
10126 # or program results in "error TOC overflow" add -mminimal-toc to
10127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10129
10130 archive_cmds_CXX=''
10131 hardcode_direct_CXX=yes
10132 hardcode_libdir_separator_CXX=':'
10133 link_all_deplibs_CXX=yes
10134
10135 if test "$GXX" = yes; then
10136 case $host_os in aix4.[012]|aix4.[012].*)
10137 # We only want to do this on AIX 4.2 and lower, the check
10138 # below for broken collect2 doesn't work under 4.3+
10139 collect2name=`${CC} -print-prog-name=collect2`
10140 if test -f "$collect2name" && \
10141 strings "$collect2name" | grep resolve_lib_name >/dev/null
10142 then
10143 # We have reworked collect2
10144 hardcode_direct_CXX=yes
10145 else
10146 # We have old collect2
10147 hardcode_direct_CXX=unsupported
10148 # It fails to find uninstalled libraries when the uninstalled
10149 # path is not listed in the libpath. Setting hardcode_minus_L
10150 # to unsupported forces relinking
10151 hardcode_minus_L_CXX=yes
10152 hardcode_libdir_flag_spec_CXX='-L$libdir'
10153 hardcode_libdir_separator_CXX=
10154 fi
10155 ;;
10156 esac
10157 shared_flag='-shared'
10158 if test "$aix_use_runtimelinking" = yes; then
10159 shared_flag="$shared_flag "'${wl}-G'
10160 fi
10161 else
10162 # not using gcc
10163 if test "$host_cpu" = ia64; then
10164 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10165 # chokes on -Wl,-G. The following line is correct:
10166 shared_flag='-G'
10167 else
10168 if test "$aix_use_runtimelinking" = yes; then
10169 shared_flag='${wl}-G'
10170 else
10171 shared_flag='${wl}-bM:SRE'
10172 fi
10173 fi
10174 fi
10175
10176 # It seems that -bexpall does not export symbols beginning with
10177 # underscore (_), so it is better to generate a list of symbols to export.
10178 always_export_symbols_CXX=yes
10179 if test "$aix_use_runtimelinking" = yes; then
10180 # Warning - without using the other runtime loading flags (-brtl),
10181 # -berok will link without error, but may produce a broken library.
10182 allow_undefined_flag_CXX='-berok'
10183 # Determine the default libpath from the value encoded in an empty executable.
10184 cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190
10191 int
10192 main ()
10193 {
10194
10195 ;
10196 return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_cxx_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221
10222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10223 }'`
10224 # Check for a 64-bit object if we didn't find anything.
10225 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; }
10226 }'`; fi
10227 else
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 fi
10232 rm -f conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10235
10236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10237
10238 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10239 else
10240 if test "$host_cpu" = ia64; then
10241 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10242 allow_undefined_flag_CXX="-z nodefs"
10243 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10244 else
10245 # Determine the default libpath from the value encoded in an empty executable.
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252
10253 int
10254 main ()
10255 {
10256
10257 ;
10258 return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_cxx_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283
10284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10285 }'`
10286 # Check for a 64-bit object if we didn't find anything.
10287 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; }
10288 }'`; fi
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 fi
10294 rm -f conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
10296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10297
10298 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10299 # Warning - without using the other run time loading flags,
10300 # -berok will link without error, but may produce a broken library.
10301 no_undefined_flag_CXX=' ${wl}-bernotok'
10302 allow_undefined_flag_CXX=' ${wl}-berok'
10303 # Exported symbols can be pulled into shared objects from archives
10304 whole_archive_flag_spec_CXX='$convenience'
10305 archive_cmds_need_lc_CXX=yes
10306 # This is similar to how AIX traditionally builds its shared libraries.
10307 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10308 fi
10309 fi
10310 ;;
10311
10312 beos*)
10313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10314 allow_undefined_flag_CXX=unsupported
10315 # Joseph Beckenbach <[email protected]> says some releases of gcc
10316 # support --undefined. This deserves some investigation. FIXME
10317 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10318 else
10319 ld_shlibs_CXX=no
10320 fi
10321 ;;
10322
10323 chorus*)
10324 case $cc_basename in
10325 *)
10326 # FIXME: insert proper C++ library support
10327 ld_shlibs_CXX=no
10328 ;;
10329 esac
10330 ;;
10331
10332 cygwin* | mingw* | pw32*)
10333 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10334 # as there is no search path for DLLs.
10335 hardcode_libdir_flag_spec_CXX='-L$libdir'
10336 allow_undefined_flag_CXX=unsupported
10337 always_export_symbols_CXX=no
10338 enable_shared_with_static_runtimes_CXX=yes
10339
10340 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10341 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10342 # If the export-symbols file already is a .def file (1st line
10343 # is EXPORTS), use it as is; otherwise, prepend...
10344 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10345 cp $export_symbols $output_objdir/$soname.def;
10346 else
10347 echo EXPORTS > $output_objdir/$soname.def;
10348 cat $export_symbols >> $output_objdir/$soname.def;
10349 fi~
10350 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10351 else
10352 ld_shlibs_CXX=no
10353 fi
10354 ;;
10355 darwin* | rhapsody*)
10356 case $host_os in
10357 rhapsody* | darwin1.[012])
10358 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10359 ;;
10360 *) # Darwin 1.3 on
10361 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10362 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10363 else
10364 case ${MACOSX_DEPLOYMENT_TARGET} in
10365 10.[012])
10366 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10367 ;;
10368 10.*)
10369 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10370 ;;
10371 esac
10372 fi
10373 ;;
10374 esac
10375 archive_cmds_need_lc_CXX=no
10376 hardcode_direct_CXX=no
10377 hardcode_automatic_CXX=yes
10378 hardcode_shlibpath_var_CXX=unsupported
10379 whole_archive_flag_spec_CXX=''
10380 link_all_deplibs_CXX=yes
10381
10382 if test "$GXX" = yes ; then
10383 lt_int_apple_cc_single_mod=no
10384 output_verbose_link_cmd='echo'
10385 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10386 lt_int_apple_cc_single_mod=yes
10387 fi
10388 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10389 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10390 else
10391 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10392 fi
10393 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10394 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10395 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10396 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}'
10397 else
10398 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10399 fi
10400 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}'
10401 else
10402 case $cc_basename in
10403 xlc*)
10404 output_verbose_link_cmd='echo'
10405 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10406 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10408 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10409 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}'
10410 ;;
10411 *)
10412 ld_shlibs_CXX=no
10413 ;;
10414 esac
10415 fi
10416 ;;
10417
10418 dgux*)
10419 case $cc_basename in
10420 ec++*)
10421 # FIXME: insert proper C++ library support
10422 ld_shlibs_CXX=no
10423 ;;
10424 ghcx*)
10425 # Green Hills C++ Compiler
10426 # FIXME: insert proper C++ library support
10427 ld_shlibs_CXX=no
10428 ;;
10429 *)
10430 # FIXME: insert proper C++ library support
10431 ld_shlibs_CXX=no
10432 ;;
10433 esac
10434 ;;
10435 freebsd[12]*)
10436 # C++ shared libraries reported to be fairly broken before switch to ELF
10437 ld_shlibs_CXX=no
10438 ;;
10439 freebsd-elf*)
10440 archive_cmds_need_lc_CXX=no
10441 ;;
10442 freebsd* | kfreebsd*-gnu | dragonfly*)
10443 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10444 # conventions
10445 ld_shlibs_CXX=yes
10446 ;;
10447 gnu*)
10448 ;;
10449 hpux9*)
10450 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10451 hardcode_libdir_separator_CXX=:
10452 export_dynamic_flag_spec_CXX='${wl}-E'
10453 hardcode_direct_CXX=yes
10454 hardcode_minus_L_CXX=yes # Not in the search PATH,
10455 # but as the default
10456 # location of the library.
10457
10458 case $cc_basename in
10459 CC*)
10460 # FIXME: insert proper C++ library support
10461 ld_shlibs_CXX=no
10462 ;;
10463 aCC*)
10464 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'
10465 # Commands to make compiler produce verbose output that lists
10466 # what "hidden" libraries, object files and flags are used when
10467 # linking a shared library.
10468 #
10469 # There doesn't appear to be a way to prevent this compiler from
10470 # explicitly linking system object files so we need to strip them
10471 # from the output so that they don't get included in the library
10472 # dependencies.
10473 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'
10474 ;;
10475 *)
10476 if test "$GXX" = yes; then
10477 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'
10478 else
10479 # FIXME: insert proper C++ library support
10480 ld_shlibs_CXX=no
10481 fi
10482 ;;
10483 esac
10484 ;;
10485 hpux10*|hpux11*)
10486 if test $with_gnu_ld = no; then
10487 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10488 hardcode_libdir_separator_CXX=:
10489
10490 case $host_cpu in
10491 hppa*64*|ia64*)
10492 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10493 ;;
10494 *)
10495 export_dynamic_flag_spec_CXX='${wl}-E'
10496 ;;
10497 esac
10498 fi
10499 case $host_cpu in
10500 hppa*64*|ia64*)
10501 hardcode_direct_CXX=no
10502 hardcode_shlibpath_var_CXX=no
10503 ;;
10504 *)
10505 hardcode_direct_CXX=yes
10506 hardcode_minus_L_CXX=yes # Not in the search PATH,
10507 # but as the default
10508 # location of the library.
10509 ;;
10510 esac
10511
10512 case $cc_basename in
10513 CC*)
10514 # FIXME: insert proper C++ library support
10515 ld_shlibs_CXX=no
10516 ;;
10517 aCC*)
10518 case $host_cpu in
10519 hppa*64*)
10520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10521 ;;
10522 ia64*)
10523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10524 ;;
10525 *)
10526 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10527 ;;
10528 esac
10529 # Commands to make compiler produce verbose output that lists
10530 # what "hidden" libraries, object files and flags are used when
10531 # linking a shared library.
10532 #
10533 # There doesn't appear to be a way to prevent this compiler from
10534 # explicitly linking system object files so we need to strip them
10535 # from the output so that they don't get included in the library
10536 # dependencies.
10537 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'
10538 ;;
10539 *)
10540 if test "$GXX" = yes; then
10541 if test $with_gnu_ld = no; then
10542 case $host_cpu in
10543 hppa*64*)
10544 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10545 ;;
10546 ia64*)
10547 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10548 ;;
10549 *)
10550 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'
10551 ;;
10552 esac
10553 fi
10554 else
10555 # FIXME: insert proper C++ library support
10556 ld_shlibs_CXX=no
10557 fi
10558 ;;
10559 esac
10560 ;;
10561 interix3*)
10562 hardcode_direct_CXX=no
10563 hardcode_shlibpath_var_CXX=no
10564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10565 export_dynamic_flag_spec_CXX='${wl}-E'
10566 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10567 # Instead, shared libraries are loaded at an image base (0x10000000 by
10568 # default) and relocated if they conflict, which is a slow very memory
10569 # consuming and fragmenting process. To avoid this, we pick a random,
10570 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10571 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10572 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10573 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10574 ;;
10575 irix5* | irix6*)
10576 case $cc_basename in
10577 CC*)
10578 # SGI C++
10579 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10580
10581 # Archives containing C++ object files must be created using
10582 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10583 # necessary to make sure instantiated templates are included
10584 # in the archive.
10585 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10586 ;;
10587 *)
10588 if test "$GXX" = yes; then
10589 if test "$with_gnu_ld" = no; then
10590 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10591 else
10592 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'
10593 fi
10594 fi
10595 link_all_deplibs_CXX=yes
10596 ;;
10597 esac
10598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10599 hardcode_libdir_separator_CXX=:
10600 ;;
10601 linux*)
10602 case $cc_basename in
10603 KCC*)
10604 # Kuck and Associates, Inc. (KAI) C++ Compiler
10605
10606 # KCC will only create a shared library if the output file
10607 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10608 # to its proper name (with version) after linking.
10609 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'
10610 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'
10611 # Commands to make compiler produce verbose output that lists
10612 # what "hidden" libraries, object files and flags are used when
10613 # linking a shared library.
10614 #
10615 # There doesn't appear to be a way to prevent this compiler from
10616 # explicitly linking system object files so we need to strip them
10617 # from the output so that they don't get included in the library
10618 # dependencies.
10619 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'
10620
10621 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10622 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10623
10624 # Archives containing C++ object files must be created using
10625 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10626 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10627 ;;
10628 icpc*)
10629 # Intel C++
10630 with_gnu_ld=yes
10631 # version 8.0 and above of icpc choke on multiply defined symbols
10632 # if we add $predep_objects and $postdep_objects, however 7.1 and
10633 # earlier do not add the objects themselves.
10634 case `$CC -V 2>&1` in
10635 *"Version 7."*)
10636 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10637 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'
10638 ;;
10639 *) # Version 8.0 or newer
10640 tmp_idyn=
10641 case $host_cpu in
10642 ia64*) tmp_idyn=' -i_dynamic';;
10643 esac
10644 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10645 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10646 ;;
10647 esac
10648 archive_cmds_need_lc_CXX=no
10649 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10651 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10652 ;;
10653 pgCC*)
10654 # Portland Group C++ compiler
10655 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10656 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10657
10658 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10660 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10661 ;;
10662 cxx*)
10663 # Compaq C++
10664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10665 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'
10666
10667 runpath_var=LD_RUN_PATH
10668 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10669 hardcode_libdir_separator_CXX=:
10670
10671 # Commands to make compiler produce verbose output that lists
10672 # what "hidden" libraries, object files and flags are used when
10673 # linking a shared library.
10674 #
10675 # There doesn't appear to be a way to prevent this compiler from
10676 # explicitly linking system object files so we need to strip them
10677 # from the output so that they don't get included in the library
10678 # dependencies.
10679 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'
10680 ;;
10681 esac
10682 ;;
10683 lynxos*)
10684 # FIXME: insert proper C++ library support
10685 ld_shlibs_CXX=no
10686 ;;
10687 m88k*)
10688 # FIXME: insert proper C++ library support
10689 ld_shlibs_CXX=no
10690 ;;
10691 mvs*)
10692 case $cc_basename in
10693 cxx*)
10694 # FIXME: insert proper C++ library support
10695 ld_shlibs_CXX=no
10696 ;;
10697 *)
10698 # FIXME: insert proper C++ library support
10699 ld_shlibs_CXX=no
10700 ;;
10701 esac
10702 ;;
10703 netbsd*)
10704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10705 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10706 wlarc=
10707 hardcode_libdir_flag_spec_CXX='-R$libdir'
10708 hardcode_direct_CXX=yes
10709 hardcode_shlibpath_var_CXX=no
10710 fi
10711 # Workaround some broken pre-1.5 toolchains
10712 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10713 ;;
10714 openbsd2*)
10715 # C++ shared libraries are fairly broken
10716 ld_shlibs_CXX=no
10717 ;;
10718 openbsd*)
10719 hardcode_direct_CXX=yes
10720 hardcode_shlibpath_var_CXX=no
10721 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10724 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10725 export_dynamic_flag_spec_CXX='${wl}-E'
10726 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10727 fi
10728 output_verbose_link_cmd='echo'
10729 ;;
10730 osf3*)
10731 case $cc_basename in
10732 KCC*)
10733 # Kuck and Associates, Inc. (KAI) C++ Compiler
10734
10735 # KCC will only create a shared library if the output file
10736 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10737 # to its proper name (with version) after linking.
10738 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'
10739
10740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10741 hardcode_libdir_separator_CXX=:
10742
10743 # Archives containing C++ object files must be created using
10744 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10745 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10746
10747 ;;
10748 RCC*)
10749 # Rational C++ 2.4.1
10750 # FIXME: insert proper C++ library support
10751 ld_shlibs_CXX=no
10752 ;;
10753 cxx*)
10754 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10755 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10756
10757 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10758 hardcode_libdir_separator_CXX=:
10759
10760 # Commands to make compiler produce verbose output that lists
10761 # what "hidden" libraries, object files and flags are used when
10762 # linking a shared library.
10763 #
10764 # There doesn't appear to be a way to prevent this compiler from
10765 # explicitly linking system object files so we need to strip them
10766 # from the output so that they don't get included in the library
10767 # dependencies.
10768 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'
10769 ;;
10770 *)
10771 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10772 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10773 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10774
10775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10776 hardcode_libdir_separator_CXX=:
10777
10778 # Commands to make compiler produce verbose output that lists
10779 # what "hidden" libraries, object files and flags are used when
10780 # linking a shared library.
10781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10782
10783 else
10784 # FIXME: insert proper C++ library support
10785 ld_shlibs_CXX=no
10786 fi
10787 ;;
10788 esac
10789 ;;
10790 osf4* | osf5*)
10791 case $cc_basename in
10792 KCC*)
10793 # Kuck and Associates, Inc. (KAI) C++ Compiler
10794
10795 # KCC will only create a shared library if the output file
10796 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10797 # to its proper name (with version) after linking.
10798 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'
10799
10800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10801 hardcode_libdir_separator_CXX=:
10802
10803 # Archives containing C++ object files must be created using
10804 # the KAI C++ compiler.
10805 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10806 ;;
10807 RCC*)
10808 # Rational C++ 2.4.1
10809 # FIXME: insert proper C++ library support
10810 ld_shlibs_CXX=no
10811 ;;
10812 cxx*)
10813 allow_undefined_flag_CXX=' -expect_unresolved \*'
10814 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10815 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10816 echo "-hidden">> $lib.exp~
10817 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10818 $rm $lib.exp'
10819
10820 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10821 hardcode_libdir_separator_CXX=:
10822
10823 # Commands to make compiler produce verbose output that lists
10824 # what "hidden" libraries, object files and flags are used when
10825 # linking a shared library.
10826 #
10827 # There doesn't appear to be a way to prevent this compiler from
10828 # explicitly linking system object files so we need to strip them
10829 # from the output so that they don't get included in the library
10830 # dependencies.
10831 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'
10832 ;;
10833 *)
10834 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10835 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10836 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10837
10838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10839 hardcode_libdir_separator_CXX=:
10840
10841 # Commands to make compiler produce verbose output that lists
10842 # what "hidden" libraries, object files and flags are used when
10843 # linking a shared library.
10844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10845
10846 else
10847 # FIXME: insert proper C++ library support
10848 ld_shlibs_CXX=no
10849 fi
10850 ;;
10851 esac
10852 ;;
10853 psos*)
10854 # FIXME: insert proper C++ library support
10855 ld_shlibs_CXX=no
10856 ;;
10857 sunos4*)
10858 case $cc_basename in
10859 CC*)
10860 # Sun C++ 4.x
10861 # FIXME: insert proper C++ library support
10862 ld_shlibs_CXX=no
10863 ;;
10864 lcc*)
10865 # Lucid
10866 # FIXME: insert proper C++ library support
10867 ld_shlibs_CXX=no
10868 ;;
10869 *)
10870 # FIXME: insert proper C++ library support
10871 ld_shlibs_CXX=no
10872 ;;
10873 esac
10874 ;;
10875 solaris*)
10876 case $cc_basename in
10877 CC*)
10878 # Sun C++ 4.2, 5.x and Centerline C++
10879 archive_cmds_need_lc_CXX=yes
10880 no_undefined_flag_CXX=' -zdefs'
10881 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10882 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10883 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10884
10885 hardcode_libdir_flag_spec_CXX='-R$libdir'
10886 hardcode_shlibpath_var_CXX=no
10887 case $host_os in
10888 solaris2.[0-5] | solaris2.[0-5].*) ;;
10889 *)
10890 # The C++ compiler is used as linker so we must use $wl
10891 # flag to pass the commands to the underlying system
10892 # linker. We must also pass each convience library through
10893 # to the system linker between allextract/defaultextract.
10894 # The C++ compiler will combine linker options so we
10895 # cannot just pass the convience library names through
10896 # without $wl.
10897 # Supported since Solaris 2.6 (maybe 2.5.1?)
10898 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10899 ;;
10900 esac
10901 link_all_deplibs_CXX=yes
10902
10903 output_verbose_link_cmd='echo'
10904
10905 # Archives containing C++ object files must be created using
10906 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10907 # necessary to make sure instantiated templates are included
10908 # in the archive.
10909 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10910 ;;
10911 gcx*)
10912 # Green Hills C++ Compiler
10913 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10914
10915 # The C++ compiler must be used to create the archive.
10916 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10917 ;;
10918 *)
10919 # GNU C++ compiler with Solaris linker
10920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10921 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10922 if $CC --version | grep -v '^2\.7' > /dev/null; then
10923 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10924 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10925 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10926
10927 # Commands to make compiler produce verbose output that lists
10928 # what "hidden" libraries, object files and flags are used when
10929 # linking a shared library.
10930 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10931 else
10932 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10933 # platform.
10934 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10935 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10936 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10937
10938 # Commands to make compiler produce verbose output that lists
10939 # what "hidden" libraries, object files and flags are used when
10940 # linking a shared library.
10941 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10942 fi
10943
10944 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10945 fi
10946 ;;
10947 esac
10948 ;;
10949 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10950 no_undefined_flag_CXX='${wl}-z,text'
10951 archive_cmds_need_lc_CXX=no
10952 hardcode_shlibpath_var_CXX=no
10953 runpath_var='LD_RUN_PATH'
10954
10955 case $cc_basename in
10956 CC*)
10957 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 ;;
10960 *)
10961 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963 ;;
10964 esac
10965 ;;
10966 sysv5* | sco3.2v5* | sco5v6*)
10967 # Note: We can NOT use -z defs as we might desire, because we do not
10968 # link with -lc, and that would cause any symbols used from libc to
10969 # always be unresolved, which means just about no library would
10970 # ever link correctly. If we're not using GNU ld we use -z text
10971 # though, which does catch some bad symbols but isn't as heavy-handed
10972 # as -z defs.
10973 # For security reasons, it is highly recommended that you always
10974 # use absolute paths for naming shared libraries, and exclude the
10975 # DT_RUNPATH tag from executables and libraries. But doing so
10976 # requires that you compile everything twice, which is a pain.
10977 # So that behaviour is only enabled if SCOABSPATH is set to a
10978 # non-empty value in the environment. Most likely only useful for
10979 # creating official distributions of packages.
10980 # This is a hack until libtool officially supports absolute path
10981 # names for shared libraries.
10982 no_undefined_flag_CXX='${wl}-z,text'
10983 allow_undefined_flag_CXX='${wl}-z,nodefs'
10984 archive_cmds_need_lc_CXX=no
10985 hardcode_shlibpath_var_CXX=no
10986 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10987 hardcode_libdir_separator_CXX=':'
10988 link_all_deplibs_CXX=yes
10989 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10990 runpath_var='LD_RUN_PATH'
10991
10992 case $cc_basename in
10993 CC*)
10994 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10995 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10996 ;;
10997 *)
10998 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10999 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11000 ;;
11001 esac
11002 ;;
11003 tandem*)
11004 case $cc_basename in
11005 NCC*)
11006 # NonStop-UX NCC 3.20
11007 # FIXME: insert proper C++ library support
11008 ld_shlibs_CXX=no
11009 ;;
11010 *)
11011 # FIXME: insert proper C++ library support
11012 ld_shlibs_CXX=no
11013 ;;
11014 esac
11015 ;;
11016 vxworks*)
11017 # FIXME: insert proper C++ library support
11018 ld_shlibs_CXX=no
11019 ;;
11020 *)
11021 # FIXME: insert proper C++ library support
11022 ld_shlibs_CXX=no
11023 ;;
11024 esac
11025 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11026 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11027 test "$ld_shlibs_CXX" = no && can_build_shared=no
11028
11029 GCC_CXX="$GXX"
11030 LD_CXX="$LD"
11031
11032
11033 cat > conftest.$ac_ext <<EOF
11034 class Foo
11035 {
11036 public:
11037 Foo (void) { a = 0; }
11038 private:
11039 int a;
11040 };
11041 EOF
11042
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; then
11048 # Parse the compiler output and extract the necessary
11049 # objects, libraries and library flags.
11050
11051 # Sentinel used to keep track of whether or not we are before
11052 # the conftest object file.
11053 pre_test_object_deps_done=no
11054
11055 # The `*' in the case matches for architectures that use `case' in
11056 # $output_verbose_cmd can trigger glob expansion during the loop
11057 # eval without this substitution.
11058 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11059
11060 for p in `eval $output_verbose_link_cmd`; do
11061 case $p in
11062
11063 -L* | -R* | -l*)
11064 # Some compilers place space between "-{L,R}" and the path.
11065 # Remove the space.
11066 if test $p = "-L" \
11067 || test $p = "-R"; then
11068 prev=$p
11069 continue
11070 else
11071 prev=
11072 fi
11073
11074 if test "$pre_test_object_deps_done" = no; then
11075 case $p in
11076 -L* | -R*)
11077 # Internal compiler library paths should come after those
11078 # provided the user. The postdeps already come after the
11079 # user supplied libs so there is no need to process them.
11080 if test -z "$compiler_lib_search_path_CXX"; then
11081 compiler_lib_search_path_CXX="${prev}${p}"
11082 else
11083 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11084 fi
11085 ;;
11086 # The "-l" case would never come before the object being
11087 # linked, so don't bother handling this case.
11088 esac
11089 else
11090 if test -z "$postdeps_CXX"; then
11091 postdeps_CXX="${prev}${p}"
11092 else
11093 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11094 fi
11095 fi
11096 ;;
11097
11098 *.$objext)
11099 # This assumes that the test object file only shows up
11100 # once in the compiler output.
11101 if test "$p" = "conftest.$objext"; then
11102 pre_test_object_deps_done=yes
11103 continue
11104 fi
11105
11106 if test "$pre_test_object_deps_done" = no; then
11107 if test -z "$predep_objects_CXX"; then
11108 predep_objects_CXX="$p"
11109 else
11110 predep_objects_CXX="$predep_objects_CXX $p"
11111 fi
11112 else
11113 if test -z "$postdep_objects_CXX"; then
11114 postdep_objects_CXX="$p"
11115 else
11116 postdep_objects_CXX="$postdep_objects_CXX $p"
11117 fi
11118 fi
11119 ;;
11120
11121 *) ;; # Ignore the rest.
11122
11123 esac
11124 done
11125
11126 # Clean up.
11127 rm -f a.out a.exe
11128 else
11129 echo "libtool.m4: error: problem compiling CXX test program"
11130 fi
11131
11132 $rm -f confest.$objext
11133
11134 # PORTME: override above test on systems where it is broken
11135 case $host_os in
11136 interix3*)
11137 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11138 # hack all around it, let's just trust "g++" to DTRT.
11139 predep_objects_CXX=
11140 postdep_objects_CXX=
11141 postdeps_CXX=
11142 ;;
11143
11144 solaris*)
11145 case $cc_basename in
11146 CC*)
11147 # Adding this requires a known-good setup of shared libraries for
11148 # Sun compiler versions before 5.6, else PIC objects from an old
11149 # archive will be linked into the output, leading to subtle bugs.
11150 postdeps_CXX='-lCstd -lCrun'
11151 ;;
11152 esac
11153 ;;
11154 esac
11155
11156
11157 case " $postdeps_CXX " in
11158 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11159 esac
11160
11161 lt_prog_compiler_wl_CXX=
11162 lt_prog_compiler_pic_CXX=
11163 lt_prog_compiler_static_CXX=
11164
11165 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11166 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11167
11168 # C++ specific cases for pic, static, wl, etc.
11169 if test "$GXX" = yes; then
11170 lt_prog_compiler_wl_CXX='-Wl,'
11171 lt_prog_compiler_static_CXX='-static'
11172
11173 case $host_os in
11174 aix*)
11175 # All AIX code is PIC.
11176 if test "$host_cpu" = ia64; then
11177 # AIX 5 now supports IA64 processor
11178 lt_prog_compiler_static_CXX='-Bstatic'
11179 fi
11180 ;;
11181 amigaos*)
11182 # FIXME: we need at least 68020 code to build shared libraries, but
11183 # adding the `-m68020' flag to GCC prevents building anything better,
11184 # like `-m68040'.
11185 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11186 ;;
11187 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11188 # PIC is the default for these OSes.
11189 ;;
11190 mingw* | os2* | pw32*)
11191 # This hack is so that the source file can tell whether it is being
11192 # built for inclusion in a dll (and should export symbols for example).
11193 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11194 ;;
11195 darwin* | rhapsody*)
11196 # PIC is the default on this platform
11197 # Common symbols not allowed in MH_DYLIB files
11198 lt_prog_compiler_pic_CXX='-fno-common'
11199 ;;
11200 *djgpp*)
11201 # DJGPP does not support shared libraries at all
11202 lt_prog_compiler_pic_CXX=
11203 ;;
11204 interix3*)
11205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11206 # Instead, we relocate shared libraries at runtime.
11207 ;;
11208 sysv4*MP*)
11209 if test -d /usr/nec; then
11210 lt_prog_compiler_pic_CXX=-Kconform_pic
11211 fi
11212 ;;
11213 hpux*)
11214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11215 # not for PA HP-UX.
11216 case $host_cpu in
11217 hppa*64*|ia64*)
11218 ;;
11219 *)
11220 lt_prog_compiler_pic_CXX='-fPIC'
11221 ;;
11222 esac
11223 ;;
11224 *)
11225 lt_prog_compiler_pic_CXX='-fPIC'
11226 ;;
11227 esac
11228 else
11229 case $host_os in
11230 aix4* | aix5*)
11231 # All AIX code is PIC.
11232 if test "$host_cpu" = ia64; then
11233 # AIX 5 now supports IA64 processor
11234 lt_prog_compiler_static_CXX='-Bstatic'
11235 else
11236 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11237 fi
11238 ;;
11239 chorus*)
11240 case $cc_basename in
11241 cxch68*)
11242 # Green Hills C++ Compiler
11243 # _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"
11244 ;;
11245 esac
11246 ;;
11247 darwin*)
11248 # PIC is the default on this platform
11249 # Common symbols not allowed in MH_DYLIB files
11250 case $cc_basename in
11251 xlc*)
11252 lt_prog_compiler_pic_CXX='-qnocommon'
11253 lt_prog_compiler_wl_CXX='-Wl,'
11254 ;;
11255 esac
11256 ;;
11257 dgux*)
11258 case $cc_basename in
11259 ec++*)
11260 lt_prog_compiler_pic_CXX='-KPIC'
11261 ;;
11262 ghcx*)
11263 # Green Hills C++ Compiler
11264 lt_prog_compiler_pic_CXX='-pic'
11265 ;;
11266 *)
11267 ;;
11268 esac
11269 ;;
11270 freebsd* | kfreebsd*-gnu | dragonfly*)
11271 # FreeBSD uses GNU C++
11272 ;;
11273 hpux9* | hpux10* | hpux11*)
11274 case $cc_basename in
11275 CC*)
11276 lt_prog_compiler_wl_CXX='-Wl,'
11277 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11278 if test "$host_cpu" != ia64; then
11279 lt_prog_compiler_pic_CXX='+Z'
11280 fi
11281 ;;
11282 aCC*)
11283 lt_prog_compiler_wl_CXX='-Wl,'
11284 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11285 case $host_cpu in
11286 hppa*64*|ia64*)
11287 # +Z the default
11288 ;;
11289 *)
11290 lt_prog_compiler_pic_CXX='+Z'
11291 ;;
11292 esac
11293 ;;
11294 *)
11295 ;;
11296 esac
11297 ;;
11298 interix*)
11299 # This is c89, which is MS Visual C++ (no shared libs)
11300 # Anyone wants to do a port?
11301 ;;
11302 irix5* | irix6* | nonstopux*)
11303 case $cc_basename in
11304 CC*)
11305 lt_prog_compiler_wl_CXX='-Wl,'
11306 lt_prog_compiler_static_CXX='-non_shared'
11307 # CC pic flag -KPIC is the default.
11308 ;;
11309 *)
11310 ;;
11311 esac
11312 ;;
11313 linux*)
11314 case $cc_basename in
11315 KCC*)
11316 # KAI C++ Compiler
11317 lt_prog_compiler_wl_CXX='--backend -Wl,'
11318 lt_prog_compiler_pic_CXX='-fPIC'
11319 ;;
11320 icpc* | ecpc*)
11321 # Intel C++
11322 lt_prog_compiler_wl_CXX='-Wl,'
11323 lt_prog_compiler_pic_CXX='-KPIC'
11324 lt_prog_compiler_static_CXX='-static'
11325 ;;
11326 pgCC*)
11327 # Portland Group C++ compiler.
11328 lt_prog_compiler_wl_CXX='-Wl,'
11329 lt_prog_compiler_pic_CXX='-fpic'
11330 lt_prog_compiler_static_CXX='-Bstatic'
11331 ;;
11332 cxx*)
11333 # Compaq C++
11334 # Make sure the PIC flag is empty. It appears that all Alpha
11335 # Linux and Compaq Tru64 Unix objects are PIC.
11336 lt_prog_compiler_pic_CXX=
11337 lt_prog_compiler_static_CXX='-non_shared'
11338 ;;
11339 *)
11340 ;;
11341 esac
11342 ;;
11343 lynxos*)
11344 ;;
11345 m88k*)
11346 ;;
11347 mvs*)
11348 case $cc_basename in
11349 cxx*)
11350 lt_prog_compiler_pic_CXX='-W c,exportall'
11351 ;;
11352 *)
11353 ;;
11354 esac
11355 ;;
11356 netbsd*)
11357 ;;
11358 osf3* | osf4* | osf5*)
11359 case $cc_basename in
11360 KCC*)
11361 lt_prog_compiler_wl_CXX='--backend -Wl,'
11362 ;;
11363 RCC*)
11364 # Rational C++ 2.4.1
11365 lt_prog_compiler_pic_CXX='-pic'
11366 ;;
11367 cxx*)
11368 # Digital/Compaq C++
11369 lt_prog_compiler_wl_CXX='-Wl,'
11370 # Make sure the PIC flag is empty. It appears that all Alpha
11371 # Linux and Compaq Tru64 Unix objects are PIC.
11372 lt_prog_compiler_pic_CXX=
11373 lt_prog_compiler_static_CXX='-non_shared'
11374 ;;
11375 *)
11376 ;;
11377 esac
11378 ;;
11379 psos*)
11380 ;;
11381 solaris*)
11382 case $cc_basename in
11383 CC*)
11384 # Sun C++ 4.2, 5.x and Centerline C++
11385 lt_prog_compiler_pic_CXX='-KPIC'
11386 lt_prog_compiler_static_CXX='-Bstatic'
11387 lt_prog_compiler_wl_CXX='-Qoption ld '
11388 ;;
11389 gcx*)
11390 # Green Hills C++ Compiler
11391 lt_prog_compiler_pic_CXX='-PIC'
11392 ;;
11393 *)
11394 ;;
11395 esac
11396 ;;
11397 sunos4*)
11398 case $cc_basename in
11399 CC*)
11400 # Sun C++ 4.x
11401 lt_prog_compiler_pic_CXX='-pic'
11402 lt_prog_compiler_static_CXX='-Bstatic'
11403 ;;
11404 lcc*)
11405 # Lucid
11406 lt_prog_compiler_pic_CXX='-pic'
11407 ;;
11408 *)
11409 ;;
11410 esac
11411 ;;
11412 tandem*)
11413 case $cc_basename in
11414 NCC*)
11415 # NonStop-UX NCC 3.20
11416 lt_prog_compiler_pic_CXX='-KPIC'
11417 ;;
11418 *)
11419 ;;
11420 esac
11421 ;;
11422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11423 case $cc_basename in
11424 CC*)
11425 lt_prog_compiler_wl_CXX='-Wl,'
11426 lt_prog_compiler_pic_CXX='-KPIC'
11427 lt_prog_compiler_static_CXX='-Bstatic'
11428 ;;
11429 esac
11430 ;;
11431 vxworks*)
11432 ;;
11433 *)
11434 lt_prog_compiler_can_build_shared_CXX=no
11435 ;;
11436 esac
11437 fi
11438
11439 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11440 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11441
11442 #
11443 # Check to make sure the PIC flag actually works.
11444 #
11445 if test -n "$lt_prog_compiler_pic_CXX"; then
11446
11447 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11448 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11449 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 lt_prog_compiler_pic_works_CXX=no
11453 ac_outfile=conftest.$ac_objext
11454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11455 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11456 # Insert the option either (1) after the last *FLAGS variable, or
11457 # (2) before a word containing "conftest.", or (3) at the end.
11458 # Note that $ac_compile itself does not contain backslashes and begins
11459 # with a dollar sign (not a hyphen), so the echo should work correctly.
11460 # The option is referenced via a variable to avoid confusing sed.
11461 lt_compile=`echo "$ac_compile" | $SED \
11462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11464 -e 's:$: $lt_compiler_flag:'`
11465 (eval echo "\"\$as_me:11465: $lt_compile\"" >&5)
11466 (eval "$lt_compile" 2>conftest.err)
11467 ac_status=$?
11468 cat conftest.err >&5
11469 echo "$as_me:11469: \$? = $ac_status" >&5
11470 if (exit $ac_status) && test -s "$ac_outfile"; then
11471 # The compiler can only warn and ignore the option if not recognized
11472 # So say no if there are warnings other than the usual output.
11473 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11476 lt_prog_compiler_pic_works_CXX=yes
11477 fi
11478 fi
11479 $rm conftest*
11480
11481 fi
11482 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11483 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11484
11485 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11486 case $lt_prog_compiler_pic_CXX in
11487 "" | " "*) ;;
11488 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11489 esac
11490 else
11491 lt_prog_compiler_pic_CXX=
11492 lt_prog_compiler_can_build_shared_CXX=no
11493 fi
11494
11495 fi
11496 case $host_os in
11497 # For platforms which do not support PIC, -DPIC is meaningless:
11498 *djgpp*)
11499 lt_prog_compiler_pic_CXX=
11500 ;;
11501 *)
11502 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11503 ;;
11504 esac
11505
11506 #
11507 # Check to make sure the static flag actually works.
11508 #
11509 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11510 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11511 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11512 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515 lt_prog_compiler_static_works_CXX=no
11516 save_LDFLAGS="$LDFLAGS"
11517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11518 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11520 # The linker can only warn and ignore the option if not recognized
11521 # So say no if there are warnings
11522 if test -s conftest.err; then
11523 # Append any errors to the config.log.
11524 cat conftest.err 1>&5
11525 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11527 if diff conftest.exp conftest.er2 >/dev/null; then
11528 lt_prog_compiler_static_works_CXX=yes
11529 fi
11530 else
11531 lt_prog_compiler_static_works_CXX=yes
11532 fi
11533 fi
11534 $rm conftest*
11535 LDFLAGS="$save_LDFLAGS"
11536
11537 fi
11538 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11539 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11540
11541 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11542 :
11543 else
11544 lt_prog_compiler_static_CXX=
11545 fi
11546
11547
11548 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11549 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11550 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553 lt_cv_prog_compiler_c_o_CXX=no
11554 $rm -r conftest 2>/dev/null
11555 mkdir conftest
11556 cd conftest
11557 mkdir out
11558 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11559
11560 lt_compiler_flag="-o out/conftest2.$ac_objext"
11561 # Insert the option either (1) after the last *FLAGS variable, or
11562 # (2) before a word containing "conftest.", or (3) at the end.
11563 # Note that $ac_compile itself does not contain backslashes and begins
11564 # with a dollar sign (not a hyphen), so the echo should work correctly.
11565 lt_compile=`echo "$ac_compile" | $SED \
11566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11568 -e 's:$: $lt_compiler_flag:'`
11569 (eval echo "\"\$as_me:11569: $lt_compile\"" >&5)
11570 (eval "$lt_compile" 2>out/conftest.err)
11571 ac_status=$?
11572 cat out/conftest.err >&5
11573 echo "$as_me:11573: \$? = $ac_status" >&5
11574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11575 then
11576 # The compiler can only warn and ignore the option if not recognized
11577 # So say no if there are warnings
11578 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11581 lt_cv_prog_compiler_c_o_CXX=yes
11582 fi
11583 fi
11584 chmod u+w . 2>&5
11585 $rm conftest*
11586 # SGI C++ compiler will create directory out/ii_files/ for
11587 # template instantiation
11588 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11589 $rm out/* && rmdir out
11590 cd ..
11591 rmdir conftest
11592 $rm conftest*
11593
11594 fi
11595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11597
11598
11599 hard_links="nottested"
11600 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11601 # do not overwrite the value of need_locks provided by the user
11602 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11604 hard_links=yes
11605 $rm conftest*
11606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11607 touch conftest.a
11608 ln conftest.a conftest.b 2>&5 || hard_links=no
11609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11610 echo "$as_me:$LINENO: result: $hard_links" >&5
11611 echo "${ECHO_T}$hard_links" >&6
11612 if test "$hard_links" = no; then
11613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11615 need_locks=warn
11616 fi
11617 else
11618 need_locks=no
11619 fi
11620
11621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11623
11624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11625 case $host_os in
11626 aix4* | aix5*)
11627 # If we're using GNU nm, then we don't want the "-C" option.
11628 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11629 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11630 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'
11631 else
11632 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'
11633 fi
11634 ;;
11635 pw32*)
11636 export_symbols_cmds_CXX="$ltdll_cmds"
11637 ;;
11638 cygwin* | mingw*)
11639 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11640 ;;
11641 *)
11642 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11643 ;;
11644 esac
11645
11646 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11647 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11648 test "$ld_shlibs_CXX" = no && can_build_shared=no
11649
11650 #
11651 # Do we need to explicitly link libc?
11652 #
11653 case "x$archive_cmds_need_lc_CXX" in
11654 x|xyes)
11655 # Assume -lc should be added
11656 archive_cmds_need_lc_CXX=yes
11657
11658 if test "$enable_shared" = yes && test "$GCC" = yes; then
11659 case $archive_cmds_CXX in
11660 *'~'*)
11661 # FIXME: we may have to deal with multi-command sequences.
11662 ;;
11663 '$CC '*)
11664 # Test whether the compiler implicitly links with -lc since on some
11665 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11666 # to ld, don't add -lc before -lgcc.
11667 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11668 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11669 $rm conftest*
11670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11671
11672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11673 (eval $ac_compile) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } 2>conftest.err; then
11677 soname=conftest
11678 lib=conftest
11679 libobjs=conftest.$ac_objext
11680 deplibs=
11681 wl=$lt_prog_compiler_wl_CXX
11682 pic_flag=$lt_prog_compiler_pic_CXX
11683 compiler_flags=-v
11684 linker_flags=-v
11685 verstring=
11686 output_objdir=.
11687 libname=conftest
11688 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11689 allow_undefined_flag_CXX=
11690 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11691 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }
11695 then
11696 archive_cmds_need_lc_CXX=no
11697 else
11698 archive_cmds_need_lc_CXX=yes
11699 fi
11700 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11701 else
11702 cat conftest.err 1>&5
11703 fi
11704 $rm conftest*
11705 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11706 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11707 ;;
11708 esac
11709 fi
11710 ;;
11711 esac
11712
11713 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11714 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11715 library_names_spec=
11716 libname_spec='lib$name'
11717 soname_spec=
11718 shrext_cmds=".so"
11719 postinstall_cmds=
11720 postuninstall_cmds=
11721 finish_cmds=
11722 finish_eval=
11723 shlibpath_var=
11724 shlibpath_overrides_runpath=unknown
11725 version_type=none
11726 dynamic_linker="$host_os ld.so"
11727 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11728 if test "$GCC" = yes; then
11729 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11730 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11731 # if the path contains ";" then we assume it to be the separator
11732 # otherwise default to the standard path separator (i.e. ":") - it is
11733 # assumed that no part of a normal pathname contains ";" but that should
11734 # okay in the real world where ";" in dirpaths is itself problematic.
11735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11736 else
11737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11738 fi
11739 else
11740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11741 fi
11742 need_lib_prefix=unknown
11743 hardcode_into_libs=no
11744
11745 # when you set need_version to no, make sure it does not cause -set_version
11746 # flags to be left without arguments
11747 need_version=unknown
11748
11749 case $host_os in
11750 aix3*)
11751 version_type=linux
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11753 shlibpath_var=LIBPATH
11754
11755 # AIX 3 has no versioning support, so we append a major version to the name.
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 ;;
11758
11759 aix4* | aix5*)
11760 version_type=linux
11761 need_lib_prefix=no
11762 need_version=no
11763 hardcode_into_libs=yes
11764 if test "$host_cpu" = ia64; then
11765 # AIX 5 supports IA64
11766 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 else
11769 # With GCC up to 2.95.x, collect2 would create an import file
11770 # for dependence libraries. The import file would start with
11771 # the line `#! .'. This would cause the generated library to
11772 # depend on `.', always an invalid library. This was fixed in
11773 # development snapshots of GCC prior to 3.0.
11774 case $host_os in
11775 aix4 | aix4.[01] | aix4.[01].*)
11776 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11777 echo ' yes '
11778 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11779 :
11780 else
11781 can_build_shared=no
11782 fi
11783 ;;
11784 esac
11785 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11786 # soname into executable. Probably we can add versioning support to
11787 # collect2, so additional links can be useful in future.
11788 if test "$aix_use_runtimelinking" = yes; then
11789 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11790 # instead of lib<name>.a to let people know that these are not
11791 # typical AIX shared libraries.
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 else
11794 # We preserve .a as extension for shared libraries through AIX4.2
11795 # and later when we are not doing run time linking.
11796 library_names_spec='${libname}${release}.a $libname.a'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 fi
11799 shlibpath_var=LIBPATH
11800 fi
11801 ;;
11802
11803 amigaos*)
11804 library_names_spec='$libname.ixlibrary $libname.a'
11805 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11806 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'
11807 ;;
11808
11809 beos*)
11810 library_names_spec='${libname}${shared_ext}'
11811 dynamic_linker="$host_os ld.so"
11812 shlibpath_var=LIBRARY_PATH
11813 ;;
11814
11815 bsdi[45]*)
11816 version_type=linux
11817 need_version=no
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11820 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11823 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11824 # the default ld.so.conf also contains /usr/contrib/lib and
11825 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11826 # libtool to hard-code these into programs
11827 ;;
11828
11829 cygwin* | mingw* | pw32*)
11830 version_type=windows
11831 shrext_cmds=".dll"
11832 need_version=no
11833 need_lib_prefix=no
11834
11835 case $GCC,$host_os in
11836 yes,cygwin* | yes,mingw* | yes,pw32*)
11837 library_names_spec='$libname.dll.a'
11838 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11839 postinstall_cmds='base_file=`basename \${file}`~
11840 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11841 dldir=$destdir/`dirname \$dlpath`~
11842 test -d \$dldir || mkdir -p \$dldir~
11843 $install_prog $dir/$dlname \$dldir/$dlname~
11844 chmod a+x \$dldir/$dlname'
11845 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11846 dlpath=$dir/\$dldll~
11847 $rm \$dlpath'
11848 shlibpath_overrides_runpath=yes
11849
11850 case $host_os in
11851 cygwin*)
11852 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11853 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11854 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11855 ;;
11856 mingw*)
11857 # MinGW DLLs use traditional 'lib' prefix
11858 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11859 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11860 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11861 # It is most probably a Windows format PATH printed by
11862 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11863 # path with ; separators, and with drive letters. We can handle the
11864 # drive letters (cygwin fileutils understands them), so leave them,
11865 # especially as we might pass files found there to a mingw objdump,
11866 # which wouldn't understand a cygwinified path. Ahh.
11867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11868 else
11869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11870 fi
11871 ;;
11872 pw32*)
11873 # pw32 DLLs use 'pw' prefix rather than 'lib'
11874 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11875 ;;
11876 esac
11877 ;;
11878
11879 linux*)
11880 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11882 supports_anon_versioning=no
11883 case `$LD -v 2>/dev/null` in
11884 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11885 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11886 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11887 *\ 2.11.*) ;; # other 2.11 versions
11888 *) supports_anon_versioning=yes ;;
11889 esac
11890 if test $supports_anon_versioning = yes; then
11891 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11893 $echo "local: *; };" >> $output_objdir/$libname.ver~
11894 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11895 else
11896 $archive_expsym_cmds="$archive_cmds"
11897 fi
11898 else
11899 ld_shlibs=no
11900 fi
11901 ;;
11902
11903 *)
11904 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11905 ;;
11906 esac
11907 dynamic_linker='Win32 ld.exe'
11908 # FIXME: first we should search . and the directory the executable is in
11909 shlibpath_var=PATH
11910 ;;
11911
11912 darwin* | rhapsody*)
11913 dynamic_linker="$host_os dyld"
11914 version_type=darwin
11915 need_lib_prefix=no
11916 need_version=no
11917 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11918 soname_spec='${libname}${release}${major}$shared_ext'
11919 shlibpath_overrides_runpath=yes
11920 shlibpath_var=DYLD_LIBRARY_PATH
11921 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11922 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11923 if test "$GCC" = yes; then
11924 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"`
11925 else
11926 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11927 fi
11928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11929 ;;
11930
11931 dgux*)
11932 version_type=linux
11933 need_lib_prefix=no
11934 need_version=no
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 ;;
11939
11940 freebsd1*)
11941 dynamic_linker=no
11942 ;;
11943
11944 kfreebsd*-gnu)
11945 version_type=linux
11946 need_lib_prefix=no
11947 need_version=no
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=no
11952 hardcode_into_libs=yes
11953 dynamic_linker='GNU ld.so'
11954 ;;
11955
11956 freebsd* | dragonfly*)
11957 # DragonFly does not have aout. When/if they implement a new
11958 # versioning mechanism, adjust this.
11959 if test -x /usr/bin/objformat; then
11960 objformat=`/usr/bin/objformat`
11961 else
11962 case $host_os in
11963 freebsd[123]*) objformat=aout ;;
11964 *) objformat=elf ;;
11965 esac
11966 fi
11967 # Handle Gentoo/FreeBSD as it was Linux
11968 case $host_vendor in
11969 gentoo)
11970 version_type=linux ;;
11971 *)
11972 version_type=freebsd-$objformat ;;
11973 esac
11974
11975 case $version_type in
11976 freebsd-elf*)
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11978 need_version=no
11979 need_lib_prefix=no
11980 ;;
11981 freebsd-*)
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11983 need_version=yes
11984 ;;
11985 linux)
11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 need_lib_prefix=no
11989 need_version=no
11990 ;;
11991 esac
11992 shlibpath_var=LD_LIBRARY_PATH
11993 case $host_os in
11994 freebsd2*)
11995 shlibpath_overrides_runpath=yes
11996 ;;
11997 freebsd3.[01]* | freebsdelf3.[01]*)
11998 shlibpath_overrides_runpath=yes
11999 hardcode_into_libs=yes
12000 ;;
12001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12003 shlibpath_overrides_runpath=no
12004 hardcode_into_libs=yes
12005 ;;
12006 freebsd*) # from 4.6 on
12007 shlibpath_overrides_runpath=yes
12008 hardcode_into_libs=yes
12009 ;;
12010 esac
12011 ;;
12012
12013 gnu*)
12014 version_type=linux
12015 need_lib_prefix=no
12016 need_version=no
12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12018 soname_spec='${libname}${release}${shared_ext}$major'
12019 shlibpath_var=LD_LIBRARY_PATH
12020 hardcode_into_libs=yes
12021 ;;
12022
12023 hpux9* | hpux10* | hpux11*)
12024 # Give a soname corresponding to the major version so that dld.sl refuses to
12025 # link against other versions.
12026 version_type=sunos
12027 need_lib_prefix=no
12028 need_version=no
12029 case $host_cpu in
12030 ia64*)
12031 shrext_cmds='.so'
12032 hardcode_into_libs=yes
12033 dynamic_linker="$host_os dld.so"
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037 soname_spec='${libname}${release}${shared_ext}$major'
12038 if test "X$HPUX_IA64_MODE" = X32; then
12039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12040 else
12041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12042 fi
12043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12044 ;;
12045 hppa*64*)
12046 shrext_cmds='.sl'
12047 hardcode_into_libs=yes
12048 dynamic_linker="$host_os dld.sl"
12049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12052 soname_spec='${libname}${release}${shared_ext}$major'
12053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12055 ;;
12056 *)
12057 shrext_cmds='.sl'
12058 dynamic_linker="$host_os dld.sl"
12059 shlibpath_var=SHLIB_PATH
12060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 ;;
12064 esac
12065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12066 postinstall_cmds='chmod 555 $lib'
12067 ;;
12068
12069 interix3*)
12070 version_type=linux
12071 need_lib_prefix=no
12072 need_version=no
12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12074 soname_spec='${libname}${release}${shared_ext}$major'
12075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=no
12078 hardcode_into_libs=yes
12079 ;;
12080
12081 irix5* | irix6* | nonstopux*)
12082 case $host_os in
12083 nonstopux*) version_type=nonstopux ;;
12084 *)
12085 if test "$lt_cv_prog_gnu_ld" = yes; then
12086 version_type=linux
12087 else
12088 version_type=irix
12089 fi ;;
12090 esac
12091 need_lib_prefix=no
12092 need_version=no
12093 soname_spec='${libname}${release}${shared_ext}$major'
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12095 case $host_os in
12096 irix5* | nonstopux*)
12097 libsuff= shlibsuff=
12098 ;;
12099 *)
12100 case $LD in # libtool.m4 will add one of these switches to LD
12101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12102 libsuff= shlibsuff= libmagic=32-bit;;
12103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12104 libsuff=32 shlibsuff=N32 libmagic=N32;;
12105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12106 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12107 *) libsuff= shlibsuff= libmagic=never-match;;
12108 esac
12109 ;;
12110 esac
12111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12112 shlibpath_overrides_runpath=no
12113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12115 hardcode_into_libs=yes
12116 ;;
12117
12118 # No shared lib support for Linux oldld, aout, or coff.
12119 linux*oldld* | linux*aout* | linux*coff*)
12120 dynamic_linker=no
12121 ;;
12122
12123 # This must be Linux ELF.
12124 linux*)
12125 version_type=linux
12126 need_lib_prefix=no
12127 need_version=no
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12131 shlibpath_var=LD_LIBRARY_PATH
12132 shlibpath_overrides_runpath=no
12133 # This implies no fast_install, which is unacceptable.
12134 # Some rework will be needed to allow for fast_install
12135 # before this can be enabled.
12136 hardcode_into_libs=yes
12137
12138 # Append ld.so.conf contents to the search path
12139 if test -f /etc/ld.so.conf; then
12140 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12141 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12142 fi
12143
12144 # We used to test for /lib/ld.so.1 and disable shared libraries on
12145 # powerpc, because MkLinux only supported shared libraries with the
12146 # GNU dynamic linker. Since this was broken with cross compilers,
12147 # most powerpc-linux boxes support dynamic linking these days and
12148 # people can always --disable-shared, the test was removed, and we
12149 # assume the GNU/Linux dynamic linker is in use.
12150 dynamic_linker='GNU/Linux ld.so'
12151 ;;
12152
12153 knetbsd*-gnu)
12154 version_type=linux
12155 need_lib_prefix=no
12156 need_version=no
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 shlibpath_overrides_runpath=no
12161 hardcode_into_libs=yes
12162 dynamic_linker='GNU ld.so'
12163 ;;
12164
12165 netbsd*)
12166 version_type=sunos
12167 need_lib_prefix=no
12168 need_version=no
12169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12172 dynamic_linker='NetBSD (a.out) ld.so'
12173 else
12174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12175 soname_spec='${libname}${release}${shared_ext}$major'
12176 dynamic_linker='NetBSD ld.elf_so'
12177 fi
12178 shlibpath_var=LD_LIBRARY_PATH
12179 shlibpath_overrides_runpath=yes
12180 hardcode_into_libs=yes
12181 ;;
12182
12183 newsos6)
12184 version_type=linux
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 shlibpath_var=LD_LIBRARY_PATH
12187 shlibpath_overrides_runpath=yes
12188 ;;
12189
12190 nto-qnx*)
12191 version_type=linux
12192 need_lib_prefix=no
12193 need_version=no
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 shlibpath_overrides_runpath=yes
12198 ;;
12199
12200 openbsd*)
12201 version_type=sunos
12202 sys_lib_dlsearch_path_spec="/usr/lib"
12203 need_lib_prefix=no
12204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12205 case $host_os in
12206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12207 *) need_version=no ;;
12208 esac
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12213 case $host_os in
12214 openbsd2.[89] | openbsd2.[89].*)
12215 shlibpath_overrides_runpath=no
12216 ;;
12217 *)
12218 shlibpath_overrides_runpath=yes
12219 ;;
12220 esac
12221 else
12222 shlibpath_overrides_runpath=yes
12223 fi
12224 ;;
12225
12226 os2*)
12227 libname_spec='$name'
12228 shrext_cmds=".dll"
12229 need_lib_prefix=no
12230 library_names_spec='$libname${shared_ext} $libname.a'
12231 dynamic_linker='OS/2 ld.exe'
12232 shlibpath_var=LIBPATH
12233 ;;
12234
12235 osf3* | osf4* | osf5*)
12236 version_type=osf
12237 need_lib_prefix=no
12238 need_version=no
12239 soname_spec='${libname}${release}${shared_ext}$major'
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12244 ;;
12245
12246 solaris*)
12247 version_type=linux
12248 need_lib_prefix=no
12249 need_version=no
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251 soname_spec='${libname}${release}${shared_ext}$major'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=yes
12254 hardcode_into_libs=yes
12255 # ldd complains unless libraries are executable
12256 postinstall_cmds='chmod +x $lib'
12257 ;;
12258
12259 sunos4*)
12260 version_type=sunos
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=yes
12265 if test "$with_gnu_ld" = yes; then
12266 need_lib_prefix=no
12267 fi
12268 need_version=yes
12269 ;;
12270
12271 sysv4 | sysv4.3*)
12272 version_type=linux
12273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274 soname_spec='${libname}${release}${shared_ext}$major'
12275 shlibpath_var=LD_LIBRARY_PATH
12276 case $host_vendor in
12277 sni)
12278 shlibpath_overrides_runpath=no
12279 need_lib_prefix=no
12280 export_dynamic_flag_spec='${wl}-Blargedynsym'
12281 runpath_var=LD_RUN_PATH
12282 ;;
12283 siemens)
12284 need_lib_prefix=no
12285 ;;
12286 motorola)
12287 need_lib_prefix=no
12288 need_version=no
12289 shlibpath_overrides_runpath=no
12290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12291 ;;
12292 esac
12293 ;;
12294
12295 sysv4*MP*)
12296 if test -d /usr/nec ;then
12297 version_type=linux
12298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12299 soname_spec='$libname${shared_ext}.$major'
12300 shlibpath_var=LD_LIBRARY_PATH
12301 fi
12302 ;;
12303
12304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12305 version_type=freebsd-elf
12306 need_lib_prefix=no
12307 need_version=no
12308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12309 soname_spec='${libname}${release}${shared_ext}$major'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 hardcode_into_libs=yes
12312 if test "$with_gnu_ld" = yes; then
12313 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12314 shlibpath_overrides_runpath=no
12315 else
12316 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12317 shlibpath_overrides_runpath=yes
12318 case $host_os in
12319 sco3.2v5*)
12320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12321 ;;
12322 esac
12323 fi
12324 sys_lib_dlsearch_path_spec='/usr/lib'
12325 ;;
12326
12327 uts4*)
12328 version_type=linux
12329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330 soname_spec='${libname}${release}${shared_ext}$major'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 ;;
12333
12334 *)
12335 dynamic_linker=no
12336 ;;
12337 esac
12338 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12339 echo "${ECHO_T}$dynamic_linker" >&6
12340 test "$dynamic_linker" = no && can_build_shared=no
12341
12342 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12343 if test "$GCC" = yes; then
12344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12345 fi
12346
12347 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12348 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12349 hardcode_action_CXX=
12350 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12351 test -n "$runpath_var_CXX" || \
12352 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12353
12354 # We can hardcode non-existant directories.
12355 if test "$hardcode_direct_CXX" != no &&
12356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12357 # have to relink, otherwise we might link with an installed library
12358 # when we should be linking with a yet-to-be-installed one
12359 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12360 test "$hardcode_minus_L_CXX" != no; then
12361 # Linking always hardcodes the temporary library directory.
12362 hardcode_action_CXX=relink
12363 else
12364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12365 hardcode_action_CXX=immediate
12366 fi
12367 else
12368 # We cannot hardcode anything, or else we can only hardcode existing
12369 # directories.
12370 hardcode_action_CXX=unsupported
12371 fi
12372 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12373 echo "${ECHO_T}$hardcode_action_CXX" >&6
12374
12375 if test "$hardcode_action_CXX" = relink; then
12376 # Fast installation is not supported
12377 enable_fast_install=no
12378 elif test "$shlibpath_overrides_runpath" = yes ||
12379 test "$enable_shared" = no; then
12380 # Fast installation is not necessary
12381 enable_fast_install=needless
12382 fi
12383
12384
12385 # The else clause should only fire when bootstrapping the
12386 # libtool distribution, otherwise you forgot to ship ltmain.sh
12387 # with your package, and you will get complaints that there are
12388 # no rules to generate ltmain.sh.
12389 if test -f "$ltmain"; then
12390 # See if we are running on zsh, and set the options which allow our commands through
12391 # without removal of \ escapes.
12392 if test -n "${ZSH_VERSION+set}" ; then
12393 setopt NO_GLOB_SUBST
12394 fi
12395 # Now quote all the things that may contain metacharacters while being
12396 # careful not to overquote the AC_SUBSTed values. We take copies of the
12397 # variables and quote the copies for generation of the libtool script.
12398 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12399 SED SHELL STRIP \
12400 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12401 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12402 deplibs_check_method reload_flag reload_cmds need_locks \
12403 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12404 lt_cv_sys_global_symbol_to_c_name_address \
12405 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12406 old_postinstall_cmds old_postuninstall_cmds \
12407 compiler_CXX \
12408 CC_CXX \
12409 LD_CXX \
12410 lt_prog_compiler_wl_CXX \
12411 lt_prog_compiler_pic_CXX \
12412 lt_prog_compiler_static_CXX \
12413 lt_prog_compiler_no_builtin_flag_CXX \
12414 export_dynamic_flag_spec_CXX \
12415 thread_safe_flag_spec_CXX \
12416 whole_archive_flag_spec_CXX \
12417 enable_shared_with_static_runtimes_CXX \
12418 old_archive_cmds_CXX \
12419 old_archive_from_new_cmds_CXX \
12420 predep_objects_CXX \
12421 postdep_objects_CXX \
12422 predeps_CXX \
12423 postdeps_CXX \
12424 compiler_lib_search_path_CXX \
12425 archive_cmds_CXX \
12426 archive_expsym_cmds_CXX \
12427 postinstall_cmds_CXX \
12428 postuninstall_cmds_CXX \
12429 old_archive_from_expsyms_cmds_CXX \
12430 allow_undefined_flag_CXX \
12431 no_undefined_flag_CXX \
12432 export_symbols_cmds_CXX \
12433 hardcode_libdir_flag_spec_CXX \
12434 hardcode_libdir_flag_spec_ld_CXX \
12435 hardcode_libdir_separator_CXX \
12436 hardcode_automatic_CXX \
12437 module_cmds_CXX \
12438 module_expsym_cmds_CXX \
12439 lt_cv_prog_compiler_c_o_CXX \
12440 exclude_expsyms_CXX \
12441 include_expsyms_CXX; do
12442
12443 case $var in
12444 old_archive_cmds_CXX | \
12445 old_archive_from_new_cmds_CXX | \
12446 archive_cmds_CXX | \
12447 archive_expsym_cmds_CXX | \
12448 module_cmds_CXX | \
12449 module_expsym_cmds_CXX | \
12450 old_archive_from_expsyms_cmds_CXX | \
12451 export_symbols_cmds_CXX | \
12452 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12453 postinstall_cmds | postuninstall_cmds | \
12454 old_postinstall_cmds | old_postuninstall_cmds | \
12455 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12456 # Double-quote double-evaled strings.
12457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12458 ;;
12459 *)
12460 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12461 ;;
12462 esac
12463 done
12464
12465 case $lt_echo in
12466 *'\$0 --fallback-echo"')
12467 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12468 ;;
12469 esac
12470
12471 cfgfile="$ofile"
12472
12473 cat <<__EOF__ >> "$cfgfile"
12474 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12475
12476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12477
12478 # Shell to use when invoking shell scripts.
12479 SHELL=$lt_SHELL
12480
12481 # Whether or not to build shared libraries.
12482 build_libtool_libs=$enable_shared
12483
12484 # Whether or not to build static libraries.
12485 build_old_libs=$enable_static
12486
12487 # Whether or not to add -lc for building shared libraries.
12488 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12489
12490 # Whether or not to disallow shared libs when runtime libs are static
12491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12492
12493 # Whether or not to optimize for fast installation.
12494 fast_install=$enable_fast_install
12495
12496 # The host system.
12497 host_alias=$host_alias
12498 host=$host
12499 host_os=$host_os
12500
12501 # The build system.
12502 build_alias=$build_alias
12503 build=$build
12504 build_os=$build_os
12505
12506 # An echo program that does not interpret backslashes.
12507 echo=$lt_echo
12508
12509 # The archiver.
12510 AR=$lt_AR
12511 AR_FLAGS=$lt_AR_FLAGS
12512
12513 # A C compiler.
12514 LTCC=$lt_LTCC
12515
12516 # LTCC compiler flags.
12517 LTCFLAGS=$lt_LTCFLAGS
12518
12519 # A language-specific compiler.
12520 CC=$lt_compiler_CXX
12521
12522 # Is the compiler the GNU C compiler?
12523 with_gcc=$GCC_CXX
12524
12525 # An ERE matcher.
12526 EGREP=$lt_EGREP
12527
12528 # The linker used to build libraries.
12529 LD=$lt_LD_CXX
12530
12531 # Whether we need hard or soft links.
12532 LN_S=$lt_LN_S
12533
12534 # A BSD-compatible nm program.
12535 NM=$lt_NM
12536
12537 # A symbol stripping program
12538 STRIP=$lt_STRIP
12539
12540 # Used to examine libraries when file_magic_cmd begins "file"
12541 MAGIC_CMD=$MAGIC_CMD
12542
12543 # Used on cygwin: DLL creation program.
12544 DLLTOOL="$DLLTOOL"
12545
12546 # Used on cygwin: object dumper.
12547 OBJDUMP="$OBJDUMP"
12548
12549 # Used on cygwin: assembler.
12550 AS="$AS"
12551
12552 # The name of the directory that contains temporary libtool files.
12553 objdir=$objdir
12554
12555 # How to create reloadable object files.
12556 reload_flag=$lt_reload_flag
12557 reload_cmds=$lt_reload_cmds
12558
12559 # How to pass a linker flag through the compiler.
12560 wl=$lt_lt_prog_compiler_wl_CXX
12561
12562 # Object file suffix (normally "o").
12563 objext="$ac_objext"
12564
12565 # Old archive suffix (normally "a").
12566 libext="$libext"
12567
12568 # Shared library suffix (normally ".so").
12569 shrext_cmds='$shrext_cmds'
12570
12571 # Executable file suffix (normally "").
12572 exeext="$exeext"
12573
12574 # Additional compiler flags for building library objects.
12575 pic_flag=$lt_lt_prog_compiler_pic_CXX
12576 pic_mode=$pic_mode
12577
12578 # What is the maximum length of a command?
12579 max_cmd_len=$lt_cv_sys_max_cmd_len
12580
12581 # Does compiler simultaneously support -c and -o options?
12582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12583
12584 # Must we lock files when doing compilation?
12585 need_locks=$lt_need_locks
12586
12587 # Do we need the lib prefix for modules?
12588 need_lib_prefix=$need_lib_prefix
12589
12590 # Do we need a version for libraries?
12591 need_version=$need_version
12592
12593 # Whether dlopen is supported.
12594 dlopen_support=$enable_dlopen
12595
12596 # Whether dlopen of programs is supported.
12597 dlopen_self=$enable_dlopen_self
12598
12599 # Whether dlopen of statically linked programs is supported.
12600 dlopen_self_static=$enable_dlopen_self_static
12601
12602 # Compiler flag to prevent dynamic linking.
12603 link_static_flag=$lt_lt_prog_compiler_static_CXX
12604
12605 # Compiler flag to turn off builtin functions.
12606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12607
12608 # Compiler flag to allow reflexive dlopens.
12609 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12610
12611 # Compiler flag to generate shared objects directly from archives.
12612 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12613
12614 # Compiler flag to generate thread-safe objects.
12615 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12616
12617 # Library versioning type.
12618 version_type=$version_type
12619
12620 # Format of library name prefix.
12621 libname_spec=$lt_libname_spec
12622
12623 # List of archive names. First name is the real one, the rest are links.
12624 # The last name is the one that the linker finds with -lNAME.
12625 library_names_spec=$lt_library_names_spec
12626
12627 # The coded name of the library, if different from the real name.
12628 soname_spec=$lt_soname_spec
12629
12630 # Commands used to build and install an old-style archive.
12631 RANLIB=$lt_RANLIB
12632 old_archive_cmds=$lt_old_archive_cmds_CXX
12633 old_postinstall_cmds=$lt_old_postinstall_cmds
12634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12635
12636 # Create an old-style archive from a shared archive.
12637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12638
12639 # Create a temporary old-style archive to link instead of a shared archive.
12640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12641
12642 # Commands used to build and install a shared archive.
12643 archive_cmds=$lt_archive_cmds_CXX
12644 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12645 postinstall_cmds=$lt_postinstall_cmds
12646 postuninstall_cmds=$lt_postuninstall_cmds
12647
12648 # Commands used to build a loadable module (assumed same as above if empty)
12649 module_cmds=$lt_module_cmds_CXX
12650 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12651
12652 # Commands to strip libraries.
12653 old_striplib=$lt_old_striplib
12654 striplib=$lt_striplib
12655
12656 # Dependencies to place before the objects being linked to create a
12657 # shared library.
12658 predep_objects=$lt_predep_objects_CXX
12659
12660 # Dependencies to place after the objects being linked to create a
12661 # shared library.
12662 postdep_objects=$lt_postdep_objects_CXX
12663
12664 # Dependencies to place before the objects being linked to create a
12665 # shared library.
12666 predeps=$lt_predeps_CXX
12667
12668 # Dependencies to place after the objects being linked to create a
12669 # shared library.
12670 postdeps=$lt_postdeps_CXX
12671
12672 # The library search path used internally by the compiler when linking
12673 # a shared library.
12674 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12675
12676 # Method to check whether dependent libraries are shared objects.
12677 deplibs_check_method=$lt_deplibs_check_method
12678
12679 # Command to use when deplibs_check_method == file_magic.
12680 file_magic_cmd=$lt_file_magic_cmd
12681
12682 # Flag that allows shared libraries with undefined symbols to be built.
12683 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12684
12685 # Flag that forces no undefined symbols.
12686 no_undefined_flag=$lt_no_undefined_flag_CXX
12687
12688 # Commands used to finish a libtool library installation in a directory.
12689 finish_cmds=$lt_finish_cmds
12690
12691 # Same as above, but a single script fragment to be evaled but not shown.
12692 finish_eval=$lt_finish_eval
12693
12694 # Take the output of nm and produce a listing of raw symbols and C names.
12695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12696
12697 # Transform the output of nm in a proper C declaration
12698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12699
12700 # Transform the output of nm in a C name address pair
12701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12702
12703 # This is the shared library runtime path variable.
12704 runpath_var=$runpath_var
12705
12706 # This is the shared library path variable.
12707 shlibpath_var=$shlibpath_var
12708
12709 # Is shlibpath searched before the hard-coded library search path?
12710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12711
12712 # How to hardcode a shared library path into an executable.
12713 hardcode_action=$hardcode_action_CXX
12714
12715 # Whether we should hardcode library paths into libraries.
12716 hardcode_into_libs=$hardcode_into_libs
12717
12718 # Flag to hardcode \$libdir into a binary during linking.
12719 # This must work even if \$libdir does not exist.
12720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12721
12722 # If ld is used when linking, flag to hardcode \$libdir into
12723 # a binary during linking. This must work even if \$libdir does
12724 # not exist.
12725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12726
12727 # Whether we need a single -rpath flag with a separated argument.
12728 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12729
12730 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12731 # resulting binary.
12732 hardcode_direct=$hardcode_direct_CXX
12733
12734 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12735 # resulting binary.
12736 hardcode_minus_L=$hardcode_minus_L_CXX
12737
12738 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12739 # the resulting binary.
12740 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12741
12742 # Set to yes if building a shared library automatically hardcodes DIR into the library
12743 # and all subsequent libraries and executables linked against it.
12744 hardcode_automatic=$hardcode_automatic_CXX
12745
12746 # Variables whose values should be saved in libtool wrapper scripts and
12747 # restored at relink time.
12748 variables_saved_for_relink="$variables_saved_for_relink"
12749
12750 # Whether libtool must link a program against all its dependency libraries.
12751 link_all_deplibs=$link_all_deplibs_CXX
12752
12753 # Compile-time system search path for libraries
12754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12755
12756 # Run-time system search path for libraries
12757 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12758
12759 # Fix the shell variable \$srcfile for the compiler.
12760 fix_srcfile_path="$fix_srcfile_path_CXX"
12761
12762 # Set to yes if exported symbols are required.
12763 always_export_symbols=$always_export_symbols_CXX
12764
12765 # The commands to list exported symbols.
12766 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12767
12768 # The commands to extract the exported symbol list from a shared archive.
12769 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12770
12771 # Symbols that should not be listed in the preloaded symbols.
12772 exclude_expsyms=$lt_exclude_expsyms_CXX
12773
12774 # Symbols that must always be exported.
12775 include_expsyms=$lt_include_expsyms_CXX
12776
12777 # ### END LIBTOOL TAG CONFIG: $tagname
12778
12779 __EOF__
12780
12781
12782 else
12783 # If there is no Makefile yet, we rely on a make rule to execute
12784 # `config.status --recheck' to rerun these tests and create the
12785 # libtool script then.
12786 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12787 if test -f "$ltmain_in"; then
12788 test -f Makefile && make "$ltmain"
12789 fi
12790 fi
12791
12792
12793 ac_ext=cc
12794 ac_cpp='$CXXCPP $CPPFLAGS'
12795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12798
12799 CC=$lt_save_CC
12800 LDCXX=$LD
12801 LD=$lt_save_LD
12802 GCC=$lt_save_GCC
12803 with_gnu_ldcxx=$with_gnu_ld
12804 with_gnu_ld=$lt_save_with_gnu_ld
12805 lt_cv_path_LDCXX=$lt_cv_path_LD
12806 lt_cv_path_LD=$lt_save_path_LD
12807 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12808 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12809
12810 else
12811 tagname=""
12812 fi
12813 ;;
12814
12815 F77)
12816 if test -n "$F77" && test "X$F77" != "Xno"; then
12817
12818 ac_ext=f
12819 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12820 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12821 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12822
12823
12824 archive_cmds_need_lc_F77=no
12825 allow_undefined_flag_F77=
12826 always_export_symbols_F77=no
12827 archive_expsym_cmds_F77=
12828 export_dynamic_flag_spec_F77=
12829 hardcode_direct_F77=no
12830 hardcode_libdir_flag_spec_F77=
12831 hardcode_libdir_flag_spec_ld_F77=
12832 hardcode_libdir_separator_F77=
12833 hardcode_minus_L_F77=no
12834 hardcode_automatic_F77=no
12835 module_cmds_F77=
12836 module_expsym_cmds_F77=
12837 link_all_deplibs_F77=unknown
12838 old_archive_cmds_F77=$old_archive_cmds
12839 no_undefined_flag_F77=
12840 whole_archive_flag_spec_F77=
12841 enable_shared_with_static_runtimes_F77=no
12842
12843 # Source file extension for f77 test sources.
12844 ac_ext=f
12845
12846 # Object file extension for compiled f77 test sources.
12847 objext=o
12848 objext_F77=$objext
12849
12850 # Code to be used in simple compile tests
12851 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12852
12853 # Code to be used in simple link tests
12854 lt_simple_link_test_code=" program t\n end\n"
12855
12856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12857
12858 # If no C compiler was specified, use CC.
12859 LTCC=${LTCC-"$CC"}
12860
12861 # If no C compiler flags were specified, use CFLAGS.
12862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12863
12864 # Allow CC to be a program name with arguments.
12865 compiler=$CC
12866
12867
12868 # save warnings/boilerplate of simple test code
12869 ac_outfile=conftest.$ac_objext
12870 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12872 _lt_compiler_boilerplate=`cat conftest.err`
12873 $rm conftest*
12874
12875 ac_outfile=conftest.$ac_objext
12876 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12878 _lt_linker_boilerplate=`cat conftest.err`
12879 $rm conftest*
12880
12881
12882 # Allow CC to be a program name with arguments.
12883 lt_save_CC="$CC"
12884 CC=${F77-"f77"}
12885 compiler=$CC
12886 compiler_F77=$CC
12887 for cc_temp in $compiler""; do
12888 case $cc_temp in
12889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12891 \-*) ;;
12892 *) break;;
12893 esac
12894 done
12895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12896
12897
12898 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12899 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12900 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12901 echo "${ECHO_T}$can_build_shared" >&6
12902
12903 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12904 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12905 test "$can_build_shared" = "no" && enable_shared=no
12906
12907 # On AIX, shared libraries and static libraries use the same namespace, and
12908 # are all built from PIC.
12909 case $host_os in
12910 aix3*)
12911 test "$enable_shared" = yes && enable_static=no
12912 if test -n "$RANLIB"; then
12913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12914 postinstall_cmds='$RANLIB $lib'
12915 fi
12916 ;;
12917 aix4* | aix5*)
12918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12919 test "$enable_shared" = yes && enable_static=no
12920 fi
12921 ;;
12922 esac
12923 echo "$as_me:$LINENO: result: $enable_shared" >&5
12924 echo "${ECHO_T}$enable_shared" >&6
12925
12926 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12927 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12928 # Make sure either enable_shared or enable_static is yes.
12929 test "$enable_shared" = yes || enable_static=yes
12930 echo "$as_me:$LINENO: result: $enable_static" >&5
12931 echo "${ECHO_T}$enable_static" >&6
12932
12933 GCC_F77="$G77"
12934 LD_F77="$LD"
12935
12936 lt_prog_compiler_wl_F77=
12937 lt_prog_compiler_pic_F77=
12938 lt_prog_compiler_static_F77=
12939
12940 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12941 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12942
12943 if test "$GCC" = yes; then
12944 lt_prog_compiler_wl_F77='-Wl,'
12945 lt_prog_compiler_static_F77='-static'
12946
12947 case $host_os in
12948 aix*)
12949 # All AIX code is PIC.
12950 if test "$host_cpu" = ia64; then
12951 # AIX 5 now supports IA64 processor
12952 lt_prog_compiler_static_F77='-Bstatic'
12953 fi
12954 ;;
12955
12956 amigaos*)
12957 # FIXME: we need at least 68020 code to build shared libraries, but
12958 # adding the `-m68020' flag to GCC prevents building anything better,
12959 # like `-m68040'.
12960 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12961 ;;
12962
12963 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12964 # PIC is the default for these OSes.
12965 ;;
12966
12967 mingw* | pw32* | os2*)
12968 # This hack is so that the source file can tell whether it is being
12969 # built for inclusion in a dll (and should export symbols for example).
12970 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12971 ;;
12972
12973 darwin* | rhapsody*)
12974 # PIC is the default on this platform
12975 # Common symbols not allowed in MH_DYLIB files
12976 lt_prog_compiler_pic_F77='-fno-common'
12977 ;;
12978
12979 interix3*)
12980 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12981 # Instead, we relocate shared libraries at runtime.
12982 ;;
12983
12984 msdosdjgpp*)
12985 # Just because we use GCC doesn't mean we suddenly get shared libraries
12986 # on systems that don't support them.
12987 lt_prog_compiler_can_build_shared_F77=no
12988 enable_shared=no
12989 ;;
12990
12991 sysv4*MP*)
12992 if test -d /usr/nec; then
12993 lt_prog_compiler_pic_F77=-Kconform_pic
12994 fi
12995 ;;
12996
12997 hpux*)
12998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12999 # not for PA HP-UX.
13000 case $host_cpu in
13001 hppa*64*|ia64*)
13002 # +Z the default
13003 ;;
13004 *)
13005 lt_prog_compiler_pic_F77='-fPIC'
13006 ;;
13007 esac
13008 ;;
13009
13010 *)
13011 lt_prog_compiler_pic_F77='-fPIC'
13012 ;;
13013 esac
13014 else
13015 # PORTME Check for flag to pass linker flags through the system compiler.
13016 case $host_os in
13017 aix*)
13018 lt_prog_compiler_wl_F77='-Wl,'
13019 if test "$host_cpu" = ia64; then
13020 # AIX 5 now supports IA64 processor
13021 lt_prog_compiler_static_F77='-Bstatic'
13022 else
13023 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13024 fi
13025 ;;
13026 darwin*)
13027 # PIC is the default on this platform
13028 # Common symbols not allowed in MH_DYLIB files
13029 case $cc_basename in
13030 xlc*)
13031 lt_prog_compiler_pic_F77='-qnocommon'
13032 lt_prog_compiler_wl_F77='-Wl,'
13033 ;;
13034 esac
13035 ;;
13036
13037 mingw* | pw32* | os2*)
13038 # This hack is so that the source file can tell whether it is being
13039 # built for inclusion in a dll (and should export symbols for example).
13040 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13041 ;;
13042
13043 hpux9* | hpux10* | hpux11*)
13044 lt_prog_compiler_wl_F77='-Wl,'
13045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13046 # not for PA HP-UX.
13047 case $host_cpu in
13048 hppa*64*|ia64*)
13049 # +Z the default
13050 ;;
13051 *)
13052 lt_prog_compiler_pic_F77='+Z'
13053 ;;
13054 esac
13055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13056 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13057 ;;
13058
13059 irix5* | irix6* | nonstopux*)
13060 lt_prog_compiler_wl_F77='-Wl,'
13061 # PIC (with -KPIC) is the default.
13062 lt_prog_compiler_static_F77='-non_shared'
13063 ;;
13064
13065 newsos6)
13066 lt_prog_compiler_pic_F77='-KPIC'
13067 lt_prog_compiler_static_F77='-Bstatic'
13068 ;;
13069
13070 linux*)
13071 case $cc_basename in
13072 icc* | ecc*)
13073 lt_prog_compiler_wl_F77='-Wl,'
13074 lt_prog_compiler_pic_F77='-KPIC'
13075 lt_prog_compiler_static_F77='-static'
13076 ;;
13077 pgcc* | pgf77* | pgf90* | pgf95*)
13078 # Portland Group compilers (*not* the Pentium gcc compiler,
13079 # which looks to be a dead project)
13080 lt_prog_compiler_wl_F77='-Wl,'
13081 lt_prog_compiler_pic_F77='-fpic'
13082 lt_prog_compiler_static_F77='-Bstatic'
13083 ;;
13084 ccc*)
13085 lt_prog_compiler_wl_F77='-Wl,'
13086 # All Alpha code is PIC.
13087 lt_prog_compiler_static_F77='-non_shared'
13088 ;;
13089 esac
13090 ;;
13091
13092 osf3* | osf4* | osf5*)
13093 lt_prog_compiler_wl_F77='-Wl,'
13094 # All OSF/1 code is PIC.
13095 lt_prog_compiler_static_F77='-non_shared'
13096 ;;
13097
13098 solaris*)
13099 lt_prog_compiler_pic_F77='-KPIC'
13100 lt_prog_compiler_static_F77='-Bstatic'
13101 case $cc_basename in
13102 f77* | f90* | f95*)
13103 lt_prog_compiler_wl_F77='-Qoption ld ';;
13104 *)
13105 lt_prog_compiler_wl_F77='-Wl,';;
13106 esac
13107 ;;
13108
13109 sunos4*)
13110 lt_prog_compiler_wl_F77='-Qoption ld '
13111 lt_prog_compiler_pic_F77='-PIC'
13112 lt_prog_compiler_static_F77='-Bstatic'
13113 ;;
13114
13115 sysv4 | sysv4.2uw2* | sysv4.3*)
13116 lt_prog_compiler_wl_F77='-Wl,'
13117 lt_prog_compiler_pic_F77='-KPIC'
13118 lt_prog_compiler_static_F77='-Bstatic'
13119 ;;
13120
13121 sysv4*MP*)
13122 if test -d /usr/nec ;then
13123 lt_prog_compiler_pic_F77='-Kconform_pic'
13124 lt_prog_compiler_static_F77='-Bstatic'
13125 fi
13126 ;;
13127
13128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13129 lt_prog_compiler_wl_F77='-Wl,'
13130 lt_prog_compiler_pic_F77='-KPIC'
13131 lt_prog_compiler_static_F77='-Bstatic'
13132 ;;
13133
13134 unicos*)
13135 lt_prog_compiler_wl_F77='-Wl,'
13136 lt_prog_compiler_can_build_shared_F77=no
13137 ;;
13138
13139 uts4*)
13140 lt_prog_compiler_pic_F77='-pic'
13141 lt_prog_compiler_static_F77='-Bstatic'
13142 ;;
13143
13144 *)
13145 lt_prog_compiler_can_build_shared_F77=no
13146 ;;
13147 esac
13148 fi
13149
13150 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13151 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13152
13153 #
13154 # Check to make sure the PIC flag actually works.
13155 #
13156 if test -n "$lt_prog_compiler_pic_F77"; then
13157
13158 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13159 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13160 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163 lt_prog_compiler_pic_works_F77=no
13164 ac_outfile=conftest.$ac_objext
13165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13166 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13167 # Insert the option either (1) after the last *FLAGS variable, or
13168 # (2) before a word containing "conftest.", or (3) at the end.
13169 # Note that $ac_compile itself does not contain backslashes and begins
13170 # with a dollar sign (not a hyphen), so the echo should work correctly.
13171 # The option is referenced via a variable to avoid confusing sed.
13172 lt_compile=`echo "$ac_compile" | $SED \
13173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13175 -e 's:$: $lt_compiler_flag:'`
13176 (eval echo "\"\$as_me:13176: $lt_compile\"" >&5)
13177 (eval "$lt_compile" 2>conftest.err)
13178 ac_status=$?
13179 cat conftest.err >&5
13180 echo "$as_me:13180: \$? = $ac_status" >&5
13181 if (exit $ac_status) && test -s "$ac_outfile"; then
13182 # The compiler can only warn and ignore the option if not recognized
13183 # So say no if there are warnings other than the usual output.
13184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13187 lt_prog_compiler_pic_works_F77=yes
13188 fi
13189 fi
13190 $rm conftest*
13191
13192 fi
13193 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13194 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13195
13196 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13197 case $lt_prog_compiler_pic_F77 in
13198 "" | " "*) ;;
13199 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13200 esac
13201 else
13202 lt_prog_compiler_pic_F77=
13203 lt_prog_compiler_can_build_shared_F77=no
13204 fi
13205
13206 fi
13207 case $host_os in
13208 # For platforms which do not support PIC, -DPIC is meaningless:
13209 *djgpp*)
13210 lt_prog_compiler_pic_F77=
13211 ;;
13212 *)
13213 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13214 ;;
13215 esac
13216
13217 #
13218 # Check to make sure the static flag actually works.
13219 #
13220 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13221 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13222 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13223 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 lt_prog_compiler_static_works_F77=no
13227 save_LDFLAGS="$LDFLAGS"
13228 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13229 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13231 # The linker can only warn and ignore the option if not recognized
13232 # So say no if there are warnings
13233 if test -s conftest.err; then
13234 # Append any errors to the config.log.
13235 cat conftest.err 1>&5
13236 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13238 if diff conftest.exp conftest.er2 >/dev/null; then
13239 lt_prog_compiler_static_works_F77=yes
13240 fi
13241 else
13242 lt_prog_compiler_static_works_F77=yes
13243 fi
13244 fi
13245 $rm conftest*
13246 LDFLAGS="$save_LDFLAGS"
13247
13248 fi
13249 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13250 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13251
13252 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13253 :
13254 else
13255 lt_prog_compiler_static_F77=
13256 fi
13257
13258
13259 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13260 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13261 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264 lt_cv_prog_compiler_c_o_F77=no
13265 $rm -r conftest 2>/dev/null
13266 mkdir conftest
13267 cd conftest
13268 mkdir out
13269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13270
13271 lt_compiler_flag="-o out/conftest2.$ac_objext"
13272 # Insert the option either (1) after the last *FLAGS variable, or
13273 # (2) before a word containing "conftest.", or (3) at the end.
13274 # Note that $ac_compile itself does not contain backslashes and begins
13275 # with a dollar sign (not a hyphen), so the echo should work correctly.
13276 lt_compile=`echo "$ac_compile" | $SED \
13277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13279 -e 's:$: $lt_compiler_flag:'`
13280 (eval echo "\"\$as_me:13280: $lt_compile\"" >&5)
13281 (eval "$lt_compile" 2>out/conftest.err)
13282 ac_status=$?
13283 cat out/conftest.err >&5
13284 echo "$as_me:13284: \$? = $ac_status" >&5
13285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13286 then
13287 # The compiler can only warn and ignore the option if not recognized
13288 # So say no if there are warnings
13289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13292 lt_cv_prog_compiler_c_o_F77=yes
13293 fi
13294 fi
13295 chmod u+w . 2>&5
13296 $rm conftest*
13297 # SGI C++ compiler will create directory out/ii_files/ for
13298 # template instantiation
13299 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13300 $rm out/* && rmdir out
13301 cd ..
13302 rmdir conftest
13303 $rm conftest*
13304
13305 fi
13306 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13307 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13308
13309
13310 hard_links="nottested"
13311 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13312 # do not overwrite the value of need_locks provided by the user
13313 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13314 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13315 hard_links=yes
13316 $rm conftest*
13317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13318 touch conftest.a
13319 ln conftest.a conftest.b 2>&5 || hard_links=no
13320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13321 echo "$as_me:$LINENO: result: $hard_links" >&5
13322 echo "${ECHO_T}$hard_links" >&6
13323 if test "$hard_links" = no; then
13324 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13325 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13326 need_locks=warn
13327 fi
13328 else
13329 need_locks=no
13330 fi
13331
13332 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13334
13335 runpath_var=
13336 allow_undefined_flag_F77=
13337 enable_shared_with_static_runtimes_F77=no
13338 archive_cmds_F77=
13339 archive_expsym_cmds_F77=
13340 old_archive_From_new_cmds_F77=
13341 old_archive_from_expsyms_cmds_F77=
13342 export_dynamic_flag_spec_F77=
13343 whole_archive_flag_spec_F77=
13344 thread_safe_flag_spec_F77=
13345 hardcode_libdir_flag_spec_F77=
13346 hardcode_libdir_flag_spec_ld_F77=
13347 hardcode_libdir_separator_F77=
13348 hardcode_direct_F77=no
13349 hardcode_minus_L_F77=no
13350 hardcode_shlibpath_var_F77=unsupported
13351 link_all_deplibs_F77=unknown
13352 hardcode_automatic_F77=no
13353 module_cmds_F77=
13354 module_expsym_cmds_F77=
13355 always_export_symbols_F77=no
13356 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13357 # include_expsyms should be a list of space-separated symbols to be *always*
13358 # included in the symbol list
13359 include_expsyms_F77=
13360 # exclude_expsyms can be an extended regexp of symbols to exclude
13361 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13362 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13363 # as well as any symbol that contains `d'.
13364 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13365 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13366 # platforms (ab)use it in PIC code, but their linkers get confused if
13367 # the symbol is explicitly referenced. Since portable code cannot
13368 # rely on this symbol name, it's probably fine to never include it in
13369 # preloaded symbol tables.
13370 extract_expsyms_cmds=
13371 # Just being paranoid about ensuring that cc_basename is set.
13372 for cc_temp in $compiler""; do
13373 case $cc_temp in
13374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13376 \-*) ;;
13377 *) break;;
13378 esac
13379 done
13380 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13381
13382 case $host_os in
13383 cygwin* | mingw* | pw32*)
13384 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13385 # When not using gcc, we currently assume that we are using
13386 # Microsoft Visual C++.
13387 if test "$GCC" != yes; then
13388 with_gnu_ld=no
13389 fi
13390 ;;
13391 interix*)
13392 # we just hope/assume this is gcc and not c89 (= MSVC++)
13393 with_gnu_ld=yes
13394 ;;
13395 openbsd*)
13396 with_gnu_ld=no
13397 ;;
13398 esac
13399
13400 ld_shlibs_F77=yes
13401 if test "$with_gnu_ld" = yes; then
13402 # If archive_cmds runs LD, not CC, wlarc should be empty
13403 wlarc='${wl}'
13404
13405 # Set some defaults for GNU ld with shared library support. These
13406 # are reset later if shared libraries are not supported. Putting them
13407 # here allows them to be overridden if necessary.
13408 runpath_var=LD_RUN_PATH
13409 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13410 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13411 # ancient GNU ld didn't support --whole-archive et. al.
13412 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13413 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13414 else
13415 whole_archive_flag_spec_F77=
13416 fi
13417 supports_anon_versioning=no
13418 case `$LD -v 2>/dev/null` in
13419 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13420 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13421 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13422 *\ 2.11.*) ;; # other 2.11 versions
13423 *) supports_anon_versioning=yes ;;
13424 esac
13425
13426 # See if GNU ld supports shared libraries.
13427 case $host_os in
13428 aix3* | aix4* | aix5*)
13429 # On AIX/PPC, the GNU linker is very broken
13430 if test "$host_cpu" != ia64; then
13431 ld_shlibs_F77=no
13432 cat <<EOF 1>&2
13433
13434 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13435 *** to be unable to reliably create shared libraries on AIX.
13436 *** Therefore, libtool is disabling shared libraries support. If you
13437 *** really care for shared libraries, you may want to modify your PATH
13438 *** so that a non-GNU linker is found, and then restart.
13439
13440 EOF
13441 fi
13442 ;;
13443
13444 amigaos*)
13445 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)'
13446 hardcode_libdir_flag_spec_F77='-L$libdir'
13447 hardcode_minus_L_F77=yes
13448
13449 # Samuel A. Falvo II <[email protected]> reports
13450 # that the semantics of dynamic libraries on AmigaOS, at least up
13451 # to version 4, is to share data among multiple programs linked
13452 # with the same dynamic library. Since this doesn't match the
13453 # behavior of shared libraries on other platforms, we can't use
13454 # them.
13455 ld_shlibs_F77=no
13456 ;;
13457
13458 beos*)
13459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13460 allow_undefined_flag_F77=unsupported
13461 # Joseph Beckenbach <[email protected]> says some releases of gcc
13462 # support --undefined. This deserves some investigation. FIXME
13463 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464 else
13465 ld_shlibs_F77=no
13466 fi
13467 ;;
13468
13469 cygwin* | mingw* | pw32*)
13470 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13471 # as there is no search path for DLLs.
13472 hardcode_libdir_flag_spec_F77='-L$libdir'
13473 allow_undefined_flag_F77=unsupported
13474 always_export_symbols_F77=no
13475 enable_shared_with_static_runtimes_F77=yes
13476 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13477
13478 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13479 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13480 # If the export-symbols file already is a .def file (1st line
13481 # is EXPORTS), use it as is; otherwise, prepend...
13482 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13483 cp $export_symbols $output_objdir/$soname.def;
13484 else
13485 echo EXPORTS > $output_objdir/$soname.def;
13486 cat $export_symbols >> $output_objdir/$soname.def;
13487 fi~
13488 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13489 else
13490 ld_shlibs_F77=no
13491 fi
13492 ;;
13493
13494 interix3*)
13495 hardcode_direct_F77=no
13496 hardcode_shlibpath_var_F77=no
13497 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13498 export_dynamic_flag_spec_F77='${wl}-E'
13499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13500 # Instead, shared libraries are loaded at an image base (0x10000000 by
13501 # default) and relocated if they conflict, which is a slow very memory
13502 # consuming and fragmenting process. To avoid this, we pick a random,
13503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13505 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13506 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13507 ;;
13508
13509 linux*)
13510 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13511 tmp_addflag=
13512 case $cc_basename,$host_cpu in
13513 pgcc*) # Portland Group C compiler
13514 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13515 tmp_addflag=' $pic_flag'
13516 ;;
13517 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13518 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13519 tmp_addflag=' $pic_flag -Mnomain' ;;
13520 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13521 tmp_addflag=' -i_dynamic' ;;
13522 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13523 tmp_addflag=' -i_dynamic -nofor_main' ;;
13524 ifc* | ifort*) # Intel Fortran compiler
13525 tmp_addflag=' -nofor_main' ;;
13526 esac
13527 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13528
13529 if test $supports_anon_versioning = yes; then
13530 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13532 $echo "local: *; };" >> $output_objdir/$libname.ver~
13533 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13534 fi
13535 else
13536 ld_shlibs_F77=no
13537 fi
13538 ;;
13539
13540 netbsd*)
13541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13542 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13543 wlarc=
13544 else
13545 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13546 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13547 fi
13548 ;;
13549
13550 solaris*)
13551 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13552 ld_shlibs_F77=no
13553 cat <<EOF 1>&2
13554
13555 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13556 *** create shared libraries on Solaris systems. Therefore, libtool
13557 *** is disabling shared libraries support. We urge you to upgrade GNU
13558 *** binutils to release 2.9.1 or newer. Another option is to modify
13559 *** your PATH or compiler configuration so that the native linker is
13560 *** used, and then restart.
13561
13562 EOF
13563 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13564 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13565 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13566 else
13567 ld_shlibs_F77=no
13568 fi
13569 ;;
13570
13571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13572 case `$LD -v 2>&1` in
13573 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13574 ld_shlibs_F77=no
13575 cat <<_LT_EOF 1>&2
13576
13577 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13578 *** reliably create shared libraries on SCO systems. Therefore, libtool
13579 *** is disabling shared libraries support. We urge you to upgrade GNU
13580 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13581 *** your PATH or compiler configuration so that the native linker is
13582 *** used, and then restart.
13583
13584 _LT_EOF
13585 ;;
13586 *)
13587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13588 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13589 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13590 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13591 else
13592 ld_shlibs_F77=no
13593 fi
13594 ;;
13595 esac
13596 ;;
13597
13598 sunos4*)
13599 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13600 wlarc=
13601 hardcode_direct_F77=yes
13602 hardcode_shlibpath_var_F77=no
13603 ;;
13604
13605 *)
13606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13607 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13608 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13609 else
13610 ld_shlibs_F77=no
13611 fi
13612 ;;
13613 esac
13614
13615 if test "$ld_shlibs_F77" = no; then
13616 runpath_var=
13617 hardcode_libdir_flag_spec_F77=
13618 export_dynamic_flag_spec_F77=
13619 whole_archive_flag_spec_F77=
13620 fi
13621 else
13622 # PORTME fill in a description of your system's linker (not GNU ld)
13623 case $host_os in
13624 aix3*)
13625 allow_undefined_flag_F77=unsupported
13626 always_export_symbols_F77=yes
13627 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'
13628 # Note: this linker hardcodes the directories in LIBPATH if there
13629 # are no directories specified by -L.
13630 hardcode_minus_L_F77=yes
13631 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13632 # Neither direct hardcoding nor static linking is supported with a
13633 # broken collect2.
13634 hardcode_direct_F77=unsupported
13635 fi
13636 ;;
13637
13638 aix4* | aix5*)
13639 if test "$host_cpu" = ia64; then
13640 # On IA64, the linker does run time linking by default, so we don't
13641 # have to do anything special.
13642 aix_use_runtimelinking=no
13643 exp_sym_flag='-Bexport'
13644 no_entry_flag=""
13645 else
13646 # If we're using GNU nm, then we don't want the "-C" option.
13647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13648 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13649 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'
13650 else
13651 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'
13652 fi
13653 aix_use_runtimelinking=no
13654
13655 # Test if we are trying to use run time linking or normal
13656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13657 # need to do runtime linking.
13658 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13659 for ld_flag in $LDFLAGS; do
13660 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13661 aix_use_runtimelinking=yes
13662 break
13663 fi
13664 done
13665 ;;
13666 esac
13667
13668 exp_sym_flag='-bexport'
13669 no_entry_flag='-bnoentry'
13670 fi
13671
13672 # When large executables or shared objects are built, AIX ld can
13673 # have problems creating the table of contents. If linking a library
13674 # or program results in "error TOC overflow" add -mminimal-toc to
13675 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13676 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13677
13678 archive_cmds_F77=''
13679 hardcode_direct_F77=yes
13680 hardcode_libdir_separator_F77=':'
13681 link_all_deplibs_F77=yes
13682
13683 if test "$GCC" = yes; then
13684 case $host_os in aix4.[012]|aix4.[012].*)
13685 # We only want to do this on AIX 4.2 and lower, the check
13686 # below for broken collect2 doesn't work under 4.3+
13687 collect2name=`${CC} -print-prog-name=collect2`
13688 if test -f "$collect2name" && \
13689 strings "$collect2name" | grep resolve_lib_name >/dev/null
13690 then
13691 # We have reworked collect2
13692 hardcode_direct_F77=yes
13693 else
13694 # We have old collect2
13695 hardcode_direct_F77=unsupported
13696 # It fails to find uninstalled libraries when the uninstalled
13697 # path is not listed in the libpath. Setting hardcode_minus_L
13698 # to unsupported forces relinking
13699 hardcode_minus_L_F77=yes
13700 hardcode_libdir_flag_spec_F77='-L$libdir'
13701 hardcode_libdir_separator_F77=
13702 fi
13703 ;;
13704 esac
13705 shared_flag='-shared'
13706 if test "$aix_use_runtimelinking" = yes; then
13707 shared_flag="$shared_flag "'${wl}-G'
13708 fi
13709 else
13710 # not using gcc
13711 if test "$host_cpu" = ia64; then
13712 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13713 # chokes on -Wl,-G. The following line is correct:
13714 shared_flag='-G'
13715 else
13716 if test "$aix_use_runtimelinking" = yes; then
13717 shared_flag='${wl}-G'
13718 else
13719 shared_flag='${wl}-bM:SRE'
13720 fi
13721 fi
13722 fi
13723
13724 # It seems that -bexpall does not export symbols beginning with
13725 # underscore (_), so it is better to generate a list of symbols to export.
13726 always_export_symbols_F77=yes
13727 if test "$aix_use_runtimelinking" = yes; then
13728 # Warning - without using the other runtime loading flags (-brtl),
13729 # -berok will link without error, but may produce a broken library.
13730 allow_undefined_flag_F77='-berok'
13731 # Determine the default libpath from the value encoded in an empty executable.
13732 cat >conftest.$ac_ext <<_ACEOF
13733 program main
13734
13735 end
13736 _ACEOF
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13739 (eval $ac_link) 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_f77_werror_flag"
13747 || test ! -s conftest.err'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759
13760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13761 }'`
13762 # Check for a 64-bit object if we didn't find anything.
13763 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; }
13764 }'`; fi
13765 else
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 fi
13770 rm -f conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13773
13774 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13775 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13776 else
13777 if test "$host_cpu" = ia64; then
13778 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13779 allow_undefined_flag_F77="-z nodefs"
13780 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13781 else
13782 # Determine the default libpath from the value encoded in an empty executable.
13783 cat >conftest.$ac_ext <<_ACEOF
13784 program main
13785
13786 end
13787 _ACEOF
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790 (eval $ac_link) 2>conftest.er1
13791 ac_status=$?
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
13797 { ac_try='test -z "$ac_f77_werror_flag"
13798 || test ! -s conftest.err'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest$ac_exeext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810
13811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13812 }'`
13813 # Check for a 64-bit object if we didn't find anything.
13814 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; }
13815 }'`; fi
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 fi
13821 rm -f conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13824
13825 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13826 # Warning - without using the other run time loading flags,
13827 # -berok will link without error, but may produce a broken library.
13828 no_undefined_flag_F77=' ${wl}-bernotok'
13829 allow_undefined_flag_F77=' ${wl}-berok'
13830 # Exported symbols can be pulled into shared objects from archives
13831 whole_archive_flag_spec_F77='$convenience'
13832 archive_cmds_need_lc_F77=yes
13833 # This is similar to how AIX traditionally builds its shared libraries.
13834 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13835 fi
13836 fi
13837 ;;
13838
13839 amigaos*)
13840 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)'
13841 hardcode_libdir_flag_spec_F77='-L$libdir'
13842 hardcode_minus_L_F77=yes
13843 # see comment about different semantics on the GNU ld section
13844 ld_shlibs_F77=no
13845 ;;
13846
13847 bsdi[45]*)
13848 export_dynamic_flag_spec_F77=-rdynamic
13849 ;;
13850
13851 cygwin* | mingw* | pw32*)
13852 # When not using gcc, we currently assume that we are using
13853 # Microsoft Visual C++.
13854 # hardcode_libdir_flag_spec is actually meaningless, as there is
13855 # no search path for DLLs.
13856 hardcode_libdir_flag_spec_F77=' '
13857 allow_undefined_flag_F77=unsupported
13858 # Tell ltmain to make .lib files, not .a files.
13859 libext=lib
13860 # Tell ltmain to make .dll files, not .so files.
13861 shrext_cmds=".dll"
13862 # FIXME: Setting linknames here is a bad hack.
13863 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13864 # The linker will automatically build a .lib file if we build a DLL.
13865 old_archive_From_new_cmds_F77='true'
13866 # FIXME: Should let the user specify the lib program.
13867 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13868 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13869 enable_shared_with_static_runtimes_F77=yes
13870 ;;
13871
13872 darwin* | rhapsody*)
13873 case $host_os in
13874 rhapsody* | darwin1.[012])
13875 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13876 ;;
13877 *) # Darwin 1.3 on
13878 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13879 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13880 else
13881 case ${MACOSX_DEPLOYMENT_TARGET} in
13882 10.[012])
13883 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13884 ;;
13885 10.*)
13886 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13887 ;;
13888 esac
13889 fi
13890 ;;
13891 esac
13892 archive_cmds_need_lc_F77=no
13893 hardcode_direct_F77=no
13894 hardcode_automatic_F77=yes
13895 hardcode_shlibpath_var_F77=unsupported
13896 whole_archive_flag_spec_F77=''
13897 link_all_deplibs_F77=yes
13898 if test "$GCC" = yes ; then
13899 output_verbose_link_cmd='echo'
13900 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13901 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13903 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13904 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}'
13905 else
13906 case $cc_basename in
13907 xlc*)
13908 output_verbose_link_cmd='echo'
13909 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13910 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13911 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13912 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13913 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}'
13914 ;;
13915 *)
13916 ld_shlibs_F77=no
13917 ;;
13918 esac
13919 fi
13920 ;;
13921
13922 dgux*)
13923 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13924 hardcode_libdir_flag_spec_F77='-L$libdir'
13925 hardcode_shlibpath_var_F77=no
13926 ;;
13927
13928 freebsd1*)
13929 ld_shlibs_F77=no
13930 ;;
13931
13932 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13933 # support. Future versions do this automatically, but an explicit c++rt0.o
13934 # does not break anything, and helps significantly (at the cost of a little
13935 # extra space).
13936 freebsd2.2*)
13937 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13938 hardcode_libdir_flag_spec_F77='-R$libdir'
13939 hardcode_direct_F77=yes
13940 hardcode_shlibpath_var_F77=no
13941 ;;
13942
13943 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13944 freebsd2*)
13945 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13946 hardcode_direct_F77=yes
13947 hardcode_minus_L_F77=yes
13948 hardcode_shlibpath_var_F77=no
13949 ;;
13950
13951 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13952 freebsd* | kfreebsd*-gnu | dragonfly*)
13953 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13954 hardcode_libdir_flag_spec_F77='-R$libdir'
13955 hardcode_direct_F77=yes
13956 hardcode_shlibpath_var_F77=no
13957 ;;
13958
13959 hpux9*)
13960 if test "$GCC" = yes; then
13961 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'
13962 else
13963 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'
13964 fi
13965 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13966 hardcode_libdir_separator_F77=:
13967 hardcode_direct_F77=yes
13968
13969 # hardcode_minus_L: Not really in the search PATH,
13970 # but as the default location of the library.
13971 hardcode_minus_L_F77=yes
13972 export_dynamic_flag_spec_F77='${wl}-E'
13973 ;;
13974
13975 hpux10*)
13976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13977 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13978 else
13979 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13980 fi
13981 if test "$with_gnu_ld" = no; then
13982 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13983 hardcode_libdir_separator_F77=:
13984
13985 hardcode_direct_F77=yes
13986 export_dynamic_flag_spec_F77='${wl}-E'
13987
13988 # hardcode_minus_L: Not really in the search PATH,
13989 # but as the default location of the library.
13990 hardcode_minus_L_F77=yes
13991 fi
13992 ;;
13993
13994 hpux11*)
13995 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13996 case $host_cpu in
13997 hppa*64*)
13998 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13999 ;;
14000 ia64*)
14001 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14002 ;;
14003 *)
14004 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14005 ;;
14006 esac
14007 else
14008 case $host_cpu in
14009 hppa*64*)
14010 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14011 ;;
14012 ia64*)
14013 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14014 ;;
14015 *)
14016 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14017 ;;
14018 esac
14019 fi
14020 if test "$with_gnu_ld" = no; then
14021 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14022 hardcode_libdir_separator_F77=:
14023
14024 case $host_cpu in
14025 hppa*64*|ia64*)
14026 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14027 hardcode_direct_F77=no
14028 hardcode_shlibpath_var_F77=no
14029 ;;
14030 *)
14031 hardcode_direct_F77=yes
14032 export_dynamic_flag_spec_F77='${wl}-E'
14033
14034 # hardcode_minus_L: Not really in the search PATH,
14035 # but as the default location of the library.
14036 hardcode_minus_L_F77=yes
14037 ;;
14038 esac
14039 fi
14040 ;;
14041
14042 irix5* | irix6* | nonstopux*)
14043 if test "$GCC" = yes; then
14044 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'
14045 else
14046 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'
14047 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14048 fi
14049 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14050 hardcode_libdir_separator_F77=:
14051 link_all_deplibs_F77=yes
14052 ;;
14053
14054 netbsd*)
14055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14056 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14057 else
14058 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14059 fi
14060 hardcode_libdir_flag_spec_F77='-R$libdir'
14061 hardcode_direct_F77=yes
14062 hardcode_shlibpath_var_F77=no
14063 ;;
14064
14065 newsos6)
14066 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14067 hardcode_direct_F77=yes
14068 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14069 hardcode_libdir_separator_F77=:
14070 hardcode_shlibpath_var_F77=no
14071 ;;
14072
14073 openbsd*)
14074 hardcode_direct_F77=yes
14075 hardcode_shlibpath_var_F77=no
14076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14077 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14078 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14079 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14080 export_dynamic_flag_spec_F77='${wl}-E'
14081 else
14082 case $host_os in
14083 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14084 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14085 hardcode_libdir_flag_spec_F77='-R$libdir'
14086 ;;
14087 *)
14088 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14089 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14090 ;;
14091 esac
14092 fi
14093 ;;
14094
14095 os2*)
14096 hardcode_libdir_flag_spec_F77='-L$libdir'
14097 hardcode_minus_L_F77=yes
14098 allow_undefined_flag_F77=unsupported
14099 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'
14100 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14101 ;;
14102
14103 osf3*)
14104 if test "$GCC" = yes; then
14105 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14106 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'
14107 else
14108 allow_undefined_flag_F77=' -expect_unresolved \*'
14109 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'
14110 fi
14111 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14112 hardcode_libdir_separator_F77=:
14113 ;;
14114
14115 osf4* | osf5*) # as osf3* with the addition of -msym flag
14116 if test "$GCC" = yes; then
14117 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14118 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'
14119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14120 else
14121 allow_undefined_flag_F77=' -expect_unresolved \*'
14122 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'
14123 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~
14124 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14125
14126 # Both c and cxx compiler support -rpath directly
14127 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14128 fi
14129 hardcode_libdir_separator_F77=:
14130 ;;
14131
14132 solaris*)
14133 no_undefined_flag_F77=' -z text'
14134 if test "$GCC" = yes; then
14135 wlarc='${wl}'
14136 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14137 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14138 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14139 else
14140 wlarc=''
14141 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14142 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14143 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14144 fi
14145 hardcode_libdir_flag_spec_F77='-R$libdir'
14146 hardcode_shlibpath_var_F77=no
14147 case $host_os in
14148 solaris2.[0-5] | solaris2.[0-5].*) ;;
14149 *)
14150 # The compiler driver will combine linker options so we
14151 # cannot just pass the convience library names through
14152 # without $wl, iff we do not link with $LD.
14153 # Luckily, gcc supports the same syntax we need for Sun Studio.
14154 # Supported since Solaris 2.6 (maybe 2.5.1?)
14155 case $wlarc in
14156 '')
14157 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14158 *)
14159 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14160 esac ;;
14161 esac
14162 link_all_deplibs_F77=yes
14163 ;;
14164
14165 sunos4*)
14166 if test "x$host_vendor" = xsequent; then
14167 # Use $CC to link under sequent, because it throws in some extra .o
14168 # files that make .init and .fini sections work.
14169 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14170 else
14171 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14172 fi
14173 hardcode_libdir_flag_spec_F77='-L$libdir'
14174 hardcode_direct_F77=yes
14175 hardcode_minus_L_F77=yes
14176 hardcode_shlibpath_var_F77=no
14177 ;;
14178
14179 sysv4)
14180 case $host_vendor in
14181 sni)
14182 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14183 hardcode_direct_F77=yes # is this really true???
14184 ;;
14185 siemens)
14186 ## LD is ld it makes a PLAMLIB
14187 ## CC just makes a GrossModule.
14188 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14189 reload_cmds_F77='$CC -r -o $output$reload_objs'
14190 hardcode_direct_F77=no
14191 ;;
14192 motorola)
14193 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14194 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14195 ;;
14196 esac
14197 runpath_var='LD_RUN_PATH'
14198 hardcode_shlibpath_var_F77=no
14199 ;;
14200
14201 sysv4.3*)
14202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203 hardcode_shlibpath_var_F77=no
14204 export_dynamic_flag_spec_F77='-Bexport'
14205 ;;
14206
14207 sysv4*MP*)
14208 if test -d /usr/nec; then
14209 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14210 hardcode_shlibpath_var_F77=no
14211 runpath_var=LD_RUN_PATH
14212 hardcode_runpath_var=yes
14213 ld_shlibs_F77=yes
14214 fi
14215 ;;
14216
14217 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14218 no_undefined_flag_F77='${wl}-z,text'
14219 archive_cmds_need_lc_F77=no
14220 hardcode_shlibpath_var_F77=no
14221 runpath_var='LD_RUN_PATH'
14222
14223 if test "$GCC" = yes; then
14224 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14225 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14226 else
14227 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14228 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14229 fi
14230 ;;
14231
14232 sysv5* | sco3.2v5* | sco5v6*)
14233 # Note: We can NOT use -z defs as we might desire, because we do not
14234 # link with -lc, and that would cause any symbols used from libc to
14235 # always be unresolved, which means just about no library would
14236 # ever link correctly. If we're not using GNU ld we use -z text
14237 # though, which does catch some bad symbols but isn't as heavy-handed
14238 # as -z defs.
14239 no_undefined_flag_F77='${wl}-z,text'
14240 allow_undefined_flag_F77='${wl}-z,nodefs'
14241 archive_cmds_need_lc_F77=no
14242 hardcode_shlibpath_var_F77=no
14243 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14244 hardcode_libdir_separator_F77=':'
14245 link_all_deplibs_F77=yes
14246 export_dynamic_flag_spec_F77='${wl}-Bexport'
14247 runpath_var='LD_RUN_PATH'
14248
14249 if test "$GCC" = yes; then
14250 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14251 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14252 else
14253 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14254 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14255 fi
14256 ;;
14257
14258 uts4*)
14259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260 hardcode_libdir_flag_spec_F77='-L$libdir'
14261 hardcode_shlibpath_var_F77=no
14262 ;;
14263
14264 *)
14265 ld_shlibs_F77=no
14266 ;;
14267 esac
14268 fi
14269
14270 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14271 echo "${ECHO_T}$ld_shlibs_F77" >&6
14272 test "$ld_shlibs_F77" = no && can_build_shared=no
14273
14274 #
14275 # Do we need to explicitly link libc?
14276 #
14277 case "x$archive_cmds_need_lc_F77" in
14278 x|xyes)
14279 # Assume -lc should be added
14280 archive_cmds_need_lc_F77=yes
14281
14282 if test "$enable_shared" = yes && test "$GCC" = yes; then
14283 case $archive_cmds_F77 in
14284 *'~'*)
14285 # FIXME: we may have to deal with multi-command sequences.
14286 ;;
14287 '$CC '*)
14288 # Test whether the compiler implicitly links with -lc since on some
14289 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14290 # to ld, don't add -lc before -lgcc.
14291 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14293 $rm conftest*
14294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14295
14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14297 (eval $ac_compile) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } 2>conftest.err; then
14301 soname=conftest
14302 lib=conftest
14303 libobjs=conftest.$ac_objext
14304 deplibs=
14305 wl=$lt_prog_compiler_wl_F77
14306 pic_flag=$lt_prog_compiler_pic_F77
14307 compiler_flags=-v
14308 linker_flags=-v
14309 verstring=
14310 output_objdir=.
14311 libname=conftest
14312 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14313 allow_undefined_flag_F77=
14314 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14315 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }
14319 then
14320 archive_cmds_need_lc_F77=no
14321 else
14322 archive_cmds_need_lc_F77=yes
14323 fi
14324 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14325 else
14326 cat conftest.err 1>&5
14327 fi
14328 $rm conftest*
14329 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14330 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14331 ;;
14332 esac
14333 fi
14334 ;;
14335 esac
14336
14337 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14338 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14339 library_names_spec=
14340 libname_spec='lib$name'
14341 soname_spec=
14342 shrext_cmds=".so"
14343 postinstall_cmds=
14344 postuninstall_cmds=
14345 finish_cmds=
14346 finish_eval=
14347 shlibpath_var=
14348 shlibpath_overrides_runpath=unknown
14349 version_type=none
14350 dynamic_linker="$host_os ld.so"
14351 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14352 if test "$GCC" = yes; then
14353 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14354 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14355 # if the path contains ";" then we assume it to be the separator
14356 # otherwise default to the standard path separator (i.e. ":") - it is
14357 # assumed that no part of a normal pathname contains ";" but that should
14358 # okay in the real world where ";" in dirpaths is itself problematic.
14359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14360 else
14361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14362 fi
14363 else
14364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14365 fi
14366 need_lib_prefix=unknown
14367 hardcode_into_libs=no
14368
14369 # when you set need_version to no, make sure it does not cause -set_version
14370 # flags to be left without arguments
14371 need_version=unknown
14372
14373 case $host_os in
14374 aix3*)
14375 version_type=linux
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14377 shlibpath_var=LIBPATH
14378
14379 # AIX 3 has no versioning support, so we append a major version to the name.
14380 soname_spec='${libname}${release}${shared_ext}$major'
14381 ;;
14382
14383 aix4* | aix5*)
14384 version_type=linux
14385 need_lib_prefix=no
14386 need_version=no
14387 hardcode_into_libs=yes
14388 if test "$host_cpu" = ia64; then
14389 # AIX 5 supports IA64
14390 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14391 shlibpath_var=LD_LIBRARY_PATH
14392 else
14393 # With GCC up to 2.95.x, collect2 would create an import file
14394 # for dependence libraries. The import file would start with
14395 # the line `#! .'. This would cause the generated library to
14396 # depend on `.', always an invalid library. This was fixed in
14397 # development snapshots of GCC prior to 3.0.
14398 case $host_os in
14399 aix4 | aix4.[01] | aix4.[01].*)
14400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14401 echo ' yes '
14402 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14403 :
14404 else
14405 can_build_shared=no
14406 fi
14407 ;;
14408 esac
14409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14410 # soname into executable. Probably we can add versioning support to
14411 # collect2, so additional links can be useful in future.
14412 if test "$aix_use_runtimelinking" = yes; then
14413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14414 # instead of lib<name>.a to let people know that these are not
14415 # typical AIX shared libraries.
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417 else
14418 # We preserve .a as extension for shared libraries through AIX4.2
14419 # and later when we are not doing run time linking.
14420 library_names_spec='${libname}${release}.a $libname.a'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 fi
14423 shlibpath_var=LIBPATH
14424 fi
14425 ;;
14426
14427 amigaos*)
14428 library_names_spec='$libname.ixlibrary $libname.a'
14429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14430 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'
14431 ;;
14432
14433 beos*)
14434 library_names_spec='${libname}${shared_ext}'
14435 dynamic_linker="$host_os ld.so"
14436 shlibpath_var=LIBRARY_PATH
14437 ;;
14438
14439 bsdi[45]*)
14440 version_type=linux
14441 need_version=no
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14448 # the default ld.so.conf also contains /usr/contrib/lib and
14449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14450 # libtool to hard-code these into programs
14451 ;;
14452
14453 cygwin* | mingw* | pw32*)
14454 version_type=windows
14455 shrext_cmds=".dll"
14456 need_version=no
14457 need_lib_prefix=no
14458
14459 case $GCC,$host_os in
14460 yes,cygwin* | yes,mingw* | yes,pw32*)
14461 library_names_spec='$libname.dll.a'
14462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14463 postinstall_cmds='base_file=`basename \${file}`~
14464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14465 dldir=$destdir/`dirname \$dlpath`~
14466 test -d \$dldir || mkdir -p \$dldir~
14467 $install_prog $dir/$dlname \$dldir/$dlname~
14468 chmod a+x \$dldir/$dlname'
14469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14470 dlpath=$dir/\$dldll~
14471 $rm \$dlpath'
14472 shlibpath_overrides_runpath=yes
14473
14474 case $host_os in
14475 cygwin*)
14476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14478 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14479 ;;
14480 mingw*)
14481 # MinGW DLLs use traditional 'lib' prefix
14482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14484 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14485 # It is most probably a Windows format PATH printed by
14486 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14487 # path with ; separators, and with drive letters. We can handle the
14488 # drive letters (cygwin fileutils understands them), so leave them,
14489 # especially as we might pass files found there to a mingw objdump,
14490 # which wouldn't understand a cygwinified path. Ahh.
14491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14492 else
14493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14494 fi
14495 ;;
14496 pw32*)
14497 # pw32 DLLs use 'pw' prefix rather than 'lib'
14498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14499 ;;
14500 esac
14501 ;;
14502
14503 linux*)
14504 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14506 supports_anon_versioning=no
14507 case `$LD -v 2>/dev/null` in
14508 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14509 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14510 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14511 *\ 2.11.*) ;; # other 2.11 versions
14512 *) supports_anon_versioning=yes ;;
14513 esac
14514 if test $supports_anon_versioning = yes; then
14515 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14517 $echo "local: *; };" >> $output_objdir/$libname.ver~
14518 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14519 else
14520 $archive_expsym_cmds="$archive_cmds"
14521 fi
14522 else
14523 ld_shlibs=no
14524 fi
14525 ;;
14526
14527 *)
14528 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14529 ;;
14530 esac
14531 dynamic_linker='Win32 ld.exe'
14532 # FIXME: first we should search . and the directory the executable is in
14533 shlibpath_var=PATH
14534 ;;
14535
14536 darwin* | rhapsody*)
14537 dynamic_linker="$host_os dyld"
14538 version_type=darwin
14539 need_lib_prefix=no
14540 need_version=no
14541 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14542 soname_spec='${libname}${release}${major}$shared_ext'
14543 shlibpath_overrides_runpath=yes
14544 shlibpath_var=DYLD_LIBRARY_PATH
14545 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14546 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14547 if test "$GCC" = yes; then
14548 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"`
14549 else
14550 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14551 fi
14552 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14553 ;;
14554
14555 dgux*)
14556 version_type=linux
14557 need_lib_prefix=no
14558 need_version=no
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 ;;
14563
14564 freebsd1*)
14565 dynamic_linker=no
14566 ;;
14567
14568 kfreebsd*-gnu)
14569 version_type=linux
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 shlibpath_overrides_runpath=no
14576 hardcode_into_libs=yes
14577 dynamic_linker='GNU ld.so'
14578 ;;
14579
14580 freebsd* | dragonfly*)
14581 # DragonFly does not have aout. When/if they implement a new
14582 # versioning mechanism, adjust this.
14583 if test -x /usr/bin/objformat; then
14584 objformat=`/usr/bin/objformat`
14585 else
14586 case $host_os in
14587 freebsd[123]*) objformat=aout ;;
14588 *) objformat=elf ;;
14589 esac
14590 fi
14591 # Handle Gentoo/FreeBSD as it was Linux
14592 case $host_vendor in
14593 gentoo)
14594 version_type=linux ;;
14595 *)
14596 version_type=freebsd-$objformat ;;
14597 esac
14598
14599 case $version_type in
14600 freebsd-elf*)
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14602 need_version=no
14603 need_lib_prefix=no
14604 ;;
14605 freebsd-*)
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14607 need_version=yes
14608 ;;
14609 linux)
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 need_lib_prefix=no
14613 need_version=no
14614 ;;
14615 esac
14616 shlibpath_var=LD_LIBRARY_PATH
14617 case $host_os in
14618 freebsd2*)
14619 shlibpath_overrides_runpath=yes
14620 ;;
14621 freebsd3.[01]* | freebsdelf3.[01]*)
14622 shlibpath_overrides_runpath=yes
14623 hardcode_into_libs=yes
14624 ;;
14625 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14626 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14627 shlibpath_overrides_runpath=no
14628 hardcode_into_libs=yes
14629 ;;
14630 freebsd*) # from 4.6 on
14631 shlibpath_overrides_runpath=yes
14632 hardcode_into_libs=yes
14633 ;;
14634 esac
14635 ;;
14636
14637 gnu*)
14638 version_type=linux
14639 need_lib_prefix=no
14640 need_version=no
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14642 soname_spec='${libname}${release}${shared_ext}$major'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 hardcode_into_libs=yes
14645 ;;
14646
14647 hpux9* | hpux10* | hpux11*)
14648 # Give a soname corresponding to the major version so that dld.sl refuses to
14649 # link against other versions.
14650 version_type=sunos
14651 need_lib_prefix=no
14652 need_version=no
14653 case $host_cpu in
14654 ia64*)
14655 shrext_cmds='.so'
14656 hardcode_into_libs=yes
14657 dynamic_linker="$host_os dld.so"
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 if test "X$HPUX_IA64_MODE" = X32; then
14663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14664 else
14665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14666 fi
14667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14668 ;;
14669 hppa*64*)
14670 shrext_cmds='.sl'
14671 hardcode_into_libs=yes
14672 dynamic_linker="$host_os dld.sl"
14673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14679 ;;
14680 *)
14681 shrext_cmds='.sl'
14682 dynamic_linker="$host_os dld.sl"
14683 shlibpath_var=SHLIB_PATH
14684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 ;;
14688 esac
14689 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14690 postinstall_cmds='chmod 555 $lib'
14691 ;;
14692
14693 interix3*)
14694 version_type=linux
14695 need_lib_prefix=no
14696 need_version=no
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 shlibpath_overrides_runpath=no
14702 hardcode_into_libs=yes
14703 ;;
14704
14705 irix5* | irix6* | nonstopux*)
14706 case $host_os in
14707 nonstopux*) version_type=nonstopux ;;
14708 *)
14709 if test "$lt_cv_prog_gnu_ld" = yes; then
14710 version_type=linux
14711 else
14712 version_type=irix
14713 fi ;;
14714 esac
14715 need_lib_prefix=no
14716 need_version=no
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14719 case $host_os in
14720 irix5* | nonstopux*)
14721 libsuff= shlibsuff=
14722 ;;
14723 *)
14724 case $LD in # libtool.m4 will add one of these switches to LD
14725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14726 libsuff= shlibsuff= libmagic=32-bit;;
14727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14728 libsuff=32 shlibsuff=N32 libmagic=N32;;
14729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14731 *) libsuff= shlibsuff= libmagic=never-match;;
14732 esac
14733 ;;
14734 esac
14735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14736 shlibpath_overrides_runpath=no
14737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14739 hardcode_into_libs=yes
14740 ;;
14741
14742 # No shared lib support for Linux oldld, aout, or coff.
14743 linux*oldld* | linux*aout* | linux*coff*)
14744 dynamic_linker=no
14745 ;;
14746
14747 # This must be Linux ELF.
14748 linux*)
14749 version_type=linux
14750 need_lib_prefix=no
14751 need_version=no
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=no
14757 # This implies no fast_install, which is unacceptable.
14758 # Some rework will be needed to allow for fast_install
14759 # before this can be enabled.
14760 hardcode_into_libs=yes
14761
14762 # Append ld.so.conf contents to the search path
14763 if test -f /etc/ld.so.conf; then
14764 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14766 fi
14767
14768 # We used to test for /lib/ld.so.1 and disable shared libraries on
14769 # powerpc, because MkLinux only supported shared libraries with the
14770 # GNU dynamic linker. Since this was broken with cross compilers,
14771 # most powerpc-linux boxes support dynamic linking these days and
14772 # people can always --disable-shared, the test was removed, and we
14773 # assume the GNU/Linux dynamic linker is in use.
14774 dynamic_linker='GNU/Linux ld.so'
14775 ;;
14776
14777 knetbsd*-gnu)
14778 version_type=linux
14779 need_lib_prefix=no
14780 need_version=no
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=no
14785 hardcode_into_libs=yes
14786 dynamic_linker='GNU ld.so'
14787 ;;
14788
14789 netbsd*)
14790 version_type=sunos
14791 need_lib_prefix=no
14792 need_version=no
14793 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14796 dynamic_linker='NetBSD (a.out) ld.so'
14797 else
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 dynamic_linker='NetBSD ld.elf_so'
14801 fi
14802 shlibpath_var=LD_LIBRARY_PATH
14803 shlibpath_overrides_runpath=yes
14804 hardcode_into_libs=yes
14805 ;;
14806
14807 newsos6)
14808 version_type=linux
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14812 ;;
14813
14814 nto-qnx*)
14815 version_type=linux
14816 need_lib_prefix=no
14817 need_version=no
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=yes
14822 ;;
14823
14824 openbsd*)
14825 version_type=sunos
14826 sys_lib_dlsearch_path_spec="/usr/lib"
14827 need_lib_prefix=no
14828 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14829 case $host_os in
14830 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14831 *) need_version=no ;;
14832 esac
14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14835 shlibpath_var=LD_LIBRARY_PATH
14836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14837 case $host_os in
14838 openbsd2.[89] | openbsd2.[89].*)
14839 shlibpath_overrides_runpath=no
14840 ;;
14841 *)
14842 shlibpath_overrides_runpath=yes
14843 ;;
14844 esac
14845 else
14846 shlibpath_overrides_runpath=yes
14847 fi
14848 ;;
14849
14850 os2*)
14851 libname_spec='$name'
14852 shrext_cmds=".dll"
14853 need_lib_prefix=no
14854 library_names_spec='$libname${shared_ext} $libname.a'
14855 dynamic_linker='OS/2 ld.exe'
14856 shlibpath_var=LIBPATH
14857 ;;
14858
14859 osf3* | osf4* | osf5*)
14860 version_type=osf
14861 need_lib_prefix=no
14862 need_version=no
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14868 ;;
14869
14870 solaris*)
14871 version_type=linux
14872 need_lib_prefix=no
14873 need_version=no
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 shlibpath_overrides_runpath=yes
14878 hardcode_into_libs=yes
14879 # ldd complains unless libraries are executable
14880 postinstall_cmds='chmod +x $lib'
14881 ;;
14882
14883 sunos4*)
14884 version_type=sunos
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 shlibpath_overrides_runpath=yes
14889 if test "$with_gnu_ld" = yes; then
14890 need_lib_prefix=no
14891 fi
14892 need_version=yes
14893 ;;
14894
14895 sysv4 | sysv4.3*)
14896 version_type=linux
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 case $host_vendor in
14901 sni)
14902 shlibpath_overrides_runpath=no
14903 need_lib_prefix=no
14904 export_dynamic_flag_spec='${wl}-Blargedynsym'
14905 runpath_var=LD_RUN_PATH
14906 ;;
14907 siemens)
14908 need_lib_prefix=no
14909 ;;
14910 motorola)
14911 need_lib_prefix=no
14912 need_version=no
14913 shlibpath_overrides_runpath=no
14914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14915 ;;
14916 esac
14917 ;;
14918
14919 sysv4*MP*)
14920 if test -d /usr/nec ;then
14921 version_type=linux
14922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14923 soname_spec='$libname${shared_ext}.$major'
14924 shlibpath_var=LD_LIBRARY_PATH
14925 fi
14926 ;;
14927
14928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14929 version_type=freebsd-elf
14930 need_lib_prefix=no
14931 need_version=no
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 hardcode_into_libs=yes
14936 if test "$with_gnu_ld" = yes; then
14937 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14938 shlibpath_overrides_runpath=no
14939 else
14940 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14941 shlibpath_overrides_runpath=yes
14942 case $host_os in
14943 sco3.2v5*)
14944 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14945 ;;
14946 esac
14947 fi
14948 sys_lib_dlsearch_path_spec='/usr/lib'
14949 ;;
14950
14951 uts4*)
14952 version_type=linux
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 shlibpath_var=LD_LIBRARY_PATH
14956 ;;
14957
14958 *)
14959 dynamic_linker=no
14960 ;;
14961 esac
14962 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14963 echo "${ECHO_T}$dynamic_linker" >&6
14964 test "$dynamic_linker" = no && can_build_shared=no
14965
14966 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14967 if test "$GCC" = yes; then
14968 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14969 fi
14970
14971 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14972 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14973 hardcode_action_F77=
14974 if test -n "$hardcode_libdir_flag_spec_F77" || \
14975 test -n "$runpath_var_F77" || \
14976 test "X$hardcode_automatic_F77" = "Xyes" ; then
14977
14978 # We can hardcode non-existant directories.
14979 if test "$hardcode_direct_F77" != no &&
14980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14981 # have to relink, otherwise we might link with an installed library
14982 # when we should be linking with a yet-to-be-installed one
14983 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14984 test "$hardcode_minus_L_F77" != no; then
14985 # Linking always hardcodes the temporary library directory.
14986 hardcode_action_F77=relink
14987 else
14988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14989 hardcode_action_F77=immediate
14990 fi
14991 else
14992 # We cannot hardcode anything, or else we can only hardcode existing
14993 # directories.
14994 hardcode_action_F77=unsupported
14995 fi
14996 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14997 echo "${ECHO_T}$hardcode_action_F77" >&6
14998
14999 if test "$hardcode_action_F77" = relink; then
15000 # Fast installation is not supported
15001 enable_fast_install=no
15002 elif test "$shlibpath_overrides_runpath" = yes ||
15003 test "$enable_shared" = no; then
15004 # Fast installation is not necessary
15005 enable_fast_install=needless
15006 fi
15007
15008
15009 # The else clause should only fire when bootstrapping the
15010 # libtool distribution, otherwise you forgot to ship ltmain.sh
15011 # with your package, and you will get complaints that there are
15012 # no rules to generate ltmain.sh.
15013 if test -f "$ltmain"; then
15014 # See if we are running on zsh, and set the options which allow our commands through
15015 # without removal of \ escapes.
15016 if test -n "${ZSH_VERSION+set}" ; then
15017 setopt NO_GLOB_SUBST
15018 fi
15019 # Now quote all the things that may contain metacharacters while being
15020 # careful not to overquote the AC_SUBSTed values. We take copies of the
15021 # variables and quote the copies for generation of the libtool script.
15022 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15023 SED SHELL STRIP \
15024 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15025 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15026 deplibs_check_method reload_flag reload_cmds need_locks \
15027 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15028 lt_cv_sys_global_symbol_to_c_name_address \
15029 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15030 old_postinstall_cmds old_postuninstall_cmds \
15031 compiler_F77 \
15032 CC_F77 \
15033 LD_F77 \
15034 lt_prog_compiler_wl_F77 \
15035 lt_prog_compiler_pic_F77 \
15036 lt_prog_compiler_static_F77 \
15037 lt_prog_compiler_no_builtin_flag_F77 \
15038 export_dynamic_flag_spec_F77 \
15039 thread_safe_flag_spec_F77 \
15040 whole_archive_flag_spec_F77 \
15041 enable_shared_with_static_runtimes_F77 \
15042 old_archive_cmds_F77 \
15043 old_archive_from_new_cmds_F77 \
15044 predep_objects_F77 \
15045 postdep_objects_F77 \
15046 predeps_F77 \
15047 postdeps_F77 \
15048 compiler_lib_search_path_F77 \
15049 archive_cmds_F77 \
15050 archive_expsym_cmds_F77 \
15051 postinstall_cmds_F77 \
15052 postuninstall_cmds_F77 \
15053 old_archive_from_expsyms_cmds_F77 \
15054 allow_undefined_flag_F77 \
15055 no_undefined_flag_F77 \
15056 export_symbols_cmds_F77 \
15057 hardcode_libdir_flag_spec_F77 \
15058 hardcode_libdir_flag_spec_ld_F77 \
15059 hardcode_libdir_separator_F77 \
15060 hardcode_automatic_F77 \
15061 module_cmds_F77 \
15062 module_expsym_cmds_F77 \
15063 lt_cv_prog_compiler_c_o_F77 \
15064 exclude_expsyms_F77 \
15065 include_expsyms_F77; do
15066
15067 case $var in
15068 old_archive_cmds_F77 | \
15069 old_archive_from_new_cmds_F77 | \
15070 archive_cmds_F77 | \
15071 archive_expsym_cmds_F77 | \
15072 module_cmds_F77 | \
15073 module_expsym_cmds_F77 | \
15074 old_archive_from_expsyms_cmds_F77 | \
15075 export_symbols_cmds_F77 | \
15076 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15077 postinstall_cmds | postuninstall_cmds | \
15078 old_postinstall_cmds | old_postuninstall_cmds | \
15079 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15080 # Double-quote double-evaled strings.
15081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15082 ;;
15083 *)
15084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15085 ;;
15086 esac
15087 done
15088
15089 case $lt_echo in
15090 *'\$0 --fallback-echo"')
15091 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15092 ;;
15093 esac
15094
15095 cfgfile="$ofile"
15096
15097 cat <<__EOF__ >> "$cfgfile"
15098 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15099
15100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15101
15102 # Shell to use when invoking shell scripts.
15103 SHELL=$lt_SHELL
15104
15105 # Whether or not to build shared libraries.
15106 build_libtool_libs=$enable_shared
15107
15108 # Whether or not to build static libraries.
15109 build_old_libs=$enable_static
15110
15111 # Whether or not to add -lc for building shared libraries.
15112 build_libtool_need_lc=$archive_cmds_need_lc_F77
15113
15114 # Whether or not to disallow shared libs when runtime libs are static
15115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15116
15117 # Whether or not to optimize for fast installation.
15118 fast_install=$enable_fast_install
15119
15120 # The host system.
15121 host_alias=$host_alias
15122 host=$host
15123 host_os=$host_os
15124
15125 # The build system.
15126 build_alias=$build_alias
15127 build=$build
15128 build_os=$build_os
15129
15130 # An echo program that does not interpret backslashes.
15131 echo=$lt_echo
15132
15133 # The archiver.
15134 AR=$lt_AR
15135 AR_FLAGS=$lt_AR_FLAGS
15136
15137 # A C compiler.
15138 LTCC=$lt_LTCC
15139
15140 # LTCC compiler flags.
15141 LTCFLAGS=$lt_LTCFLAGS
15142
15143 # A language-specific compiler.
15144 CC=$lt_compiler_F77
15145
15146 # Is the compiler the GNU C compiler?
15147 with_gcc=$GCC_F77
15148
15149 # An ERE matcher.
15150 EGREP=$lt_EGREP
15151
15152 # The linker used to build libraries.
15153 LD=$lt_LD_F77
15154
15155 # Whether we need hard or soft links.
15156 LN_S=$lt_LN_S
15157
15158 # A BSD-compatible nm program.
15159 NM=$lt_NM
15160
15161 # A symbol stripping program
15162 STRIP=$lt_STRIP
15163
15164 # Used to examine libraries when file_magic_cmd begins "file"
15165 MAGIC_CMD=$MAGIC_CMD
15166
15167 # Used on cygwin: DLL creation program.
15168 DLLTOOL="$DLLTOOL"
15169
15170 # Used on cygwin: object dumper.
15171 OBJDUMP="$OBJDUMP"
15172
15173 # Used on cygwin: assembler.
15174 AS="$AS"
15175
15176 # The name of the directory that contains temporary libtool files.
15177 objdir=$objdir
15178
15179 # How to create reloadable object files.
15180 reload_flag=$lt_reload_flag
15181 reload_cmds=$lt_reload_cmds
15182
15183 # How to pass a linker flag through the compiler.
15184 wl=$lt_lt_prog_compiler_wl_F77
15185
15186 # Object file suffix (normally "o").
15187 objext="$ac_objext"
15188
15189 # Old archive suffix (normally "a").
15190 libext="$libext"
15191
15192 # Shared library suffix (normally ".so").
15193 shrext_cmds='$shrext_cmds'
15194
15195 # Executable file suffix (normally "").
15196 exeext="$exeext"
15197
15198 # Additional compiler flags for building library objects.
15199 pic_flag=$lt_lt_prog_compiler_pic_F77
15200 pic_mode=$pic_mode
15201
15202 # What is the maximum length of a command?
15203 max_cmd_len=$lt_cv_sys_max_cmd_len
15204
15205 # Does compiler simultaneously support -c and -o options?
15206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15207
15208 # Must we lock files when doing compilation?
15209 need_locks=$lt_need_locks
15210
15211 # Do we need the lib prefix for modules?
15212 need_lib_prefix=$need_lib_prefix
15213
15214 # Do we need a version for libraries?
15215 need_version=$need_version
15216
15217 # Whether dlopen is supported.
15218 dlopen_support=$enable_dlopen
15219
15220 # Whether dlopen of programs is supported.
15221 dlopen_self=$enable_dlopen_self
15222
15223 # Whether dlopen of statically linked programs is supported.
15224 dlopen_self_static=$enable_dlopen_self_static
15225
15226 # Compiler flag to prevent dynamic linking.
15227 link_static_flag=$lt_lt_prog_compiler_static_F77
15228
15229 # Compiler flag to turn off builtin functions.
15230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15231
15232 # Compiler flag to allow reflexive dlopens.
15233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15234
15235 # Compiler flag to generate shared objects directly from archives.
15236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15237
15238 # Compiler flag to generate thread-safe objects.
15239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15240
15241 # Library versioning type.
15242 version_type=$version_type
15243
15244 # Format of library name prefix.
15245 libname_spec=$lt_libname_spec
15246
15247 # List of archive names. First name is the real one, the rest are links.
15248 # The last name is the one that the linker finds with -lNAME.
15249 library_names_spec=$lt_library_names_spec
15250
15251 # The coded name of the library, if different from the real name.
15252 soname_spec=$lt_soname_spec
15253
15254 # Commands used to build and install an old-style archive.
15255 RANLIB=$lt_RANLIB
15256 old_archive_cmds=$lt_old_archive_cmds_F77
15257 old_postinstall_cmds=$lt_old_postinstall_cmds
15258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15259
15260 # Create an old-style archive from a shared archive.
15261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15262
15263 # Create a temporary old-style archive to link instead of a shared archive.
15264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15265
15266 # Commands used to build and install a shared archive.
15267 archive_cmds=$lt_archive_cmds_F77
15268 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15269 postinstall_cmds=$lt_postinstall_cmds
15270 postuninstall_cmds=$lt_postuninstall_cmds
15271
15272 # Commands used to build a loadable module (assumed same as above if empty)
15273 module_cmds=$lt_module_cmds_F77
15274 module_expsym_cmds=$lt_module_expsym_cmds_F77
15275
15276 # Commands to strip libraries.
15277 old_striplib=$lt_old_striplib
15278 striplib=$lt_striplib
15279
15280 # Dependencies to place before the objects being linked to create a
15281 # shared library.
15282 predep_objects=$lt_predep_objects_F77
15283
15284 # Dependencies to place after the objects being linked to create a
15285 # shared library.
15286 postdep_objects=$lt_postdep_objects_F77
15287
15288 # Dependencies to place before the objects being linked to create a
15289 # shared library.
15290 predeps=$lt_predeps_F77
15291
15292 # Dependencies to place after the objects being linked to create a
15293 # shared library.
15294 postdeps=$lt_postdeps_F77
15295
15296 # The library search path used internally by the compiler when linking
15297 # a shared library.
15298 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15299
15300 # Method to check whether dependent libraries are shared objects.
15301 deplibs_check_method=$lt_deplibs_check_method
15302
15303 # Command to use when deplibs_check_method == file_magic.
15304 file_magic_cmd=$lt_file_magic_cmd
15305
15306 # Flag that allows shared libraries with undefined symbols to be built.
15307 allow_undefined_flag=$lt_allow_undefined_flag_F77
15308
15309 # Flag that forces no undefined symbols.
15310 no_undefined_flag=$lt_no_undefined_flag_F77
15311
15312 # Commands used to finish a libtool library installation in a directory.
15313 finish_cmds=$lt_finish_cmds
15314
15315 # Same as above, but a single script fragment to be evaled but not shown.
15316 finish_eval=$lt_finish_eval
15317
15318 # Take the output of nm and produce a listing of raw symbols and C names.
15319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15320
15321 # Transform the output of nm in a proper C declaration
15322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15323
15324 # Transform the output of nm in a C name address pair
15325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15326
15327 # This is the shared library runtime path variable.
15328 runpath_var=$runpath_var
15329
15330 # This is the shared library path variable.
15331 shlibpath_var=$shlibpath_var
15332
15333 # Is shlibpath searched before the hard-coded library search path?
15334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15335
15336 # How to hardcode a shared library path into an executable.
15337 hardcode_action=$hardcode_action_F77
15338
15339 # Whether we should hardcode library paths into libraries.
15340 hardcode_into_libs=$hardcode_into_libs
15341
15342 # Flag to hardcode \$libdir into a binary during linking.
15343 # This must work even if \$libdir does not exist.
15344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15345
15346 # If ld is used when linking, flag to hardcode \$libdir into
15347 # a binary during linking. This must work even if \$libdir does
15348 # not exist.
15349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15350
15351 # Whether we need a single -rpath flag with a separated argument.
15352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15353
15354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15355 # resulting binary.
15356 hardcode_direct=$hardcode_direct_F77
15357
15358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15359 # resulting binary.
15360 hardcode_minus_L=$hardcode_minus_L_F77
15361
15362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15363 # the resulting binary.
15364 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15365
15366 # Set to yes if building a shared library automatically hardcodes DIR into the library
15367 # and all subsequent libraries and executables linked against it.
15368 hardcode_automatic=$hardcode_automatic_F77
15369
15370 # Variables whose values should be saved in libtool wrapper scripts and
15371 # restored at relink time.
15372 variables_saved_for_relink="$variables_saved_for_relink"
15373
15374 # Whether libtool must link a program against all its dependency libraries.
15375 link_all_deplibs=$link_all_deplibs_F77
15376
15377 # Compile-time system search path for libraries
15378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15379
15380 # Run-time system search path for libraries
15381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15382
15383 # Fix the shell variable \$srcfile for the compiler.
15384 fix_srcfile_path="$fix_srcfile_path_F77"
15385
15386 # Set to yes if exported symbols are required.
15387 always_export_symbols=$always_export_symbols_F77
15388
15389 # The commands to list exported symbols.
15390 export_symbols_cmds=$lt_export_symbols_cmds_F77
15391
15392 # The commands to extract the exported symbol list from a shared archive.
15393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15394
15395 # Symbols that should not be listed in the preloaded symbols.
15396 exclude_expsyms=$lt_exclude_expsyms_F77
15397
15398 # Symbols that must always be exported.
15399 include_expsyms=$lt_include_expsyms_F77
15400
15401 # ### END LIBTOOL TAG CONFIG: $tagname
15402
15403 __EOF__
15404
15405
15406 else
15407 # If there is no Makefile yet, we rely on a make rule to execute
15408 # `config.status --recheck' to rerun these tests and create the
15409 # libtool script then.
15410 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15411 if test -f "$ltmain_in"; then
15412 test -f Makefile && make "$ltmain"
15413 fi
15414 fi
15415
15416
15417 ac_ext=cc
15418 ac_cpp='$CXXCPP $CPPFLAGS'
15419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15422
15423 CC="$lt_save_CC"
15424
15425 else
15426 tagname=""
15427 fi
15428 ;;
15429
15430 GCJ)
15431 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15432
15433
15434
15435 # Source file extension for Java test sources.
15436 ac_ext=java
15437
15438 # Object file extension for compiled Java test sources.
15439 objext=o
15440 objext_GCJ=$objext
15441
15442 # Code to be used in simple compile tests
15443 lt_simple_compile_test_code="class foo {}\n"
15444
15445 # Code to be used in simple link tests
15446 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15447
15448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15449
15450 # If no C compiler was specified, use CC.
15451 LTCC=${LTCC-"$CC"}
15452
15453 # If no C compiler flags were specified, use CFLAGS.
15454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15455
15456 # Allow CC to be a program name with arguments.
15457 compiler=$CC
15458
15459
15460 # save warnings/boilerplate of simple test code
15461 ac_outfile=conftest.$ac_objext
15462 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15464 _lt_compiler_boilerplate=`cat conftest.err`
15465 $rm conftest*
15466
15467 ac_outfile=conftest.$ac_objext
15468 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15470 _lt_linker_boilerplate=`cat conftest.err`
15471 $rm conftest*
15472
15473
15474 # Allow CC to be a program name with arguments.
15475 lt_save_CC="$CC"
15476 CC=${GCJ-"gcj"}
15477 compiler=$CC
15478 compiler_GCJ=$CC
15479 for cc_temp in $compiler""; do
15480 case $cc_temp in
15481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15483 \-*) ;;
15484 *) break;;
15485 esac
15486 done
15487 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15488
15489
15490 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15491 archive_cmds_need_lc_GCJ=no
15492
15493 old_archive_cmds_GCJ=$old_archive_cmds
15494
15495
15496 lt_prog_compiler_no_builtin_flag_GCJ=
15497
15498 if test "$GCC" = yes; then
15499 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15500
15501
15502 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15503 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15504 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 lt_cv_prog_compiler_rtti_exceptions=no
15508 ac_outfile=conftest.$ac_objext
15509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15510 lt_compiler_flag="-fno-rtti -fno-exceptions"
15511 # Insert the option either (1) after the last *FLAGS variable, or
15512 # (2) before a word containing "conftest.", or (3) at the end.
15513 # Note that $ac_compile itself does not contain backslashes and begins
15514 # with a dollar sign (not a hyphen), so the echo should work correctly.
15515 # The option is referenced via a variable to avoid confusing sed.
15516 lt_compile=`echo "$ac_compile" | $SED \
15517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519 -e 's:$: $lt_compiler_flag:'`
15520 (eval echo "\"\$as_me:15520: $lt_compile\"" >&5)
15521 (eval "$lt_compile" 2>conftest.err)
15522 ac_status=$?
15523 cat conftest.err >&5
15524 echo "$as_me:15524: \$? = $ac_status" >&5
15525 if (exit $ac_status) && test -s "$ac_outfile"; then
15526 # The compiler can only warn and ignore the option if not recognized
15527 # So say no if there are warnings other than the usual output.
15528 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15531 lt_cv_prog_compiler_rtti_exceptions=yes
15532 fi
15533 fi
15534 $rm conftest*
15535
15536 fi
15537 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15538 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15539
15540 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15541 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15542 else
15543 :
15544 fi
15545
15546 fi
15547
15548 lt_prog_compiler_wl_GCJ=
15549 lt_prog_compiler_pic_GCJ=
15550 lt_prog_compiler_static_GCJ=
15551
15552 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15553 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15554
15555 if test "$GCC" = yes; then
15556 lt_prog_compiler_wl_GCJ='-Wl,'
15557 lt_prog_compiler_static_GCJ='-static'
15558
15559 case $host_os in
15560 aix*)
15561 # All AIX code is PIC.
15562 if test "$host_cpu" = ia64; then
15563 # AIX 5 now supports IA64 processor
15564 lt_prog_compiler_static_GCJ='-Bstatic'
15565 fi
15566 ;;
15567
15568 amigaos*)
15569 # FIXME: we need at least 68020 code to build shared libraries, but
15570 # adding the `-m68020' flag to GCC prevents building anything better,
15571 # like `-m68040'.
15572 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15573 ;;
15574
15575 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15576 # PIC is the default for these OSes.
15577 ;;
15578
15579 mingw* | pw32* | os2*)
15580 # This hack is so that the source file can tell whether it is being
15581 # built for inclusion in a dll (and should export symbols for example).
15582 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15583 ;;
15584
15585 darwin* | rhapsody*)
15586 # PIC is the default on this platform
15587 # Common symbols not allowed in MH_DYLIB files
15588 lt_prog_compiler_pic_GCJ='-fno-common'
15589 ;;
15590
15591 interix3*)
15592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15593 # Instead, we relocate shared libraries at runtime.
15594 ;;
15595
15596 msdosdjgpp*)
15597 # Just because we use GCC doesn't mean we suddenly get shared libraries
15598 # on systems that don't support them.
15599 lt_prog_compiler_can_build_shared_GCJ=no
15600 enable_shared=no
15601 ;;
15602
15603 sysv4*MP*)
15604 if test -d /usr/nec; then
15605 lt_prog_compiler_pic_GCJ=-Kconform_pic
15606 fi
15607 ;;
15608
15609 hpux*)
15610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15611 # not for PA HP-UX.
15612 case $host_cpu in
15613 hppa*64*|ia64*)
15614 # +Z the default
15615 ;;
15616 *)
15617 lt_prog_compiler_pic_GCJ='-fPIC'
15618 ;;
15619 esac
15620 ;;
15621
15622 *)
15623 lt_prog_compiler_pic_GCJ='-fPIC'
15624 ;;
15625 esac
15626 else
15627 # PORTME Check for flag to pass linker flags through the system compiler.
15628 case $host_os in
15629 aix*)
15630 lt_prog_compiler_wl_GCJ='-Wl,'
15631 if test "$host_cpu" = ia64; then
15632 # AIX 5 now supports IA64 processor
15633 lt_prog_compiler_static_GCJ='-Bstatic'
15634 else
15635 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15636 fi
15637 ;;
15638 darwin*)
15639 # PIC is the default on this platform
15640 # Common symbols not allowed in MH_DYLIB files
15641 case $cc_basename in
15642 xlc*)
15643 lt_prog_compiler_pic_GCJ='-qnocommon'
15644 lt_prog_compiler_wl_GCJ='-Wl,'
15645 ;;
15646 esac
15647 ;;
15648
15649 mingw* | pw32* | os2*)
15650 # This hack is so that the source file can tell whether it is being
15651 # built for inclusion in a dll (and should export symbols for example).
15652 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15653 ;;
15654
15655 hpux9* | hpux10* | hpux11*)
15656 lt_prog_compiler_wl_GCJ='-Wl,'
15657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15658 # not for PA HP-UX.
15659 case $host_cpu in
15660 hppa*64*|ia64*)
15661 # +Z the default
15662 ;;
15663 *)
15664 lt_prog_compiler_pic_GCJ='+Z'
15665 ;;
15666 esac
15667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15668 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15669 ;;
15670
15671 irix5* | irix6* | nonstopux*)
15672 lt_prog_compiler_wl_GCJ='-Wl,'
15673 # PIC (with -KPIC) is the default.
15674 lt_prog_compiler_static_GCJ='-non_shared'
15675 ;;
15676
15677 newsos6)
15678 lt_prog_compiler_pic_GCJ='-KPIC'
15679 lt_prog_compiler_static_GCJ='-Bstatic'
15680 ;;
15681
15682 linux*)
15683 case $cc_basename in
15684 icc* | ecc*)
15685 lt_prog_compiler_wl_GCJ='-Wl,'
15686 lt_prog_compiler_pic_GCJ='-KPIC'
15687 lt_prog_compiler_static_GCJ='-static'
15688 ;;
15689 pgcc* | pgf77* | pgf90* | pgf95*)
15690 # Portland Group compilers (*not* the Pentium gcc compiler,
15691 # which looks to be a dead project)
15692 lt_prog_compiler_wl_GCJ='-Wl,'
15693 lt_prog_compiler_pic_GCJ='-fpic'
15694 lt_prog_compiler_static_GCJ='-Bstatic'
15695 ;;
15696 ccc*)
15697 lt_prog_compiler_wl_GCJ='-Wl,'
15698 # All Alpha code is PIC.
15699 lt_prog_compiler_static_GCJ='-non_shared'
15700 ;;
15701 esac
15702 ;;
15703
15704 osf3* | osf4* | osf5*)
15705 lt_prog_compiler_wl_GCJ='-Wl,'
15706 # All OSF/1 code is PIC.
15707 lt_prog_compiler_static_GCJ='-non_shared'
15708 ;;
15709
15710 solaris*)
15711 lt_prog_compiler_pic_GCJ='-KPIC'
15712 lt_prog_compiler_static_GCJ='-Bstatic'
15713 case $cc_basename in
15714 f77* | f90* | f95*)
15715 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15716 *)
15717 lt_prog_compiler_wl_GCJ='-Wl,';;
15718 esac
15719 ;;
15720
15721 sunos4*)
15722 lt_prog_compiler_wl_GCJ='-Qoption ld '
15723 lt_prog_compiler_pic_GCJ='-PIC'
15724 lt_prog_compiler_static_GCJ='-Bstatic'
15725 ;;
15726
15727 sysv4 | sysv4.2uw2* | sysv4.3*)
15728 lt_prog_compiler_wl_GCJ='-Wl,'
15729 lt_prog_compiler_pic_GCJ='-KPIC'
15730 lt_prog_compiler_static_GCJ='-Bstatic'
15731 ;;
15732
15733 sysv4*MP*)
15734 if test -d /usr/nec ;then
15735 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15736 lt_prog_compiler_static_GCJ='-Bstatic'
15737 fi
15738 ;;
15739
15740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15741 lt_prog_compiler_wl_GCJ='-Wl,'
15742 lt_prog_compiler_pic_GCJ='-KPIC'
15743 lt_prog_compiler_static_GCJ='-Bstatic'
15744 ;;
15745
15746 unicos*)
15747 lt_prog_compiler_wl_GCJ='-Wl,'
15748 lt_prog_compiler_can_build_shared_GCJ=no
15749 ;;
15750
15751 uts4*)
15752 lt_prog_compiler_pic_GCJ='-pic'
15753 lt_prog_compiler_static_GCJ='-Bstatic'
15754 ;;
15755
15756 *)
15757 lt_prog_compiler_can_build_shared_GCJ=no
15758 ;;
15759 esac
15760 fi
15761
15762 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15763 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15764
15765 #
15766 # Check to make sure the PIC flag actually works.
15767 #
15768 if test -n "$lt_prog_compiler_pic_GCJ"; then
15769
15770 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15771 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15772 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 lt_prog_compiler_pic_works_GCJ=no
15776 ac_outfile=conftest.$ac_objext
15777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15778 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15779 # Insert the option either (1) after the last *FLAGS variable, or
15780 # (2) before a word containing "conftest.", or (3) at the end.
15781 # Note that $ac_compile itself does not contain backslashes and begins
15782 # with a dollar sign (not a hyphen), so the echo should work correctly.
15783 # The option is referenced via a variable to avoid confusing sed.
15784 lt_compile=`echo "$ac_compile" | $SED \
15785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15787 -e 's:$: $lt_compiler_flag:'`
15788 (eval echo "\"\$as_me:15788: $lt_compile\"" >&5)
15789 (eval "$lt_compile" 2>conftest.err)
15790 ac_status=$?
15791 cat conftest.err >&5
15792 echo "$as_me:15792: \$? = $ac_status" >&5
15793 if (exit $ac_status) && test -s "$ac_outfile"; then
15794 # The compiler can only warn and ignore the option if not recognized
15795 # So say no if there are warnings other than the usual output.
15796 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15799 lt_prog_compiler_pic_works_GCJ=yes
15800 fi
15801 fi
15802 $rm conftest*
15803
15804 fi
15805 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15806 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15807
15808 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15809 case $lt_prog_compiler_pic_GCJ in
15810 "" | " "*) ;;
15811 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15812 esac
15813 else
15814 lt_prog_compiler_pic_GCJ=
15815 lt_prog_compiler_can_build_shared_GCJ=no
15816 fi
15817
15818 fi
15819 case $host_os in
15820 # For platforms which do not support PIC, -DPIC is meaningless:
15821 *djgpp*)
15822 lt_prog_compiler_pic_GCJ=
15823 ;;
15824 *)
15825 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15826 ;;
15827 esac
15828
15829 #
15830 # Check to make sure the static flag actually works.
15831 #
15832 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15834 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15835 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838 lt_prog_compiler_static_works_GCJ=no
15839 save_LDFLAGS="$LDFLAGS"
15840 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15843 # The linker can only warn and ignore the option if not recognized
15844 # So say no if there are warnings
15845 if test -s conftest.err; then
15846 # Append any errors to the config.log.
15847 cat conftest.err 1>&5
15848 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15850 if diff conftest.exp conftest.er2 >/dev/null; then
15851 lt_prog_compiler_static_works_GCJ=yes
15852 fi
15853 else
15854 lt_prog_compiler_static_works_GCJ=yes
15855 fi
15856 fi
15857 $rm conftest*
15858 LDFLAGS="$save_LDFLAGS"
15859
15860 fi
15861 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15862 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15863
15864 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15865 :
15866 else
15867 lt_prog_compiler_static_GCJ=
15868 fi
15869
15870
15871 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15873 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876 lt_cv_prog_compiler_c_o_GCJ=no
15877 $rm -r conftest 2>/dev/null
15878 mkdir conftest
15879 cd conftest
15880 mkdir out
15881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15882
15883 lt_compiler_flag="-o out/conftest2.$ac_objext"
15884 # Insert the option either (1) after the last *FLAGS variable, or
15885 # (2) before a word containing "conftest.", or (3) at the end.
15886 # Note that $ac_compile itself does not contain backslashes and begins
15887 # with a dollar sign (not a hyphen), so the echo should work correctly.
15888 lt_compile=`echo "$ac_compile" | $SED \
15889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15891 -e 's:$: $lt_compiler_flag:'`
15892 (eval echo "\"\$as_me:15892: $lt_compile\"" >&5)
15893 (eval "$lt_compile" 2>out/conftest.err)
15894 ac_status=$?
15895 cat out/conftest.err >&5
15896 echo "$as_me:15896: \$? = $ac_status" >&5
15897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15898 then
15899 # The compiler can only warn and ignore the option if not recognized
15900 # So say no if there are warnings
15901 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15904 lt_cv_prog_compiler_c_o_GCJ=yes
15905 fi
15906 fi
15907 chmod u+w . 2>&5
15908 $rm conftest*
15909 # SGI C++ compiler will create directory out/ii_files/ for
15910 # template instantiation
15911 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15912 $rm out/* && rmdir out
15913 cd ..
15914 rmdir conftest
15915 $rm conftest*
15916
15917 fi
15918 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15919 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15920
15921
15922 hard_links="nottested"
15923 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15924 # do not overwrite the value of need_locks provided by the user
15925 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15927 hard_links=yes
15928 $rm conftest*
15929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15930 touch conftest.a
15931 ln conftest.a conftest.b 2>&5 || hard_links=no
15932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15933 echo "$as_me:$LINENO: result: $hard_links" >&5
15934 echo "${ECHO_T}$hard_links" >&6
15935 if test "$hard_links" = no; then
15936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15938 need_locks=warn
15939 fi
15940 else
15941 need_locks=no
15942 fi
15943
15944 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15945 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15946
15947 runpath_var=
15948 allow_undefined_flag_GCJ=
15949 enable_shared_with_static_runtimes_GCJ=no
15950 archive_cmds_GCJ=
15951 archive_expsym_cmds_GCJ=
15952 old_archive_From_new_cmds_GCJ=
15953 old_archive_from_expsyms_cmds_GCJ=
15954 export_dynamic_flag_spec_GCJ=
15955 whole_archive_flag_spec_GCJ=
15956 thread_safe_flag_spec_GCJ=
15957 hardcode_libdir_flag_spec_GCJ=
15958 hardcode_libdir_flag_spec_ld_GCJ=
15959 hardcode_libdir_separator_GCJ=
15960 hardcode_direct_GCJ=no
15961 hardcode_minus_L_GCJ=no
15962 hardcode_shlibpath_var_GCJ=unsupported
15963 link_all_deplibs_GCJ=unknown
15964 hardcode_automatic_GCJ=no
15965 module_cmds_GCJ=
15966 module_expsym_cmds_GCJ=
15967 always_export_symbols_GCJ=no
15968 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15969 # include_expsyms should be a list of space-separated symbols to be *always*
15970 # included in the symbol list
15971 include_expsyms_GCJ=
15972 # exclude_expsyms can be an extended regexp of symbols to exclude
15973 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15974 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15975 # as well as any symbol that contains `d'.
15976 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15977 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15978 # platforms (ab)use it in PIC code, but their linkers get confused if
15979 # the symbol is explicitly referenced. Since portable code cannot
15980 # rely on this symbol name, it's probably fine to never include it in
15981 # preloaded symbol tables.
15982 extract_expsyms_cmds=
15983 # Just being paranoid about ensuring that cc_basename is set.
15984 for cc_temp in $compiler""; do
15985 case $cc_temp in
15986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15988 \-*) ;;
15989 *) break;;
15990 esac
15991 done
15992 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15993
15994 case $host_os in
15995 cygwin* | mingw* | pw32*)
15996 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15997 # When not using gcc, we currently assume that we are using
15998 # Microsoft Visual C++.
15999 if test "$GCC" != yes; then
16000 with_gnu_ld=no
16001 fi
16002 ;;
16003 interix*)
16004 # we just hope/assume this is gcc and not c89 (= MSVC++)
16005 with_gnu_ld=yes
16006 ;;
16007 openbsd*)
16008 with_gnu_ld=no
16009 ;;
16010 esac
16011
16012 ld_shlibs_GCJ=yes
16013 if test "$with_gnu_ld" = yes; then
16014 # If archive_cmds runs LD, not CC, wlarc should be empty
16015 wlarc='${wl}'
16016
16017 # Set some defaults for GNU ld with shared library support. These
16018 # are reset later if shared libraries are not supported. Putting them
16019 # here allows them to be overridden if necessary.
16020 runpath_var=LD_RUN_PATH
16021 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16022 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16023 # ancient GNU ld didn't support --whole-archive et. al.
16024 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16025 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16026 else
16027 whole_archive_flag_spec_GCJ=
16028 fi
16029 supports_anon_versioning=no
16030 case `$LD -v 2>/dev/null` in
16031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16034 *\ 2.11.*) ;; # other 2.11 versions
16035 *) supports_anon_versioning=yes ;;
16036 esac
16037
16038 # See if GNU ld supports shared libraries.
16039 case $host_os in
16040 aix3* | aix4* | aix5*)
16041 # On AIX/PPC, the GNU linker is very broken
16042 if test "$host_cpu" != ia64; then
16043 ld_shlibs_GCJ=no
16044 cat <<EOF 1>&2
16045
16046 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16047 *** to be unable to reliably create shared libraries on AIX.
16048 *** Therefore, libtool is disabling shared libraries support. If you
16049 *** really care for shared libraries, you may want to modify your PATH
16050 *** so that a non-GNU linker is found, and then restart.
16051
16052 EOF
16053 fi
16054 ;;
16055
16056 amigaos*)
16057 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)'
16058 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16059 hardcode_minus_L_GCJ=yes
16060
16061 # Samuel A. Falvo II <[email protected]> reports
16062 # that the semantics of dynamic libraries on AmigaOS, at least up
16063 # to version 4, is to share data among multiple programs linked
16064 # with the same dynamic library. Since this doesn't match the
16065 # behavior of shared libraries on other platforms, we can't use
16066 # them.
16067 ld_shlibs_GCJ=no
16068 ;;
16069
16070 beos*)
16071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16072 allow_undefined_flag_GCJ=unsupported
16073 # Joseph Beckenbach <[email protected]> says some releases of gcc
16074 # support --undefined. This deserves some investigation. FIXME
16075 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16076 else
16077 ld_shlibs_GCJ=no
16078 fi
16079 ;;
16080
16081 cygwin* | mingw* | pw32*)
16082 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16083 # as there is no search path for DLLs.
16084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16085 allow_undefined_flag_GCJ=unsupported
16086 always_export_symbols_GCJ=no
16087 enable_shared_with_static_runtimes_GCJ=yes
16088 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16089
16090 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16091 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16092 # If the export-symbols file already is a .def file (1st line
16093 # is EXPORTS), use it as is; otherwise, prepend...
16094 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16095 cp $export_symbols $output_objdir/$soname.def;
16096 else
16097 echo EXPORTS > $output_objdir/$soname.def;
16098 cat $export_symbols >> $output_objdir/$soname.def;
16099 fi~
16100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16101 else
16102 ld_shlibs_GCJ=no
16103 fi
16104 ;;
16105
16106 interix3*)
16107 hardcode_direct_GCJ=no
16108 hardcode_shlibpath_var_GCJ=no
16109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16110 export_dynamic_flag_spec_GCJ='${wl}-E'
16111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16112 # Instead, shared libraries are loaded at an image base (0x10000000 by
16113 # default) and relocated if they conflict, which is a slow very memory
16114 # consuming and fragmenting process. To avoid this, we pick a random,
16115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16117 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16118 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16119 ;;
16120
16121 linux*)
16122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16123 tmp_addflag=
16124 case $cc_basename,$host_cpu in
16125 pgcc*) # Portland Group C compiler
16126 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16127 tmp_addflag=' $pic_flag'
16128 ;;
16129 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16130 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16131 tmp_addflag=' $pic_flag -Mnomain' ;;
16132 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16133 tmp_addflag=' -i_dynamic' ;;
16134 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16135 tmp_addflag=' -i_dynamic -nofor_main' ;;
16136 ifc* | ifort*) # Intel Fortran compiler
16137 tmp_addflag=' -nofor_main' ;;
16138 esac
16139 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140
16141 if test $supports_anon_versioning = yes; then
16142 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16144 $echo "local: *; };" >> $output_objdir/$libname.ver~
16145 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16146 fi
16147 else
16148 ld_shlibs_GCJ=no
16149 fi
16150 ;;
16151
16152 netbsd*)
16153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16154 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16155 wlarc=
16156 else
16157 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16158 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16159 fi
16160 ;;
16161
16162 solaris*)
16163 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16164 ld_shlibs_GCJ=no
16165 cat <<EOF 1>&2
16166
16167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16168 *** create shared libraries on Solaris systems. Therefore, libtool
16169 *** is disabling shared libraries support. We urge you to upgrade GNU
16170 *** binutils to release 2.9.1 or newer. Another option is to modify
16171 *** your PATH or compiler configuration so that the native linker is
16172 *** used, and then restart.
16173
16174 EOF
16175 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16178 else
16179 ld_shlibs_GCJ=no
16180 fi
16181 ;;
16182
16183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16184 case `$LD -v 2>&1` in
16185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16186 ld_shlibs_GCJ=no
16187 cat <<_LT_EOF 1>&2
16188
16189 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16190 *** reliably create shared libraries on SCO systems. Therefore, libtool
16191 *** is disabling shared libraries support. We urge you to upgrade GNU
16192 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16193 *** your PATH or compiler configuration so that the native linker is
16194 *** used, and then restart.
16195
16196 _LT_EOF
16197 ;;
16198 *)
16199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16200 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16201 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16202 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16203 else
16204 ld_shlibs_GCJ=no
16205 fi
16206 ;;
16207 esac
16208 ;;
16209
16210 sunos4*)
16211 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16212 wlarc=
16213 hardcode_direct_GCJ=yes
16214 hardcode_shlibpath_var_GCJ=no
16215 ;;
16216
16217 *)
16218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16219 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16220 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16221 else
16222 ld_shlibs_GCJ=no
16223 fi
16224 ;;
16225 esac
16226
16227 if test "$ld_shlibs_GCJ" = no; then
16228 runpath_var=
16229 hardcode_libdir_flag_spec_GCJ=
16230 export_dynamic_flag_spec_GCJ=
16231 whole_archive_flag_spec_GCJ=
16232 fi
16233 else
16234 # PORTME fill in a description of your system's linker (not GNU ld)
16235 case $host_os in
16236 aix3*)
16237 allow_undefined_flag_GCJ=unsupported
16238 always_export_symbols_GCJ=yes
16239 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'
16240 # Note: this linker hardcodes the directories in LIBPATH if there
16241 # are no directories specified by -L.
16242 hardcode_minus_L_GCJ=yes
16243 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16244 # Neither direct hardcoding nor static linking is supported with a
16245 # broken collect2.
16246 hardcode_direct_GCJ=unsupported
16247 fi
16248 ;;
16249
16250 aix4* | aix5*)
16251 if test "$host_cpu" = ia64; then
16252 # On IA64, the linker does run time linking by default, so we don't
16253 # have to do anything special.
16254 aix_use_runtimelinking=no
16255 exp_sym_flag='-Bexport'
16256 no_entry_flag=""
16257 else
16258 # If we're using GNU nm, then we don't want the "-C" option.
16259 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16260 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16261 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'
16262 else
16263 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'
16264 fi
16265 aix_use_runtimelinking=no
16266
16267 # Test if we are trying to use run time linking or normal
16268 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16269 # need to do runtime linking.
16270 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16271 for ld_flag in $LDFLAGS; do
16272 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16273 aix_use_runtimelinking=yes
16274 break
16275 fi
16276 done
16277 ;;
16278 esac
16279
16280 exp_sym_flag='-bexport'
16281 no_entry_flag='-bnoentry'
16282 fi
16283
16284 # When large executables or shared objects are built, AIX ld can
16285 # have problems creating the table of contents. If linking a library
16286 # or program results in "error TOC overflow" add -mminimal-toc to
16287 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16288 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16289
16290 archive_cmds_GCJ=''
16291 hardcode_direct_GCJ=yes
16292 hardcode_libdir_separator_GCJ=':'
16293 link_all_deplibs_GCJ=yes
16294
16295 if test "$GCC" = yes; then
16296 case $host_os in aix4.[012]|aix4.[012].*)
16297 # We only want to do this on AIX 4.2 and lower, the check
16298 # below for broken collect2 doesn't work under 4.3+
16299 collect2name=`${CC} -print-prog-name=collect2`
16300 if test -f "$collect2name" && \
16301 strings "$collect2name" | grep resolve_lib_name >/dev/null
16302 then
16303 # We have reworked collect2
16304 hardcode_direct_GCJ=yes
16305 else
16306 # We have old collect2
16307 hardcode_direct_GCJ=unsupported
16308 # It fails to find uninstalled libraries when the uninstalled
16309 # path is not listed in the libpath. Setting hardcode_minus_L
16310 # to unsupported forces relinking
16311 hardcode_minus_L_GCJ=yes
16312 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16313 hardcode_libdir_separator_GCJ=
16314 fi
16315 ;;
16316 esac
16317 shared_flag='-shared'
16318 if test "$aix_use_runtimelinking" = yes; then
16319 shared_flag="$shared_flag "'${wl}-G'
16320 fi
16321 else
16322 # not using gcc
16323 if test "$host_cpu" = ia64; then
16324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16325 # chokes on -Wl,-G. The following line is correct:
16326 shared_flag='-G'
16327 else
16328 if test "$aix_use_runtimelinking" = yes; then
16329 shared_flag='${wl}-G'
16330 else
16331 shared_flag='${wl}-bM:SRE'
16332 fi
16333 fi
16334 fi
16335
16336 # It seems that -bexpall does not export symbols beginning with
16337 # underscore (_), so it is better to generate a list of symbols to export.
16338 always_export_symbols_GCJ=yes
16339 if test "$aix_use_runtimelinking" = yes; then
16340 # Warning - without using the other runtime loading flags (-brtl),
16341 # -berok will link without error, but may produce a broken library.
16342 allow_undefined_flag_GCJ='-berok'
16343 # Determine the default libpath from the value encoded in an empty executable.
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350
16351 int
16352 main ()
16353 {
16354
16355 ;
16356 return 0;
16357 }
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_cxx_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest$ac_exeext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381
16382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16383 }'`
16384 # Check for a 64-bit object if we didn't find anything.
16385 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; }
16386 }'`; fi
16387 else
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16390
16391 fi
16392 rm -f conftest.err conftest.$ac_objext \
16393 conftest$ac_exeext conftest.$ac_ext
16394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16395
16396 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16397 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16398 else
16399 if test "$host_cpu" = ia64; then
16400 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16401 allow_undefined_flag_GCJ="-z nodefs"
16402 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16403 else
16404 # Determine the default libpath from the value encoded in an empty executable.
16405 cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h. */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411
16412 int
16413 main ()
16414 {
16415
16416 ;
16417 return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext conftest$ac_exeext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16422 (eval $ac_link) 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
16429 { ac_try='test -z "$ac_cxx_werror_flag"
16430 || test ! -s conftest.err'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; } &&
16436 { ac_try='test -s conftest$ac_exeext'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442
16443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16444 }'`
16445 # Check for a 64-bit object if we didn't find anything.
16446 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; }
16447 }'`; fi
16448 else
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16451
16452 fi
16453 rm -f conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16456
16457 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16458 # Warning - without using the other run time loading flags,
16459 # -berok will link without error, but may produce a broken library.
16460 no_undefined_flag_GCJ=' ${wl}-bernotok'
16461 allow_undefined_flag_GCJ=' ${wl}-berok'
16462 # Exported symbols can be pulled into shared objects from archives
16463 whole_archive_flag_spec_GCJ='$convenience'
16464 archive_cmds_need_lc_GCJ=yes
16465 # This is similar to how AIX traditionally builds its shared libraries.
16466 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16467 fi
16468 fi
16469 ;;
16470
16471 amigaos*)
16472 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)'
16473 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16474 hardcode_minus_L_GCJ=yes
16475 # see comment about different semantics on the GNU ld section
16476 ld_shlibs_GCJ=no
16477 ;;
16478
16479 bsdi[45]*)
16480 export_dynamic_flag_spec_GCJ=-rdynamic
16481 ;;
16482
16483 cygwin* | mingw* | pw32*)
16484 # When not using gcc, we currently assume that we are using
16485 # Microsoft Visual C++.
16486 # hardcode_libdir_flag_spec is actually meaningless, as there is
16487 # no search path for DLLs.
16488 hardcode_libdir_flag_spec_GCJ=' '
16489 allow_undefined_flag_GCJ=unsupported
16490 # Tell ltmain to make .lib files, not .a files.
16491 libext=lib
16492 # Tell ltmain to make .dll files, not .so files.
16493 shrext_cmds=".dll"
16494 # FIXME: Setting linknames here is a bad hack.
16495 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16496 # The linker will automatically build a .lib file if we build a DLL.
16497 old_archive_From_new_cmds_GCJ='true'
16498 # FIXME: Should let the user specify the lib program.
16499 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16500 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16501 enable_shared_with_static_runtimes_GCJ=yes
16502 ;;
16503
16504 darwin* | rhapsody*)
16505 case $host_os in
16506 rhapsody* | darwin1.[012])
16507 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16508 ;;
16509 *) # Darwin 1.3 on
16510 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16511 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16512 else
16513 case ${MACOSX_DEPLOYMENT_TARGET} in
16514 10.[012])
16515 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16516 ;;
16517 10.*)
16518 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16519 ;;
16520 esac
16521 fi
16522 ;;
16523 esac
16524 archive_cmds_need_lc_GCJ=no
16525 hardcode_direct_GCJ=no
16526 hardcode_automatic_GCJ=yes
16527 hardcode_shlibpath_var_GCJ=unsupported
16528 whole_archive_flag_spec_GCJ=''
16529 link_all_deplibs_GCJ=yes
16530 if test "$GCC" = yes ; then
16531 output_verbose_link_cmd='echo'
16532 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16533 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16534 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16535 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16536 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}'
16537 else
16538 case $cc_basename in
16539 xlc*)
16540 output_verbose_link_cmd='echo'
16541 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16542 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16544 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16545 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}'
16546 ;;
16547 *)
16548 ld_shlibs_GCJ=no
16549 ;;
16550 esac
16551 fi
16552 ;;
16553
16554 dgux*)
16555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16557 hardcode_shlibpath_var_GCJ=no
16558 ;;
16559
16560 freebsd1*)
16561 ld_shlibs_GCJ=no
16562 ;;
16563
16564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16565 # support. Future versions do this automatically, but an explicit c++rt0.o
16566 # does not break anything, and helps significantly (at the cost of a little
16567 # extra space).
16568 freebsd2.2*)
16569 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16570 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16571 hardcode_direct_GCJ=yes
16572 hardcode_shlibpath_var_GCJ=no
16573 ;;
16574
16575 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16576 freebsd2*)
16577 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_direct_GCJ=yes
16579 hardcode_minus_L_GCJ=yes
16580 hardcode_shlibpath_var_GCJ=no
16581 ;;
16582
16583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16584 freebsd* | kfreebsd*-gnu | dragonfly*)
16585 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16586 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16587 hardcode_direct_GCJ=yes
16588 hardcode_shlibpath_var_GCJ=no
16589 ;;
16590
16591 hpux9*)
16592 if test "$GCC" = yes; then
16593 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'
16594 else
16595 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'
16596 fi
16597 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16598 hardcode_libdir_separator_GCJ=:
16599 hardcode_direct_GCJ=yes
16600
16601 # hardcode_minus_L: Not really in the search PATH,
16602 # but as the default location of the library.
16603 hardcode_minus_L_GCJ=yes
16604 export_dynamic_flag_spec_GCJ='${wl}-E'
16605 ;;
16606
16607 hpux10*)
16608 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16609 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16610 else
16611 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16612 fi
16613 if test "$with_gnu_ld" = no; then
16614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16615 hardcode_libdir_separator_GCJ=:
16616
16617 hardcode_direct_GCJ=yes
16618 export_dynamic_flag_spec_GCJ='${wl}-E'
16619
16620 # hardcode_minus_L: Not really in the search PATH,
16621 # but as the default location of the library.
16622 hardcode_minus_L_GCJ=yes
16623 fi
16624 ;;
16625
16626 hpux11*)
16627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16628 case $host_cpu in
16629 hppa*64*)
16630 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16631 ;;
16632 ia64*)
16633 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16634 ;;
16635 *)
16636 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16637 ;;
16638 esac
16639 else
16640 case $host_cpu in
16641 hppa*64*)
16642 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16643 ;;
16644 ia64*)
16645 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16646 ;;
16647 *)
16648 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16649 ;;
16650 esac
16651 fi
16652 if test "$with_gnu_ld" = no; then
16653 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16654 hardcode_libdir_separator_GCJ=:
16655
16656 case $host_cpu in
16657 hppa*64*|ia64*)
16658 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16659 hardcode_direct_GCJ=no
16660 hardcode_shlibpath_var_GCJ=no
16661 ;;
16662 *)
16663 hardcode_direct_GCJ=yes
16664 export_dynamic_flag_spec_GCJ='${wl}-E'
16665
16666 # hardcode_minus_L: Not really in the search PATH,
16667 # but as the default location of the library.
16668 hardcode_minus_L_GCJ=yes
16669 ;;
16670 esac
16671 fi
16672 ;;
16673
16674 irix5* | irix6* | nonstopux*)
16675 if test "$GCC" = yes; then
16676 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'
16677 else
16678 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'
16679 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16680 fi
16681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16682 hardcode_libdir_separator_GCJ=:
16683 link_all_deplibs_GCJ=yes
16684 ;;
16685
16686 netbsd*)
16687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16689 else
16690 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16691 fi
16692 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16693 hardcode_direct_GCJ=yes
16694 hardcode_shlibpath_var_GCJ=no
16695 ;;
16696
16697 newsos6)
16698 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_direct_GCJ=yes
16700 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16701 hardcode_libdir_separator_GCJ=:
16702 hardcode_shlibpath_var_GCJ=no
16703 ;;
16704
16705 openbsd*)
16706 hardcode_direct_GCJ=yes
16707 hardcode_shlibpath_var_GCJ=no
16708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16709 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16710 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16712 export_dynamic_flag_spec_GCJ='${wl}-E'
16713 else
16714 case $host_os in
16715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16716 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16718 ;;
16719 *)
16720 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16722 ;;
16723 esac
16724 fi
16725 ;;
16726
16727 os2*)
16728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729 hardcode_minus_L_GCJ=yes
16730 allow_undefined_flag_GCJ=unsupported
16731 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'
16732 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16733 ;;
16734
16735 osf3*)
16736 if test "$GCC" = yes; then
16737 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16738 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'
16739 else
16740 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16741 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'
16742 fi
16743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744 hardcode_libdir_separator_GCJ=:
16745 ;;
16746
16747 osf4* | osf5*) # as osf3* with the addition of -msym flag
16748 if test "$GCC" = yes; then
16749 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16750 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'
16751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16752 else
16753 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16754 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'
16755 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~
16756 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16757
16758 # Both c and cxx compiler support -rpath directly
16759 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16760 fi
16761 hardcode_libdir_separator_GCJ=:
16762 ;;
16763
16764 solaris*)
16765 no_undefined_flag_GCJ=' -z text'
16766 if test "$GCC" = yes; then
16767 wlarc='${wl}'
16768 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16771 else
16772 wlarc=''
16773 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16775 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16776 fi
16777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778 hardcode_shlibpath_var_GCJ=no
16779 case $host_os in
16780 solaris2.[0-5] | solaris2.[0-5].*) ;;
16781 *)
16782 # The compiler driver will combine linker options so we
16783 # cannot just pass the convience library names through
16784 # without $wl, iff we do not link with $LD.
16785 # Luckily, gcc supports the same syntax we need for Sun Studio.
16786 # Supported since Solaris 2.6 (maybe 2.5.1?)
16787 case $wlarc in
16788 '')
16789 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16790 *)
16791 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16792 esac ;;
16793 esac
16794 link_all_deplibs_GCJ=yes
16795 ;;
16796
16797 sunos4*)
16798 if test "x$host_vendor" = xsequent; then
16799 # Use $CC to link under sequent, because it throws in some extra .o
16800 # files that make .init and .fini sections work.
16801 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16802 else
16803 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16804 fi
16805 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806 hardcode_direct_GCJ=yes
16807 hardcode_minus_L_GCJ=yes
16808 hardcode_shlibpath_var_GCJ=no
16809 ;;
16810
16811 sysv4)
16812 case $host_vendor in
16813 sni)
16814 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815 hardcode_direct_GCJ=yes # is this really true???
16816 ;;
16817 siemens)
16818 ## LD is ld it makes a PLAMLIB
16819 ## CC just makes a GrossModule.
16820 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16821 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16822 hardcode_direct_GCJ=no
16823 ;;
16824 motorola)
16825 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16827 ;;
16828 esac
16829 runpath_var='LD_RUN_PATH'
16830 hardcode_shlibpath_var_GCJ=no
16831 ;;
16832
16833 sysv4.3*)
16834 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835 hardcode_shlibpath_var_GCJ=no
16836 export_dynamic_flag_spec_GCJ='-Bexport'
16837 ;;
16838
16839 sysv4*MP*)
16840 if test -d /usr/nec; then
16841 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842 hardcode_shlibpath_var_GCJ=no
16843 runpath_var=LD_RUN_PATH
16844 hardcode_runpath_var=yes
16845 ld_shlibs_GCJ=yes
16846 fi
16847 ;;
16848
16849 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16850 no_undefined_flag_GCJ='${wl}-z,text'
16851 archive_cmds_need_lc_GCJ=no
16852 hardcode_shlibpath_var_GCJ=no
16853 runpath_var='LD_RUN_PATH'
16854
16855 if test "$GCC" = yes; then
16856 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16857 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16858 else
16859 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16860 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16861 fi
16862 ;;
16863
16864 sysv5* | sco3.2v5* | sco5v6*)
16865 # Note: We can NOT use -z defs as we might desire, because we do not
16866 # link with -lc, and that would cause any symbols used from libc to
16867 # always be unresolved, which means just about no library would
16868 # ever link correctly. If we're not using GNU ld we use -z text
16869 # though, which does catch some bad symbols but isn't as heavy-handed
16870 # as -z defs.
16871 no_undefined_flag_GCJ='${wl}-z,text'
16872 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16873 archive_cmds_need_lc_GCJ=no
16874 hardcode_shlibpath_var_GCJ=no
16875 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16876 hardcode_libdir_separator_GCJ=':'
16877 link_all_deplibs_GCJ=yes
16878 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16879 runpath_var='LD_RUN_PATH'
16880
16881 if test "$GCC" = yes; then
16882 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16884 else
16885 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16886 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16887 fi
16888 ;;
16889
16890 uts4*)
16891 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16893 hardcode_shlibpath_var_GCJ=no
16894 ;;
16895
16896 *)
16897 ld_shlibs_GCJ=no
16898 ;;
16899 esac
16900 fi
16901
16902 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16903 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16904 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16905
16906 #
16907 # Do we need to explicitly link libc?
16908 #
16909 case "x$archive_cmds_need_lc_GCJ" in
16910 x|xyes)
16911 # Assume -lc should be added
16912 archive_cmds_need_lc_GCJ=yes
16913
16914 if test "$enable_shared" = yes && test "$GCC" = yes; then
16915 case $archive_cmds_GCJ in
16916 *'~'*)
16917 # FIXME: we may have to deal with multi-command sequences.
16918 ;;
16919 '$CC '*)
16920 # Test whether the compiler implicitly links with -lc since on some
16921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16922 # to ld, don't add -lc before -lgcc.
16923 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16924 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16925 $rm conftest*
16926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16927
16928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929 (eval $ac_compile) 2>&5
16930 ac_status=$?
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } 2>conftest.err; then
16933 soname=conftest
16934 lib=conftest
16935 libobjs=conftest.$ac_objext
16936 deplibs=
16937 wl=$lt_prog_compiler_wl_GCJ
16938 pic_flag=$lt_prog_compiler_pic_GCJ
16939 compiler_flags=-v
16940 linker_flags=-v
16941 verstring=
16942 output_objdir=.
16943 libname=conftest
16944 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16945 allow_undefined_flag_GCJ=
16946 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16947 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }
16951 then
16952 archive_cmds_need_lc_GCJ=no
16953 else
16954 archive_cmds_need_lc_GCJ=yes
16955 fi
16956 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16957 else
16958 cat conftest.err 1>&5
16959 fi
16960 $rm conftest*
16961 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16962 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16963 ;;
16964 esac
16965 fi
16966 ;;
16967 esac
16968
16969 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16970 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16971 library_names_spec=
16972 libname_spec='lib$name'
16973 soname_spec=
16974 shrext_cmds=".so"
16975 postinstall_cmds=
16976 postuninstall_cmds=
16977 finish_cmds=
16978 finish_eval=
16979 shlibpath_var=
16980 shlibpath_overrides_runpath=unknown
16981 version_type=none
16982 dynamic_linker="$host_os ld.so"
16983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16984 if test "$GCC" = yes; then
16985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16986 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16987 # if the path contains ";" then we assume it to be the separator
16988 # otherwise default to the standard path separator (i.e. ":") - it is
16989 # assumed that no part of a normal pathname contains ";" but that should
16990 # okay in the real world where ";" in dirpaths is itself problematic.
16991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16992 else
16993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16994 fi
16995 else
16996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16997 fi
16998 need_lib_prefix=unknown
16999 hardcode_into_libs=no
17000
17001 # when you set need_version to no, make sure it does not cause -set_version
17002 # flags to be left without arguments
17003 need_version=unknown
17004
17005 case $host_os in
17006 aix3*)
17007 version_type=linux
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17009 shlibpath_var=LIBPATH
17010
17011 # AIX 3 has no versioning support, so we append a major version to the name.
17012 soname_spec='${libname}${release}${shared_ext}$major'
17013 ;;
17014
17015 aix4* | aix5*)
17016 version_type=linux
17017 need_lib_prefix=no
17018 need_version=no
17019 hardcode_into_libs=yes
17020 if test "$host_cpu" = ia64; then
17021 # AIX 5 supports IA64
17022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17023 shlibpath_var=LD_LIBRARY_PATH
17024 else
17025 # With GCC up to 2.95.x, collect2 would create an import file
17026 # for dependence libraries. The import file would start with
17027 # the line `#! .'. This would cause the generated library to
17028 # depend on `.', always an invalid library. This was fixed in
17029 # development snapshots of GCC prior to 3.0.
17030 case $host_os in
17031 aix4 | aix4.[01] | aix4.[01].*)
17032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17033 echo ' yes '
17034 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17035 :
17036 else
17037 can_build_shared=no
17038 fi
17039 ;;
17040 esac
17041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17042 # soname into executable. Probably we can add versioning support to
17043 # collect2, so additional links can be useful in future.
17044 if test "$aix_use_runtimelinking" = yes; then
17045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17046 # instead of lib<name>.a to let people know that these are not
17047 # typical AIX shared libraries.
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049 else
17050 # We preserve .a as extension for shared libraries through AIX4.2
17051 # and later when we are not doing run time linking.
17052 library_names_spec='${libname}${release}.a $libname.a'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 fi
17055 shlibpath_var=LIBPATH
17056 fi
17057 ;;
17058
17059 amigaos*)
17060 library_names_spec='$libname.ixlibrary $libname.a'
17061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17062 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'
17063 ;;
17064
17065 beos*)
17066 library_names_spec='${libname}${shared_ext}'
17067 dynamic_linker="$host_os ld.so"
17068 shlibpath_var=LIBRARY_PATH
17069 ;;
17070
17071 bsdi[45]*)
17072 version_type=linux
17073 need_version=no
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17080 # the default ld.so.conf also contains /usr/contrib/lib and
17081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17082 # libtool to hard-code these into programs
17083 ;;
17084
17085 cygwin* | mingw* | pw32*)
17086 version_type=windows
17087 shrext_cmds=".dll"
17088 need_version=no
17089 need_lib_prefix=no
17090
17091 case $GCC,$host_os in
17092 yes,cygwin* | yes,mingw* | yes,pw32*)
17093 library_names_spec='$libname.dll.a'
17094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17095 postinstall_cmds='base_file=`basename \${file}`~
17096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17097 dldir=$destdir/`dirname \$dlpath`~
17098 test -d \$dldir || mkdir -p \$dldir~
17099 $install_prog $dir/$dlname \$dldir/$dlname~
17100 chmod a+x \$dldir/$dlname'
17101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17102 dlpath=$dir/\$dldll~
17103 $rm \$dlpath'
17104 shlibpath_overrides_runpath=yes
17105
17106 case $host_os in
17107 cygwin*)
17108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17110 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17111 ;;
17112 mingw*)
17113 # MinGW DLLs use traditional 'lib' prefix
17114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17116 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17117 # It is most probably a Windows format PATH printed by
17118 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17119 # path with ; separators, and with drive letters. We can handle the
17120 # drive letters (cygwin fileutils understands them), so leave them,
17121 # especially as we might pass files found there to a mingw objdump,
17122 # which wouldn't understand a cygwinified path. Ahh.
17123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17124 else
17125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17126 fi
17127 ;;
17128 pw32*)
17129 # pw32 DLLs use 'pw' prefix rather than 'lib'
17130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17131 ;;
17132 esac
17133 ;;
17134
17135 linux*)
17136 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17138 supports_anon_versioning=no
17139 case `$LD -v 2>/dev/null` in
17140 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17141 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17142 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17143 *\ 2.11.*) ;; # other 2.11 versions
17144 *) supports_anon_versioning=yes ;;
17145 esac
17146 if test $supports_anon_versioning = yes; then
17147 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17149 $echo "local: *; };" >> $output_objdir/$libname.ver~
17150 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17151 else
17152 $archive_expsym_cmds="$archive_cmds"
17153 fi
17154 else
17155 ld_shlibs=no
17156 fi
17157 ;;
17158
17159 *)
17160 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17161 ;;
17162 esac
17163 dynamic_linker='Win32 ld.exe'
17164 # FIXME: first we should search . and the directory the executable is in
17165 shlibpath_var=PATH
17166 ;;
17167
17168 darwin* | rhapsody*)
17169 dynamic_linker="$host_os dyld"
17170 version_type=darwin
17171 need_lib_prefix=no
17172 need_version=no
17173 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17174 soname_spec='${libname}${release}${major}$shared_ext'
17175 shlibpath_overrides_runpath=yes
17176 shlibpath_var=DYLD_LIBRARY_PATH
17177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17178 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17179 if test "$GCC" = yes; then
17180 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"`
17181 else
17182 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17183 fi
17184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17185 ;;
17186
17187 dgux*)
17188 version_type=linux
17189 need_lib_prefix=no
17190 need_version=no
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 shlibpath_var=LD_LIBRARY_PATH
17194 ;;
17195
17196 freebsd1*)
17197 dynamic_linker=no
17198 ;;
17199
17200 kfreebsd*-gnu)
17201 version_type=linux
17202 need_lib_prefix=no
17203 need_version=no
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17205 soname_spec='${libname}${release}${shared_ext}$major'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 shlibpath_overrides_runpath=no
17208 hardcode_into_libs=yes
17209 dynamic_linker='GNU ld.so'
17210 ;;
17211
17212 freebsd* | dragonfly*)
17213 # DragonFly does not have aout. When/if they implement a new
17214 # versioning mechanism, adjust this.
17215 if test -x /usr/bin/objformat; then
17216 objformat=`/usr/bin/objformat`
17217 else
17218 case $host_os in
17219 freebsd[123]*) objformat=aout ;;
17220 *) objformat=elf ;;
17221 esac
17222 fi
17223 # Handle Gentoo/FreeBSD as it was Linux
17224 case $host_vendor in
17225 gentoo)
17226 version_type=linux ;;
17227 *)
17228 version_type=freebsd-$objformat ;;
17229 esac
17230
17231 case $version_type in
17232 freebsd-elf*)
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17234 need_version=no
17235 need_lib_prefix=no
17236 ;;
17237 freebsd-*)
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17239 need_version=yes
17240 ;;
17241 linux)
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 need_lib_prefix=no
17245 need_version=no
17246 ;;
17247 esac
17248 shlibpath_var=LD_LIBRARY_PATH
17249 case $host_os in
17250 freebsd2*)
17251 shlibpath_overrides_runpath=yes
17252 ;;
17253 freebsd3.[01]* | freebsdelf3.[01]*)
17254 shlibpath_overrides_runpath=yes
17255 hardcode_into_libs=yes
17256 ;;
17257 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17258 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17259 shlibpath_overrides_runpath=no
17260 hardcode_into_libs=yes
17261 ;;
17262 freebsd*) # from 4.6 on
17263 shlibpath_overrides_runpath=yes
17264 hardcode_into_libs=yes
17265 ;;
17266 esac
17267 ;;
17268
17269 gnu*)
17270 version_type=linux
17271 need_lib_prefix=no
17272 need_version=no
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 shlibpath_var=LD_LIBRARY_PATH
17276 hardcode_into_libs=yes
17277 ;;
17278
17279 hpux9* | hpux10* | hpux11*)
17280 # Give a soname corresponding to the major version so that dld.sl refuses to
17281 # link against other versions.
17282 version_type=sunos
17283 need_lib_prefix=no
17284 need_version=no
17285 case $host_cpu in
17286 ia64*)
17287 shrext_cmds='.so'
17288 hardcode_into_libs=yes
17289 dynamic_linker="$host_os dld.so"
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 if test "X$HPUX_IA64_MODE" = X32; then
17295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17296 else
17297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17298 fi
17299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17300 ;;
17301 hppa*64*)
17302 shrext_cmds='.sl'
17303 hardcode_into_libs=yes
17304 dynamic_linker="$host_os dld.sl"
17305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17311 ;;
17312 *)
17313 shrext_cmds='.sl'
17314 dynamic_linker="$host_os dld.sl"
17315 shlibpath_var=SHLIB_PATH
17316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec='${libname}${release}${shared_ext}$major'
17319 ;;
17320 esac
17321 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17322 postinstall_cmds='chmod 555 $lib'
17323 ;;
17324
17325 interix3*)
17326 version_type=linux
17327 need_lib_prefix=no
17328 need_version=no
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 shlibpath_overrides_runpath=no
17334 hardcode_into_libs=yes
17335 ;;
17336
17337 irix5* | irix6* | nonstopux*)
17338 case $host_os in
17339 nonstopux*) version_type=nonstopux ;;
17340 *)
17341 if test "$lt_cv_prog_gnu_ld" = yes; then
17342 version_type=linux
17343 else
17344 version_type=irix
17345 fi ;;
17346 esac
17347 need_lib_prefix=no
17348 need_version=no
17349 soname_spec='${libname}${release}${shared_ext}$major'
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17351 case $host_os in
17352 irix5* | nonstopux*)
17353 libsuff= shlibsuff=
17354 ;;
17355 *)
17356 case $LD in # libtool.m4 will add one of these switches to LD
17357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17358 libsuff= shlibsuff= libmagic=32-bit;;
17359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17360 libsuff=32 shlibsuff=N32 libmagic=N32;;
17361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17363 *) libsuff= shlibsuff= libmagic=never-match;;
17364 esac
17365 ;;
17366 esac
17367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17368 shlibpath_overrides_runpath=no
17369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17371 hardcode_into_libs=yes
17372 ;;
17373
17374 # No shared lib support for Linux oldld, aout, or coff.
17375 linux*oldld* | linux*aout* | linux*coff*)
17376 dynamic_linker=no
17377 ;;
17378
17379 # This must be Linux ELF.
17380 linux*)
17381 version_type=linux
17382 need_lib_prefix=no
17383 need_version=no
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385 soname_spec='${libname}${release}${shared_ext}$major'
17386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17387 shlibpath_var=LD_LIBRARY_PATH
17388 shlibpath_overrides_runpath=no
17389 # This implies no fast_install, which is unacceptable.
17390 # Some rework will be needed to allow for fast_install
17391 # before this can be enabled.
17392 hardcode_into_libs=yes
17393
17394 # Append ld.so.conf contents to the search path
17395 if test -f /etc/ld.so.conf; then
17396 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17398 fi
17399
17400 # We used to test for /lib/ld.so.1 and disable shared libraries on
17401 # powerpc, because MkLinux only supported shared libraries with the
17402 # GNU dynamic linker. Since this was broken with cross compilers,
17403 # most powerpc-linux boxes support dynamic linking these days and
17404 # people can always --disable-shared, the test was removed, and we
17405 # assume the GNU/Linux dynamic linker is in use.
17406 dynamic_linker='GNU/Linux ld.so'
17407 ;;
17408
17409 knetbsd*-gnu)
17410 version_type=linux
17411 need_lib_prefix=no
17412 need_version=no
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17414 soname_spec='${libname}${release}${shared_ext}$major'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 shlibpath_overrides_runpath=no
17417 hardcode_into_libs=yes
17418 dynamic_linker='GNU ld.so'
17419 ;;
17420
17421 netbsd*)
17422 version_type=sunos
17423 need_lib_prefix=no
17424 need_version=no
17425 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17428 dynamic_linker='NetBSD (a.out) ld.so'
17429 else
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 dynamic_linker='NetBSD ld.elf_so'
17433 fi
17434 shlibpath_var=LD_LIBRARY_PATH
17435 shlibpath_overrides_runpath=yes
17436 hardcode_into_libs=yes
17437 ;;
17438
17439 newsos6)
17440 version_type=linux
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=yes
17444 ;;
17445
17446 nto-qnx*)
17447 version_type=linux
17448 need_lib_prefix=no
17449 need_version=no
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451 soname_spec='${libname}${release}${shared_ext}$major'
17452 shlibpath_var=LD_LIBRARY_PATH
17453 shlibpath_overrides_runpath=yes
17454 ;;
17455
17456 openbsd*)
17457 version_type=sunos
17458 sys_lib_dlsearch_path_spec="/usr/lib"
17459 need_lib_prefix=no
17460 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17461 case $host_os in
17462 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17463 *) need_version=no ;;
17464 esac
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17469 case $host_os in
17470 openbsd2.[89] | openbsd2.[89].*)
17471 shlibpath_overrides_runpath=no
17472 ;;
17473 *)
17474 shlibpath_overrides_runpath=yes
17475 ;;
17476 esac
17477 else
17478 shlibpath_overrides_runpath=yes
17479 fi
17480 ;;
17481
17482 os2*)
17483 libname_spec='$name'
17484 shrext_cmds=".dll"
17485 need_lib_prefix=no
17486 library_names_spec='$libname${shared_ext} $libname.a'
17487 dynamic_linker='OS/2 ld.exe'
17488 shlibpath_var=LIBPATH
17489 ;;
17490
17491 osf3* | osf4* | osf5*)
17492 version_type=osf
17493 need_lib_prefix=no
17494 need_version=no
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17497 shlibpath_var=LD_LIBRARY_PATH
17498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17500 ;;
17501
17502 solaris*)
17503 version_type=linux
17504 need_lib_prefix=no
17505 need_version=no
17506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 shlibpath_overrides_runpath=yes
17510 hardcode_into_libs=yes
17511 # ldd complains unless libraries are executable
17512 postinstall_cmds='chmod +x $lib'
17513 ;;
17514
17515 sunos4*)
17516 version_type=sunos
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17518 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath=yes
17521 if test "$with_gnu_ld" = yes; then
17522 need_lib_prefix=no
17523 fi
17524 need_version=yes
17525 ;;
17526
17527 sysv4 | sysv4.3*)
17528 version_type=linux
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530 soname_spec='${libname}${release}${shared_ext}$major'
17531 shlibpath_var=LD_LIBRARY_PATH
17532 case $host_vendor in
17533 sni)
17534 shlibpath_overrides_runpath=no
17535 need_lib_prefix=no
17536 export_dynamic_flag_spec='${wl}-Blargedynsym'
17537 runpath_var=LD_RUN_PATH
17538 ;;
17539 siemens)
17540 need_lib_prefix=no
17541 ;;
17542 motorola)
17543 need_lib_prefix=no
17544 need_version=no
17545 shlibpath_overrides_runpath=no
17546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17547 ;;
17548 esac
17549 ;;
17550
17551 sysv4*MP*)
17552 if test -d /usr/nec ;then
17553 version_type=linux
17554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17555 soname_spec='$libname${shared_ext}.$major'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 fi
17558 ;;
17559
17560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17561 version_type=freebsd-elf
17562 need_lib_prefix=no
17563 need_version=no
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 hardcode_into_libs=yes
17568 if test "$with_gnu_ld" = yes; then
17569 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17570 shlibpath_overrides_runpath=no
17571 else
17572 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17573 shlibpath_overrides_runpath=yes
17574 case $host_os in
17575 sco3.2v5*)
17576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17577 ;;
17578 esac
17579 fi
17580 sys_lib_dlsearch_path_spec='/usr/lib'
17581 ;;
17582
17583 uts4*)
17584 version_type=linux
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17588 ;;
17589
17590 *)
17591 dynamic_linker=no
17592 ;;
17593 esac
17594 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17595 echo "${ECHO_T}$dynamic_linker" >&6
17596 test "$dynamic_linker" = no && can_build_shared=no
17597
17598 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17599 if test "$GCC" = yes; then
17600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17601 fi
17602
17603 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17604 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17605 hardcode_action_GCJ=
17606 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17607 test -n "$runpath_var_GCJ" || \
17608 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17609
17610 # We can hardcode non-existant directories.
17611 if test "$hardcode_direct_GCJ" != no &&
17612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17613 # have to relink, otherwise we might link with an installed library
17614 # when we should be linking with a yet-to-be-installed one
17615 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17616 test "$hardcode_minus_L_GCJ" != no; then
17617 # Linking always hardcodes the temporary library directory.
17618 hardcode_action_GCJ=relink
17619 else
17620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17621 hardcode_action_GCJ=immediate
17622 fi
17623 else
17624 # We cannot hardcode anything, or else we can only hardcode existing
17625 # directories.
17626 hardcode_action_GCJ=unsupported
17627 fi
17628 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17629 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17630
17631 if test "$hardcode_action_GCJ" = relink; then
17632 # Fast installation is not supported
17633 enable_fast_install=no
17634 elif test "$shlibpath_overrides_runpath" = yes ||
17635 test "$enable_shared" = no; then
17636 # Fast installation is not necessary
17637 enable_fast_install=needless
17638 fi
17639
17640
17641 # The else clause should only fire when bootstrapping the
17642 # libtool distribution, otherwise you forgot to ship ltmain.sh
17643 # with your package, and you will get complaints that there are
17644 # no rules to generate ltmain.sh.
17645 if test -f "$ltmain"; then
17646 # See if we are running on zsh, and set the options which allow our commands through
17647 # without removal of \ escapes.
17648 if test -n "${ZSH_VERSION+set}" ; then
17649 setopt NO_GLOB_SUBST
17650 fi
17651 # Now quote all the things that may contain metacharacters while being
17652 # careful not to overquote the AC_SUBSTed values. We take copies of the
17653 # variables and quote the copies for generation of the libtool script.
17654 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17655 SED SHELL STRIP \
17656 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17657 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17658 deplibs_check_method reload_flag reload_cmds need_locks \
17659 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17660 lt_cv_sys_global_symbol_to_c_name_address \
17661 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17662 old_postinstall_cmds old_postuninstall_cmds \
17663 compiler_GCJ \
17664 CC_GCJ \
17665 LD_GCJ \
17666 lt_prog_compiler_wl_GCJ \
17667 lt_prog_compiler_pic_GCJ \
17668 lt_prog_compiler_static_GCJ \
17669 lt_prog_compiler_no_builtin_flag_GCJ \
17670 export_dynamic_flag_spec_GCJ \
17671 thread_safe_flag_spec_GCJ \
17672 whole_archive_flag_spec_GCJ \
17673 enable_shared_with_static_runtimes_GCJ \
17674 old_archive_cmds_GCJ \
17675 old_archive_from_new_cmds_GCJ \
17676 predep_objects_GCJ \
17677 postdep_objects_GCJ \
17678 predeps_GCJ \
17679 postdeps_GCJ \
17680 compiler_lib_search_path_GCJ \
17681 archive_cmds_GCJ \
17682 archive_expsym_cmds_GCJ \
17683 postinstall_cmds_GCJ \
17684 postuninstall_cmds_GCJ \
17685 old_archive_from_expsyms_cmds_GCJ \
17686 allow_undefined_flag_GCJ \
17687 no_undefined_flag_GCJ \
17688 export_symbols_cmds_GCJ \
17689 hardcode_libdir_flag_spec_GCJ \
17690 hardcode_libdir_flag_spec_ld_GCJ \
17691 hardcode_libdir_separator_GCJ \
17692 hardcode_automatic_GCJ \
17693 module_cmds_GCJ \
17694 module_expsym_cmds_GCJ \
17695 lt_cv_prog_compiler_c_o_GCJ \
17696 exclude_expsyms_GCJ \
17697 include_expsyms_GCJ; do
17698
17699 case $var in
17700 old_archive_cmds_GCJ | \
17701 old_archive_from_new_cmds_GCJ | \
17702 archive_cmds_GCJ | \
17703 archive_expsym_cmds_GCJ | \
17704 module_cmds_GCJ | \
17705 module_expsym_cmds_GCJ | \
17706 old_archive_from_expsyms_cmds_GCJ | \
17707 export_symbols_cmds_GCJ | \
17708 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17709 postinstall_cmds | postuninstall_cmds | \
17710 old_postinstall_cmds | old_postuninstall_cmds | \
17711 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17712 # Double-quote double-evaled strings.
17713 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17714 ;;
17715 *)
17716 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17717 ;;
17718 esac
17719 done
17720
17721 case $lt_echo in
17722 *'\$0 --fallback-echo"')
17723 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17724 ;;
17725 esac
17726
17727 cfgfile="$ofile"
17728
17729 cat <<__EOF__ >> "$cfgfile"
17730 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17731
17732 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17733
17734 # Shell to use when invoking shell scripts.
17735 SHELL=$lt_SHELL
17736
17737 # Whether or not to build shared libraries.
17738 build_libtool_libs=$enable_shared
17739
17740 # Whether or not to build static libraries.
17741 build_old_libs=$enable_static
17742
17743 # Whether or not to add -lc for building shared libraries.
17744 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17745
17746 # Whether or not to disallow shared libs when runtime libs are static
17747 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17748
17749 # Whether or not to optimize for fast installation.
17750 fast_install=$enable_fast_install
17751
17752 # The host system.
17753 host_alias=$host_alias
17754 host=$host
17755 host_os=$host_os
17756
17757 # The build system.
17758 build_alias=$build_alias
17759 build=$build
17760 build_os=$build_os
17761
17762 # An echo program that does not interpret backslashes.
17763 echo=$lt_echo
17764
17765 # The archiver.
17766 AR=$lt_AR
17767 AR_FLAGS=$lt_AR_FLAGS
17768
17769 # A C compiler.
17770 LTCC=$lt_LTCC
17771
17772 # LTCC compiler flags.
17773 LTCFLAGS=$lt_LTCFLAGS
17774
17775 # A language-specific compiler.
17776 CC=$lt_compiler_GCJ
17777
17778 # Is the compiler the GNU C compiler?
17779 with_gcc=$GCC_GCJ
17780
17781 # An ERE matcher.
17782 EGREP=$lt_EGREP
17783
17784 # The linker used to build libraries.
17785 LD=$lt_LD_GCJ
17786
17787 # Whether we need hard or soft links.
17788 LN_S=$lt_LN_S
17789
17790 # A BSD-compatible nm program.
17791 NM=$lt_NM
17792
17793 # A symbol stripping program
17794 STRIP=$lt_STRIP
17795
17796 # Used to examine libraries when file_magic_cmd begins "file"
17797 MAGIC_CMD=$MAGIC_CMD
17798
17799 # Used on cygwin: DLL creation program.
17800 DLLTOOL="$DLLTOOL"
17801
17802 # Used on cygwin: object dumper.
17803 OBJDUMP="$OBJDUMP"
17804
17805 # Used on cygwin: assembler.
17806 AS="$AS"
17807
17808 # The name of the directory that contains temporary libtool files.
17809 objdir=$objdir
17810
17811 # How to create reloadable object files.
17812 reload_flag=$lt_reload_flag
17813 reload_cmds=$lt_reload_cmds
17814
17815 # How to pass a linker flag through the compiler.
17816 wl=$lt_lt_prog_compiler_wl_GCJ
17817
17818 # Object file suffix (normally "o").
17819 objext="$ac_objext"
17820
17821 # Old archive suffix (normally "a").
17822 libext="$libext"
17823
17824 # Shared library suffix (normally ".so").
17825 shrext_cmds='$shrext_cmds'
17826
17827 # Executable file suffix (normally "").
17828 exeext="$exeext"
17829
17830 # Additional compiler flags for building library objects.
17831 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17832 pic_mode=$pic_mode
17833
17834 # What is the maximum length of a command?
17835 max_cmd_len=$lt_cv_sys_max_cmd_len
17836
17837 # Does compiler simultaneously support -c and -o options?
17838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17839
17840 # Must we lock files when doing compilation?
17841 need_locks=$lt_need_locks
17842
17843 # Do we need the lib prefix for modules?
17844 need_lib_prefix=$need_lib_prefix
17845
17846 # Do we need a version for libraries?
17847 need_version=$need_version
17848
17849 # Whether dlopen is supported.
17850 dlopen_support=$enable_dlopen
17851
17852 # Whether dlopen of programs is supported.
17853 dlopen_self=$enable_dlopen_self
17854
17855 # Whether dlopen of statically linked programs is supported.
17856 dlopen_self_static=$enable_dlopen_self_static
17857
17858 # Compiler flag to prevent dynamic linking.
17859 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17860
17861 # Compiler flag to turn off builtin functions.
17862 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17863
17864 # Compiler flag to allow reflexive dlopens.
17865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17866
17867 # Compiler flag to generate shared objects directly from archives.
17868 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17869
17870 # Compiler flag to generate thread-safe objects.
17871 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17872
17873 # Library versioning type.
17874 version_type=$version_type
17875
17876 # Format of library name prefix.
17877 libname_spec=$lt_libname_spec
17878
17879 # List of archive names. First name is the real one, the rest are links.
17880 # The last name is the one that the linker finds with -lNAME.
17881 library_names_spec=$lt_library_names_spec
17882
17883 # The coded name of the library, if different from the real name.
17884 soname_spec=$lt_soname_spec
17885
17886 # Commands used to build and install an old-style archive.
17887 RANLIB=$lt_RANLIB
17888 old_archive_cmds=$lt_old_archive_cmds_GCJ
17889 old_postinstall_cmds=$lt_old_postinstall_cmds
17890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17891
17892 # Create an old-style archive from a shared archive.
17893 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17894
17895 # Create a temporary old-style archive to link instead of a shared archive.
17896 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17897
17898 # Commands used to build and install a shared archive.
17899 archive_cmds=$lt_archive_cmds_GCJ
17900 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17901 postinstall_cmds=$lt_postinstall_cmds
17902 postuninstall_cmds=$lt_postuninstall_cmds
17903
17904 # Commands used to build a loadable module (assumed same as above if empty)
17905 module_cmds=$lt_module_cmds_GCJ
17906 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17907
17908 # Commands to strip libraries.
17909 old_striplib=$lt_old_striplib
17910 striplib=$lt_striplib
17911
17912 # Dependencies to place before the objects being linked to create a
17913 # shared library.
17914 predep_objects=$lt_predep_objects_GCJ
17915
17916 # Dependencies to place after the objects being linked to create a
17917 # shared library.
17918 postdep_objects=$lt_postdep_objects_GCJ
17919
17920 # Dependencies to place before the objects being linked to create a
17921 # shared library.
17922 predeps=$lt_predeps_GCJ
17923
17924 # Dependencies to place after the objects being linked to create a
17925 # shared library.
17926 postdeps=$lt_postdeps_GCJ
17927
17928 # The library search path used internally by the compiler when linking
17929 # a shared library.
17930 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17931
17932 # Method to check whether dependent libraries are shared objects.
17933 deplibs_check_method=$lt_deplibs_check_method
17934
17935 # Command to use when deplibs_check_method == file_magic.
17936 file_magic_cmd=$lt_file_magic_cmd
17937
17938 # Flag that allows shared libraries with undefined symbols to be built.
17939 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17940
17941 # Flag that forces no undefined symbols.
17942 no_undefined_flag=$lt_no_undefined_flag_GCJ
17943
17944 # Commands used to finish a libtool library installation in a directory.
17945 finish_cmds=$lt_finish_cmds
17946
17947 # Same as above, but a single script fragment to be evaled but not shown.
17948 finish_eval=$lt_finish_eval
17949
17950 # Take the output of nm and produce a listing of raw symbols and C names.
17951 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17952
17953 # Transform the output of nm in a proper C declaration
17954 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17955
17956 # Transform the output of nm in a C name address pair
17957 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17958
17959 # This is the shared library runtime path variable.
17960 runpath_var=$runpath_var
17961
17962 # This is the shared library path variable.
17963 shlibpath_var=$shlibpath_var
17964
17965 # Is shlibpath searched before the hard-coded library search path?
17966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17967
17968 # How to hardcode a shared library path into an executable.
17969 hardcode_action=$hardcode_action_GCJ
17970
17971 # Whether we should hardcode library paths into libraries.
17972 hardcode_into_libs=$hardcode_into_libs
17973
17974 # Flag to hardcode \$libdir into a binary during linking.
17975 # This must work even if \$libdir does not exist.
17976 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17977
17978 # If ld is used when linking, flag to hardcode \$libdir into
17979 # a binary during linking. This must work even if \$libdir does
17980 # not exist.
17981 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17982
17983 # Whether we need a single -rpath flag with a separated argument.
17984 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17985
17986 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17987 # resulting binary.
17988 hardcode_direct=$hardcode_direct_GCJ
17989
17990 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17991 # resulting binary.
17992 hardcode_minus_L=$hardcode_minus_L_GCJ
17993
17994 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17995 # the resulting binary.
17996 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17997
17998 # Set to yes if building a shared library automatically hardcodes DIR into the library
17999 # and all subsequent libraries and executables linked against it.
18000 hardcode_automatic=$hardcode_automatic_GCJ
18001
18002 # Variables whose values should be saved in libtool wrapper scripts and
18003 # restored at relink time.
18004 variables_saved_for_relink="$variables_saved_for_relink"
18005
18006 # Whether libtool must link a program against all its dependency libraries.
18007 link_all_deplibs=$link_all_deplibs_GCJ
18008
18009 # Compile-time system search path for libraries
18010 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18011
18012 # Run-time system search path for libraries
18013 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18014
18015 # Fix the shell variable \$srcfile for the compiler.
18016 fix_srcfile_path="$fix_srcfile_path_GCJ"
18017
18018 # Set to yes if exported symbols are required.
18019 always_export_symbols=$always_export_symbols_GCJ
18020
18021 # The commands to list exported symbols.
18022 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18023
18024 # The commands to extract the exported symbol list from a shared archive.
18025 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18026
18027 # Symbols that should not be listed in the preloaded symbols.
18028 exclude_expsyms=$lt_exclude_expsyms_GCJ
18029
18030 # Symbols that must always be exported.
18031 include_expsyms=$lt_include_expsyms_GCJ
18032
18033 # ### END LIBTOOL TAG CONFIG: $tagname
18034
18035 __EOF__
18036
18037
18038 else
18039 # If there is no Makefile yet, we rely on a make rule to execute
18040 # `config.status --recheck' to rerun these tests and create the
18041 # libtool script then.
18042 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18043 if test -f "$ltmain_in"; then
18044 test -f Makefile && make "$ltmain"
18045 fi
18046 fi
18047
18048
18049 ac_ext=cc
18050 ac_cpp='$CXXCPP $CPPFLAGS'
18051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18054
18055 CC="$lt_save_CC"
18056
18057 else
18058 tagname=""
18059 fi
18060 ;;
18061
18062 RC)
18063
18064
18065
18066 # Source file extension for RC test sources.
18067 ac_ext=rc
18068
18069 # Object file extension for compiled RC test sources.
18070 objext=o
18071 objext_RC=$objext
18072
18073 # Code to be used in simple compile tests
18074 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18075
18076 # Code to be used in simple link tests
18077 lt_simple_link_test_code="$lt_simple_compile_test_code"
18078
18079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18080
18081 # If no C compiler was specified, use CC.
18082 LTCC=${LTCC-"$CC"}
18083
18084 # If no C compiler flags were specified, use CFLAGS.
18085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18086
18087 # Allow CC to be a program name with arguments.
18088 compiler=$CC
18089
18090
18091 # save warnings/boilerplate of simple test code
18092 ac_outfile=conftest.$ac_objext
18093 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18095 _lt_compiler_boilerplate=`cat conftest.err`
18096 $rm conftest*
18097
18098 ac_outfile=conftest.$ac_objext
18099 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18101 _lt_linker_boilerplate=`cat conftest.err`
18102 $rm conftest*
18103
18104
18105 # Allow CC to be a program name with arguments.
18106 lt_save_CC="$CC"
18107 CC=${RC-"windres"}
18108 compiler=$CC
18109 compiler_RC=$CC
18110 for cc_temp in $compiler""; do
18111 case $cc_temp in
18112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18114 \-*) ;;
18115 *) break;;
18116 esac
18117 done
18118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18119
18120 lt_cv_prog_compiler_c_o_RC=yes
18121
18122 # The else clause should only fire when bootstrapping the
18123 # libtool distribution, otherwise you forgot to ship ltmain.sh
18124 # with your package, and you will get complaints that there are
18125 # no rules to generate ltmain.sh.
18126 if test -f "$ltmain"; then
18127 # See if we are running on zsh, and set the options which allow our commands through
18128 # without removal of \ escapes.
18129 if test -n "${ZSH_VERSION+set}" ; then
18130 setopt NO_GLOB_SUBST
18131 fi
18132 # Now quote all the things that may contain metacharacters while being
18133 # careful not to overquote the AC_SUBSTed values. We take copies of the
18134 # variables and quote the copies for generation of the libtool script.
18135 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18136 SED SHELL STRIP \
18137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18139 deplibs_check_method reload_flag reload_cmds need_locks \
18140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18141 lt_cv_sys_global_symbol_to_c_name_address \
18142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18143 old_postinstall_cmds old_postuninstall_cmds \
18144 compiler_RC \
18145 CC_RC \
18146 LD_RC \
18147 lt_prog_compiler_wl_RC \
18148 lt_prog_compiler_pic_RC \
18149 lt_prog_compiler_static_RC \
18150 lt_prog_compiler_no_builtin_flag_RC \
18151 export_dynamic_flag_spec_RC \
18152 thread_safe_flag_spec_RC \
18153 whole_archive_flag_spec_RC \
18154 enable_shared_with_static_runtimes_RC \
18155 old_archive_cmds_RC \
18156 old_archive_from_new_cmds_RC \
18157 predep_objects_RC \
18158 postdep_objects_RC \
18159 predeps_RC \
18160 postdeps_RC \
18161 compiler_lib_search_path_RC \
18162 archive_cmds_RC \
18163 archive_expsym_cmds_RC \
18164 postinstall_cmds_RC \
18165 postuninstall_cmds_RC \
18166 old_archive_from_expsyms_cmds_RC \
18167 allow_undefined_flag_RC \
18168 no_undefined_flag_RC \
18169 export_symbols_cmds_RC \
18170 hardcode_libdir_flag_spec_RC \
18171 hardcode_libdir_flag_spec_ld_RC \
18172 hardcode_libdir_separator_RC \
18173 hardcode_automatic_RC \
18174 module_cmds_RC \
18175 module_expsym_cmds_RC \
18176 lt_cv_prog_compiler_c_o_RC \
18177 exclude_expsyms_RC \
18178 include_expsyms_RC; do
18179
18180 case $var in
18181 old_archive_cmds_RC | \
18182 old_archive_from_new_cmds_RC | \
18183 archive_cmds_RC | \
18184 archive_expsym_cmds_RC | \
18185 module_cmds_RC | \
18186 module_expsym_cmds_RC | \
18187 old_archive_from_expsyms_cmds_RC | \
18188 export_symbols_cmds_RC | \
18189 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18190 postinstall_cmds | postuninstall_cmds | \
18191 old_postinstall_cmds | old_postuninstall_cmds | \
18192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18193 # Double-quote double-evaled strings.
18194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18195 ;;
18196 *)
18197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18198 ;;
18199 esac
18200 done
18201
18202 case $lt_echo in
18203 *'\$0 --fallback-echo"')
18204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18205 ;;
18206 esac
18207
18208 cfgfile="$ofile"
18209
18210 cat <<__EOF__ >> "$cfgfile"
18211 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18212
18213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18214
18215 # Shell to use when invoking shell scripts.
18216 SHELL=$lt_SHELL
18217
18218 # Whether or not to build shared libraries.
18219 build_libtool_libs=$enable_shared
18220
18221 # Whether or not to build static libraries.
18222 build_old_libs=$enable_static
18223
18224 # Whether or not to add -lc for building shared libraries.
18225 build_libtool_need_lc=$archive_cmds_need_lc_RC
18226
18227 # Whether or not to disallow shared libs when runtime libs are static
18228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18229
18230 # Whether or not to optimize for fast installation.
18231 fast_install=$enable_fast_install
18232
18233 # The host system.
18234 host_alias=$host_alias
18235 host=$host
18236 host_os=$host_os
18237
18238 # The build system.
18239 build_alias=$build_alias
18240 build=$build
18241 build_os=$build_os
18242
18243 # An echo program that does not interpret backslashes.
18244 echo=$lt_echo
18245
18246 # The archiver.
18247 AR=$lt_AR
18248 AR_FLAGS=$lt_AR_FLAGS
18249
18250 # A C compiler.
18251 LTCC=$lt_LTCC
18252
18253 # LTCC compiler flags.
18254 LTCFLAGS=$lt_LTCFLAGS
18255
18256 # A language-specific compiler.
18257 CC=$lt_compiler_RC
18258
18259 # Is the compiler the GNU C compiler?
18260 with_gcc=$GCC_RC
18261
18262 # An ERE matcher.
18263 EGREP=$lt_EGREP
18264
18265 # The linker used to build libraries.
18266 LD=$lt_LD_RC
18267
18268 # Whether we need hard or soft links.
18269 LN_S=$lt_LN_S
18270
18271 # A BSD-compatible nm program.
18272 NM=$lt_NM
18273
18274 # A symbol stripping program
18275 STRIP=$lt_STRIP
18276
18277 # Used to examine libraries when file_magic_cmd begins "file"
18278 MAGIC_CMD=$MAGIC_CMD
18279
18280 # Used on cygwin: DLL creation program.
18281 DLLTOOL="$DLLTOOL"
18282
18283 # Used on cygwin: object dumper.
18284 OBJDUMP="$OBJDUMP"
18285
18286 # Used on cygwin: assembler.
18287 AS="$AS"
18288
18289 # The name of the directory that contains temporary libtool files.
18290 objdir=$objdir
18291
18292 # How to create reloadable object files.
18293 reload_flag=$lt_reload_flag
18294 reload_cmds=$lt_reload_cmds
18295
18296 # How to pass a linker flag through the compiler.
18297 wl=$lt_lt_prog_compiler_wl_RC
18298
18299 # Object file suffix (normally "o").
18300 objext="$ac_objext"
18301
18302 # Old archive suffix (normally "a").
18303 libext="$libext"
18304
18305 # Shared library suffix (normally ".so").
18306 shrext_cmds='$shrext_cmds'
18307
18308 # Executable file suffix (normally "").
18309 exeext="$exeext"
18310
18311 # Additional compiler flags for building library objects.
18312 pic_flag=$lt_lt_prog_compiler_pic_RC
18313 pic_mode=$pic_mode
18314
18315 # What is the maximum length of a command?
18316 max_cmd_len=$lt_cv_sys_max_cmd_len
18317
18318 # Does compiler simultaneously support -c and -o options?
18319 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18320
18321 # Must we lock files when doing compilation?
18322 need_locks=$lt_need_locks
18323
18324 # Do we need the lib prefix for modules?
18325 need_lib_prefix=$need_lib_prefix
18326
18327 # Do we need a version for libraries?
18328 need_version=$need_version
18329
18330 # Whether dlopen is supported.
18331 dlopen_support=$enable_dlopen
18332
18333 # Whether dlopen of programs is supported.
18334 dlopen_self=$enable_dlopen_self
18335
18336 # Whether dlopen of statically linked programs is supported.
18337 dlopen_self_static=$enable_dlopen_self_static
18338
18339 # Compiler flag to prevent dynamic linking.
18340 link_static_flag=$lt_lt_prog_compiler_static_RC
18341
18342 # Compiler flag to turn off builtin functions.
18343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18344
18345 # Compiler flag to allow reflexive dlopens.
18346 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18347
18348 # Compiler flag to generate shared objects directly from archives.
18349 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18350
18351 # Compiler flag to generate thread-safe objects.
18352 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18353
18354 # Library versioning type.
18355 version_type=$version_type
18356
18357 # Format of library name prefix.
18358 libname_spec=$lt_libname_spec
18359
18360 # List of archive names. First name is the real one, the rest are links.
18361 # The last name is the one that the linker finds with -lNAME.
18362 library_names_spec=$lt_library_names_spec
18363
18364 # The coded name of the library, if different from the real name.
18365 soname_spec=$lt_soname_spec
18366
18367 # Commands used to build and install an old-style archive.
18368 RANLIB=$lt_RANLIB
18369 old_archive_cmds=$lt_old_archive_cmds_RC
18370 old_postinstall_cmds=$lt_old_postinstall_cmds
18371 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18372
18373 # Create an old-style archive from a shared archive.
18374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18375
18376 # Create a temporary old-style archive to link instead of a shared archive.
18377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18378
18379 # Commands used to build and install a shared archive.
18380 archive_cmds=$lt_archive_cmds_RC
18381 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18382 postinstall_cmds=$lt_postinstall_cmds
18383 postuninstall_cmds=$lt_postuninstall_cmds
18384
18385 # Commands used to build a loadable module (assumed same as above if empty)
18386 module_cmds=$lt_module_cmds_RC
18387 module_expsym_cmds=$lt_module_expsym_cmds_RC
18388
18389 # Commands to strip libraries.
18390 old_striplib=$lt_old_striplib
18391 striplib=$lt_striplib
18392
18393 # Dependencies to place before the objects being linked to create a
18394 # shared library.
18395 predep_objects=$lt_predep_objects_RC
18396
18397 # Dependencies to place after the objects being linked to create a
18398 # shared library.
18399 postdep_objects=$lt_postdep_objects_RC
18400
18401 # Dependencies to place before the objects being linked to create a
18402 # shared library.
18403 predeps=$lt_predeps_RC
18404
18405 # Dependencies to place after the objects being linked to create a
18406 # shared library.
18407 postdeps=$lt_postdeps_RC
18408
18409 # The library search path used internally by the compiler when linking
18410 # a shared library.
18411 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18412
18413 # Method to check whether dependent libraries are shared objects.
18414 deplibs_check_method=$lt_deplibs_check_method
18415
18416 # Command to use when deplibs_check_method == file_magic.
18417 file_magic_cmd=$lt_file_magic_cmd
18418
18419 # Flag that allows shared libraries with undefined symbols to be built.
18420 allow_undefined_flag=$lt_allow_undefined_flag_RC
18421
18422 # Flag that forces no undefined symbols.
18423 no_undefined_flag=$lt_no_undefined_flag_RC
18424
18425 # Commands used to finish a libtool library installation in a directory.
18426 finish_cmds=$lt_finish_cmds
18427
18428 # Same as above, but a single script fragment to be evaled but not shown.
18429 finish_eval=$lt_finish_eval
18430
18431 # Take the output of nm and produce a listing of raw symbols and C names.
18432 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18433
18434 # Transform the output of nm in a proper C declaration
18435 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18436
18437 # Transform the output of nm in a C name address pair
18438 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18439
18440 # This is the shared library runtime path variable.
18441 runpath_var=$runpath_var
18442
18443 # This is the shared library path variable.
18444 shlibpath_var=$shlibpath_var
18445
18446 # Is shlibpath searched before the hard-coded library search path?
18447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18448
18449 # How to hardcode a shared library path into an executable.
18450 hardcode_action=$hardcode_action_RC
18451
18452 # Whether we should hardcode library paths into libraries.
18453 hardcode_into_libs=$hardcode_into_libs
18454
18455 # Flag to hardcode \$libdir into a binary during linking.
18456 # This must work even if \$libdir does not exist.
18457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18458
18459 # If ld is used when linking, flag to hardcode \$libdir into
18460 # a binary during linking. This must work even if \$libdir does
18461 # not exist.
18462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18463
18464 # Whether we need a single -rpath flag with a separated argument.
18465 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18466
18467 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18468 # resulting binary.
18469 hardcode_direct=$hardcode_direct_RC
18470
18471 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18472 # resulting binary.
18473 hardcode_minus_L=$hardcode_minus_L_RC
18474
18475 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18476 # the resulting binary.
18477 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18478
18479 # Set to yes if building a shared library automatically hardcodes DIR into the library
18480 # and all subsequent libraries and executables linked against it.
18481 hardcode_automatic=$hardcode_automatic_RC
18482
18483 # Variables whose values should be saved in libtool wrapper scripts and
18484 # restored at relink time.
18485 variables_saved_for_relink="$variables_saved_for_relink"
18486
18487 # Whether libtool must link a program against all its dependency libraries.
18488 link_all_deplibs=$link_all_deplibs_RC
18489
18490 # Compile-time system search path for libraries
18491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18492
18493 # Run-time system search path for libraries
18494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18495
18496 # Fix the shell variable \$srcfile for the compiler.
18497 fix_srcfile_path="$fix_srcfile_path_RC"
18498
18499 # Set to yes if exported symbols are required.
18500 always_export_symbols=$always_export_symbols_RC
18501
18502 # The commands to list exported symbols.
18503 export_symbols_cmds=$lt_export_symbols_cmds_RC
18504
18505 # The commands to extract the exported symbol list from a shared archive.
18506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18507
18508 # Symbols that should not be listed in the preloaded symbols.
18509 exclude_expsyms=$lt_exclude_expsyms_RC
18510
18511 # Symbols that must always be exported.
18512 include_expsyms=$lt_include_expsyms_RC
18513
18514 # ### END LIBTOOL TAG CONFIG: $tagname
18515
18516 __EOF__
18517
18518
18519 else
18520 # If there is no Makefile yet, we rely on a make rule to execute
18521 # `config.status --recheck' to rerun these tests and create the
18522 # libtool script then.
18523 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18524 if test -f "$ltmain_in"; then
18525 test -f Makefile && make "$ltmain"
18526 fi
18527 fi
18528
18529
18530 ac_ext=cc
18531 ac_cpp='$CXXCPP $CPPFLAGS'
18532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18535
18536 CC="$lt_save_CC"
18537
18538 ;;
18539
18540 *)
18541 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18542 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18543 { (exit 1); exit 1; }; }
18544 ;;
18545 esac
18546
18547 # Append the new tag name to the list of available tags.
18548 if test -n "$tagname" ; then
18549 available_tags="$available_tags $tagname"
18550 fi
18551 fi
18552 done
18553 IFS="$lt_save_ifs"
18554
18555 # Now substitute the updated list of available tags.
18556 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18557 mv "${ofile}T" "$ofile"
18558 chmod +x "$ofile"
18559 else
18560 rm -f "${ofile}T"
18561 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18562 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18563 { (exit 1); exit 1; }; }
18564 fi
18565 fi
18566
18567
18568
18569 # This can be used to rebuild libtool when needed
18570 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18571
18572 # Always use our own libtool.
18573 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18574
18575 # Prevent multiple expansion
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599 # Check whether --with-xml-prefix or --without-xml-prefix was given.
18600 if test "${with_xml_prefix+set}" = set; then
18601 withval="$with_xml_prefix"
18602 xml_config_prefix="$withval"
18603 else
18604 xml_config_prefix=""
18605 fi;
18606
18607 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
18608 if test "${with_xml_exec_prefix+set}" = set; then
18609 withval="$with_xml_exec_prefix"
18610 xml_config_exec_prefix="$withval"
18611 else
18612 xml_config_exec_prefix=""
18613 fi;
18614 # Check whether --enable-xmltest or --disable-xmltest was given.
18615 if test "${enable_xmltest+set}" = set; then
18616 enableval="$enable_xmltest"
18617
18618 else
18619 enable_xmltest=yes
18620 fi;
18621
18622 if test x$xml_config_exec_prefix != x ; then
18623 xml_config_args="$xml_config_args"
18624 if test x${XML2_CONFIG+set} != xset ; then
18625 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
18626 fi
18627 fi
18628 if test x$xml_config_prefix != x ; then
18629 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
18630 if test x${XML2_CONFIG+set} != xset ; then
18631 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
18632 fi
18633 fi
18634
18635 # Extract the first word of "xml2-config", so it can be a program name with args.
18636 set dummy xml2-config; ac_word=$2
18637 echo "$as_me:$LINENO: checking for $ac_word" >&5
18638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18639 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642 case $XML2_CONFIG in
18643 [\\/]* | ?:[\\/]*)
18644 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
18645 ;;
18646 *)
18647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18648 for as_dir in $PATH
18649 do
18650 IFS=$as_save_IFS
18651 test -z "$as_dir" && as_dir=.
18652 for ac_exec_ext in '' $ac_executable_extensions; do
18653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18654 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18656 break 2
18657 fi
18658 done
18659 done
18660
18661 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
18662 ;;
18663 esac
18664 fi
18665 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
18666
18667 if test -n "$XML2_CONFIG"; then
18668 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
18669 echo "${ECHO_T}$XML2_CONFIG" >&6
18670 else
18671 echo "$as_me:$LINENO: result: no" >&5
18672 echo "${ECHO_T}no" >&6
18673 fi
18674
18675 min_xml_version=2.5.0
18676 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
18677 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
18678 no_xml=""
18679 if test "$XML2_CONFIG" = "no" ; then
18680 no_xml=yes
18681 else
18682 XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
18683 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
18684 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
18685 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18686 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
18687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18688 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
18689 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18690 if test "x$enable_xmltest" = "xyes" ; then
18691 ac_save_CPPFLAGS="$CPPFLAGS"
18692 ac_save_LIBS="$LIBS"
18693 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
18694 LIBS="$XML_LIBS $LIBS"
18695 rm -f conf.xmltest
18696 if test "$cross_compiling" = yes; then
18697 echo $ac_n "cross compiling; assumed OK... $ac_c"
18698 else
18699 cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h. */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705
18706 #include <stdlib.h>
18707 #include <stdio.h>
18708 #include <string.h>
18709 #include <libxml/xmlversion.h>
18710
18711 int
18712 main()
18713 {
18714 int xml_major_version, xml_minor_version, xml_micro_version;
18715 int major, minor, micro;
18716 char *tmp_version;
18717
18718 system("touch conf.xmltest");
18719
18720 /* Capture xml2-config output via autoconf/configure variables */
18721 /* HP/UX 9 (%@#!) writes to sscanf strings */
18722 tmp_version = (char *)strdup("$min_xml_version");
18723 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18724 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
18725 exit(1);
18726 }
18727 free(tmp_version);
18728
18729 /* Capture the version information from the header files */
18730 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
18731 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
18732 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
18733 exit(1);
18734 }
18735 free(tmp_version);
18736
18737 /* Compare xml2-config output to the libxml headers */
18738 if ((xml_major_version != $xml_config_major_version) ||
18739 (xml_minor_version != $xml_config_minor_version) ||
18740 (xml_micro_version != $xml_config_micro_version))
18741 {
18742 printf("*** libxml header files (version %d.%d.%d) do not match\n",
18743 xml_major_version, xml_minor_version, xml_micro_version);
18744 printf("*** xml2-config (version %d.%d.%d)\n",
18745 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
18746 return 1;
18747 }
18748 /* Compare the headers to the library to make sure we match */
18749 /* Less than ideal -- doesn't provide us with return value feedback,
18750 * only exits if there's a serious mismatch between header and library.
18751 */
18752 LIBXML_TEST_VERSION;
18753
18754 /* Test that the library is greater than our minimum version */
18755 if ((xml_major_version > major) ||
18756 ((xml_major_version == major) && (xml_minor_version > minor)) ||
18757 ((xml_major_version == major) && (xml_minor_version == minor) &&
18758 (xml_micro_version >= micro)))
18759 {
18760 return 0;
18761 }
18762 else
18763 {
18764 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
18765 xml_major_version, xml_minor_version, xml_micro_version);
18766 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
18767 major, minor, micro);
18768 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
18769 printf("***\n");
18770 printf("*** If you have already installed a sufficiently new version, this error\n");
18771 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
18772 printf("*** being found. The easiest way to fix this is to remove the old version\n");
18773 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
18774 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
18775 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18776 printf("*** so that the correct libraries are found at run-time))\n");
18777 }
18778 return 1;
18779 }
18780
18781 _ACEOF
18782 rm -f conftest$ac_exeext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18784 (eval $ac_link) 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 :
18794 else
18795 echo "$as_me: program exited with status $ac_status" >&5
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ( exit $ac_status )
18800 no_xml=yes
18801 fi
18802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18803 fi
18804 CPPFLAGS="$ac_save_CPPFLAGS"
18805 LIBS="$ac_save_LIBS"
18806 fi
18807 fi
18808
18809 if test "x$no_xml" = x ; then
18810 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
18811 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
18812 :
18813 else
18814 echo "$as_me:$LINENO: result: no" >&5
18815 echo "${ECHO_T}no" >&6
18816 if test "$XML2_CONFIG" = "no" ; then
18817 echo "*** The xml2-config script installed by LIBXML could not be found"
18818 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
18819 echo "*** your path, or set the XML2_CONFIG environment variable to the"
18820 echo "*** full path to xml2-config."
18821 else
18822 if test -f conf.xmltest ; then
18823 :
18824 else
18825 echo "*** Could not run libxml test program, checking why..."
18826 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
18827 LIBS="$LIBS $XML_LIBS"
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h. */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18834
18835 #include <libxml/xmlversion.h>
18836 #include <stdio.h>
18837
18838 int
18839 main ()
18840 {
18841 LIBXML_TEST_VERSION; return 0;
18842 ;
18843 return 0;
18844 }
18845 _ACEOF
18846 rm -f conftest.$ac_objext conftest$ac_exeext
18847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18848 (eval $ac_link) 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_cxx_werror_flag"
18856 || test ! -s conftest.err'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 echo "*** The test program compiled, but did not run. This usually means"
18869 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
18870 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
18871 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18872 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18873 echo "*** is required on your system"
18874 echo "***"
18875 echo "*** If you have an old version installed, it is best to remove it, although"
18876 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18877 else
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881 echo "*** The test program failed to compile or link. See the file config.log for the"
18882 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
18883 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
18884 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
18885 fi
18886 rm -f conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888 CPPFLAGS="$ac_save_CPPFLAGS"
18889 LIBS="$ac_save_LIBS"
18890 fi
18891 fi
18892
18893 XML_CPPFLAGS=""
18894 XML_LIBS=""
18895 { { echo "$as_me:$LINENO: error: You must have libxml2 >= 2.5.0 installed" >&5
18896 echo "$as_me: error: You must have libxml2 >= 2.5.0 installed" >&2;}
18897 { (exit 1); exit 1; }; }
18898 fi
18899
18900
18901 rm -f conf.xmltest
18902
18903
18904 ac_config_files="$ac_config_files Makefile src/Makefile"
18905 cat >confcache <<\_ACEOF
18906 # This file is a shell script that caches the results of configure
18907 # tests run on this system so they can be shared between configure
18908 # scripts and configure runs, see configure's option --config-cache.
18909 # It is not useful on other systems. If it contains results you don't
18910 # want to keep, you may remove or edit it.
18911 #
18912 # config.status only pays attention to the cache file if you give it
18913 # the --recheck option to rerun configure.
18914 #
18915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18917 # following values.
18918
18919 _ACEOF
18920
18921 # The following way of writing the cache mishandles newlines in values,
18922 # but we know of no workaround that is simple, portable, and efficient.
18923 # So, don't put newlines in cache variables' values.
18924 # Ultrix sh set writes to stderr and can't be redirected directly,
18925 # and sets the high bit in the cache file unless we assign to the vars.
18926 {
18927 (set) 2>&1 |
18928 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18929 *ac_space=\ *)
18930 # `set' does not quote correctly, so add quotes (double-quote
18931 # substitution turns \\\\ into \\, and sed turns \\ into \).
18932 sed -n \
18933 "s/'/'\\\\''/g;
18934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18935 ;;
18936 *)
18937 # `set' quotes correctly as required by POSIX, so do not add quotes.
18938 sed -n \
18939 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18940 ;;
18941 esac;
18942 } |
18943 sed '
18944 t clear
18945 : clear
18946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18947 t end
18948 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18949 : end' >>confcache
18950 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18951 if test -w $cache_file; then
18952 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18953 cat confcache >$cache_file
18954 else
18955 echo "not updating unwritable cache $cache_file"
18956 fi
18957 fi
18958 rm -f confcache
18959
18960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18961 # Let make expand exec_prefix.
18962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18963
18964 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18965 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18966 # trailing colons and then remove the whole line if VPATH becomes empty
18967 # (actually we leave an empty line to preserve line numbers).
18968 if test "x$srcdir" = x.; then
18969 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18970 s/:*\$(srcdir):*/:/;
18971 s/:*\${srcdir}:*/:/;
18972 s/:*@srcdir@:*/:/;
18973 s/^\([^=]*=[ ]*\):*/\1/;
18974 s/:*$//;
18975 s/^[^=]*=[ ]*$//;
18976 }'
18977 fi
18978
18979 DEFS=-DHAVE_CONFIG_H
18980
18981 ac_libobjs=
18982 ac_ltlibobjs=
18983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18984 # 1. Remove the extension, and $U if already installed.
18985 ac_i=`echo "$ac_i" |
18986 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18987 # 2. Add them.
18988 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18989 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18990 done
18991 LIBOBJS=$ac_libobjs
18992
18993 LTLIBOBJS=$ac_ltlibobjs
18994
18995
18996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18997 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18998 Usually this means the macro was only invoked conditionally." >&5
18999 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19000 Usually this means the macro was only invoked conditionally." >&2;}
19001 { (exit 1); exit 1; }; }
19002 fi
19003
19004 : ${CONFIG_STATUS=./config.status}
19005 ac_clean_files_save=$ac_clean_files
19006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19007 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19008 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19009 cat >$CONFIG_STATUS <<_ACEOF
19010 #! $SHELL
19011 # Generated by $as_me.
19012 # Run this file to recreate the current configuration.
19013 # Compiler output produced by configure, useful for debugging
19014 # configure, is in config.log if it exists.
19015
19016 debug=false
19017 ac_cs_recheck=false
19018 ac_cs_silent=false
19019 SHELL=\${CONFIG_SHELL-$SHELL}
19020 _ACEOF
19021
19022 cat >>$CONFIG_STATUS <<\_ACEOF
19023 ## --------------------- ##
19024 ## M4sh Initialization. ##
19025 ## --------------------- ##
19026
19027 # Be Bourne compatible
19028 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19029 emulate sh
19030 NULLCMD=:
19031 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19032 # is contrary to our usage. Disable this feature.
19033 alias -g '${1+"$@"}'='"$@"'
19034 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19035 set -o posix
19036 fi
19037 DUALCASE=1; export DUALCASE # for MKS sh
19038
19039 # Support unset when possible.
19040 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19041 as_unset=unset
19042 else
19043 as_unset=false
19044 fi
19045
19046
19047 # Work around bugs in pre-3.0 UWIN ksh.
19048 $as_unset ENV MAIL MAILPATH
19049 PS1='$ '
19050 PS2='> '
19051 PS4='+ '
19052
19053 # NLS nuisances.
19054 for as_var in \
19055 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19056 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19057 LC_TELEPHONE LC_TIME
19058 do
19059 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19060 eval $as_var=C; export $as_var
19061 else
19062 $as_unset $as_var
19063 fi
19064 done
19065
19066 # Required to use basename.
19067 if expr a : '\(a\)' >/dev/null 2>&1; then
19068 as_expr=expr
19069 else
19070 as_expr=false
19071 fi
19072
19073 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19074 as_basename=basename
19075 else
19076 as_basename=false
19077 fi
19078
19079
19080 # Name of the executable.
19081 as_me=`$as_basename "$0" ||
19082 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19083 X"$0" : 'X\(//\)$' \| \
19084 X"$0" : 'X\(/\)$' \| \
19085 . : '\(.\)' 2>/dev/null ||
19086 echo X/"$0" |
19087 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19088 /^X\/\(\/\/\)$/{ s//\1/; q; }
19089 /^X\/\(\/\).*/{ s//\1/; q; }
19090 s/.*/./; q'`
19091
19092
19093 # PATH needs CR, and LINENO needs CR and PATH.
19094 # Avoid depending upon Character Ranges.
19095 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19096 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19097 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19098 as_cr_digits='0123456789'
19099 as_cr_alnum=$as_cr_Letters$as_cr_digits
19100
19101 # The user is always right.
19102 if test "${PATH_SEPARATOR+set}" != set; then
19103 echo "#! /bin/sh" >conf$$.sh
19104 echo "exit 0" >>conf$$.sh
19105 chmod +x conf$$.sh
19106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19107 PATH_SEPARATOR=';'
19108 else
19109 PATH_SEPARATOR=:
19110 fi
19111 rm -f conf$$.sh
19112 fi
19113
19114
19115 as_lineno_1=$LINENO
19116 as_lineno_2=$LINENO
19117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19118 test "x$as_lineno_1" != "x$as_lineno_2" &&
19119 test "x$as_lineno_3" = "x$as_lineno_2" || {
19120 # Find who we are. Look in the path if we contain no path at all
19121 # relative or not.
19122 case $0 in
19123 *[\\/]* ) as_myself=$0 ;;
19124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125 for as_dir in $PATH
19126 do
19127 IFS=$as_save_IFS
19128 test -z "$as_dir" && as_dir=.
19129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19130 done
19131
19132 ;;
19133 esac
19134 # We did not find ourselves, most probably we were run as `sh COMMAND'
19135 # in which case we are not to be found in the path.
19136 if test "x$as_myself" = x; then
19137 as_myself=$0
19138 fi
19139 if test ! -f "$as_myself"; then
19140 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19141 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19142 { (exit 1); exit 1; }; }
19143 fi
19144 case $CONFIG_SHELL in
19145 '')
19146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19147 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19148 do
19149 IFS=$as_save_IFS
19150 test -z "$as_dir" && as_dir=.
19151 for as_base in sh bash ksh sh5; do
19152 case $as_dir in
19153 /*)
19154 if ("$as_dir/$as_base" -c '
19155 as_lineno_1=$LINENO
19156 as_lineno_2=$LINENO
19157 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19158 test "x$as_lineno_1" != "x$as_lineno_2" &&
19159 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19160 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19161 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19162 CONFIG_SHELL=$as_dir/$as_base
19163 export CONFIG_SHELL
19164 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19165 fi;;
19166 esac
19167 done
19168 done
19169 ;;
19170 esac
19171
19172 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19173 # uniformly replaced by the line number. The first 'sed' inserts a
19174 # line-number line before each line; the second 'sed' does the real
19175 # work. The second script uses 'N' to pair each line-number line
19176 # with the numbered line, and appends trailing '-' during
19177 # substitution so that $LINENO is not a special case at line end.
19178 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19179 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19180 sed '=' <$as_myself |
19181 sed '
19182 N
19183 s,$,-,
19184 : loop
19185 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19186 t loop
19187 s,-$,,
19188 s,^['$as_cr_digits']*\n,,
19189 ' >$as_me.lineno &&
19190 chmod +x $as_me.lineno ||
19191 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19192 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19193 { (exit 1); exit 1; }; }
19194
19195 # Don't try to exec as it changes $[0], causing all sort of problems
19196 # (the dirname of $[0] is not the place where we might find the
19197 # original and so on. Autoconf is especially sensible to this).
19198 . ./$as_me.lineno
19199 # Exit status is that of the last command.
19200 exit
19201 }
19202
19203
19204 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19205 *c*,-n*) ECHO_N= ECHO_C='
19206 ' ECHO_T=' ' ;;
19207 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19208 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19209 esac
19210
19211 if expr a : '\(a\)' >/dev/null 2>&1; then
19212 as_expr=expr
19213 else
19214 as_expr=false
19215 fi
19216
19217 rm -f conf$$ conf$$.exe conf$$.file
19218 echo >conf$$.file
19219 if ln -s conf$$.file conf$$ 2>/dev/null; then
19220 # We could just check for DJGPP; but this test a) works b) is more generic
19221 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19222 if test -f conf$$.exe; then
19223 # Don't use ln at all; we don't have any links
19224 as_ln_s='cp -p'
19225 else
19226 as_ln_s='ln -s'
19227 fi
19228 elif ln conf$$.file conf$$ 2>/dev/null; then
19229 as_ln_s=ln
19230 else
19231 as_ln_s='cp -p'
19232 fi
19233 rm -f conf$$ conf$$.exe conf$$.file
19234
19235 if mkdir -p . 2>/dev/null; then
19236 as_mkdir_p=:
19237 else
19238 test -d ./-p && rmdir ./-p
19239 as_mkdir_p=false
19240 fi
19241
19242 as_executable_p="test -f"
19243
19244 # Sed expression to map a string onto a valid CPP name.
19245 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19246
19247 # Sed expression to map a string onto a valid variable name.
19248 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19249
19250
19251 # IFS
19252 # We need space, tab and new line, in precisely that order.
19253 as_nl='
19254 '
19255 IFS=" $as_nl"
19256
19257 # CDPATH.
19258 $as_unset CDPATH
19259
19260 exec 6>&1
19261
19262 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19263 # report actual input values of CONFIG_FILES etc. instead of their
19264 # values after options handling. Logging --version etc. is OK.
19265 exec 5>>config.log
19266 {
19267 echo
19268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19269 ## Running $as_me. ##
19270 _ASBOX
19271 } >&5
19272 cat >&5 <<_CSEOF
19273
19274 This file was extended by $as_me, which was
19275 generated by GNU Autoconf 2.59. Invocation command line was
19276
19277 CONFIG_FILES = $CONFIG_FILES
19278 CONFIG_HEADERS = $CONFIG_HEADERS
19279 CONFIG_LINKS = $CONFIG_LINKS
19280 CONFIG_COMMANDS = $CONFIG_COMMANDS
19281 $ $0 $@
19282
19283 _CSEOF
19284 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19285 echo >&5
19286 _ACEOF
19287
19288 # Files that config.status was made for.
19289 if test -n "$ac_config_files"; then
19290 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19291 fi
19292
19293 if test -n "$ac_config_headers"; then
19294 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19295 fi
19296
19297 if test -n "$ac_config_links"; then
19298 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19299 fi
19300
19301 if test -n "$ac_config_commands"; then
19302 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19303 fi
19304
19305 cat >>$CONFIG_STATUS <<\_ACEOF
19306
19307 ac_cs_usage="\
19308 \`$as_me' instantiates files from templates according to the
19309 current configuration.
19310
19311 Usage: $0 [OPTIONS] [FILE]...
19312
19313 -h, --help print this help, then exit
19314 -V, --version print version number, then exit
19315 -q, --quiet do not print progress messages
19316 -d, --debug don't remove temporary files
19317 --recheck update $as_me by reconfiguring in the same conditions
19318 --file=FILE[:TEMPLATE]
19319 instantiate the configuration file FILE
19320 --header=FILE[:TEMPLATE]
19321 instantiate the configuration header FILE
19322
19323 Configuration files:
19324 $config_files
19325
19326 Configuration headers:
19327 $config_headers
19328
19329 Configuration commands:
19330 $config_commands
19331
19332 Report bugs to <[email protected]>."
19333 _ACEOF
19334
19335 cat >>$CONFIG_STATUS <<_ACEOF
19336 ac_cs_version="\\
19337 config.status
19338 configured by $0, generated by GNU Autoconf 2.59,
19339 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19340
19341 Copyright (C) 2003 Free Software Foundation, Inc.
19342 This config.status script is free software; the Free Software Foundation
19343 gives unlimited permission to copy, distribute and modify it."
19344 srcdir=$srcdir
19345 INSTALL="$INSTALL"
19346 _ACEOF
19347
19348 cat >>$CONFIG_STATUS <<\_ACEOF
19349 # If no file are specified by the user, then we need to provide default
19350 # value. By we need to know if files were specified by the user.
19351 ac_need_defaults=:
19352 while test $# != 0
19353 do
19354 case $1 in
19355 --*=*)
19356 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19357 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19358 ac_shift=:
19359 ;;
19360 -*)
19361 ac_option=$1
19362 ac_optarg=$2
19363 ac_shift=shift
19364 ;;
19365 *) # This is not an option, so the user has probably given explicit
19366 # arguments.
19367 ac_option=$1
19368 ac_need_defaults=false;;
19369 esac
19370
19371 case $ac_option in
19372 # Handling of the options.
19373 _ACEOF
19374 cat >>$CONFIG_STATUS <<\_ACEOF
19375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19376 ac_cs_recheck=: ;;
19377 --version | --vers* | -V )
19378 echo "$ac_cs_version"; exit 0 ;;
19379 --he | --h)
19380 # Conflict between --help and --header
19381 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19382 Try \`$0 --help' for more information." >&5
19383 echo "$as_me: error: ambiguous option: $1
19384 Try \`$0 --help' for more information." >&2;}
19385 { (exit 1); exit 1; }; };;
19386 --help | --hel | -h )
19387 echo "$ac_cs_usage"; exit 0 ;;
19388 --debug | --d* | -d )
19389 debug=: ;;
19390 --file | --fil | --fi | --f )
19391 $ac_shift
19392 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19393 ac_need_defaults=false;;
19394 --header | --heade | --head | --hea )
19395 $ac_shift
19396 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19397 ac_need_defaults=false;;
19398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19400 ac_cs_silent=: ;;
19401
19402 # This is an error.
19403 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19404 Try \`$0 --help' for more information." >&5
19405 echo "$as_me: error: unrecognized option: $1
19406 Try \`$0 --help' for more information." >&2;}
19407 { (exit 1); exit 1; }; } ;;
19408
19409 *) ac_config_targets="$ac_config_targets $1" ;;
19410
19411 esac
19412 shift
19413 done
19414
19415 ac_configure_extra_args=
19416
19417 if $ac_cs_silent; then
19418 exec 6>/dev/null
19419 ac_configure_extra_args="$ac_configure_extra_args --silent"
19420 fi
19421
19422 _ACEOF
19423 cat >>$CONFIG_STATUS <<_ACEOF
19424 if \$ac_cs_recheck; then
19425 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19426 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19427 fi
19428
19429 _ACEOF
19430
19431 cat >>$CONFIG_STATUS <<_ACEOF
19432 #
19433 # INIT-COMMANDS section.
19434 #
19435
19436 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19437
19438 _ACEOF
19439
19440
19441
19442 cat >>$CONFIG_STATUS <<\_ACEOF
19443 for ac_config_target in $ac_config_targets
19444 do
19445 case "$ac_config_target" in
19446 # Handling of arguments.
19447 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19448 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19449 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19450 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19452 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19453 { (exit 1); exit 1; }; };;
19454 esac
19455 done
19456
19457 # If the user did not use the arguments to specify the items to instantiate,
19458 # then the envvar interface is used. Set only those that are not.
19459 # We use the long form for the default assignment because of an extremely
19460 # bizarre bug on SunOS 4.1.3.
19461 if $ac_need_defaults; then
19462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19465 fi
19466
19467 # Have a temporary directory for convenience. Make it in the build tree
19468 # simply because there is no reason to put it here, and in addition,
19469 # creating and moving files from /tmp can sometimes cause problems.
19470 # Create a temporary directory, and hook for its removal unless debugging.
19471 $debug ||
19472 {
19473 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19474 trap '{ (exit 1); exit 1; }' 1 2 13 15
19475 }
19476
19477 # Create a (secure) tmp directory for tmp files.
19478
19479 {
19480 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19481 test -n "$tmp" && test -d "$tmp"
19482 } ||
19483 {
19484 tmp=./confstat$$-$RANDOM
19485 (umask 077 && mkdir $tmp)
19486 } ||
19487 {
19488 echo "$me: cannot create a temporary directory in ." >&2
19489 { (exit 1); exit 1; }
19490 }
19491
19492 _ACEOF
19493
19494 cat >>$CONFIG_STATUS <<_ACEOF
19495
19496 #
19497 # CONFIG_FILES section.
19498 #
19499
19500 # No need to generate the scripts if there are no CONFIG_FILES.
19501 # This happens for instance when ./config.status config.h
19502 if test -n "\$CONFIG_FILES"; then
19503 # Protect against being on the right side of a sed subst in config.status.
19504 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19505 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19506 s,@SHELL@,$SHELL,;t t
19507 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19508 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19509 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19510 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19511 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19512 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19513 s,@exec_prefix@,$exec_prefix,;t t
19514 s,@prefix@,$prefix,;t t
19515 s,@program_transform_name@,$program_transform_name,;t t
19516 s,@bindir@,$bindir,;t t
19517 s,@sbindir@,$sbindir,;t t
19518 s,@libexecdir@,$libexecdir,;t t
19519 s,@datadir@,$datadir,;t t
19520 s,@sysconfdir@,$sysconfdir,;t t
19521 s,@sharedstatedir@,$sharedstatedir,;t t
19522 s,@localstatedir@,$localstatedir,;t t
19523 s,@libdir@,$libdir,;t t
19524 s,@includedir@,$includedir,;t t
19525 s,@oldincludedir@,$oldincludedir,;t t
19526 s,@infodir@,$infodir,;t t
19527 s,@mandir@,$mandir,;t t
19528 s,@build_alias@,$build_alias,;t t
19529 s,@host_alias@,$host_alias,;t t
19530 s,@target_alias@,$target_alias,;t t
19531 s,@DEFS@,$DEFS,;t t
19532 s,@ECHO_C@,$ECHO_C,;t t
19533 s,@ECHO_N@,$ECHO_N,;t t
19534 s,@ECHO_T@,$ECHO_T,;t t
19535 s,@LIBS@,$LIBS,;t t
19536 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19537 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19538 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19539 s,@PACKAGE@,$PACKAGE,;t t
19540 s,@VERSION@,$VERSION,;t t
19541 s,@ACLOCAL@,$ACLOCAL,;t t
19542 s,@AUTOCONF@,$AUTOCONF,;t t
19543 s,@AUTOMAKE@,$AUTOMAKE,;t t
19544 s,@AUTOHEADER@,$AUTOHEADER,;t t
19545 s,@MAKEINFO@,$MAKEINFO,;t t
19546 s,@AMTAR@,$AMTAR,;t t
19547 s,@install_sh@,$install_sh,;t t
19548 s,@STRIP@,$STRIP,;t t
19549 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19550 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19551 s,@AWK@,$AWK,;t t
19552 s,@SET_MAKE@,$SET_MAKE,;t t
19553 s,@CXX@,$CXX,;t t
19554 s,@CXXFLAGS@,$CXXFLAGS,;t t
19555 s,@LDFLAGS@,$LDFLAGS,;t t
19556 s,@CPPFLAGS@,$CPPFLAGS,;t t
19557 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19558 s,@EXEEXT@,$EXEEXT,;t t
19559 s,@OBJEXT@,$OBJEXT,;t t
19560 s,@DEPDIR@,$DEPDIR,;t t
19561 s,@am__include@,$am__include,;t t
19562 s,@am__quote@,$am__quote,;t t
19563 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19564 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19565 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19566 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19567 s,@build@,$build,;t t
19568 s,@build_cpu@,$build_cpu,;t t
19569 s,@build_vendor@,$build_vendor,;t t
19570 s,@build_os@,$build_os,;t t
19571 s,@host@,$host,;t t
19572 s,@host_cpu@,$host_cpu,;t t
19573 s,@host_vendor@,$host_vendor,;t t
19574 s,@host_os@,$host_os,;t t
19575 s,@CC@,$CC,;t t
19576 s,@CFLAGS@,$CFLAGS,;t t
19577 s,@ac_ct_CC@,$ac_ct_CC,;t t
19578 s,@CCDEPMODE@,$CCDEPMODE,;t t
19579 s,@EGREP@,$EGREP,;t t
19580 s,@LN_S@,$LN_S,;t t
19581 s,@ECHO@,$ECHO,;t t
19582 s,@AR@,$AR,;t t
19583 s,@ac_ct_AR@,$ac_ct_AR,;t t
19584 s,@RANLIB@,$RANLIB,;t t
19585 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19586 s,@CPP@,$CPP,;t t
19587 s,@CXXCPP@,$CXXCPP,;t t
19588 s,@F77@,$F77,;t t
19589 s,@FFLAGS@,$FFLAGS,;t t
19590 s,@ac_ct_F77@,$ac_ct_F77,;t t
19591 s,@LIBTOOL@,$LIBTOOL,;t t
19592 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
19593 s,@XML_CPPFLAGS@,$XML_CPPFLAGS,;t t
19594 s,@XML_LIBS@,$XML_LIBS,;t t
19595 s,@LIBOBJS@,$LIBOBJS,;t t
19596 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19597 CEOF
19598
19599 _ACEOF
19600
19601 cat >>$CONFIG_STATUS <<\_ACEOF
19602 # Split the substitutions into bite-sized pieces for seds with
19603 # small command number limits, like on Digital OSF/1 and HP-UX.
19604 ac_max_sed_lines=48
19605 ac_sed_frag=1 # Number of current file.
19606 ac_beg=1 # First line for current file.
19607 ac_end=$ac_max_sed_lines # Line after last line for current file.
19608 ac_more_lines=:
19609 ac_sed_cmds=
19610 while $ac_more_lines; do
19611 if test $ac_beg -gt 1; then
19612 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19613 else
19614 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19615 fi
19616 if test ! -s $tmp/subs.frag; then
19617 ac_more_lines=false
19618 else
19619 # The purpose of the label and of the branching condition is to
19620 # speed up the sed processing (if there are no `@' at all, there
19621 # is no need to browse any of the substitutions).
19622 # These are the two extra sed commands mentioned above.
19623 (echo ':t
19624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19625 if test -z "$ac_sed_cmds"; then
19626 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19627 else
19628 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19629 fi
19630 ac_sed_frag=`expr $ac_sed_frag + 1`
19631 ac_beg=$ac_end
19632 ac_end=`expr $ac_end + $ac_max_sed_lines`
19633 fi
19634 done
19635 if test -z "$ac_sed_cmds"; then
19636 ac_sed_cmds=cat
19637 fi
19638 fi # test -n "$CONFIG_FILES"
19639
19640 _ACEOF
19641 cat >>$CONFIG_STATUS <<\_ACEOF
19642 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19643 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19644 case $ac_file in
19645 - | *:- | *:-:* ) # input from stdin
19646 cat >$tmp/stdin
19647 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19648 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19649 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19651 * ) ac_file_in=$ac_file.in ;;
19652 esac
19653
19654 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19655 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19657 X"$ac_file" : 'X\(//\)[^/]' \| \
19658 X"$ac_file" : 'X\(//\)$' \| \
19659 X"$ac_file" : 'X\(/\)' \| \
19660 . : '\(.\)' 2>/dev/null ||
19661 echo X"$ac_file" |
19662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19664 /^X\(\/\/\)$/{ s//\1/; q; }
19665 /^X\(\/\).*/{ s//\1/; q; }
19666 s/.*/./; q'`
19667 { if $as_mkdir_p; then
19668 mkdir -p "$ac_dir"
19669 else
19670 as_dir="$ac_dir"
19671 as_dirs=
19672 while test ! -d "$as_dir"; do
19673 as_dirs="$as_dir $as_dirs"
19674 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19676 X"$as_dir" : 'X\(//\)[^/]' \| \
19677 X"$as_dir" : 'X\(//\)$' \| \
19678 X"$as_dir" : 'X\(/\)' \| \
19679 . : '\(.\)' 2>/dev/null ||
19680 echo X"$as_dir" |
19681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19683 /^X\(\/\/\)$/{ s//\1/; q; }
19684 /^X\(\/\).*/{ s//\1/; q; }
19685 s/.*/./; q'`
19686 done
19687 test ! -n "$as_dirs" || mkdir $as_dirs
19688 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19689 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19690 { (exit 1); exit 1; }; }; }
19691
19692 ac_builddir=.
19693
19694 if test "$ac_dir" != .; then
19695 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19696 # A "../" for each directory in $ac_dir_suffix.
19697 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19698 else
19699 ac_dir_suffix= ac_top_builddir=
19700 fi
19701
19702 case $srcdir in
19703 .) # No --srcdir option. We are building in place.
19704 ac_srcdir=.
19705 if test -z "$ac_top_builddir"; then
19706 ac_top_srcdir=.
19707 else
19708 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19709 fi ;;
19710 [\\/]* | ?:[\\/]* ) # Absolute path.
19711 ac_srcdir=$srcdir$ac_dir_suffix;
19712 ac_top_srcdir=$srcdir ;;
19713 *) # Relative path.
19714 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19715 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19716 esac
19717
19718 # Do not use `cd foo && pwd` to compute absolute paths, because
19719 # the directories may not exist.
19720 case `pwd` in
19721 .) ac_abs_builddir="$ac_dir";;
19722 *)
19723 case "$ac_dir" in
19724 .) ac_abs_builddir=`pwd`;;
19725 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19726 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19727 esac;;
19728 esac
19729 case $ac_abs_builddir in
19730 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19731 *)
19732 case ${ac_top_builddir}. in
19733 .) ac_abs_top_builddir=$ac_abs_builddir;;
19734 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19735 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19736 esac;;
19737 esac
19738 case $ac_abs_builddir in
19739 .) ac_abs_srcdir=$ac_srcdir;;
19740 *)
19741 case $ac_srcdir in
19742 .) ac_abs_srcdir=$ac_abs_builddir;;
19743 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19744 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19745 esac;;
19746 esac
19747 case $ac_abs_builddir in
19748 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19749 *)
19750 case $ac_top_srcdir in
19751 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19752 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19753 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19754 esac;;
19755 esac
19756
19757
19758 case $INSTALL in
19759 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19760 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19761 esac
19762
19763 if test x"$ac_file" != x-; then
19764 { echo "$as_me:$LINENO: creating $ac_file" >&5
19765 echo "$as_me: creating $ac_file" >&6;}
19766 rm -f "$ac_file"
19767 fi
19768 # Let's still pretend it is `configure' which instantiates (i.e., don't
19769 # use $as_me), people would be surprised to read:
19770 # /* config.h. Generated by config.status. */
19771 if test x"$ac_file" = x-; then
19772 configure_input=
19773 else
19774 configure_input="$ac_file. "
19775 fi
19776 configure_input=$configure_input"Generated from `echo $ac_file_in |
19777 sed 's,.*/,,'` by configure."
19778
19779 # First look for the input files in the build tree, otherwise in the
19780 # src tree.
19781 ac_file_inputs=`IFS=:
19782 for f in $ac_file_in; do
19783 case $f in
19784 -) echo $tmp/stdin ;;
19785 [\\/$]*)
19786 # Absolute (can't be DOS-style, as IFS=:)
19787 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19788 echo "$as_me: error: cannot find input file: $f" >&2;}
19789 { (exit 1); exit 1; }; }
19790 echo "$f";;
19791 *) # Relative
19792 if test -f "$f"; then
19793 # Build tree
19794 echo "$f"
19795 elif test -f "$srcdir/$f"; then
19796 # Source tree
19797 echo "$srcdir/$f"
19798 else
19799 # /dev/null tree
19800 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19801 echo "$as_me: error: cannot find input file: $f" >&2;}
19802 { (exit 1); exit 1; }; }
19803 fi;;
19804 esac
19805 done` || { (exit 1); exit 1; }
19806 _ACEOF
19807 cat >>$CONFIG_STATUS <<_ACEOF
19808 sed "$ac_vpsub
19809 $extrasub
19810 _ACEOF
19811 cat >>$CONFIG_STATUS <<\_ACEOF
19812 :t
19813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19814 s,@configure_input@,$configure_input,;t t
19815 s,@srcdir@,$ac_srcdir,;t t
19816 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19817 s,@top_srcdir@,$ac_top_srcdir,;t t
19818 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19819 s,@builddir@,$ac_builddir,;t t
19820 s,@abs_builddir@,$ac_abs_builddir,;t t
19821 s,@top_builddir@,$ac_top_builddir,;t t
19822 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19823 s,@INSTALL@,$ac_INSTALL,;t t
19824 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19825 rm -f $tmp/stdin
19826 if test x"$ac_file" != x-; then
19827 mv $tmp/out $ac_file
19828 else
19829 cat $tmp/out
19830 rm -f $tmp/out
19831 fi
19832
19833 done
19834 _ACEOF
19835 cat >>$CONFIG_STATUS <<\_ACEOF
19836
19837 #
19838 # CONFIG_HEADER section.
19839 #
19840
19841 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19842 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19843 #
19844 # ac_d sets the value in "#define NAME VALUE" lines.
19845 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19846 ac_dB='[ ].*$,\1#\2'
19847 ac_dC=' '
19848 ac_dD=',;t'
19849 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19850 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19851 ac_uB='$,\1#\2define\3'
19852 ac_uC=' '
19853 ac_uD=',;t'
19854
19855 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19856 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19857 case $ac_file in
19858 - | *:- | *:-:* ) # input from stdin
19859 cat >$tmp/stdin
19860 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19861 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19862 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19863 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19864 * ) ac_file_in=$ac_file.in ;;
19865 esac
19866
19867 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19868 echo "$as_me: creating $ac_file" >&6;}
19869
19870 # First look for the input files in the build tree, otherwise in the
19871 # src tree.
19872 ac_file_inputs=`IFS=:
19873 for f in $ac_file_in; do
19874 case $f in
19875 -) echo $tmp/stdin ;;
19876 [\\/$]*)
19877 # Absolute (can't be DOS-style, as IFS=:)
19878 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19879 echo "$as_me: error: cannot find input file: $f" >&2;}
19880 { (exit 1); exit 1; }; }
19881 # Do quote $f, to prevent DOS paths from being IFS'd.
19882 echo "$f";;
19883 *) # Relative
19884 if test -f "$f"; then
19885 # Build tree
19886 echo "$f"
19887 elif test -f "$srcdir/$f"; then
19888 # Source tree
19889 echo "$srcdir/$f"
19890 else
19891 # /dev/null tree
19892 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19893 echo "$as_me: error: cannot find input file: $f" >&2;}
19894 { (exit 1); exit 1; }; }
19895 fi;;
19896 esac
19897 done` || { (exit 1); exit 1; }
19898 # Remove the trailing spaces.
19899 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19900
19901 _ACEOF
19902
19903 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19904 # `conftest.undefs', that substitutes the proper values into
19905 # config.h.in to produce config.h. The first handles `#define'
19906 # templates, and the second `#undef' templates.
19907 # And first: Protect against being on the right side of a sed subst in
19908 # config.status. Protect against being in an unquoted here document
19909 # in config.status.
19910 rm -f conftest.defines conftest.undefs
19911 # Using a here document instead of a string reduces the quoting nightmare.
19912 # Putting comments in sed scripts is not portable.
19913 #
19914 # `end' is used to avoid that the second main sed command (meant for
19915 # 0-ary CPP macros) applies to n-ary macro definitions.
19916 # See the Autoconf documentation for `clear'.
19917 cat >confdef2sed.sed <<\_ACEOF
19918 s/[\\&,]/\\&/g
19919 s,[\\$`],\\&,g
19920 t clear
19921 : clear
19922 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19923 t end
19924 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19925 : end
19926 _ACEOF
19927 # If some macros were called several times there might be several times
19928 # the same #defines, which is useless. Nevertheless, we may not want to
19929 # sort them, since we want the *last* AC-DEFINE to be honored.
19930 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19931 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19932 rm -f confdef2sed.sed
19933
19934 # This sed command replaces #undef with comments. This is necessary, for
19935 # example, in the case of _POSIX_SOURCE, which is predefined and required
19936 # on some systems where configure will not decide to define it.
19937 cat >>conftest.undefs <<\_ACEOF
19938 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19939 _ACEOF
19940
19941 # Break up conftest.defines because some shells have a limit on the size
19942 # of here documents, and old seds have small limits too (100 cmds).
19943 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19944 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19945 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19946 echo ' :' >>$CONFIG_STATUS
19947 rm -f conftest.tail
19948 while grep . conftest.defines >/dev/null
19949 do
19950 # Write a limited-size here document to $tmp/defines.sed.
19951 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19952 # Speed up: don't consider the non `#define' lines.
19953 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19954 # Work around the forget-to-reset-the-flag bug.
19955 echo 't clr' >>$CONFIG_STATUS
19956 echo ': clr' >>$CONFIG_STATUS
19957 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19958 echo 'CEOF
19959 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19960 rm -f $tmp/in
19961 mv $tmp/out $tmp/in
19962 ' >>$CONFIG_STATUS
19963 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19964 rm -f conftest.defines
19965 mv conftest.tail conftest.defines
19966 done
19967 rm -f conftest.defines
19968 echo ' fi # grep' >>$CONFIG_STATUS
19969 echo >>$CONFIG_STATUS
19970
19971 # Break up conftest.undefs because some shells have a limit on the size
19972 # of here documents, and old seds have small limits too (100 cmds).
19973 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19974 rm -f conftest.tail
19975 while grep . conftest.undefs >/dev/null
19976 do
19977 # Write a limited-size here document to $tmp/undefs.sed.
19978 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19979 # Speed up: don't consider the non `#undef'
19980 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19981 # Work around the forget-to-reset-the-flag bug.
19982 echo 't clr' >>$CONFIG_STATUS
19983 echo ': clr' >>$CONFIG_STATUS
19984 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19985 echo 'CEOF
19986 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19987 rm -f $tmp/in
19988 mv $tmp/out $tmp/in
19989 ' >>$CONFIG_STATUS
19990 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19991 rm -f conftest.undefs
19992 mv conftest.tail conftest.undefs
19993 done
19994 rm -f conftest.undefs
19995
19996 cat >>$CONFIG_STATUS <<\_ACEOF
19997 # Let's still pretend it is `configure' which instantiates (i.e., don't
19998 # use $as_me), people would be surprised to read:
19999 # /* config.h. Generated by config.status. */
20000 if test x"$ac_file" = x-; then
20001 echo "/* Generated by configure. */" >$tmp/config.h
20002 else
20003 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20004 fi
20005 cat $tmp/in >>$tmp/config.h
20006 rm -f $tmp/in
20007 if test x"$ac_file" != x-; then
20008 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20009 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20010 echo "$as_me: $ac_file is unchanged" >&6;}
20011 else
20012 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20014 X"$ac_file" : 'X\(//\)[^/]' \| \
20015 X"$ac_file" : 'X\(//\)$' \| \
20016 X"$ac_file" : 'X\(/\)' \| \
20017 . : '\(.\)' 2>/dev/null ||
20018 echo X"$ac_file" |
20019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20021 /^X\(\/\/\)$/{ s//\1/; q; }
20022 /^X\(\/\).*/{ s//\1/; q; }
20023 s/.*/./; q'`
20024 { if $as_mkdir_p; then
20025 mkdir -p "$ac_dir"
20026 else
20027 as_dir="$ac_dir"
20028 as_dirs=
20029 while test ! -d "$as_dir"; do
20030 as_dirs="$as_dir $as_dirs"
20031 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20033 X"$as_dir" : 'X\(//\)[^/]' \| \
20034 X"$as_dir" : 'X\(//\)$' \| \
20035 X"$as_dir" : 'X\(/\)' \| \
20036 . : '\(.\)' 2>/dev/null ||
20037 echo X"$as_dir" |
20038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20040 /^X\(\/\/\)$/{ s//\1/; q; }
20041 /^X\(\/\).*/{ s//\1/; q; }
20042 s/.*/./; q'`
20043 done
20044 test ! -n "$as_dirs" || mkdir $as_dirs
20045 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20046 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20047 { (exit 1); exit 1; }; }; }
20048
20049 rm -f $ac_file
20050 mv $tmp/config.h $ac_file
20051 fi
20052 else
20053 cat $tmp/config.h
20054 rm -f $tmp/config.h
20055 fi
20056 # Run the commands associated with the file.
20057 case $ac_file in
20058 config.h ) # update the timestamp
20059 echo 'timestamp for config.h' >"./stamp-h1"
20060 ;;
20061 esac
20062 done
20063 _ACEOF
20064 cat >>$CONFIG_STATUS <<\_ACEOF
20065
20066 #
20067 # CONFIG_COMMANDS section.
20068 #
20069 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20070 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20071 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20072 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20073 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20074 X"$ac_dest" : 'X\(//\)[^/]' \| \
20075 X"$ac_dest" : 'X\(//\)$' \| \
20076 X"$ac_dest" : 'X\(/\)' \| \
20077 . : '\(.\)' 2>/dev/null ||
20078 echo X"$ac_dest" |
20079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20081 /^X\(\/\/\)$/{ s//\1/; q; }
20082 /^X\(\/\).*/{ s//\1/; q; }
20083 s/.*/./; q'`
20084 { if $as_mkdir_p; then
20085 mkdir -p "$ac_dir"
20086 else
20087 as_dir="$ac_dir"
20088 as_dirs=
20089 while test ! -d "$as_dir"; do
20090 as_dirs="$as_dir $as_dirs"
20091 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20093 X"$as_dir" : 'X\(//\)[^/]' \| \
20094 X"$as_dir" : 'X\(//\)$' \| \
20095 X"$as_dir" : 'X\(/\)' \| \
20096 . : '\(.\)' 2>/dev/null ||
20097 echo X"$as_dir" |
20098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20100 /^X\(\/\/\)$/{ s//\1/; q; }
20101 /^X\(\/\).*/{ s//\1/; q; }
20102 s/.*/./; q'`
20103 done
20104 test ! -n "$as_dirs" || mkdir $as_dirs
20105 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20106 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20107 { (exit 1); exit 1; }; }; }
20108
20109 ac_builddir=.
20110
20111 if test "$ac_dir" != .; then
20112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20113 # A "../" for each directory in $ac_dir_suffix.
20114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20115 else
20116 ac_dir_suffix= ac_top_builddir=
20117 fi
20118
20119 case $srcdir in
20120 .) # No --srcdir option. We are building in place.
20121 ac_srcdir=.
20122 if test -z "$ac_top_builddir"; then
20123 ac_top_srcdir=.
20124 else
20125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20126 fi ;;
20127 [\\/]* | ?:[\\/]* ) # Absolute path.
20128 ac_srcdir=$srcdir$ac_dir_suffix;
20129 ac_top_srcdir=$srcdir ;;
20130 *) # Relative path.
20131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20133 esac
20134
20135 # Do not use `cd foo && pwd` to compute absolute paths, because
20136 # the directories may not exist.
20137 case `pwd` in
20138 .) ac_abs_builddir="$ac_dir";;
20139 *)
20140 case "$ac_dir" in
20141 .) ac_abs_builddir=`pwd`;;
20142 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20143 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20144 esac;;
20145 esac
20146 case $ac_abs_builddir in
20147 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20148 *)
20149 case ${ac_top_builddir}. in
20150 .) ac_abs_top_builddir=$ac_abs_builddir;;
20151 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20152 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20153 esac;;
20154 esac
20155 case $ac_abs_builddir in
20156 .) ac_abs_srcdir=$ac_srcdir;;
20157 *)
20158 case $ac_srcdir in
20159 .) ac_abs_srcdir=$ac_abs_builddir;;
20160 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20161 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20162 esac;;
20163 esac
20164 case $ac_abs_builddir in
20165 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20166 *)
20167 case $ac_top_srcdir in
20168 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20169 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20170 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20171 esac;;
20172 esac
20173
20174
20175 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20176 echo "$as_me: executing $ac_dest commands" >&6;}
20177 case $ac_dest in
20178 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20179 # Strip MF so we end up with the name of the file.
20180 mf=`echo "$mf" | sed -e 's/:.*$//'`
20181 # Check whether this is an Automake generated Makefile or not.
20182 # We used to match only the files named `Makefile.in', but
20183 # some people rename them; so instead we look at the file content.
20184 # Grep'ing the first line is not enough: some people post-process
20185 # each Makefile.in and add a new line on top of each file to say so.
20186 # So let's grep whole file.
20187 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20188 dirpart=`(dirname "$mf") 2>/dev/null ||
20189 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20190 X"$mf" : 'X\(//\)[^/]' \| \
20191 X"$mf" : 'X\(//\)$' \| \
20192 X"$mf" : 'X\(/\)' \| \
20193 . : '\(.\)' 2>/dev/null ||
20194 echo X"$mf" |
20195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20197 /^X\(\/\/\)$/{ s//\1/; q; }
20198 /^X\(\/\).*/{ s//\1/; q; }
20199 s/.*/./; q'`
20200 else
20201 continue
20202 fi
20203 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20204 # Extract the definition of DEP_FILES from the Makefile without
20205 # running `make'.
20206 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20207 test -z "$DEPDIR" && continue
20208 # When using ansi2knr, U may be empty or an underscore; expand it
20209 U=`sed -n -e '/^U = / s///p' < "$mf"`
20210 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20211 # We invoke sed twice because it is the simplest approach to
20212 # changing $(DEPDIR) to its actual value in the expansion.
20213 for file in `sed -n -e '
20214 /^DEP_FILES = .*\\\\$/ {
20215 s/^DEP_FILES = //
20216 :loop
20217 s/\\\\$//
20218 p
20219 n
20220 /\\\\$/ b loop
20221 p
20222 }
20223 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20224 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20225 # Make sure the directory exists.
20226 test -f "$dirpart/$file" && continue
20227 fdir=`(dirname "$file") 2>/dev/null ||
20228 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20229 X"$file" : 'X\(//\)[^/]' \| \
20230 X"$file" : 'X\(//\)$' \| \
20231 X"$file" : 'X\(/\)' \| \
20232 . : '\(.\)' 2>/dev/null ||
20233 echo X"$file" |
20234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20236 /^X\(\/\/\)$/{ s//\1/; q; }
20237 /^X\(\/\).*/{ s//\1/; q; }
20238 s/.*/./; q'`
20239 { if $as_mkdir_p; then
20240 mkdir -p $dirpart/$fdir
20241 else
20242 as_dir=$dirpart/$fdir
20243 as_dirs=
20244 while test ! -d "$as_dir"; do
20245 as_dirs="$as_dir $as_dirs"
20246 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20248 X"$as_dir" : 'X\(//\)[^/]' \| \
20249 X"$as_dir" : 'X\(//\)$' \| \
20250 X"$as_dir" : 'X\(/\)' \| \
20251 . : '\(.\)' 2>/dev/null ||
20252 echo X"$as_dir" |
20253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20255 /^X\(\/\/\)$/{ s//\1/; q; }
20256 /^X\(\/\).*/{ s//\1/; q; }
20257 s/.*/./; q'`
20258 done
20259 test ! -n "$as_dirs" || mkdir $as_dirs
20260 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20261 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20262 { (exit 1); exit 1; }; }; }
20263
20264 # echo "creating $dirpart/$file"
20265 echo '# dummy' > "$dirpart/$file"
20266 done
20267 done
20268 ;;
20269 esac
20270 done
20271 _ACEOF
20272
20273 cat >>$CONFIG_STATUS <<\_ACEOF
20274
20275 { (exit 0); exit 0; }
20276 _ACEOF
20277 chmod +x $CONFIG_STATUS
20278 ac_clean_files=$ac_clean_files_save
20279
20280
20281 # configure is writing to config.log, and then calls config.status.
20282 # config.status does its own redirection, appending to config.log.
20283 # Unfortunately, on DOS this fails, as config.log is still kept open
20284 # by configure, so config.status won't be able to write to it; its
20285 # output is simply discarded. So we exec the FD to /dev/null,
20286 # effectively closing config.log, so it can be properly (re)opened and
20287 # appended to by config.status. When coming back to configure, we
20288 # need to make the FD available again.
20289 if test "$no_create" != yes; then
20290 ac_cs_success=:
20291 ac_config_status_args=
20292 test "$silent" = yes &&
20293 ac_config_status_args="$ac_config_status_args --quiet"
20294 exec 5>/dev/null
20295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20296 exec 5>>config.log
20297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20298 # would make configure fail if this is the last instruction.
20299 $ac_cs_success || { (exit 1); exit 1; }
20300 fi
20301